diff --git a/kusto/resource-manager/v2018_09_07_preview/pom.xml b/kusto/resource-manager/v2018_09_07_preview/pom.xml
new file mode 100644
index 000000000000..cd3671b9b349
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/pom.xml
@@ -0,0 +1,133 @@
+
+
+ 4.0.0
+ com.microsoft.azure.kusto.v2018_09_07_preview
+
+ com.microsoft.azure
+ azure-arm-parent
+ 0.0.3-beta
+ ../../../pom.xml
+
+ azure-mgmt-kusto
+ 1.0.0-beta
+ jar
+ Microsoft Azure SDK for Kusto Management
+ This package contains Microsoft Kusto Management SDK.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+ scm:git:https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+ UTF-8
+
+
+
+
+ microsoft
+ Microsoft
+
+
+
+
+ com.microsoft.azure
+ azure-client-runtime
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+
+
+ junit
+ junit
+ test
+
+
+ com.microsoft.azure
+ azure-client-authentication
+ test
+
+
+ com.microsoft.azure
+ azure-mgmt-resources
+ test
+
+
+ com.microsoft.azure
+ azure-arm-client-runtime
+ test-jar
+ test
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ true
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ 1.7
+ 1.7
+
+
+ com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
+
+
+ true
+ true
+
+ true
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8
+
+ *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search
+
+
+ /**
+
* Copyright (c) Microsoft Corporation. All rights reserved.
+
* Licensed under the MIT License. See License.txt in the project root for
+
* license information.
+
*/
+ ]]>
+
+
+
+
+
+
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureCapacity.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureCapacity.java
new file mode 100644
index 000000000000..3de7c3da2d03
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureCapacity.java
@@ -0,0 +1,121 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The AzureCapacity model.
+ */
+public class AzureCapacity {
+ /**
+ * Scale type. Possible values include: 'automatic', 'manual', 'none'.
+ */
+ @JsonProperty(value = "scaleType", required = true)
+ private AzureScaleType scaleType;
+
+ /**
+ * Minimum allowed capacity.
+ */
+ @JsonProperty(value = "minimum", required = true)
+ private int minimum;
+
+ /**
+ * Maximum allowed capacity.
+ */
+ @JsonProperty(value = "maximum", required = true)
+ private int maximum;
+
+ /**
+ * The default capacity that would be used.
+ */
+ @JsonProperty(value = "default", required = true)
+ private int defaultProperty;
+
+ /**
+ * Get scale type. Possible values include: 'automatic', 'manual', 'none'.
+ *
+ * @return the scaleType value
+ */
+ public AzureScaleType scaleType() {
+ return this.scaleType;
+ }
+
+ /**
+ * Set scale type. Possible values include: 'automatic', 'manual', 'none'.
+ *
+ * @param scaleType the scaleType value to set
+ * @return the AzureCapacity object itself.
+ */
+ public AzureCapacity withScaleType(AzureScaleType scaleType) {
+ this.scaleType = scaleType;
+ return this;
+ }
+
+ /**
+ * Get minimum allowed capacity.
+ *
+ * @return the minimum value
+ */
+ public int minimum() {
+ return this.minimum;
+ }
+
+ /**
+ * Set minimum allowed capacity.
+ *
+ * @param minimum the minimum value to set
+ * @return the AzureCapacity object itself.
+ */
+ public AzureCapacity withMinimum(int minimum) {
+ this.minimum = minimum;
+ return this;
+ }
+
+ /**
+ * Get maximum allowed capacity.
+ *
+ * @return the maximum value
+ */
+ public int maximum() {
+ return this.maximum;
+ }
+
+ /**
+ * Set maximum allowed capacity.
+ *
+ * @param maximum the maximum value to set
+ * @return the AzureCapacity object itself.
+ */
+ public AzureCapacity withMaximum(int maximum) {
+ this.maximum = maximum;
+ return this;
+ }
+
+ /**
+ * Get the default capacity that would be used.
+ *
+ * @return the defaultProperty value
+ */
+ public int defaultProperty() {
+ return this.defaultProperty;
+ }
+
+ /**
+ * Set the default capacity that would be used.
+ *
+ * @param defaultProperty the defaultProperty value to set
+ * @return the AzureCapacity object itself.
+ */
+ public AzureCapacity withDefaultProperty(int defaultProperty) {
+ this.defaultProperty = defaultProperty;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureEntityResource.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureEntityResource.java
new file mode 100644
index 000000000000..4ede9a1642a6
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureEntityResource.java
@@ -0,0 +1,34 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * The resource model definition for a Azure Resource Manager resource with an
+ * etag.
+ */
+public class AzureEntityResource extends ProxyResource {
+ /**
+ * Resource Etag.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get resource Etag.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureResourceSku.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureResourceSku.java
new file mode 100644
index 000000000000..3bfd8038c81c
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureResourceSku.java
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.AzureResourceSkuInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+
+/**
+ * Type representing AzureResourceSku.
+ */
+public interface AzureResourceSku extends HasInner, HasManager {
+ /**
+ * @return the capacity value.
+ */
+ AzureCapacity capacity();
+
+ /**
+ * @return the resourceType value.
+ */
+ String resourceType();
+
+ /**
+ * @return the sku value.
+ */
+ AzureSku sku();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureScaleType.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureScaleType.java
new file mode 100644
index 000000000000..ea201bea5e3b
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureScaleType.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for AzureScaleType.
+ */
+public final class AzureScaleType extends ExpandableStringEnum {
+ /** Static value automatic for AzureScaleType. */
+ public static final AzureScaleType AUTOMATIC = fromString("automatic");
+
+ /** Static value manual for AzureScaleType. */
+ public static final AzureScaleType MANUAL = fromString("manual");
+
+ /** Static value none for AzureScaleType. */
+ public static final AzureScaleType NONE = fromString("none");
+
+ /**
+ * Creates or finds a AzureScaleType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding AzureScaleType
+ */
+ @JsonCreator
+ public static AzureScaleType fromString(String name) {
+ return fromString(name, AzureScaleType.class);
+ }
+
+ /**
+ * @return known AzureScaleType values
+ */
+ public static Collection values() {
+ return values(AzureScaleType.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSku.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSku.java
new file mode 100644
index 000000000000..871ea0cc1cad
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSku.java
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.AzureSkuInner;
+
+/**
+ * Type representing AzureSku.
+ */
+public interface AzureSku extends HasInner, HasManager {
+ /**
+ * @return the capacity value.
+ */
+ Integer capacity();
+
+ /**
+ * @return the name value.
+ */
+ AzureSkuName name();
+
+ /**
+ * @return the tier value.
+ */
+ String tier();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSkuName.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSkuName.java
new file mode 100644
index 000000000000..0b4df8166ded
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/AzureSkuName.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for AzureSkuName.
+ */
+public final class AzureSkuName extends ExpandableStringEnum {
+ /** Static value KC8 for AzureSkuName. */
+ public static final AzureSkuName KC8 = fromString("KC8");
+
+ /** Static value KC16 for AzureSkuName. */
+ public static final AzureSkuName KC16 = fromString("KC16");
+
+ /** Static value KS8 for AzureSkuName. */
+ public static final AzureSkuName KS8 = fromString("KS8");
+
+ /** Static value KS16 for AzureSkuName. */
+ public static final AzureSkuName KS16 = fromString("KS16");
+
+ /** Static value D13_v2 for AzureSkuName. */
+ public static final AzureSkuName D13_V2 = fromString("D13_v2");
+
+ /** Static value D14_v2 for AzureSkuName. */
+ public static final AzureSkuName D14_V2 = fromString("D14_v2");
+
+ /** Static value L8 for AzureSkuName. */
+ public static final AzureSkuName L8 = fromString("L8");
+
+ /** Static value L16 for AzureSkuName. */
+ public static final AzureSkuName L16 = fromString("L16");
+
+ /**
+ * Creates or finds a AzureSkuName from its string representation.
+ * @param name a name to look for
+ * @return the corresponding AzureSkuName
+ */
+ @JsonCreator
+ public static AzureSkuName fromString(String name) {
+ return fromString(name, AzureSkuName.class);
+ }
+
+ /**
+ * @return known AzureSkuName values
+ */
+ public static Collection values() {
+ return values(AzureSkuName.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/CheckNameResult.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/CheckNameResult.java
new file mode 100644
index 000000000000..df3b7726c776
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/CheckNameResult.java
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.CheckNameResultInner;
+
+/**
+ * Type representing CheckNameResult.
+ */
+public interface CheckNameResult extends HasInner, HasManager {
+ /**
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the nameAvailable value.
+ */
+ Boolean nameAvailable();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Cluster.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Cluster.java
new file mode 100644
index 000000000000..f3940346eb85
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Cluster.java
@@ -0,0 +1,153 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.Resource;
+import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
+import com.microsoft.azure.arm.resources.models.HasResourceGroup;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.AzureSkuInner;
+import java.util.List;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.ClusterInner;
+
+/**
+ * Type representing Cluster.
+ */
+public interface Cluster extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+ /**
+ * @return the dataIngestionUri value.
+ */
+ String dataIngestionUri();
+
+ /**
+ * @return the etag value.
+ */
+ String etag();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the sku value.
+ */
+ AzureSku sku();
+
+ /**
+ * @return the state value.
+ */
+ State state();
+
+ /**
+ * @return the trustedExternalTenants value.
+ */
+ List trustedExternalTenants();
+
+ /**
+ * @return the uri value.
+ */
+ String uri();
+
+ /**
+ * The entirety of the Cluster definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Cluster definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Cluster definition.
+ */
+ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
+ }
+
+ /**
+ * The stage of the Cluster definition allowing to specify the resource group.
+ */
+ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
+ }
+
+ /**
+ * The stage of the cluster definition allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the cluster
+ * @return the next definition stage
+*/
+ WithCreate withSku(AzureSkuInner sku);
+ }
+
+ /**
+ * The stage of the cluster definition allowing to specify TrustedExternalTenants.
+ */
+ interface WithTrustedExternalTenants {
+ /**
+ * Specifies trustedExternalTenants.
+ * @param trustedExternalTenants The cluster's external tenants
+ * @return the next definition stage
+ */
+ WithCreate withTrustedExternalTenants(List trustedExternalTenants);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithTrustedExternalTenants {
+ }
+ }
+ /**
+ * The template for a Cluster update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithSku, UpdateStages.WithTrustedExternalTenants {
+ }
+
+ /**
+ * Grouping of Cluster update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the cluster update allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku The SKU of the cluster
+ * @return the next update stage
+ */
+ Update withSku(AzureSkuInner sku);
+ }
+
+ /**
+ * The stage of the cluster update allowing to specify TrustedExternalTenants.
+ */
+ interface WithTrustedExternalTenants {
+ /**
+ * Specifies trustedExternalTenants.
+ * @param trustedExternalTenants The cluster's external tenants
+ * @return the next update stage
+ */
+ Update withTrustedExternalTenants(List trustedExternalTenants);
+ }
+
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterCheckNameRequest.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterCheckNameRequest.java
new file mode 100644
index 000000000000..a9e57ecb39ea
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterCheckNameRequest.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ClusterCheckNameRequest model.
+ */
+public class ClusterCheckNameRequest {
+ /**
+ * Cluster name.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * The type of resource, Microsoft.Kusto/clusters.
+ */
+ @JsonProperty(value = "type", required = true)
+ private String type;
+
+ /**
+ * Creates an instance of ClusterCheckNameRequest class.
+ * @param name cluster name.
+ */
+ public ClusterCheckNameRequest() {
+ type = "Microsoft.Kusto/clusters";
+ }
+
+ /**
+ * Get cluster name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set cluster name.
+ *
+ * @param name the name value to set
+ * @return the ClusterCheckNameRequest object itself.
+ */
+ public ClusterCheckNameRequest withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type of resource, Microsoft.Kusto/clusters.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type of resource, Microsoft.Kusto/clusters.
+ *
+ * @param type the type value to set
+ * @return the ClusterCheckNameRequest object itself.
+ */
+ public ClusterCheckNameRequest withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterUpdate.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterUpdate.java
new file mode 100644
index 000000000000..bb56b4655994
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ClusterUpdate.java
@@ -0,0 +1,205 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Map;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.AzureSkuInner;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Class representing an update to a Kusto cluster.
+ */
+@JsonFlatten
+public class ClusterUpdate extends ProxyResource {
+ /**
+ * Resource tags.
+ */
+ @JsonProperty(value = "tags")
+ private Map tags;
+
+ /**
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * An ETag of the resource updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * The SKU of the cluster.
+ */
+ @JsonProperty(value = "sku")
+ private AzureSkuInner sku;
+
+ /**
+ * The state of the resource. Possible values include: 'Creating',
+ * 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped',
+ * 'Starting'.
+ */
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private State state;
+
+ /**
+ * The provisioned state of the resource. Possible values include:
+ * 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * The cluster URI.
+ */
+ @JsonProperty(value = "properties.uri", access = JsonProperty.Access.WRITE_ONLY)
+ private String uri;
+
+ /**
+ * The cluster data ingestion URI.
+ */
+ @JsonProperty(value = "properties.dataIngestionUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String dataIngestionUri;
+
+ /**
+ * The cluster's external tenants.
+ */
+ @JsonProperty(value = "properties.trustedExternalTenants")
+ private List trustedExternalTenants;
+
+ /**
+ * Get resource tags.
+ *
+ * @return the tags value
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set resource tags.
+ *
+ * @param tags the tags value to set
+ * @return the ClusterUpdate object itself.
+ */
+ public ClusterUpdate withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get resource location.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set resource location.
+ *
+ * @param location the location value to set
+ * @return the ClusterUpdate object itself.
+ */
+ public ClusterUpdate withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get an ETag of the resource updated.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the SKU of the cluster.
+ *
+ * @return the sku value
+ */
+ public AzureSkuInner sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the SKU of the cluster.
+ *
+ * @param sku the sku value to set
+ * @return the ClusterUpdate object itself.
+ */
+ public ClusterUpdate withSku(AzureSkuInner sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting'.
+ *
+ * @return the state value
+ */
+ public State state() {
+ return this.state;
+ }
+
+ /**
+ * Get the provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the cluster URI.
+ *
+ * @return the uri value
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Get the cluster data ingestion URI.
+ *
+ * @return the dataIngestionUri value
+ */
+ public String dataIngestionUri() {
+ return this.dataIngestionUri;
+ }
+
+ /**
+ * Get the cluster's external tenants.
+ *
+ * @return the trustedExternalTenants value
+ */
+ public List trustedExternalTenants() {
+ return this.trustedExternalTenants;
+ }
+
+ /**
+ * Set the cluster's external tenants.
+ *
+ * @param trustedExternalTenants the trustedExternalTenants value to set
+ * @return the ClusterUpdate object itself.
+ */
+ public ClusterUpdate withTrustedExternalTenants(List trustedExternalTenants) {
+ this.trustedExternalTenants = trustedExternalTenants;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Clusters.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Clusters.java
new file mode 100644
index 000000000000..13bcaa059675
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Clusters.java
@@ -0,0 +1,75 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
+import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
+import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
+import rx.Observable;
+import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
+import com.microsoft.azure.arm.collection.SupportsListing;
+import rx.Completable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.ClustersInner;
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureResourceSku;
+
+/**
+ * Type representing Clusters.
+ */
+public interface Clusters extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
+ /**
+ * Stops a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable stopAsync(String resourceGroupName, String clusterName);
+
+ /**
+ * Starts a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable startAsync(String resourceGroupName, String clusterName);
+
+ /**
+ * Checks that the cluster name is valid and is not already in use.
+ *
+ * @param location Azure location.
+ * @param name Cluster name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String location, String name);
+
+ /**
+ * Returns the SKUs available for the provided resource.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listSkusByResourceAsync(String resourceGroupName, String clusterName);
+
+ /**
+ * Lists eligible SKUs for Kusto resource provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listSkusAsync();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DataFormat.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DataFormat.java
new file mode 100644
index 000000000000..20123d792042
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DataFormat.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DataFormat.
+ */
+public final class DataFormat extends ExpandableStringEnum {
+ /** Static value MULTIJSON for DataFormat. */
+ public static final DataFormat MULTIJSON = fromString("MULTIJSON");
+
+ /** Static value JSON for DataFormat. */
+ public static final DataFormat JSON = fromString("JSON");
+
+ /** Static value CSV for DataFormat. */
+ public static final DataFormat CSV = fromString("CSV");
+
+ /**
+ * Creates or finds a DataFormat from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DataFormat
+ */
+ @JsonCreator
+ public static DataFormat fromString(String name) {
+ return fromString(name, DataFormat.class);
+ }
+
+ /**
+ * @return known DataFormat values
+ */
+ public static Collection values() {
+ return values(DataFormat.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Database.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Database.java
new file mode 100644
index 000000000000..17b7a8fa8fec
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Database.java
@@ -0,0 +1,220 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabaseInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import java.util.Map;
+
+/**
+ * Type representing Database.
+ */
+public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the etag value.
+ */
+ String etag();
+
+ /**
+ * @return the hotCachePeriodInDays value.
+ */
+ Integer hotCachePeriodInDays();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningState provisioningState();
+
+ /**
+ * @return the softDeletePeriodInDays value.
+ */
+ int softDeletePeriodInDays();
+
+ /**
+ * @return the statistics value.
+ */
+ DatabaseStatistics statistics();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the Database definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCluster, DefinitionStages.WithLocation, DefinitionStages.WithSoftDeletePeriodInDays, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Database definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Database definition.
+ */
+ interface Blank extends WithCluster {
+ }
+
+ /**
+ * The stage of the database definition allowing to specify Cluster.
+ */
+ interface WithCluster {
+ /**
+ * Specifies resourceGroupName, clusterName.
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster
+ * @param clusterName The name of the Kusto cluster
+ * @return the next definition stage
+ */
+ WithLocation withExistingCluster(String resourceGroupName, String clusterName);
+ }
+
+ /**
+ * The stage of the database definition allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location The geo-location where the resource lives
+ * @return the next definition stage
+ */
+ WithSoftDeletePeriodInDays withLocation(String location);
+ }
+
+ /**
+ * The stage of the database definition allowing to specify SoftDeletePeriodInDays.
+ */
+ interface WithSoftDeletePeriodInDays {
+ /**
+ * Specifies softDeletePeriodInDays.
+ * @param softDeletePeriodInDays The number of days data should be kept before it stops being accessible to queries
+ * @return the next definition stage
+ */
+ WithCreate withSoftDeletePeriodInDays(int softDeletePeriodInDays);
+ }
+
+ /**
+ * The stage of the database definition allowing to specify HotCachePeriodInDays.
+ */
+ interface WithHotCachePeriodInDays {
+ /**
+ * Specifies hotCachePeriodInDays.
+ * @param hotCachePeriodInDays The number of days of data that should be kept in cache for fast queries
+ * @return the next definition stage
+ */
+ WithCreate withHotCachePeriodInDays(Integer hotCachePeriodInDays);
+ }
+
+ /**
+ * The stage of the database definition allowing to specify Statistics.
+ */
+ interface WithStatistics {
+ /**
+ * Specifies statistics.
+ * @param statistics The statistics of the database
+ * @return the next definition stage
+ */
+ WithCreate withStatistics(DatabaseStatistics statistics);
+ }
+
+ /**
+ * The stage of the database definition allowing to specify Tags.
+ */
+ interface WithTags {
+ /**
+ * Specifies tags.
+ * @param tags Resource tags
+ * @return the next definition stage
+ */
+ WithCreate withTags(Map tags);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithHotCachePeriodInDays, DefinitionStages.WithStatistics, DefinitionStages.WithTags {
+ }
+ }
+ /**
+ * The template for a Database update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithHotCachePeriodInDays, UpdateStages.WithLocation, UpdateStages.WithStatistics {
+ }
+
+ /**
+ * Grouping of Database update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the database update allowing to specify HotCachePeriodInDays.
+ */
+ interface WithHotCachePeriodInDays {
+ /**
+ * Specifies hotCachePeriodInDays.
+ * @param hotCachePeriodInDays The number of days of data that should be kept in cache for fast queries
+ * @return the next update stage
+ */
+ Update withHotCachePeriodInDays(Integer hotCachePeriodInDays);
+ }
+
+ /**
+ * The stage of the database update allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location Resource location
+ * @return the next update stage
+ */
+ Update withLocation(String location);
+ }
+
+ /**
+ * The stage of the database update allowing to specify Statistics.
+ */
+ interface WithStatistics {
+ /**
+ * Specifies statistics.
+ * @param statistics The statistics of the database
+ * @return the next update stage
+ */
+ Update withStatistics(DatabaseStatistics statistics);
+ }
+
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseCheckNameRequest.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseCheckNameRequest.java
new file mode 100644
index 000000000000..a95c9af2381f
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseCheckNameRequest.java
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The DatabaseCheckNameRequest model.
+ */
+public class DatabaseCheckNameRequest {
+ /**
+ * Database name.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * The type of resource, Microsoft.Kusto/clusters/databases.
+ */
+ @JsonProperty(value = "type", required = true)
+ private String type;
+
+ /**
+ * Creates an instance of DatabaseCheckNameRequest class.
+ * @param name database name.
+ */
+ public DatabaseCheckNameRequest() {
+ type = "Microsoft.Kusto/clusters/databases";
+ }
+
+ /**
+ * Get database name.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set database name.
+ *
+ * @param name the name value to set
+ * @return the DatabaseCheckNameRequest object itself.
+ */
+ public DatabaseCheckNameRequest withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type of resource, Microsoft.Kusto/clusters/databases.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type of resource, Microsoft.Kusto/clusters/databases.
+ *
+ * @param type the type value to set
+ * @return the DatabaseCheckNameRequest object itself.
+ */
+ public DatabaseCheckNameRequest withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipal.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipal.java
new file mode 100644
index 000000000000..6fc6d75a90eb
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipal.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabasePrincipalInner;
+
+/**
+ * Type representing DatabasePrincipal.
+ */
+public interface DatabasePrincipal extends HasInner, HasManager {
+ /**
+ * @return the appId value.
+ */
+ String appId();
+
+ /**
+ * @return the email value.
+ */
+ String email();
+
+ /**
+ * @return the fqn value.
+ */
+ String fqn();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the role value.
+ */
+ DatabasePrincipalRole role();
+
+ /**
+ * @return the type value.
+ */
+ DatabasePrincipalType type();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListRequest.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListRequest.java
new file mode 100644
index 000000000000..692035c9f795
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListRequest.java
@@ -0,0 +1,45 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.List;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabasePrincipalInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The list Kusto database principals operation request.
+ */
+public class DatabasePrincipalListRequest {
+ /**
+ * The list of Kusto database principals.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the list of Kusto database principals.
+ *
+ * @return the value value
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the list of Kusto database principals.
+ *
+ * @param value the value value to set
+ * @return the DatabasePrincipalListRequest object itself.
+ */
+ public DatabasePrincipalListRequest withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListResult.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListResult.java
new file mode 100644
index 000000000000..de21d0473024
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalListResult.java
@@ -0,0 +1,27 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabasePrincipalListResultInner;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabasePrincipalInner;
+import java.util.List;
+
+/**
+ * Type representing DatabasePrincipalListResult.
+ */
+public interface DatabasePrincipalListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalRole.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalRole.java
new file mode 100644
index 000000000000..4349065d2332
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalRole.java
@@ -0,0 +1,53 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DatabasePrincipalRole.
+ */
+public final class DatabasePrincipalRole extends ExpandableStringEnum {
+ /** Static value Admin for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole ADMIN = fromString("Admin");
+
+ /** Static value Ingestor for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole INGESTOR = fromString("Ingestor");
+
+ /** Static value Monitor for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole MONITOR = fromString("Monitor");
+
+ /** Static value User for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole USER = fromString("User");
+
+ /** Static value UnrestrictedViewers for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole UNRESTRICTED_VIEWERS = fromString("UnrestrictedViewers");
+
+ /** Static value Viewer for DatabasePrincipalRole. */
+ public static final DatabasePrincipalRole VIEWER = fromString("Viewer");
+
+ /**
+ * Creates or finds a DatabasePrincipalRole from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DatabasePrincipalRole
+ */
+ @JsonCreator
+ public static DatabasePrincipalRole fromString(String name) {
+ return fromString(name, DatabasePrincipalRole.class);
+ }
+
+ /**
+ * @return known DatabasePrincipalRole values
+ */
+ public static Collection values() {
+ return values(DatabasePrincipalRole.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalType.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalType.java
new file mode 100644
index 000000000000..2477ecb6acd9
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabasePrincipalType.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DatabasePrincipalType.
+ */
+public final class DatabasePrincipalType extends ExpandableStringEnum {
+ /** Static value App for DatabasePrincipalType. */
+ public static final DatabasePrincipalType APP = fromString("App");
+
+ /** Static value Group for DatabasePrincipalType. */
+ public static final DatabasePrincipalType GROUP = fromString("Group");
+
+ /** Static value User for DatabasePrincipalType. */
+ public static final DatabasePrincipalType USER = fromString("User");
+
+ /**
+ * Creates or finds a DatabasePrincipalType from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DatabasePrincipalType
+ */
+ @JsonCreator
+ public static DatabasePrincipalType fromString(String name) {
+ return fromString(name, DatabasePrincipalType.class);
+ }
+
+ /**
+ * @return known DatabasePrincipalType values
+ */
+ public static Collection values() {
+ return values(DatabasePrincipalType.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseStatistics.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseStatistics.java
new file mode 100644
index 000000000000..0e358f61a2e2
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseStatistics.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The DatabaseStatistics model.
+ */
+public class DatabaseStatistics {
+ /**
+ * The database size - the total size of compressed data and index in
+ * bytes.
+ */
+ @JsonProperty(value = "size")
+ private Double size;
+
+ /**
+ * Get the database size - the total size of compressed data and index in bytes.
+ *
+ * @return the size value
+ */
+ public Double size() {
+ return this.size;
+ }
+
+ /**
+ * Set the database size - the total size of compressed data and index in bytes.
+ *
+ * @param size the size value to set
+ * @return the DatabaseStatistics object itself.
+ */
+ public DatabaseStatistics withSize(Double size) {
+ this.size = size;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseUpdate.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseUpdate.java
new file mode 100644
index 000000000000..b7e2dc81ac20
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/DatabaseUpdate.java
@@ -0,0 +1,157 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Class representing an update to a Kusto database.
+ */
+@JsonFlatten
+public class DatabaseUpdate extends ProxyResource {
+ /**
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * An ETag of the resource updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * The provisioned state of the resource. Possible values include:
+ * 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * The number of days data should be kept before it stops being accessible
+ * to queries.
+ */
+ @JsonProperty(value = "properties.softDeletePeriodInDays", required = true)
+ private int softDeletePeriodInDays;
+
+ /**
+ * The number of days of data that should be kept in cache for fast
+ * queries.
+ */
+ @JsonProperty(value = "properties.hotCachePeriodInDays")
+ private Integer hotCachePeriodInDays;
+
+ /**
+ * The statistics of the database.
+ */
+ @JsonProperty(value = "properties.statistics")
+ private DatabaseStatistics statistics;
+
+ /**
+ * Get resource location.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set resource location.
+ *
+ * @param location the location value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get an ETag of the resource updated.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the number of days data should be kept before it stops being accessible to queries.
+ *
+ * @return the softDeletePeriodInDays value
+ */
+ public int softDeletePeriodInDays() {
+ return this.softDeletePeriodInDays;
+ }
+
+ /**
+ * Set the number of days data should be kept before it stops being accessible to queries.
+ *
+ * @param softDeletePeriodInDays the softDeletePeriodInDays value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withSoftDeletePeriodInDays(int softDeletePeriodInDays) {
+ this.softDeletePeriodInDays = softDeletePeriodInDays;
+ return this;
+ }
+
+ /**
+ * Get the number of days of data that should be kept in cache for fast queries.
+ *
+ * @return the hotCachePeriodInDays value
+ */
+ public Integer hotCachePeriodInDays() {
+ return this.hotCachePeriodInDays;
+ }
+
+ /**
+ * Set the number of days of data that should be kept in cache for fast queries.
+ *
+ * @param hotCachePeriodInDays the hotCachePeriodInDays value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withHotCachePeriodInDays(Integer hotCachePeriodInDays) {
+ this.hotCachePeriodInDays = hotCachePeriodInDays;
+ return this;
+ }
+
+ /**
+ * Get the statistics of the database.
+ *
+ * @return the statistics value
+ */
+ public DatabaseStatistics statistics() {
+ return this.statistics;
+ }
+
+ /**
+ * Set the statistics of the database.
+ *
+ * @param statistics the statistics value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withStatistics(DatabaseStatistics statistics) {
+ this.statistics = statistics;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Databases.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Databases.java
new file mode 100644
index 000000000000..0eab10feea00
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Databases.java
@@ -0,0 +1,97 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.DatabasesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Databases.
+ */
+public interface Databases extends SupportsCreating, HasInner {
+ /**
+ * Returns a list of database principals of the given Kusto cluster and database.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listPrincipalsAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Add Database principals permissions.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable addPrincipalsAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Remove Database principals permissions.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable removePrincipalsAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Returns a database.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Returns the list of databases of the given Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByClusterAsync(String resourceGroupName, String clusterName);
+
+ /**
+ * Deletes the database with the given name.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Checks that the database name is valid and is not already in use.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param name Database name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String resourceGroupName, String clusterName, String name);
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnection.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnection.java
new file mode 100644
index 000000000000..bcd3a3a577ba
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnection.java
@@ -0,0 +1,239 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.EventHubConnectionInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.model.Updatable;
+import com.microsoft.azure.arm.model.Appliable;
+import com.microsoft.azure.arm.model.Creatable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+
+/**
+ * Type representing EventHubConnection.
+ */
+public interface EventHubConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the consumerGroup value.
+ */
+ String consumerGroup();
+
+ /**
+ * @return the dataFormat value.
+ */
+ DataFormat dataFormat();
+
+ /**
+ * @return the eventHubResourceId value.
+ */
+ String eventHubResourceId();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the mappingRuleName value.
+ */
+ String mappingRuleName();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the tableName value.
+ */
+ String tableName();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the EventHubConnection definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithConsumerGroup, DefinitionStages.WithEventHubResourceId, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of EventHubConnection definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a EventHubConnection definition.
+ */
+ interface Blank extends WithDatabasis {
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify Databasis.
+ */
+ interface WithDatabasis {
+ /**
+ * Specifies resourceGroupName, clusterName, databaseName.
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster
+ * @param clusterName The name of the Kusto cluster
+ * @param databaseName The name of the database in the Kusto cluster
+ * @return the next definition stage
+ */
+ WithConsumerGroup withExistingDatabasis(String resourceGroupName, String clusterName, String databaseName);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify ConsumerGroup.
+ */
+ interface WithConsumerGroup {
+ /**
+ * Specifies consumerGroup.
+ * @param consumerGroup The event hub consumer group
+ * @return the next definition stage
+ */
+ WithEventHubResourceId withConsumerGroup(String consumerGroup);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify EventHubResourceId.
+ */
+ interface WithEventHubResourceId {
+ /**
+ * Specifies eventHubResourceId.
+ * @param eventHubResourceId The resource ID of the event hub to be used to create a data connection
+ * @return the next definition stage
+ */
+ WithCreate withEventHubResourceId(String eventHubResourceId);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify DataFormat.
+ */
+ interface WithDataFormat {
+ /**
+ * Specifies dataFormat.
+ * @param dataFormat The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'
+ * @return the next definition stage
+ */
+ WithCreate withDataFormat(DataFormat dataFormat);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location Resource location
+ * @return the next definition stage
+ */
+ WithCreate withLocation(String location);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify MappingRuleName.
+ */
+ interface WithMappingRuleName {
+ /**
+ * Specifies mappingRuleName.
+ * @param mappingRuleName The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message
+ * @return the next definition stage
+ */
+ WithCreate withMappingRuleName(String mappingRuleName);
+ }
+
+ /**
+ * The stage of the eventhubconnection definition allowing to specify TableName.
+ */
+ interface WithTableName {
+ /**
+ * Specifies tableName.
+ * @param tableName The table where the data should be ingested. Optionally the table information can be added to each message
+ * @return the next definition stage
+ */
+ WithCreate withTableName(String tableName);
+ }
+
+ /**
+ * The stage of the definition which contains all the minimum required inputs for
+ * the resource to be created (via {@link WithCreate#create()}), but also allows
+ * for any other optional settings to be specified.
+ */
+ interface WithCreate extends Creatable, DefinitionStages.WithDataFormat, DefinitionStages.WithLocation, DefinitionStages.WithMappingRuleName, DefinitionStages.WithTableName {
+ }
+ }
+ /**
+ * The template for a EventHubConnection update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithDataFormat, UpdateStages.WithLocation, UpdateStages.WithMappingRuleName, UpdateStages.WithTableName {
+ }
+
+ /**
+ * Grouping of EventHubConnection update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the eventhubconnection update allowing to specify DataFormat.
+ */
+ interface WithDataFormat {
+ /**
+ * Specifies dataFormat.
+ * @param dataFormat The data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'
+ * @return the next update stage
+ */
+ Update withDataFormat(DataFormat dataFormat);
+ }
+
+ /**
+ * The stage of the eventhubconnection update allowing to specify Location.
+ */
+ interface WithLocation {
+ /**
+ * Specifies location.
+ * @param location Resource location
+ * @return the next update stage
+ */
+ Update withLocation(String location);
+ }
+
+ /**
+ * The stage of the eventhubconnection update allowing to specify MappingRuleName.
+ */
+ interface WithMappingRuleName {
+ /**
+ * Specifies mappingRuleName.
+ * @param mappingRuleName The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message
+ * @return the next update stage
+ */
+ Update withMappingRuleName(String mappingRuleName);
+ }
+
+ /**
+ * The stage of the eventhubconnection update allowing to specify TableName.
+ */
+ interface WithTableName {
+ /**
+ * Specifies tableName.
+ * @param tableName The table where the data should be ingested. Optionally the table information can be added to each message
+ * @return the next update stage
+ */
+ Update withTableName(String tableName);
+ }
+
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionUpdate.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionUpdate.java
new file mode 100644
index 000000000000..f985bcb45152
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionUpdate.java
@@ -0,0 +1,179 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Class representing an update to event hub connection.
+ */
+@JsonFlatten
+public class EventHubConnectionUpdate extends ProxyResource {
+ /**
+ * Resource location.
+ */
+ @JsonProperty(value = "location")
+ private String location;
+
+ /**
+ * The resource ID of the event hub to be used to create a data connection.
+ */
+ @JsonProperty(value = "properties.eventHubResourceId", required = true)
+ private String eventHubResourceId;
+
+ /**
+ * The event hub consumer group.
+ */
+ @JsonProperty(value = "properties.consumerGroup", required = true)
+ private String consumerGroup;
+
+ /**
+ * The table where the data should be ingested. Optionally the table
+ * information can be added to each message.
+ */
+ @JsonProperty(value = "properties.tableName")
+ private String tableName;
+
+ /**
+ * The mapping rule to be used to ingest the data. Optionally the mapping
+ * information can be added to each message.
+ */
+ @JsonProperty(value = "properties.mappingRuleName")
+ private String mappingRuleName;
+
+ /**
+ * The data format of the message. Optionally the data format can be added
+ * to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ */
+ @JsonProperty(value = "properties.dataFormat")
+ private DataFormat dataFormat;
+
+ /**
+ * Get resource location.
+ *
+ * @return the location value
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set resource location.
+ *
+ * @param location the location value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the resource ID of the event hub to be used to create a data connection.
+ *
+ * @return the eventHubResourceId value
+ */
+ public String eventHubResourceId() {
+ return this.eventHubResourceId;
+ }
+
+ /**
+ * Set the resource ID of the event hub to be used to create a data connection.
+ *
+ * @param eventHubResourceId the eventHubResourceId value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withEventHubResourceId(String eventHubResourceId) {
+ this.eventHubResourceId = eventHubResourceId;
+ return this;
+ }
+
+ /**
+ * Get the event hub consumer group.
+ *
+ * @return the consumerGroup value
+ */
+ public String consumerGroup() {
+ return this.consumerGroup;
+ }
+
+ /**
+ * Set the event hub consumer group.
+ *
+ * @param consumerGroup the consumerGroup value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withConsumerGroup(String consumerGroup) {
+ this.consumerGroup = consumerGroup;
+ return this;
+ }
+
+ /**
+ * Get the table where the data should be ingested. Optionally the table information can be added to each message.
+ *
+ * @return the tableName value
+ */
+ public String tableName() {
+ return this.tableName;
+ }
+
+ /**
+ * Set the table where the data should be ingested. Optionally the table information can be added to each message.
+ *
+ * @param tableName the tableName value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withTableName(String tableName) {
+ this.tableName = tableName;
+ return this;
+ }
+
+ /**
+ * Get the mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
+ *
+ * @return the mappingRuleName value
+ */
+ public String mappingRuleName() {
+ return this.mappingRuleName;
+ }
+
+ /**
+ * Set the mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
+ *
+ * @param mappingRuleName the mappingRuleName value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withMappingRuleName(String mappingRuleName) {
+ this.mappingRuleName = mappingRuleName;
+ return this;
+ }
+
+ /**
+ * Get the data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ *
+ * @return the dataFormat value
+ */
+ public DataFormat dataFormat() {
+ return this.dataFormat;
+ }
+
+ /**
+ * Set the data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ *
+ * @param dataFormat the dataFormat value to set
+ * @return the EventHubConnectionUpdate object itself.
+ */
+ public EventHubConnectionUpdate withDataFormat(DataFormat dataFormat) {
+ this.dataFormat = dataFormat;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidation.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidation.java
new file mode 100644
index 000000000000..225cfea2ffe1
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidation.java
@@ -0,0 +1,178 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Class representing an event hub connection validation.
+ */
+@JsonFlatten
+public class EventHubConnectionValidation {
+ /**
+ * The name of the event hub connection.
+ */
+ @JsonProperty(value = "eventhubConnectionName")
+ private String eventhubConnectionName;
+
+ /**
+ * The resource ID of the event hub to be used to create a data connection.
+ */
+ @JsonProperty(value = "properties.eventHubResourceId", required = true)
+ private String eventHubResourceId;
+
+ /**
+ * The event hub consumer group.
+ */
+ @JsonProperty(value = "properties.consumerGroup", required = true)
+ private String consumerGroup;
+
+ /**
+ * The table where the data should be ingested. Optionally the table
+ * information can be added to each message.
+ */
+ @JsonProperty(value = "properties.tableName")
+ private String tableName;
+
+ /**
+ * The mapping rule to be used to ingest the data. Optionally the mapping
+ * information can be added to each message.
+ */
+ @JsonProperty(value = "properties.mappingRuleName")
+ private String mappingRuleName;
+
+ /**
+ * The data format of the message. Optionally the data format can be added
+ * to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ */
+ @JsonProperty(value = "properties.dataFormat")
+ private DataFormat dataFormat;
+
+ /**
+ * Get the name of the event hub connection.
+ *
+ * @return the eventhubConnectionName value
+ */
+ public String eventhubConnectionName() {
+ return this.eventhubConnectionName;
+ }
+
+ /**
+ * Set the name of the event hub connection.
+ *
+ * @param eventhubConnectionName the eventhubConnectionName value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withEventhubConnectionName(String eventhubConnectionName) {
+ this.eventhubConnectionName = eventhubConnectionName;
+ return this;
+ }
+
+ /**
+ * Get the resource ID of the event hub to be used to create a data connection.
+ *
+ * @return the eventHubResourceId value
+ */
+ public String eventHubResourceId() {
+ return this.eventHubResourceId;
+ }
+
+ /**
+ * Set the resource ID of the event hub to be used to create a data connection.
+ *
+ * @param eventHubResourceId the eventHubResourceId value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withEventHubResourceId(String eventHubResourceId) {
+ this.eventHubResourceId = eventHubResourceId;
+ return this;
+ }
+
+ /**
+ * Get the event hub consumer group.
+ *
+ * @return the consumerGroup value
+ */
+ public String consumerGroup() {
+ return this.consumerGroup;
+ }
+
+ /**
+ * Set the event hub consumer group.
+ *
+ * @param consumerGroup the consumerGroup value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withConsumerGroup(String consumerGroup) {
+ this.consumerGroup = consumerGroup;
+ return this;
+ }
+
+ /**
+ * Get the table where the data should be ingested. Optionally the table information can be added to each message.
+ *
+ * @return the tableName value
+ */
+ public String tableName() {
+ return this.tableName;
+ }
+
+ /**
+ * Set the table where the data should be ingested. Optionally the table information can be added to each message.
+ *
+ * @param tableName the tableName value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withTableName(String tableName) {
+ this.tableName = tableName;
+ return this;
+ }
+
+ /**
+ * Get the mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
+ *
+ * @return the mappingRuleName value
+ */
+ public String mappingRuleName() {
+ return this.mappingRuleName;
+ }
+
+ /**
+ * Set the mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.
+ *
+ * @param mappingRuleName the mappingRuleName value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withMappingRuleName(String mappingRuleName) {
+ this.mappingRuleName = mappingRuleName;
+ return this;
+ }
+
+ /**
+ * Get the data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ *
+ * @return the dataFormat value
+ */
+ public DataFormat dataFormat() {
+ return this.dataFormat;
+ }
+
+ /**
+ * Set the data format of the message. Optionally the data format can be added to each message. Possible values include: 'MULTIJSON', 'JSON', 'CSV'.
+ *
+ * @param dataFormat the dataFormat value to set
+ * @return the EventHubConnectionValidation object itself.
+ */
+ public EventHubConnectionValidation withDataFormat(DataFormat dataFormat) {
+ this.dataFormat = dataFormat;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationListResult.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationListResult.java
new file mode 100644
index 000000000000..862744d23731
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationListResult.java
@@ -0,0 +1,26 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.EventHubConnectionValidationListResultInner;
+import java.util.List;
+
+/**
+ * Type representing EventHubConnectionValidationListResult.
+ */
+public interface EventHubConnectionValidationListResult extends HasInner, HasManager {
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationResult.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationResult.java
new file mode 100644
index 000000000000..ece509b3bc48
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnectionValidationResult.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The EventHubConnectionValidationResult model.
+ */
+public class EventHubConnectionValidationResult {
+ /**
+ * A message which indicates a problem in event hub connection validation.
+ */
+ @JsonProperty(value = "errorMessage")
+ private String errorMessage;
+
+ /**
+ * Get a message which indicates a problem in event hub connection validation.
+ *
+ * @return the errorMessage value
+ */
+ public String errorMessage() {
+ return this.errorMessage;
+ }
+
+ /**
+ * Set a message which indicates a problem in event hub connection validation.
+ *
+ * @param errorMessage the errorMessage value to set
+ * @return the EventHubConnectionValidationResult object itself.
+ */
+ public EventHubConnectionValidationResult withErrorMessage(String errorMessage) {
+ this.errorMessage = errorMessage;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnections.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnections.java
new file mode 100644
index 000000000000..3433854fc26a
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/EventHubConnections.java
@@ -0,0 +1,68 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.EventHubConnectionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing EventHubConnections.
+ */
+public interface EventHubConnections extends SupportsCreating, HasInner {
+ /**
+ * Returns an Event Hub connection.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @param eventHubConnectionName The name of the event hub connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String clusterName, String databaseName, String eventHubConnectionName);
+
+ /**
+ * Returns the list of Event Hub connections of the given Kusto database.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByDatabaseAsync(String resourceGroupName, String clusterName, String databaseName);
+
+ /**
+ * Deletes the Event Hub connection with the given name.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @param eventHubConnectionName The name of the event hub connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String clusterName, String databaseName, String eventHubConnectionName);
+
+ /**
+ * Checks that the Event Hub data connection parameters are valid.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param databaseName The name of the database in the Kusto cluster.
+ * @param parameters The Event Hub connection parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable eventhubConnectionValidationAsync(String resourceGroupName, String clusterName, String databaseName, EventHubConnectionValidation parameters);
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operation.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operation.java
new file mode 100644
index 000000000000..6a0ff9a8fef8
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operation.java
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.KustoManager;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.OperationInner;
+
+/**
+ * Type representing Operation.
+ */
+public interface Operation extends HasInner, HasManager {
+ /**
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the origin value.
+ */
+ String origin();
+
+ /**
+ * @return the properties value.
+ */
+ Object properties();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/OperationDisplay.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/OperationDisplay.java
new file mode 100644
index 000000000000..f7994eae7c66
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/OperationDisplay.java
@@ -0,0 +1,122 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The object that describes the operation.
+ */
+public class OperationDisplay {
+ /**
+ * Friendly name of the resource provider.
+ */
+ @JsonProperty(value = "provider")
+ private String provider;
+
+ /**
+ * The operation type.
+ * For example: read, write, delete.
+ */
+ @JsonProperty(value = "operation")
+ private String operation;
+
+ /**
+ * The resource type on which the operation is performed.
+ */
+ @JsonProperty(value = "resource")
+ private String resource;
+
+ /**
+ * The friendly name of the operation.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get the provider value.
+ *
+ * @return the provider value
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Set the provider value.
+ *
+ * @param provider the provider value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withProvider(String provider) {
+ this.provider = provider;
+ return this;
+ }
+
+ /**
+ * Get for example: read, write, delete.
+ *
+ * @return the operation value
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Set for example: read, write, delete.
+ *
+ * @param operation the operation value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withOperation(String operation) {
+ this.operation = operation;
+ return this;
+ }
+
+ /**
+ * Get the resource value.
+ *
+ * @return the resource value
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Set the resource value.
+ *
+ * @param resource the resource value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withResource(String resource) {
+ this.resource = resource;
+ return this;
+ }
+
+ /**
+ * Get the description value.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description value.
+ *
+ * @param description the description value to set
+ * @return the OperationDisplay object itself.
+ */
+ public OperationDisplay withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operations.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operations.java
new file mode 100644
index 000000000000..8391fb308194
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/Operations.java
@@ -0,0 +1,27 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation.OperationsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Operations.
+ */
+public interface Operations extends HasInner {
+ /**
+ * Lists available operations for the Microsoft.Kusto provider.
+ *
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync();
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ProvisioningState.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ProvisioningState.java
new file mode 100644
index 000000000000..2c12a1c9f542
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/ProvisioningState.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for ProvisioningState.
+ */
+public final class ProvisioningState extends ExpandableStringEnum {
+ /** Static value Running for ProvisioningState. */
+ public static final ProvisioningState RUNNING = fromString("Running");
+
+ /** Static value Creating for ProvisioningState. */
+ public static final ProvisioningState CREATING = fromString("Creating");
+
+ /** Static value Deleting for ProvisioningState. */
+ public static final ProvisioningState DELETING = fromString("Deleting");
+
+ /** Static value Succeeded for ProvisioningState. */
+ public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for ProvisioningState. */
+ public static final ProvisioningState FAILED = fromString("Failed");
+
+ /**
+ * Creates or finds a ProvisioningState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding ProvisioningState
+ */
+ @JsonCreator
+ public static ProvisioningState fromString(String name) {
+ return fromString(name, ProvisioningState.class);
+ }
+
+ /**
+ * @return known ProvisioningState values
+ */
+ public static Collection values() {
+ return values(ProvisioningState.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/State.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/State.java
new file mode 100644
index 000000000000..24b99ed733ec
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/State.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for State.
+ */
+public final class State extends ExpandableStringEnum {
+ /** Static value Creating for State. */
+ public static final State CREATING = fromString("Creating");
+
+ /** Static value Unavailable for State. */
+ public static final State UNAVAILABLE = fromString("Unavailable");
+
+ /** Static value Running for State. */
+ public static final State RUNNING = fromString("Running");
+
+ /** Static value Deleting for State. */
+ public static final State DELETING = fromString("Deleting");
+
+ /** Static value Deleted for State. */
+ public static final State DELETED = fromString("Deleted");
+
+ /** Static value Stopping for State. */
+ public static final State STOPPING = fromString("Stopping");
+
+ /** Static value Stopped for State. */
+ public static final State STOPPED = fromString("Stopped");
+
+ /** Static value Starting for State. */
+ public static final State STARTING = fromString("Starting");
+
+ /**
+ * Creates or finds a State from its string representation.
+ * @param name a name to look for
+ * @return the corresponding State
+ */
+ @JsonCreator
+ public static State fromString(String name) {
+ return fromString(name, State.class);
+ }
+
+ /**
+ * @return known State values
+ */
+ public static Collection values() {
+ return values(State.class);
+ }
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/TrustedExternalTenant.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/TrustedExternalTenant.java
new file mode 100644
index 000000000000..1d4fbb8cb705
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/TrustedExternalTenant.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The TrustedExternalTenant model.
+ */
+public class TrustedExternalTenant {
+ /**
+ * GUID representing an external tenant.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /**
+ * Get gUID representing an external tenant.
+ *
+ * @return the value value
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set gUID representing an external tenant.
+ *
+ * @param value the value value to set
+ * @return the TrustedExternalTenant object itself.
+ */
+ public TrustedExternalTenant withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuImpl.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuImpl.java
new file mode 100644
index 000000000000..8eab6240be82
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuImpl.java
@@ -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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureResourceSku;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import rx.Observable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureCapacity;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSku;
+
+class AzureResourceSkuImpl extends WrapperImpl implements AzureResourceSku {
+ private final KustoManager manager;
+
+ AzureResourceSkuImpl(AzureResourceSkuInner inner, KustoManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public KustoManager manager() {
+ return this.manager;
+ }
+
+
+
+ @Override
+ public AzureCapacity capacity() {
+ return this.inner().capacity();
+ }
+
+ @Override
+ public String resourceType() {
+ return this.inner().resourceType();
+ }
+
+ @Override
+ public AzureSku sku() {
+ AzureSkuInner inner = this.inner().sku();
+ if (inner != null) {
+ return new AzureSkuImpl(inner, manager());
+ } else {
+ return null;
+ }
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuInner.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuInner.java
new file mode 100644
index 000000000000..816ef40d457e
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureResourceSkuInner.java
@@ -0,0 +1,96 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureCapacity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The AzureResourceSkuInner model.
+ */
+public class AzureResourceSkuInner {
+ /**
+ * Resource Namespace and Type.
+ */
+ @JsonProperty(value = "resourceType")
+ private String resourceType;
+
+ /**
+ * The SKU details.
+ */
+ @JsonProperty(value = "sku")
+ private AzureSkuInner sku;
+
+ /**
+ * The SKU capacity.
+ */
+ @JsonProperty(value = "capacity")
+ private AzureCapacity capacity;
+
+ /**
+ * Get resource Namespace and Type.
+ *
+ * @return the resourceType value
+ */
+ public String resourceType() {
+ return this.resourceType;
+ }
+
+ /**
+ * Set resource Namespace and Type.
+ *
+ * @param resourceType the resourceType value to set
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ return this;
+ }
+
+ /**
+ * Get the SKU details.
+ *
+ * @return the sku value
+ */
+ public AzureSkuInner sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the SKU details.
+ *
+ * @param sku the sku value to set
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withSku(AzureSkuInner sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the SKU capacity.
+ *
+ * @return the capacity value
+ */
+ public AzureCapacity capacity() {
+ return this.capacity;
+ }
+
+ /**
+ * Set the SKU capacity.
+ *
+ * @param capacity the capacity value to set
+ * @return the AzureResourceSkuInner object itself.
+ */
+ public AzureResourceSkuInner withCapacity(AzureCapacity capacity) {
+ this.capacity = capacity;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuImpl.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuImpl.java
new file mode 100644
index 000000000000..1b07be575f9c
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuImpl.java
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSku;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSkuName;
+
+class AzureSkuImpl extends WrapperImpl implements AzureSku {
+ private final KustoManager manager;
+ AzureSkuImpl(AzureSkuInner inner, KustoManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public KustoManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Integer capacity() {
+ return this.inner().capacity();
+ }
+
+ @Override
+ public AzureSkuName name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public String tier() {
+ return this.inner().tier();
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuInner.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuInner.java
new file mode 100644
index 000000000000..9ac6ba92c2b5
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/AzureSkuInner.java
@@ -0,0 +1,105 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSkuName;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The AzureSkuInner model.
+ */
+public class AzureSkuInner {
+ /**
+ * SKU name. Possible values include: 'KC8', 'KC16', 'KS8', 'KS16',
+ * 'D13_v2', 'D14_v2', 'L8', 'L16'.
+ */
+ @JsonProperty(value = "name", required = true)
+ private AzureSkuName name;
+
+ /**
+ * SKU capacity.
+ */
+ @JsonProperty(value = "capacity")
+ private Integer capacity;
+
+ /**
+ * SKU tier.
+ */
+ @JsonProperty(value = "tier", required = true)
+ private String tier;
+
+ /**
+ * Creates an instance of AzureSkuInner class.
+ * @param name sKU name. Possible values include: 'KC8', 'KC16', 'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'.
+ */
+ public AzureSkuInner() {
+ tier = "Standard";
+ }
+
+ /**
+ * Get sKU name. Possible values include: 'KC8', 'KC16', 'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'.
+ *
+ * @return the name value
+ */
+ public AzureSkuName name() {
+ return this.name;
+ }
+
+ /**
+ * Set sKU name. Possible values include: 'KC8', 'KC16', 'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'.
+ *
+ * @param name the name value to set
+ * @return the AzureSkuInner object itself.
+ */
+ public AzureSkuInner withName(AzureSkuName name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get sKU capacity.
+ *
+ * @return the capacity value
+ */
+ public Integer capacity() {
+ return this.capacity;
+ }
+
+ /**
+ * Set sKU capacity.
+ *
+ * @param capacity the capacity value to set
+ * @return the AzureSkuInner object itself.
+ */
+ public AzureSkuInner withCapacity(Integer capacity) {
+ this.capacity = capacity;
+ return this;
+ }
+
+ /**
+ * Get sKU tier.
+ *
+ * @return the tier value
+ */
+ public String tier() {
+ return this.tier;
+ }
+
+ /**
+ * Set sKU tier.
+ *
+ * @param tier the tier value to set
+ * @return the AzureSkuInner object itself.
+ */
+ public AzureSkuInner withTier(String tier) {
+ this.tier = tier;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultImpl.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultImpl.java
new file mode 100644
index 000000000000..173637fd73cb
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultImpl.java
@@ -0,0 +1,41 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.CheckNameResult;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+
+class CheckNameResultImpl extends WrapperImpl implements CheckNameResult {
+ private final KustoManager manager;
+ CheckNameResultImpl(CheckNameResultInner inner, KustoManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public KustoManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String message() {
+ return this.inner().message();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public Boolean nameAvailable() {
+ return this.inner().nameAvailable();
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultInner.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultInner.java
new file mode 100644
index 000000000000..788d04487ffe
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/CheckNameResultInner.java
@@ -0,0 +1,96 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The CheckNameResultInner model.
+ */
+public class CheckNameResultInner {
+ /**
+ * Specifies a Boolean value that indicates if the name is available.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /**
+ * The name that was checked.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Message indicating an unavailable name due to a conflict, or a
+ * description of the naming rules that are violated.
+ */
+ @JsonProperty(value = "message")
+ private String message;
+
+ /**
+ * Get specifies a Boolean value that indicates if the name is available.
+ *
+ * @return the nameAvailable value
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set specifies a Boolean value that indicates if the name is available.
+ *
+ * @param nameAvailable the nameAvailable value to set
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the name that was checked.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name that was checked.
+ *
+ * @param name the name value to set
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Set message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
+ *
+ * @param message the message value to set
+ * @return the CheckNameResultInner object itself.
+ */
+ public CheckNameResultInner withMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterImpl.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterImpl.java
new file mode 100644
index 000000000000..6b6734cf9062
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterImpl.java
@@ -0,0 +1,132 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.arm.resources.models.implementation.GroupableResourceCoreImpl;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.Cluster;
+import rx.Observable;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.ClusterUpdate;
+import java.util.List;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.State;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.ProvisioningState;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.TrustedExternalTenant;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSku;
+import rx.functions.Func1;
+
+class ClusterImpl extends GroupableResourceCoreImpl implements Cluster, Cluster.Definition, Cluster.Update {
+ private ClusterUpdate updateParameter;
+ ClusterImpl(String name, ClusterInner inner, KustoManager manager) {
+ super(name, inner, manager);
+ this.updateParameter = new ClusterUpdate();
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ ClustersInner client = this.manager().inner().clusters();
+ return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner())
+ .map(new Func1() {
+ @Override
+ public ClusterInner call(ClusterInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ ClustersInner client = this.manager().inner().clusters();
+ return client.updateAsync(this.resourceGroupName(), this.name(), this.updateParameter)
+ .map(new Func1() {
+ @Override
+ public ClusterInner call(ClusterInner resource) {
+ resetCreateUpdateParameters();
+ return resource;
+ }
+ })
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ ClustersInner client = this.manager().inner().clusters();
+ return client.getByResourceGroupAsync(this.resourceGroupName(), this.name());
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+ private void resetCreateUpdateParameters() {
+ this.updateParameter = new ClusterUpdate();
+ }
+
+ @Override
+ public String dataIngestionUri() {
+ return this.inner().dataIngestionUri();
+ }
+
+ @Override
+ public String etag() {
+ return this.inner().etag();
+ }
+
+ @Override
+ public ProvisioningState provisioningState() {
+ return this.inner().provisioningState();
+ }
+
+ @Override
+ public AzureSku sku() {
+ AzureSkuInner inner = this.inner().sku();
+ if (inner != null) {
+ return new AzureSkuImpl(inner, manager());
+ } else {
+ return null;
+ }
+ }
+
+ @Override
+ public State state() {
+ return this.inner().state();
+ }
+
+ @Override
+ public List trustedExternalTenants() {
+ return this.inner().trustedExternalTenants();
+ }
+
+ @Override
+ public String uri() {
+ return this.inner().uri();
+ }
+
+ @Override
+ public ClusterImpl withSku(AzureSkuInner sku) {
+ if (isInCreateMode()) {
+ this.inner().withSku(sku);
+ } else {
+ this.updateParameter.withSku(sku);
+ }
+ return this;
+ }
+
+ @Override
+ public ClusterImpl withTrustedExternalTenants(List trustedExternalTenants) {
+ if (isInCreateMode()) {
+ this.inner().withTrustedExternalTenants(trustedExternalTenants);
+ } else {
+ this.updateParameter.withTrustedExternalTenants(trustedExternalTenants);
+ }
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterInner.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterInner.java
new file mode 100644
index 000000000000..474f3034393c
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClusterInner.java
@@ -0,0 +1,154 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.State;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.ProvisioningState;
+import java.util.List;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.TrustedExternalTenant;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.Resource;
+
+/**
+ * Class representing a Kusto cluster.
+ */
+@JsonFlatten
+public class ClusterInner extends Resource {
+ /**
+ * An ETag of the resource created.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * The SKU of the cluster.
+ */
+ @JsonProperty(value = "sku", required = true)
+ private AzureSkuInner sku;
+
+ /**
+ * The state of the resource. Possible values include: 'Creating',
+ * 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped',
+ * 'Starting'.
+ */
+ @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
+ private State state;
+
+ /**
+ * The provisioned state of the resource. Possible values include:
+ * 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * The cluster URI.
+ */
+ @JsonProperty(value = "properties.uri", access = JsonProperty.Access.WRITE_ONLY)
+ private String uri;
+
+ /**
+ * The cluster data ingestion URI.
+ */
+ @JsonProperty(value = "properties.dataIngestionUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String dataIngestionUri;
+
+ /**
+ * The cluster's external tenants.
+ */
+ @JsonProperty(value = "properties.trustedExternalTenants")
+ private List trustedExternalTenants;
+
+ /**
+ * Get an ETag of the resource created.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the SKU of the cluster.
+ *
+ * @return the sku value
+ */
+ public AzureSkuInner sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the SKU of the cluster.
+ *
+ * @param sku the sku value to set
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withSku(AzureSkuInner sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting'.
+ *
+ * @return the state value
+ */
+ public State state() {
+ return this.state;
+ }
+
+ /**
+ * Get the provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the cluster URI.
+ *
+ * @return the uri value
+ */
+ public String uri() {
+ return this.uri;
+ }
+
+ /**
+ * Get the cluster data ingestion URI.
+ *
+ * @return the dataIngestionUri value
+ */
+ public String dataIngestionUri() {
+ return this.dataIngestionUri;
+ }
+
+ /**
+ * Get the cluster's external tenants.
+ *
+ * @return the trustedExternalTenants value
+ */
+ public List trustedExternalTenants() {
+ return this.trustedExternalTenants;
+ }
+
+ /**
+ * Set the cluster's external tenants.
+ *
+ * @param trustedExternalTenants the trustedExternalTenants value to set
+ * @return the ClusterInner object itself.
+ */
+ public ClusterInner withTrustedExternalTenants(List trustedExternalTenants) {
+ this.trustedExternalTenants = trustedExternalTenants;
+ return this;
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersImpl.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersImpl.java
new file mode 100644
index 000000000000..4a6acad789c0
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersImpl.java
@@ -0,0 +1,206 @@
+/**
+ * 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.
+ * def
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.arm.resources.collection.implementation.GroupableResourcesCoreImpl;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.Cluster;
+import rx.Observable;
+import rx.Completable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import com.microsoft.azure.arm.resources.ResourceUtilsCore;
+import com.microsoft.azure.arm.utils.RXMapper;
+import rx.functions.Func1;
+import com.microsoft.azure.PagedList;
+import com.microsoft.azure.Page;
+import java.util.List;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.CheckNameResult;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureResourceSku;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.AzureSku;
+
+class ClustersImpl extends GroupableResourcesCoreImpl implements Clusters {
+ protected ClustersImpl(KustoManager manager) {
+ super(manager.inner().clusters(), manager);
+ }
+
+ @Override
+ protected Observable getInnerAsync(String resourceGroupName, String name) {
+ ClustersInner client = this.inner();
+ return client.getByResourceGroupAsync(resourceGroupName, name);
+ }
+
+ @Override
+ protected Completable deleteInnerAsync(String resourceGroupName, String name) {
+ ClustersInner client = this.inner();
+ return client.deleteAsync(resourceGroupName, name).toCompletable();
+ }
+
+ @Override
+ public Observable deleteByIdsAsync(Collection ids) {
+ if (ids == null || ids.isEmpty()) {
+ return Observable.empty();
+ }
+ Collection> observables = new ArrayList<>();
+ for (String id : ids) {
+ final String resourceGroupName = ResourceUtilsCore.groupFromResourceId(id);
+ final String name = ResourceUtilsCore.nameFromResourceId(id);
+ Observable o = RXMapper.map(this.inner().deleteAsync(resourceGroupName, name), id);
+ observables.add(o);
+ }
+ return Observable.mergeDelayError(observables);
+ }
+
+ @Override
+ public Observable deleteByIdsAsync(String...ids) {
+ return this.deleteByIdsAsync(new ArrayList(Arrays.asList(ids)));
+ }
+
+ @Override
+ public void deleteByIds(Collection ids) {
+ if (ids != null && !ids.isEmpty()) {
+ this.deleteByIdsAsync(ids).toBlocking().last();
+ }
+ }
+
+ @Override
+ public void deleteByIds(String...ids) {
+ this.deleteByIds(new ArrayList(Arrays.asList(ids)));
+ }
+
+ @Override
+ public PagedList listByResourceGroup(String resourceGroupName) {
+ ClustersInner client = this.inner();
+ return this.wrapList(client.listByResourceGroup(resourceGroupName));
+ }
+
+ @Override
+ public Observable listByResourceGroupAsync(String resourceGroupName) {
+ ClustersInner client = this.inner();
+ return client.listByResourceGroupAsync(resourceGroupName)
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(Page innerPage) {
+ return Observable.from(innerPage.items());
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Cluster call(ClusterInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public PagedList list() {
+ ClustersInner client = this.inner();
+ return this.wrapList(client.list());
+ }
+
+ @Override
+ public Observable listAsync() {
+ ClustersInner client = this.inner();
+ return client.listAsync()
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(Page innerList) {
+ return Observable.from(innerList.items());
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public Cluster call(ClusterInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public ClusterImpl define(String name) {
+ return wrapModel(name);
+ }
+
+ @Override
+ public Completable stopAsync(String resourceGroupName, String clusterName) {
+ ClustersInner client = this.inner();
+ return client.stopAsync(resourceGroupName, clusterName).toCompletable();
+ }
+
+ @Override
+ public Completable startAsync(String resourceGroupName, String clusterName) {
+ ClustersInner client = this.inner();
+ return client.startAsync(resourceGroupName, clusterName).toCompletable();
+ }
+
+ @Override
+ protected ClusterImpl wrapModel(ClusterInner inner) {
+ return new ClusterImpl(inner.name(), inner, manager());
+ }
+
+ @Override
+ protected ClusterImpl wrapModel(String name) {
+ return new ClusterImpl(name, new ClusterInner(), this.manager());
+ }
+
+ private AzureResourceSkuImpl wrapAzureResourceSkuModel(AzureResourceSkuInner inner) {
+ return new AzureResourceSkuImpl(inner, manager());
+ }
+
+ @Override
+ public Observable checkNameAvailabilityAsync(String location, String name) {
+ ClustersInner client = this.inner();
+ return client.checkNameAvailabilityAsync(location, name)
+ .map(new Func1() {
+ @Override
+ public CheckNameResult call(CheckNameResultInner inner) {
+ return new CheckNameResultImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listSkusByResourceAsync(String resourceGroupName, String clusterName) {
+ ClustersInner client = this.inner();
+ return client.listSkusByResourceAsync(resourceGroupName, clusterName)
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(List innerList) {
+ return Observable.from(innerList);
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public AzureResourceSku call(AzureResourceSkuInner inner) {
+ return wrapAzureResourceSkuModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public Observable listSkusAsync() {
+ ClustersInner client = this.inner();
+ return client.listSkusAsync()
+ .flatMap(new Func1, Observable>() {
+ @Override
+ public Observable call(List innerList) {
+ return Observable.from(innerList);
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public AzureSku call(AzureSkuInner inner) {
+ return new AzureSkuImpl(inner, manager());
+ }
+ });
+ }
+
+}
diff --git a/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java
new file mode 100644
index 000000000000..361e56974615
--- /dev/null
+++ b/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java
@@ -0,0 +1,1458 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.kusto.v2018_09_07_preview.implementation;
+
+import com.microsoft.azure.arm.collection.InnerSupportsGet;
+import com.microsoft.azure.arm.collection.InnerSupportsDelete;
+import com.microsoft.azure.arm.collection.InnerSupportsListing;
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.ClusterCheckNameRequest;
+import com.microsoft.azure.management.kusto.v2018_09_07_preview.ClusterUpdate;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import com.microsoft.rest.Validator;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.Body;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.HTTP;
+import retrofit2.http.PATCH;
+import retrofit2.http.Path;
+import retrofit2.http.POST;
+import retrofit2.http.PUT;
+import retrofit2.http.Query;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in Clusters.
+ */
+public class ClustersInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing {
+ /** The Retrofit service to perform REST calls. */
+ private ClustersService service;
+ /** The service client containing this operation class. */
+ private KustoManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ClustersInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public ClustersInner(Retrofit retrofit, KustoManagementClientImpl client) {
+ this.service = retrofit.create(ClustersService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for Clusters to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface ClustersService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters getByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}")
+ Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters createOrUpdate" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}")
+ Observable> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters beginCreateOrUpdate" })
+ @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}")
+ Observable> beginCreateOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters update" })
+ @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}")
+ Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterUpdate parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters beginUpdate" })
+ @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}")
+ Observable> beginUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterUpdate parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters delete" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}", method = "DELETE", hasBody = true)
+ Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters beginDelete" })
+ @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}", method = "DELETE", hasBody = true)
+ Observable> beginDelete(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters stop" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop")
+ Observable> stop(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters beginStop" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop")
+ Observable> beginStop(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters start" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start")
+ Observable> start(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters beginStart" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start")
+ Observable> beginStart(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters listByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters")
+ Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters list" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters")
+ Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters listSkus" })
+ @GET("subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus")
+ Observable> listSkus(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters checkNameAvailability" })
+ @POST("subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability")
+ Observable> checkNameAvailability(@Path("subscriptionId") String subscriptionId, @Path("location") String location, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body ClusterCheckNameRequest clusterName, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.kusto.v2018_09_07_preview.Clusters listSkusByResource" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus")
+ Observable> listSkusByResource(@Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Gets a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the ClusterInner object if successful.
+ */
+ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body();
+ }
+
+ /**
+ * Gets a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ }
+
+ /**
+ * Gets a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable getByResourceGroupAsync(String resourceGroupName, String clusterName) {
+ return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() {
+ @Override
+ public ClusterInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String clusterName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.getByResourceGroup(resourceGroupName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getByResourceGroupDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the ClusterInner object if successful.
+ */
+ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body();
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() {
+ @Override
+ public ClusterInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ Observable> observable = service.createOrUpdate(resourceGroupName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the ClusterInner object if successful.
+ */
+ public ClusterInner beginCreateOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body();
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable beginCreateOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() {
+ @Override
+ public ClusterInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Create or update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ return service.beginCreateOrUpdate(resourceGroupName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(201, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the ClusterInner object if successful.
+ */
+ public ClusterInner update(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ return updateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().last().body();
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture updateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable updateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ return updateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() {
+ @Override
+ public ClusterInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> updateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ Observable> observable = service.update(resourceGroupName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the ClusterInner object if successful.
+ */
+ public ClusterInner beginUpdate(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ return beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body();
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginUpdateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable beginUpdateAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ return beginUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).map(new Func1, ClusterInner>() {
+ @Override
+ public ClusterInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Update a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param parameters The Kusto cluster parameters supplied to the Update operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the ClusterInner object
+ */
+ public Observable> beginUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Validator.validate(parameters);
+ return service.beginUpdate(resourceGroupName, clusterName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginUpdateDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(201, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void delete(String resourceGroupName, String clusterName) {
+ deleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body();
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture deleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable deleteAsync(String resourceGroupName, String clusterName) {
+ return deleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String clusterName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ Observable> observable = service.delete(resourceGroupName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType());
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void beginDelete(String resourceGroupName, String clusterName) {
+ beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body();
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginDeleteAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable beginDeleteAsync(String resourceGroupName, String clusterName) {
+ return beginDeleteWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Deletes a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceResponse} object if successful.
+ */
+ public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String clusterName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (clusterName == null) {
+ throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.beginDelete(resourceGroupName, clusterName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = beginDeleteDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse beginDeleteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
+ .register(204, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Stops a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ */
+ public void stop(String resourceGroupName, String clusterName) {
+ stopWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body();
+ }
+
+ /**
+ * Stops a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture stopAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(stopWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ }
+
+ /**
+ * Stops a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable stopAsync(String resourceGroupName, String clusterName) {
+ return stopWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, Void>() {
+ @Override
+ public Void call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Stops a Kusto cluster.
+ *
+ * @param resourceGroupName The name of the resource group containing the Kusto cluster.
+ * @param clusterName The name of the Kusto cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable