diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/pom.xml b/sdk/eventhubs/mgmt-v2018_01_01_preview/pom.xml
index 1ca0238349260..b702a03e5233f 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/pom.xml
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/pom.xml
@@ -11,8 +11,8 @@
com.microsoft.azure
azure-arm-parent
- 1.2.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-eventhubs
1.0.0-beta
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessKeys.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessKeys.java
new file mode 100644
index 0000000000000..27e7706789bb0
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessKeys.java
@@ -0,0 +1,55 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.AccessKeysInner;
+
+/**
+ * Type representing AccessKeys.
+ */
+public interface AccessKeys extends HasInner, HasManager {
+ /**
+ * @return the aliasPrimaryConnectionString value.
+ */
+ String aliasPrimaryConnectionString();
+
+ /**
+ * @return the aliasSecondaryConnectionString value.
+ */
+ String aliasSecondaryConnectionString();
+
+ /**
+ * @return the keyName value.
+ */
+ String keyName();
+
+ /**
+ * @return the primaryConnectionString value.
+ */
+ String primaryConnectionString();
+
+ /**
+ * @return the primaryKey value.
+ */
+ String primaryKey();
+
+ /**
+ * @return the secondaryConnectionString value.
+ */
+ String secondaryConnectionString();
+
+ /**
+ * @return the secondaryKey value.
+ */
+ String secondaryKey();
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessRights.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessRights.java
new file mode 100644
index 0000000000000..e2126a47c1a9a
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/AccessRights.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.eventhubs.v2018_01_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for AccessRights.
+ */
+public final class AccessRights extends ExpandableStringEnum {
+ /** Static value Manage for AccessRights. */
+ public static final AccessRights MANAGE = fromString("Manage");
+
+ /** Static value Send for AccessRights. */
+ public static final AccessRights SEND = fromString("Send");
+
+ /** Static value Listen for AccessRights. */
+ public static final AccessRights LISTEN = fromString("Listen");
+
+ /**
+ * Creates or finds a AccessRights from its string representation.
+ * @param name a name to look for
+ * @return the corresponding AccessRights
+ */
+ @JsonCreator
+ public static AccessRights fromString(String name) {
+ return fromString(name, AccessRights.class);
+ }
+
+ /**
+ * @return known AccessRights values
+ */
+ public static Collection values() {
+ return values(AccessRights.class);
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ArmDisasterRecovery.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ArmDisasterRecovery.java
new file mode 100644
index 0000000000000..64a59e4ee22fd
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ArmDisasterRecovery.java
@@ -0,0 +1,161 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.ArmDisasterRecoveryInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+
+/**
+ * Type representing ArmDisasterRecovery.
+ */
+public interface ArmDisasterRecovery extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the alternateName value.
+ */
+ String alternateName();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the partnerNamespace value.
+ */
+ String partnerNamespace();
+
+ /**
+ * @return the pendingReplicationOperationsCount value.
+ */
+ Long pendingReplicationOperationsCount();
+
+ /**
+ * @return the provisioningState value.
+ */
+ ProvisioningStateDR provisioningState();
+
+ /**
+ * @return the role value.
+ */
+ RoleDisasterRecovery role();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the ArmDisasterRecovery definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of ArmDisasterRecovery definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a ArmDisasterRecovery definition.
+ */
+ interface Blank extends WithNamespace {
+ }
+
+ /**
+ * The stage of the armdisasterrecovery definition allowing to specify Namespace.
+ */
+ interface WithNamespace {
+ /**
+ * Specifies resourceGroupName, namespaceName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @return the next definition stage
+ */
+ WithCreate withExistingNamespace(String resourceGroupName, String namespaceName);
+ }
+
+ /**
+ * The stage of the armdisasterrecovery definition allowing to specify AlternateName.
+ */
+ interface WithAlternateName {
+ /**
+ * Specifies alternateName.
+ * @param alternateName Alternate name specified when alias and namespace names are same
+ * @return the next definition stage
+ */
+ WithCreate withAlternateName(String alternateName);
+ }
+
+ /**
+ * The stage of the armdisasterrecovery definition allowing to specify PartnerNamespace.
+ */
+ interface WithPartnerNamespace {
+ /**
+ * Specifies partnerNamespace.
+ * @param partnerNamespace ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
+ * @return the next definition stage
+ */
+ WithCreate withPartnerNamespace(String partnerNamespace);
+ }
+
+ /**
+ * 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.WithAlternateName, DefinitionStages.WithPartnerNamespace {
+ }
+ }
+ /**
+ * The template for a ArmDisasterRecovery update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithAlternateName, UpdateStages.WithPartnerNamespace {
+ }
+
+ /**
+ * Grouping of ArmDisasterRecovery update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the armdisasterrecovery update allowing to specify AlternateName.
+ */
+ interface WithAlternateName {
+ /**
+ * Specifies alternateName.
+ * @param alternateName Alternate name specified when alias and namespace names are same
+ * @return the next update stage
+ */
+ Update withAlternateName(String alternateName);
+ }
+
+ /**
+ * The stage of the armdisasterrecovery update allowing to specify PartnerNamespace.
+ */
+ interface WithPartnerNamespace {
+ /**
+ * Specifies partnerNamespace.
+ * @param partnerNamespace ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
+ * @return the next update stage
+ */
+ Update withPartnerNamespace(String partnerNamespace);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CaptureDescription.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CaptureDescription.java
new file mode 100644
index 0000000000000..aa488dbf19147
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CaptureDescription.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties to configure capture description for eventhub.
+ */
+public class CaptureDescription {
+ /**
+ * A value that indicates whether capture description is enabled.
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /**
+ * Enumerates the possible values for the encoding format of capture
+ * description. Note: 'AvroDeflate' will be deprecated in New API Version.
+ * Possible values include: 'Avro', 'AvroDeflate'.
+ */
+ @JsonProperty(value = "encoding")
+ private EncodingCaptureDescription encoding;
+
+ /**
+ * The time window allows you to set the frequency with which the capture
+ * to Azure Blobs will happen, value should between 60 to 900 seconds.
+ */
+ @JsonProperty(value = "intervalInSeconds")
+ private Integer intervalInSeconds;
+
+ /**
+ * The size window defines the amount of data built up in your Event Hub
+ * before an capture operation, value should be between 10485760 to
+ * 524288000 bytes.
+ */
+ @JsonProperty(value = "sizeLimitInBytes")
+ private Integer sizeLimitInBytes;
+
+ /**
+ * Properties of Destination where capture will be stored. (Storage
+ * Account, Blob Names).
+ */
+ @JsonProperty(value = "destination")
+ private Destination destination;
+
+ /**
+ * A value that indicates whether to Skip Empty Archives.
+ */
+ @JsonProperty(value = "skipEmptyArchives")
+ private Boolean skipEmptyArchives;
+
+ /**
+ * Get a value that indicates whether capture description is enabled.
+ *
+ * @return the enabled value
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set a value that indicates whether capture description is enabled.
+ *
+ * @param enabled the enabled value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Get enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version. Possible values include: 'Avro', 'AvroDeflate'.
+ *
+ * @return the encoding value
+ */
+ public EncodingCaptureDescription encoding() {
+ return this.encoding;
+ }
+
+ /**
+ * Set enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version. Possible values include: 'Avro', 'AvroDeflate'.
+ *
+ * @param encoding the encoding value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withEncoding(EncodingCaptureDescription encoding) {
+ this.encoding = encoding;
+ return this;
+ }
+
+ /**
+ * Get the time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
+ *
+ * @return the intervalInSeconds value
+ */
+ public Integer intervalInSeconds() {
+ return this.intervalInSeconds;
+ }
+
+ /**
+ * Set the time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
+ *
+ * @param intervalInSeconds the intervalInSeconds value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withIntervalInSeconds(Integer intervalInSeconds) {
+ this.intervalInSeconds = intervalInSeconds;
+ return this;
+ }
+
+ /**
+ * Get the size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
+ *
+ * @return the sizeLimitInBytes value
+ */
+ public Integer sizeLimitInBytes() {
+ return this.sizeLimitInBytes;
+ }
+
+ /**
+ * Set the size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
+ *
+ * @param sizeLimitInBytes the sizeLimitInBytes value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withSizeLimitInBytes(Integer sizeLimitInBytes) {
+ this.sizeLimitInBytes = sizeLimitInBytes;
+ return this;
+ }
+
+ /**
+ * Get properties of Destination where capture will be stored. (Storage Account, Blob Names).
+ *
+ * @return the destination value
+ */
+ public Destination destination() {
+ return this.destination;
+ }
+
+ /**
+ * Set properties of Destination where capture will be stored. (Storage Account, Blob Names).
+ *
+ * @param destination the destination value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withDestination(Destination destination) {
+ this.destination = destination;
+ return this;
+ }
+
+ /**
+ * Get a value that indicates whether to Skip Empty Archives.
+ *
+ * @return the skipEmptyArchives value
+ */
+ public Boolean skipEmptyArchives() {
+ return this.skipEmptyArchives;
+ }
+
+ /**
+ * Set a value that indicates whether to Skip Empty Archives.
+ *
+ * @param skipEmptyArchives the skipEmptyArchives value to set
+ * @return the CaptureDescription object itself.
+ */
+ public CaptureDescription withSkipEmptyArchives(Boolean skipEmptyArchives) {
+ this.skipEmptyArchives = skipEmptyArchives;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityParameter.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityParameter.java
new file mode 100644
index 0000000000000..e5f0889079d57
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityParameter.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Parameter supplied to check Namespace name availability operation.
+ */
+public class CheckNameAvailabilityParameter {
+ /**
+ * Name to check the namespace name availability.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /**
+ * Get name to check the namespace name availability.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name to check the namespace name availability.
+ *
+ * @param name the name value to set
+ * @return the CheckNameAvailabilityParameter object itself.
+ */
+ public CheckNameAvailabilityParameter withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityResult.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityResult.java
new file mode 100644
index 0000000000000..6cb18f38a46e4
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/CheckNameAvailabilityResult.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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.CheckNameAvailabilityResultInner;
+
+/**
+ * Type representing CheckNameAvailabilityResult.
+ */
+public interface CheckNameAvailabilityResult extends HasInner, HasManager {
+ /**
+ * @return the message value.
+ */
+ String message();
+
+ /**
+ * @return the nameAvailable value.
+ */
+ Boolean nameAvailable();
+
+ /**
+ * @return the reason value.
+ */
+ UnavailableReason reason();
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Cluster.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Cluster.java
index 61f6e5ae0fd50..93a9bb9da11c0 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Cluster.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Cluster.java
@@ -25,9 +25,9 @@
*/
public interface Cluster extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
/**
- * @return the created value.
+ * @return the createdAt value.
*/
- String created();
+ String createdAt();
/**
* @return the metricId value.
@@ -45,9 +45,9 @@ public interface Cluster extends HasInner, Resource, GroupableReso
String status();
/**
- * @return the updated value.
+ * @return the updatedAt value.
*/
- String updated();
+ String updatedAt();
/**
* The entirety of the Cluster definition.
@@ -71,12 +71,24 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
}
+ /**
+ * The stage of the cluster definition allowing to specify Sku.
+ */
+ interface WithSku {
+ /**
+ * Specifies sku.
+ * @param sku Properties of the cluster SKU
+ * @return the next definition stage
+ */
+ WithCreate withSku(ClusterSku sku);
+ }
+
/**
* 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 {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithSku {
}
}
/**
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Clusters.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Clusters.java
index c7414ce7d64be..9fd22cc996639 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Clusters.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Clusters.java
@@ -32,7 +32,7 @@ public interface Clusters extends SupportsCreating {
/**
* Replace all specified Event Hubs Cluster settings with those contained in the request body. Leaves the settings not specified in the request body unmodified.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
@@ -29,7 +29,7 @@ public interface Configurations extends HasInner {
/**
* Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and settings imposed on the cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConnectionState.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConnectionState.java
new file mode 100644
index 0000000000000..d278f1cee221a
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConnectionState.java
@@ -0,0 +1,70 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * ConnectionState information.
+ */
+public class ConnectionState {
+ /**
+ * Status of the connection. Possible values include: 'Pending',
+ * 'Approved', 'Rejected', 'Disconnected'.
+ */
+ @JsonProperty(value = "status")
+ private PrivateLinkConnectionStatus status;
+
+ /**
+ * Description of the connection state.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get status of the connection. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @return the status value
+ */
+ public PrivateLinkConnectionStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set status of the connection. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'.
+ *
+ * @param status the status value to set
+ * @return the ConnectionState object itself.
+ */
+ public ConnectionState withStatus(PrivateLinkConnectionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get description of the connection state.
+ *
+ * @return the description value
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set description of the connection state.
+ *
+ * @param description the description value to set
+ * @return the ConnectionState object itself.
+ */
+ public ConnectionState withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroup.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroup.java
new file mode 100644
index 0000000000000..d6fd8e3543b67
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroup.java
@@ -0,0 +1,129 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.ConsumerGroupInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing ConsumerGroup.
+ */
+public interface ConsumerGroup extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the createdAt value.
+ */
+ DateTime createdAt();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the updatedAt value.
+ */
+ DateTime updatedAt();
+
+ /**
+ * @return the userMetadata value.
+ */
+ String userMetadata();
+
+ /**
+ * The entirety of the ConsumerGroup definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithEventhub, DefinitionStages.WithUserMetadata, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of ConsumerGroup definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a ConsumerGroup definition.
+ */
+ interface Blank extends WithEventhub {
+ }
+
+ /**
+ * The stage of the consumergroup definition allowing to specify Eventhub.
+ */
+ interface WithEventhub {
+ /**
+ * Specifies resourceGroupName, namespaceName, eventHubName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @return the next definition stage
+ */
+ WithUserMetadata withExistingEventhub(String resourceGroupName, String namespaceName, String eventHubName);
+ }
+
+ /**
+ * The stage of the consumergroup definition allowing to specify UserMetadata.
+ */
+ interface WithUserMetadata {
+ /**
+ * Specifies userMetadata.
+ * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored
+ * @return the next definition stage
+ */
+ WithCreate withUserMetadata(String userMetadata);
+ }
+
+ /**
+ * 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 {
+ }
+ }
+ /**
+ * The template for a ConsumerGroup update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithUserMetadata {
+ }
+
+ /**
+ * Grouping of ConsumerGroup update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the consumergroup update allowing to specify UserMetadata.
+ */
+ interface WithUserMetadata {
+ /**
+ * Specifies userMetadata.
+ * @param userMetadata User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored
+ * @return the next update stage
+ */
+ Update withUserMetadata(String userMetadata);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroups.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroups.java
new file mode 100644
index 0000000000000..87954d64bc63a
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ConsumerGroups.java
@@ -0,0 +1,56 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.ConsumerGroupsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing ConsumerGroups.
+ */
+public interface ConsumerGroups extends SupportsCreating, HasInner {
+ /**
+ * Gets a description for the specified consumer group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param consumerGroupName The consumer group name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName);
+
+ /**
+ * Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByEventHubAsync(final String resourceGroupName, final String namespaceName, final String eventHubName);
+
+ /**
+ * Deletes a consumer group from the specified Event Hub and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param consumerGroupName The consumer group name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String namespaceName, String eventHubName, String consumerGroupName);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Destination.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Destination.java
new file mode 100644
index 0000000000000..c6dddb2869112
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Destination.java
@@ -0,0 +1,126 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+
+/**
+ * Capture storage details for capture description.
+ */
+@JsonFlatten
+public class Destination {
+ /**
+ * Name for capture destination.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Resource id of the storage account to be used to create the blobs.
+ */
+ @JsonProperty(value = "properties.storageAccountResourceId")
+ private String storageAccountResourceId;
+
+ /**
+ * Blob container Name.
+ */
+ @JsonProperty(value = "properties.blobContainer")
+ private String blobContainer;
+
+ /**
+ * Blob naming convention for archive, e.g.
+ * {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.
+ * Here all the parameters (Namespace,EventHub .. etc) are mandatory
+ * irrespective of order.
+ */
+ @JsonProperty(value = "properties.archiveNameFormat")
+ private String archiveNameFormat;
+
+ /**
+ * Get name for capture destination.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name for capture destination.
+ *
+ * @param name the name value to set
+ * @return the Destination object itself.
+ */
+ public Destination withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get resource id of the storage account to be used to create the blobs.
+ *
+ * @return the storageAccountResourceId value
+ */
+ public String storageAccountResourceId() {
+ return this.storageAccountResourceId;
+ }
+
+ /**
+ * Set resource id of the storage account to be used to create the blobs.
+ *
+ * @param storageAccountResourceId the storageAccountResourceId value to set
+ * @return the Destination object itself.
+ */
+ public Destination withStorageAccountResourceId(String storageAccountResourceId) {
+ this.storageAccountResourceId = storageAccountResourceId;
+ return this;
+ }
+
+ /**
+ * Get blob container Name.
+ *
+ * @return the blobContainer value
+ */
+ public String blobContainer() {
+ return this.blobContainer;
+ }
+
+ /**
+ * Set blob container Name.
+ *
+ * @param blobContainer the blobContainer value to set
+ * @return the Destination object itself.
+ */
+ public Destination withBlobContainer(String blobContainer) {
+ this.blobContainer = blobContainer;
+ return this;
+ }
+
+ /**
+ * Get blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.
+ *
+ * @return the archiveNameFormat value
+ */
+ public String archiveNameFormat() {
+ return this.archiveNameFormat;
+ }
+
+ /**
+ * Set blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.
+ *
+ * @param archiveNameFormat the archiveNameFormat value to set
+ * @return the Destination object itself.
+ */
+ public Destination withArchiveNameFormat(String archiveNameFormat) {
+ this.archiveNameFormat = archiveNameFormat;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigNamespaceAuthorizationRule.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigNamespaceAuthorizationRule.java
new file mode 100644
index 0000000000000..84740a64eac5e
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigNamespaceAuthorizationRule.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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.AuthorizationRuleInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import java.util.List;
+
+/**
+ * Type representing DisasterRecoveryConfigNamespaceAuthorizationRule.
+ */
+public interface DisasterRecoveryConfigNamespaceAuthorizationRule extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the rights value.
+ */
+ List rights();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigs.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigs.java
new file mode 100644
index 0000000000000..c1083ff0a8b63
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/DisasterRecoveryConfigs.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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.DisasterRecoveryConfigsInner;
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.DisasterRecoveryConfigNamespaceAuthorizationRule;
+
+/**
+ * Type representing DisasterRecoveryConfigs.
+ */
+public interface DisasterRecoveryConfigs extends SupportsCreating, HasInner {
+ /**
+ * Check the give Namespace name availability.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param name Name to check the namespace name availability
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable checkNameAvailabilityAsync(String resourceGroupName, String namespaceName, String name);
+
+ /**
+ * This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable breakPairingAsync(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable failOverAsync(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Gets all Alias(Disaster Recovery configurations).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String resourceGroupName, final String namespaceName);
+
+ /**
+ * Deletes an Alias(Disaster Recovery configuration).
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String namespaceName, String alias);
+
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String alias);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param alias The Disaster Recovery configuration name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listKeysAsync(String resourceGroupName, String namespaceName, String alias, String authorizationRuleName);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EHNamespace.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EHNamespace.java
index 168d7ee6b9dec..e3635f3c49f1d 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EHNamespace.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EHNamespace.java
@@ -25,11 +25,26 @@
* Type representing EHNamespace.
*/
public interface EHNamespace extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager {
+ /**
+ * @return the clusterArmId value.
+ */
+ String clusterArmId();
+
/**
* @return the createdAt value.
*/
DateTime createdAt();
+ /**
+ * @return the encryption value.
+ */
+ Encryption encryption();
+
+ /**
+ * @return the identity value.
+ */
+ Identity identity();
+
/**
* @return the isAutoInflateEnabled value.
*/
@@ -97,6 +112,42 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion {
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup {
}
+ /**
+ * The stage of the ehnamespace definition allowing to specify ClusterArmId.
+ */
+ interface WithClusterArmId {
+ /**
+ * Specifies clusterArmId.
+ * @param clusterArmId Cluster ARM ID of the Namespace
+ * @return the next definition stage
+ */
+ WithCreate withClusterArmId(String clusterArmId);
+ }
+
+ /**
+ * The stage of the ehnamespace definition allowing to specify Encryption.
+ */
+ interface WithEncryption {
+ /**
+ * Specifies encryption.
+ * @param encryption Properties of BYOK Encryption description
+ * @return the next definition stage
+ */
+ WithCreate withEncryption(Encryption encryption);
+ }
+
+ /**
+ * The stage of the ehnamespace definition allowing to specify Identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies identity.
+ * @param identity Properties of BYOK Identity description
+ * @return the next definition stage
+ */
+ WithCreate withIdentity(Identity identity);
+ }
+
/**
* The stage of the ehnamespace definition allowing to specify IsAutoInflateEnabled.
*/
@@ -162,19 +213,55 @@ interface WithZoneRedundant {
* 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.WithIsAutoInflateEnabled, DefinitionStages.WithKafkaEnabled, DefinitionStages.WithMaximumThroughputUnits, DefinitionStages.WithSku, DefinitionStages.WithZoneRedundant {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithClusterArmId, DefinitionStages.WithEncryption, DefinitionStages.WithIdentity, DefinitionStages.WithIsAutoInflateEnabled, DefinitionStages.WithKafkaEnabled, DefinitionStages.WithMaximumThroughputUnits, DefinitionStages.WithSku, DefinitionStages.WithZoneRedundant {
}
}
/**
* The template for a EHNamespace update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithIsAutoInflateEnabled, UpdateStages.WithKafkaEnabled, UpdateStages.WithMaximumThroughputUnits, UpdateStages.WithSku, UpdateStages.WithZoneRedundant {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithClusterArmId, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithIsAutoInflateEnabled, UpdateStages.WithKafkaEnabled, UpdateStages.WithMaximumThroughputUnits, UpdateStages.WithSku, UpdateStages.WithZoneRedundant {
}
/**
* Grouping of EHNamespace update stages.
*/
interface UpdateStages {
+ /**
+ * The stage of the ehnamespace update allowing to specify ClusterArmId.
+ */
+ interface WithClusterArmId {
+ /**
+ * Specifies clusterArmId.
+ * @param clusterArmId Cluster ARM ID of the Namespace
+ * @return the next update stage
+ */
+ Update withClusterArmId(String clusterArmId);
+ }
+
+ /**
+ * The stage of the ehnamespace update allowing to specify Encryption.
+ */
+ interface WithEncryption {
+ /**
+ * Specifies encryption.
+ * @param encryption Properties of BYOK Encryption description
+ * @return the next update stage
+ */
+ Update withEncryption(Encryption encryption);
+ }
+
+ /**
+ * The stage of the ehnamespace update allowing to specify Identity.
+ */
+ interface WithIdentity {
+ /**
+ * Specifies identity.
+ * @param identity Properties of BYOK Identity description
+ * @return the next update stage
+ */
+ Update withIdentity(Identity identity);
+ }
+
/**
* The stage of the ehnamespace update allowing to specify IsAutoInflateEnabled.
*/
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EncodingCaptureDescription.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EncodingCaptureDescription.java
new file mode 100644
index 0000000000000..6c746391c9246
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EncodingCaptureDescription.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for EncodingCaptureDescription.
+ */
+public enum EncodingCaptureDescription {
+ /** Enum value Avro. */
+ AVRO("Avro"),
+
+ /** Enum value AvroDeflate. */
+ AVRO_DEFLATE("AvroDeflate");
+
+ /** The actual serialized value for a EncodingCaptureDescription instance. */
+ private String value;
+
+ EncodingCaptureDescription(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a EncodingCaptureDescription instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed EncodingCaptureDescription object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static EncodingCaptureDescription fromString(String value) {
+ EncodingCaptureDescription[] items = EncodingCaptureDescription.values();
+ for (EncodingCaptureDescription item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Encryption.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Encryption.java
new file mode 100644
index 0000000000000..db22c3a196467
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Encryption.java
@@ -0,0 +1,71 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties to configure Encryption.
+ */
+public class Encryption {
+ /**
+ * Properties of KeyVault.
+ */
+ @JsonProperty(value = "keyVaultProperties")
+ private List keyVaultProperties;
+
+ /**
+ * Enumerates the possible value of keySource for Encryption. Possible
+ * values include: 'Microsoft.KeyVault'.
+ */
+ @JsonProperty(value = "keySource")
+ private KeySource keySource;
+
+ /**
+ * Get properties of KeyVault.
+ *
+ * @return the keyVaultProperties value
+ */
+ public List keyVaultProperties() {
+ return this.keyVaultProperties;
+ }
+
+ /**
+ * Set properties of KeyVault.
+ *
+ * @param keyVaultProperties the keyVaultProperties value to set
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeyVaultProperties(List keyVaultProperties) {
+ this.keyVaultProperties = keyVaultProperties;
+ return this;
+ }
+
+ /**
+ * Get enumerates the possible value of keySource for Encryption. Possible values include: 'Microsoft.KeyVault'.
+ *
+ * @return the keySource value
+ */
+ public KeySource keySource() {
+ return this.keySource;
+ }
+
+ /**
+ * Set enumerates the possible value of keySource for Encryption. Possible values include: 'Microsoft.KeyVault'.
+ *
+ * @param keySource the keySource value to set
+ * @return the Encryption object itself.
+ */
+ public Encryption withKeySource(KeySource keySource) {
+ this.keySource = keySource;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EndPointProvisioningState.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EndPointProvisioningState.java
new file mode 100644
index 0000000000000..f1e210af0904e
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EndPointProvisioningState.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.eventhubs.v2018_01_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for EndPointProvisioningState.
+ */
+public final class EndPointProvisioningState extends ExpandableStringEnum {
+ /** Static value Creating for EndPointProvisioningState. */
+ public static final EndPointProvisioningState CREATING = fromString("Creating");
+
+ /** Static value Updating for EndPointProvisioningState. */
+ public static final EndPointProvisioningState UPDATING = fromString("Updating");
+
+ /** Static value Deleting for EndPointProvisioningState. */
+ public static final EndPointProvisioningState DELETING = fromString("Deleting");
+
+ /** Static value Succeeded for EndPointProvisioningState. */
+ public static final EndPointProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Canceled for EndPointProvisioningState. */
+ public static final EndPointProvisioningState CANCELED = fromString("Canceled");
+
+ /** Static value Failed for EndPointProvisioningState. */
+ public static final EndPointProvisioningState FAILED = fromString("Failed");
+
+ /**
+ * Creates or finds a EndPointProvisioningState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding EndPointProvisioningState
+ */
+ @JsonCreator
+ public static EndPointProvisioningState fromString(String name) {
+ return fromString(name, EndPointProvisioningState.class);
+ }
+
+ /**
+ * @return known EndPointProvisioningState values
+ */
+ public static Collection values() {
+ return values(EndPointProvisioningState.class);
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EntityStatus.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EntityStatus.java
new file mode 100644
index 0000000000000..1824ae835b13c
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EntityStatus.java
@@ -0,0 +1,74 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for EntityStatus.
+ */
+public enum EntityStatus {
+ /** Enum value Active. */
+ ACTIVE("Active"),
+
+ /** Enum value Disabled. */
+ DISABLED("Disabled"),
+
+ /** Enum value Restoring. */
+ RESTORING("Restoring"),
+
+ /** Enum value SendDisabled. */
+ SEND_DISABLED("SendDisabled"),
+
+ /** Enum value ReceiveDisabled. */
+ RECEIVE_DISABLED("ReceiveDisabled"),
+
+ /** Enum value Creating. */
+ CREATING("Creating"),
+
+ /** Enum value Deleting. */
+ DELETING("Deleting"),
+
+ /** Enum value Renaming. */
+ RENAMING("Renaming"),
+
+ /** Enum value Unknown. */
+ UNKNOWN("Unknown");
+
+ /** The actual serialized value for a EntityStatus instance. */
+ private String value;
+
+ EntityStatus(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a EntityStatus instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed EntityStatus object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static EntityStatus fromString(String value) {
+ EntityStatus[] items = EntityStatus.values();
+ for (EntityStatus item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ErrorResponse.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ErrorResponse.java
index 9f158bb1dc4b5..d1bc7d5ec1367 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ErrorResponse.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ErrorResponse.java
@@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * Error response that indicates the service is not able to process the
+ * Error response indicates Event Hub service is not able to process the
* incoming request. The reason is provided in the error message.
*/
public class ErrorResponse {
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventHubs.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventHubs.java
new file mode 100644
index 0000000000000..7dbd4cc5bb639
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventHubs.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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsInner;
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.EventhubNamespaceAuthorizationRule;
+
+/**
+ * Type representing EventHubs.
+ */
+public interface EventHubs extends SupportsCreating, HasInner {
+ /**
+ * Begins definition for a new AuthorizationRule resource.
+ * @param name resource name.
+ * @return the first stage of the new AuthorizationRule definition.
+ */
+ EventhubNamespaceAuthorizationRule.DefinitionStages.Blank defineAuthorizationRule(String name);
+
+ /**
+ * Gets an Event Hubs description for the specified Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String namespaceName, String eventHubName);
+
+ /**
+ * Gets all the Event Hubs in a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByNamespaceAsync(final String resourceGroupName, final String namespaceName);
+
+ /**
+ * Deletes an Event Hub from the specified Namespace and resource group.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String namespaceName, String eventHubName);
+
+ /**
+ * Gets an AuthorizationRule for an Event Hub by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Gets the authorization rules for an Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName, final String eventHubName);
+
+ /**
+ * Deletes an Event Hub AuthorizationRule.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Gets the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listKeysAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName);
+
+ /**
+ * Regenerates the ACS and SAS connection strings for the Event Hub.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Eventhub.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Eventhub.java
new file mode 100644
index 0000000000000..b17597ead740e
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Eventhub.java
@@ -0,0 +1,221 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventhubInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import java.util.List;
+import org.joda.time.DateTime;
+
+/**
+ * Type representing Eventhub.
+ */
+public interface Eventhub extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the captureDescription value.
+ */
+ CaptureDescription captureDescription();
+
+ /**
+ * @return the createdAt value.
+ */
+ DateTime createdAt();
+
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the messageRetentionInDays value.
+ */
+ Long messageRetentionInDays();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the partitionCount value.
+ */
+ Long partitionCount();
+
+ /**
+ * @return the partitionIds value.
+ */
+ List partitionIds();
+
+ /**
+ * @return the status value.
+ */
+ EntityStatus status();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * @return the updatedAt value.
+ */
+ DateTime updatedAt();
+
+ /**
+ * The entirety of the Eventhub definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of Eventhub definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a Eventhub definition.
+ */
+ interface Blank extends WithNamespace {
+ }
+
+ /**
+ * The stage of the eventhub definition allowing to specify Namespace.
+ */
+ interface WithNamespace {
+ /**
+ * Specifies resourceGroupName, namespaceName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @return the next definition stage
+ */
+ WithCreate withExistingNamespace(String resourceGroupName, String namespaceName);
+ }
+
+ /**
+ * The stage of the eventhub definition allowing to specify CaptureDescription.
+ */
+ interface WithCaptureDescription {
+ /**
+ * Specifies captureDescription.
+ * @param captureDescription Properties of capture description
+ * @return the next definition stage
+ */
+ WithCreate withCaptureDescription(CaptureDescription captureDescription);
+ }
+
+ /**
+ * The stage of the eventhub definition allowing to specify MessageRetentionInDays.
+ */
+ interface WithMessageRetentionInDays {
+ /**
+ * Specifies messageRetentionInDays.
+ * @param messageRetentionInDays Number of days to retain the events for this Event Hub, value should be 1 to 7 days
+ * @return the next definition stage
+ */
+ WithCreate withMessageRetentionInDays(Long messageRetentionInDays);
+ }
+
+ /**
+ * The stage of the eventhub definition allowing to specify PartitionCount.
+ */
+ interface WithPartitionCount {
+ /**
+ * Specifies partitionCount.
+ * @param partitionCount Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions
+ * @return the next definition stage
+ */
+ WithCreate withPartitionCount(Long partitionCount);
+ }
+
+ /**
+ * The stage of the eventhub definition allowing to specify Status.
+ */
+ interface WithStatus {
+ /**
+ * Specifies status.
+ * @param status Enumerates the possible values for the status of the Event Hub. Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown'
+ * @return the next definition stage
+ */
+ WithCreate withStatus(EntityStatus status);
+ }
+
+ /**
+ * 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.WithCaptureDescription, DefinitionStages.WithMessageRetentionInDays, DefinitionStages.WithPartitionCount, DefinitionStages.WithStatus {
+ }
+ }
+ /**
+ * The template for a Eventhub update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithCaptureDescription, UpdateStages.WithMessageRetentionInDays, UpdateStages.WithPartitionCount, UpdateStages.WithStatus {
+ }
+
+ /**
+ * Grouping of Eventhub update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the eventhub update allowing to specify CaptureDescription.
+ */
+ interface WithCaptureDescription {
+ /**
+ * Specifies captureDescription.
+ * @param captureDescription Properties of capture description
+ * @return the next update stage
+ */
+ Update withCaptureDescription(CaptureDescription captureDescription);
+ }
+
+ /**
+ * The stage of the eventhub update allowing to specify MessageRetentionInDays.
+ */
+ interface WithMessageRetentionInDays {
+ /**
+ * Specifies messageRetentionInDays.
+ * @param messageRetentionInDays Number of days to retain the events for this Event Hub, value should be 1 to 7 days
+ * @return the next update stage
+ */
+ Update withMessageRetentionInDays(Long messageRetentionInDays);
+ }
+
+ /**
+ * The stage of the eventhub update allowing to specify PartitionCount.
+ */
+ interface WithPartitionCount {
+ /**
+ * Specifies partitionCount.
+ * @param partitionCount Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions
+ * @return the next update stage
+ */
+ Update withPartitionCount(Long partitionCount);
+ }
+
+ /**
+ * The stage of the eventhub update allowing to specify Status.
+ */
+ interface WithStatus {
+ /**
+ * Specifies status.
+ * @param status Enumerates the possible values for the status of the Event Hub. Possible values include: 'Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown'
+ * @return the next update stage
+ */
+ Update withStatus(EntityStatus status);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventhubNamespaceAuthorizationRule.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventhubNamespaceAuthorizationRule.java
new file mode 100644
index 0000000000000..a24ce622172ef
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/EventhubNamespaceAuthorizationRule.java
@@ -0,0 +1,119 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.AuthorizationRuleInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import java.util.List;
+
+/**
+ * Type representing EventhubNamespaceAuthorizationRule.
+ */
+public interface EventhubNamespaceAuthorizationRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the rights value.
+ */
+ List rights();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the EventhubNamespaceAuthorizationRule definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithEventhub, DefinitionStages.WithRights, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of EventhubNamespaceAuthorizationRule definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a EventhubNamespaceAuthorizationRule definition.
+ */
+ interface Blank extends WithEventhub {
+ }
+
+ /**
+ * The stage of the eventhubnamespaceauthorizationrule definition allowing to specify Eventhub.
+ */
+ interface WithEventhub {
+ /**
+ * Specifies resourceGroupName, namespaceName, eventHubName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @param eventHubName The Event Hub name
+ * @return the next definition stage
+ */
+ WithRights withExistingEventhub(String resourceGroupName, String namespaceName, String eventHubName);
+ }
+
+ /**
+ * The stage of the eventhubnamespaceauthorizationrule definition allowing to specify Rights.
+ */
+ interface WithRights {
+ /**
+ * Specifies rights.
+ * @param rights The rights associated with the rule
+ * @return the next definition stage
+ */
+ WithCreate withRights(List rights);
+ }
+
+ /**
+ * 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 {
+ }
+ }
+ /**
+ * The template for a EventhubNamespaceAuthorizationRule update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithRights {
+ }
+
+ /**
+ * Grouping of EventhubNamespaceAuthorizationRule update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the eventhubnamespaceauthorizationrule update allowing to specify Rights.
+ */
+ interface WithRights {
+ /**
+ * Specifies rights.
+ * @param rights The rights associated with the rule
+ * @return the next update stage
+ */
+ Update withRights(List rights);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Identity.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Identity.java
new file mode 100644
index 0000000000000..86d459330076d
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Identity.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties to configure Identity for Bring your Own Keys.
+ */
+public class Identity {
+ /**
+ * ObjectId from the KeyVault.
+ */
+ @JsonProperty(value = "principalId")
+ private String principalId;
+
+ /**
+ * TenantId from the KeyVault.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /**
+ * Enumerates the possible value Identity type, which currently supports
+ * only 'SystemAssigned'. Possible values include: 'SystemAssigned'.
+ */
+ @JsonProperty(value = "type")
+ private IdentityType type;
+
+ /**
+ * Get objectId from the KeyVault.
+ *
+ * @return the principalId value
+ */
+ public String principalId() {
+ return this.principalId;
+ }
+
+ /**
+ * Set objectId from the KeyVault.
+ *
+ * @param principalId the principalId value to set
+ * @return the Identity object itself.
+ */
+ public Identity withPrincipalId(String principalId) {
+ this.principalId = principalId;
+ return this;
+ }
+
+ /**
+ * Get tenantId from the KeyVault.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set tenantId from the KeyVault.
+ *
+ * @param tenantId the tenantId value to set
+ * @return the Identity object itself.
+ */
+ public Identity withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned'.
+ *
+ * @return the type value
+ */
+ public IdentityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned'.
+ *
+ * @param type the type value to set
+ * @return the Identity object itself.
+ */
+ public Identity withType(IdentityType type) {
+ this.type = type;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IdentityType.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IdentityType.java
new file mode 100644
index 0000000000000..5ba624f01cc3d
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IdentityType.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for IdentityType.
+ */
+public enum IdentityType {
+ /** Enum value SystemAssigned. */
+ SYSTEM_ASSIGNED("SystemAssigned");
+
+ /** The actual serialized value for a IdentityType instance. */
+ private String value;
+
+ IdentityType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a IdentityType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed IdentityType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static IdentityType fromString(String value) {
+ IdentityType[] items = IdentityType.values();
+ for (IdentityType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IpFilterRule.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IpFilterRule.java
index 73869dd697f86..e234ea14bde38 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IpFilterRule.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/IpFilterRule.java
@@ -74,7 +74,7 @@ interface Blank extends WithNamespace {
interface WithNamespace {
/**
* Specifies resourceGroupName, namespaceName.
- * @param resourceGroupName Name of the resource group within the Azure subscription
+ * @param resourceGroupName Name of the resource group within the azure subscription
* @param namespaceName The Namespace name
* @return the next definition stage
*/
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeySource.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeySource.java
new file mode 100644
index 0000000000000..ed68de3c2ac70
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeySource.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for KeySource.
+ */
+public enum KeySource {
+ /** Enum value Microsoft.KeyVault. */
+ MICROSOFT_KEY_VAULT("Microsoft.KeyVault");
+
+ /** The actual serialized value for a KeySource instance. */
+ private String value;
+
+ KeySource(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a KeySource instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed KeySource object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static KeySource fromString(String value) {
+ KeySource[] items = KeySource.values();
+ for (KeySource item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyType.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyType.java
new file mode 100644
index 0000000000000..09268288fe417
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyType.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for KeyType.
+ */
+public enum KeyType {
+ /** Enum value PrimaryKey. */
+ PRIMARY_KEY("PrimaryKey"),
+
+ /** Enum value SecondaryKey. */
+ SECONDARY_KEY("SecondaryKey");
+
+ /** The actual serialized value for a KeyType instance. */
+ private String value;
+
+ KeyType(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a KeyType instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed KeyType object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static KeyType fromString(String value) {
+ KeyType[] items = KeyType.values();
+ for (KeyType item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyVaultProperties.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyVaultProperties.java
new file mode 100644
index 0000000000000..8dbaa4a8ae0fd
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/KeyVaultProperties.java
@@ -0,0 +1,95 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties to configure keyVault Properties.
+ */
+public class KeyVaultProperties {
+ /**
+ * Name of the Key from KeyVault.
+ */
+ @JsonProperty(value = "keyName")
+ private String keyName;
+
+ /**
+ * Uri of KeyVault.
+ */
+ @JsonProperty(value = "keyVaultUri")
+ private String keyVaultUri;
+
+ /**
+ * Key Version.
+ */
+ @JsonProperty(value = "keyVersion")
+ private String keyVersion;
+
+ /**
+ * Get name of the Key from KeyVault.
+ *
+ * @return the keyName value
+ */
+ public String keyName() {
+ return this.keyName;
+ }
+
+ /**
+ * Set name of the Key from KeyVault.
+ *
+ * @param keyName the keyName value to set
+ * @return the KeyVaultProperties object itself.
+ */
+ public KeyVaultProperties withKeyName(String keyName) {
+ this.keyName = keyName;
+ return this;
+ }
+
+ /**
+ * Get uri of KeyVault.
+ *
+ * @return the keyVaultUri value
+ */
+ public String keyVaultUri() {
+ return this.keyVaultUri;
+ }
+
+ /**
+ * Set uri of KeyVault.
+ *
+ * @param keyVaultUri the keyVaultUri value to set
+ * @return the KeyVaultProperties object itself.
+ */
+ public KeyVaultProperties withKeyVaultUri(String keyVaultUri) {
+ this.keyVaultUri = keyVaultUri;
+ return this;
+ }
+
+ /**
+ * Get key Version.
+ *
+ * @return the keyVersion value
+ */
+ public String keyVersion() {
+ return this.keyVersion;
+ }
+
+ /**
+ * Set key Version.
+ *
+ * @param keyVersion the keyVersion value to set
+ * @return the KeyVaultProperties object itself.
+ */
+ public KeyVaultProperties withKeyVersion(String keyVersion) {
+ this.keyVersion = keyVersion;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegions.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegions.java
new file mode 100644
index 0000000000000..af41c821243ec
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegions.java
@@ -0,0 +1,51 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.MessagingRegionsInner;
+import java.util.Map;
+
+/**
+ * Type representing MessagingRegions.
+ */
+public interface MessagingRegions extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the properties value.
+ */
+ MessagingRegionsProperties properties();
+
+ /**
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegionsProperties.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegionsProperties.java
new file mode 100644
index 0000000000000..946a7efede4ca
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/MessagingRegionsProperties.java
@@ -0,0 +1,47 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Properties of Messaging Region.
+ */
+public class MessagingRegionsProperties {
+ /**
+ * Region code.
+ */
+ @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
+ private String code;
+
+ /**
+ * Full name of the region.
+ */
+ @JsonProperty(value = "fullName", access = JsonProperty.Access.WRITE_ONLY)
+ private String fullName;
+
+ /**
+ * Get region code.
+ *
+ * @return the code value
+ */
+ public String code() {
+ return this.code;
+ }
+
+ /**
+ * Get full name of the region.
+ *
+ * @return the fullName value
+ */
+ public String fullName() {
+ return this.fullName;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NamespaceAuthorizationRule.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NamespaceAuthorizationRule.java
new file mode 100644
index 0000000000000..0ca2d02d43040
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NamespaceAuthorizationRule.java
@@ -0,0 +1,118 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.AuthorizationRuleInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import java.util.List;
+
+/**
+ * Type representing NamespaceAuthorizationRule.
+ */
+public interface NamespaceAuthorizationRule extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the rights value.
+ */
+ List rights();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the NamespaceAuthorizationRule definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithRights, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of NamespaceAuthorizationRule definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a NamespaceAuthorizationRule definition.
+ */
+ interface Blank extends WithNamespace {
+ }
+
+ /**
+ * The stage of the namespaceauthorizationrule definition allowing to specify Namespace.
+ */
+ interface WithNamespace {
+ /**
+ * Specifies resourceGroupName, namespaceName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @return the next definition stage
+ */
+ WithRights withExistingNamespace(String resourceGroupName, String namespaceName);
+ }
+
+ /**
+ * The stage of the namespaceauthorizationrule definition allowing to specify Rights.
+ */
+ interface WithRights {
+ /**
+ * Specifies rights.
+ * @param rights The rights associated with the rule
+ * @return the next definition stage
+ */
+ WithCreate withRights(List rights);
+ }
+
+ /**
+ * 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 {
+ }
+ }
+ /**
+ * The template for a NamespaceAuthorizationRule update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithRights {
+ }
+
+ /**
+ * Grouping of NamespaceAuthorizationRule update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the namespaceauthorizationrule update allowing to specify Rights.
+ */
+ interface WithRights {
+ /**
+ * Specifies rights.
+ * @param rights The rights associated with the rule
+ * @return the next update stage
+ */
+ Update withRights(List rights);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Namespaces.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Namespaces.java
index 43f0faada39af..27ccef7cf8c9c 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Namespaces.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Namespaces.java
@@ -21,6 +21,7 @@
import rx.Completable;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.VirtualNetworkRule;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.NetworkRuleSetInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.NamespaceAuthorizationRule;
/**
* Type representing Namespaces.
@@ -40,10 +41,26 @@ public interface Namespaces extends SupportsCreating checkNameAvailabilityAsync(String name);
+
/**
* Gets an IpFilterRule for a Namespace by rule name.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param namespaceName The Namespace name
* @param ipFilterRuleName The IP Filter Rule name.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -54,7 +71,7 @@ public interface Namespaces extends SupportsCreating getNetworkRuleSetAsync(String resourceGroupName, String namespaceName);
+ /**
+ * Gets an AuthorizationRule for a Namespace by rule name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets a list of authorization rules for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAuthorizationRulesAsync(final String resourceGroupName, final String namespaceName);
+
+ /**
+ * Deletes an AuthorizationRule for a Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAuthorizationRuleAsync(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Gets the primary and secondary connection strings for the Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param authorizationRuleName The authorization rule name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName);
+
+ /**
+ * Regenerates the primary or secondary connection strings for the specified Namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param authorizationRuleName The authorization rule name.
+ * @param parameters Parameters required to regenerate the connection string.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable regenerateKeysAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, RegenerateAccessKeyParameters parameters);
+
}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NetworkRuleSet.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NetworkRuleSet.java
index 23b2e4cd10606..4dd56da5e9232 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NetworkRuleSet.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/NetworkRuleSet.java
@@ -38,6 +38,11 @@ public interface NetworkRuleSet extends HasInner, HasManage
*/
String name();
+ /**
+ * @return the trustedServiceAccessEnabled value.
+ */
+ Boolean trustedServiceAccessEnabled();
+
/**
* @return the type value.
*/
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpoint.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpoint.java
new file mode 100644
index 0000000000000..cc6bf9ff74256
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpoint.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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * PrivateEndpoint information.
+ */
+public class PrivateEndpoint {
+ /**
+ * The ARM identifier for Private Endpoint.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /**
+ * Get the ARM identifier for Private Endpoint.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the ARM identifier for Private Endpoint.
+ *
+ * @param id the id value to set
+ * @return the PrivateEndpoint object itself.
+ */
+ public PrivateEndpoint withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnection.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnection.java
new file mode 100644
index 0000000000000..8b71a2a88d598
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnection.java
@@ -0,0 +1,175 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.PrivateEndpointConnectionInner;
+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.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+
+/**
+ * Type representing PrivateEndpointConnection.
+ */
+public interface PrivateEndpointConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the privateEndpoint value.
+ */
+ PrivateEndpoint privateEndpoint();
+
+ /**
+ * @return the privateLinkServiceConnectionState value.
+ */
+ ConnectionState privateLinkServiceConnectionState();
+
+ /**
+ * @return the provisioningState value.
+ */
+ EndPointProvisioningState provisioningState();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * The entirety of the PrivateEndpointConnection definition.
+ */
+ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithNamespace, DefinitionStages.WithCreate {
+ }
+
+ /**
+ * Grouping of PrivateEndpointConnection definition stages.
+ */
+ interface DefinitionStages {
+ /**
+ * The first stage of a PrivateEndpointConnection definition.
+ */
+ interface Blank extends WithNamespace {
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify Namespace.
+ */
+ interface WithNamespace {
+ /**
+ * Specifies resourceGroupName, namespaceName.
+ * @param resourceGroupName Name of the resource group within the azure subscription
+ * @param namespaceName The Namespace name
+ * @return the next definition stage
+ */
+ WithCreate withExistingNamespace(String resourceGroupName, String namespaceName);
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify PrivateEndpoint.
+ */
+ interface WithPrivateEndpoint {
+ /**
+ * Specifies privateEndpoint.
+ * @param privateEndpoint The Private Endpoint resource for this Connection
+ * @return the next definition stage
+ */
+ WithCreate withPrivateEndpoint(PrivateEndpoint privateEndpoint);
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify PrivateLinkServiceConnectionState.
+ */
+ interface WithPrivateLinkServiceConnectionState {
+ /**
+ * Specifies privateLinkServiceConnectionState.
+ * @param privateLinkServiceConnectionState Details about the state of the connection
+ * @return the next definition stage
+ */
+ WithCreate withPrivateLinkServiceConnectionState(ConnectionState privateLinkServiceConnectionState);
+ }
+
+ /**
+ * The stage of the privateendpointconnection definition allowing to specify ProvisioningState.
+ */
+ interface WithProvisioningState {
+ /**
+ * Specifies provisioningState.
+ * @param provisioningState Provisioning state of the Private Endpoint Connection. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'
+ * @return the next definition stage
+ */
+ WithCreate withProvisioningState(EndPointProvisioningState provisioningState);
+ }
+
+ /**
+ * 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.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState, DefinitionStages.WithProvisioningState {
+ }
+ }
+ /**
+ * The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
+ */
+ interface Update extends Appliable, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {
+ }
+
+ /**
+ * Grouping of PrivateEndpointConnection update stages.
+ */
+ interface UpdateStages {
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
+ */
+ interface WithPrivateEndpoint {
+ /**
+ * Specifies privateEndpoint.
+ * @param privateEndpoint The Private Endpoint resource for this Connection
+ * @return the next update stage
+ */
+ Update withPrivateEndpoint(PrivateEndpoint privateEndpoint);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.
+ */
+ interface WithPrivateLinkServiceConnectionState {
+ /**
+ * Specifies privateLinkServiceConnectionState.
+ * @param privateLinkServiceConnectionState Details about the state of the connection
+ * @return the next update stage
+ */
+ Update withPrivateLinkServiceConnectionState(ConnectionState privateLinkServiceConnectionState);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify ProvisioningState.
+ */
+ interface WithProvisioningState {
+ /**
+ * Specifies provisioningState.
+ * @param provisioningState Provisioning state of the Private Endpoint Connection. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'
+ * @return the next update stage
+ */
+ Update withProvisioningState(EndPointProvisioningState provisioningState);
+ }
+
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnections.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnections.java
new file mode 100644
index 0000000000000..2252c392c2d4e
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateEndpointConnections.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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.collection.SupportsCreating;
+import rx.Completable;
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.PrivateEndpointConnectionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateEndpointConnections.
+ */
+public interface PrivateEndpointConnections extends SupportsCreating, HasInner {
+ /**
+ * Gets a description for the specified Private Endpoint Connection name.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+ /**
+ * Gets the available PrivateEndpointConnections within a namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String resourceGroupName, final String namespaceName);
+
+ /**
+ * Deletes an existing namespace. This operation also removes all associated resources under the namespace.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @param privateEndpointConnectionName The PrivateEndpointConnection name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Completable deleteAsync(String resourceGroupName, String namespaceName, String privateEndpointConnectionName);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkConnectionStatus.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkConnectionStatus.java
new file mode 100644
index 0000000000000..f901397c01f26
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkConnectionStatus.java
@@ -0,0 +1,47 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for PrivateLinkConnectionStatus.
+ */
+public final class PrivateLinkConnectionStatus extends ExpandableStringEnum {
+ /** Static value Pending for PrivateLinkConnectionStatus. */
+ public static final PrivateLinkConnectionStatus PENDING = fromString("Pending");
+
+ /** Static value Approved for PrivateLinkConnectionStatus. */
+ public static final PrivateLinkConnectionStatus APPROVED = fromString("Approved");
+
+ /** Static value Rejected for PrivateLinkConnectionStatus. */
+ public static final PrivateLinkConnectionStatus REJECTED = fromString("Rejected");
+
+ /** Static value Disconnected for PrivateLinkConnectionStatus. */
+ public static final PrivateLinkConnectionStatus DISCONNECTED = fromString("Disconnected");
+
+ /**
+ * Creates or finds a PrivateLinkConnectionStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding PrivateLinkConnectionStatus
+ */
+ @JsonCreator
+ public static PrivateLinkConnectionStatus fromString(String name) {
+ return fromString(name, PrivateLinkConnectionStatus.class);
+ }
+
+ /**
+ * @return known PrivateLinkConnectionStatus values
+ */
+ public static Collection values() {
+ return values(PrivateLinkConnectionStatus.class);
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResources.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResources.java
new file mode 100644
index 0000000000000..9acf588464184
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResources.java
@@ -0,0 +1,29 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.PrivateLinkResourcesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing PrivateLinkResources.
+ */
+public interface PrivateLinkResources extends HasInner {
+ /**
+ * Gets lists of resources that supports Privatelinks.
+ *
+ * @param resourceGroupName Name of the resource group within the azure subscription.
+ * @param namespaceName The Namespace name
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String namespaceName);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResourcesListResult.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResourcesListResult.java
new file mode 100644
index 0000000000000..eada347d4ce96
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/PrivateLinkResourcesListResult.java
@@ -0,0 +1,32 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.EventHubsManager;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.PrivateLinkResourcesListResultInner;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.PrivateLinkResourceInner;
+import java.util.List;
+
+/**
+ * Type representing PrivateLinkResourcesListResult.
+ */
+public interface PrivateLinkResourcesListResult extends HasInner, HasManager {
+ /**
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * @return the value value.
+ */
+ List value();
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ProvisioningStateDR.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ProvisioningStateDR.java
new file mode 100644
index 0000000000000..9a3c3b44c487b
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/ProvisioningStateDR.java
@@ -0,0 +1,56 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for ProvisioningStateDR.
+ */
+public enum ProvisioningStateDR {
+ /** Enum value Accepted. */
+ ACCEPTED("Accepted"),
+
+ /** Enum value Succeeded. */
+ SUCCEEDED("Succeeded"),
+
+ /** Enum value Failed. */
+ FAILED("Failed");
+
+ /** The actual serialized value for a ProvisioningStateDR instance. */
+ private String value;
+
+ ProvisioningStateDR(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a ProvisioningStateDR instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed ProvisioningStateDR object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static ProvisioningStateDR fromString(String value) {
+ ProvisioningStateDR[] items = ProvisioningStateDR.values();
+ for (ProvisioningStateDR item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RegenerateAccessKeyParameters.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RegenerateAccessKeyParameters.java
new file mode 100644
index 0000000000000..b9cbfbc5ebd24
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RegenerateAccessKeyParameters.java
@@ -0,0 +1,72 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Parameters supplied to the Regenerate Authorization Rule operation,
+ * specifies which key needs to be reset.
+ */
+public class RegenerateAccessKeyParameters {
+ /**
+ * The access key to regenerate. Possible values include: 'PrimaryKey',
+ * 'SecondaryKey'.
+ */
+ @JsonProperty(value = "keyType", required = true)
+ private KeyType keyType;
+
+ /**
+ * Optional, if the key value provided, is set for KeyType or autogenerated
+ * Key value set for keyType.
+ */
+ @JsonProperty(value = "key")
+ private String key;
+
+ /**
+ * Get the access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey'.
+ *
+ * @return the keyType value
+ */
+ public KeyType keyType() {
+ return this.keyType;
+ }
+
+ /**
+ * Set the access key to regenerate. Possible values include: 'PrimaryKey', 'SecondaryKey'.
+ *
+ * @param keyType the keyType value to set
+ * @return the RegenerateAccessKeyParameters object itself.
+ */
+ public RegenerateAccessKeyParameters withKeyType(KeyType keyType) {
+ this.keyType = keyType;
+ return this;
+ }
+
+ /**
+ * Get optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType.
+ *
+ * @return the key value
+ */
+ public String key() {
+ return this.key;
+ }
+
+ /**
+ * Set optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType.
+ *
+ * @param key the key value to set
+ * @return the RegenerateAccessKeyParameters object itself.
+ */
+ public RegenerateAccessKeyParameters withKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Regions.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Regions.java
new file mode 100644
index 0000000000000..e78411cb30339
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/Regions.java
@@ -0,0 +1,28 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation.RegionsInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing Regions.
+ */
+public interface Regions extends HasInner {
+ /**
+ * Gets the available Regions for a given sku.
+ *
+ * @param sku The sku type.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listBySkuAsync(final String sku);
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RoleDisasterRecovery.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RoleDisasterRecovery.java
new file mode 100644
index 0000000000000..34eec0bd0ca5f
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/RoleDisasterRecovery.java
@@ -0,0 +1,56 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for RoleDisasterRecovery.
+ */
+public enum RoleDisasterRecovery {
+ /** Enum value Primary. */
+ PRIMARY("Primary"),
+
+ /** Enum value PrimaryNotReplicating. */
+ PRIMARY_NOT_REPLICATING("PrimaryNotReplicating"),
+
+ /** Enum value Secondary. */
+ SECONDARY("Secondary");
+
+ /** The actual serialized value for a RoleDisasterRecovery instance. */
+ private String value;
+
+ RoleDisasterRecovery(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a RoleDisasterRecovery instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed RoleDisasterRecovery object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static RoleDisasterRecovery fromString(String value) {
+ RoleDisasterRecovery[] items = RoleDisasterRecovery.values();
+ for (RoleDisasterRecovery item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/UnavailableReason.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/UnavailableReason.java
new file mode 100644
index 0000000000000..f7e7b473c0192
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/UnavailableReason.java
@@ -0,0 +1,65 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Defines values for UnavailableReason.
+ */
+public enum UnavailableReason {
+ /** Enum value None. */
+ NONE("None"),
+
+ /** Enum value InvalidName. */
+ INVALID_NAME("InvalidName"),
+
+ /** Enum value SubscriptionIsDisabled. */
+ SUBSCRIPTION_IS_DISABLED("SubscriptionIsDisabled"),
+
+ /** Enum value NameInUse. */
+ NAME_IN_USE("NameInUse"),
+
+ /** Enum value NameInLockdown. */
+ NAME_IN_LOCKDOWN("NameInLockdown"),
+
+ /** Enum value TooManyNamespaceInCurrentSubscription. */
+ TOO_MANY_NAMESPACE_IN_CURRENT_SUBSCRIPTION("TooManyNamespaceInCurrentSubscription");
+
+ /** The actual serialized value for a UnavailableReason instance. */
+ private String value;
+
+ UnavailableReason(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a UnavailableReason instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed UnavailableReason object, or null if unable to parse.
+ */
+ @JsonCreator
+ public static UnavailableReason fromString(String value) {
+ UnavailableReason[] items = UnavailableReason.values();
+ for (UnavailableReason item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ @JsonValue
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/VirtualNetworkRule.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/VirtualNetworkRule.java
index ba23d13503fd5..cf0f2ab433882 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/VirtualNetworkRule.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/VirtualNetworkRule.java
@@ -64,7 +64,7 @@ interface Blank extends WithNamespace {
interface WithNamespace {
/**
* Specifies resourceGroupName, namespaceName.
- * @param resourceGroupName Name of the resource group within the Azure subscription
+ * @param resourceGroupName Name of the resource group within the azure subscription
* @param namespaceName The Namespace name
* @return the next definition stage
*/
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysImpl.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysImpl.java
new file mode 100644
index 0000000000000..65464fcafe864
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysImpl.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.eventhubs.v2018_01_01_preview.implementation;
+
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.AccessKeys;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+
+class AccessKeysImpl extends WrapperImpl implements AccessKeys {
+ private final EventHubsManager manager;
+ AccessKeysImpl(AccessKeysInner inner, EventHubsManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public EventHubsManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String aliasPrimaryConnectionString() {
+ return this.inner().aliasPrimaryConnectionString();
+ }
+
+ @Override
+ public String aliasSecondaryConnectionString() {
+ return this.inner().aliasSecondaryConnectionString();
+ }
+
+ @Override
+ public String keyName() {
+ return this.inner().keyName();
+ }
+
+ @Override
+ public String primaryConnectionString() {
+ return this.inner().primaryConnectionString();
+ }
+
+ @Override
+ public String primaryKey() {
+ return this.inner().primaryKey();
+ }
+
+ @Override
+ public String secondaryConnectionString() {
+ return this.inner().secondaryConnectionString();
+ }
+
+ @Override
+ public String secondaryKey() {
+ return this.inner().secondaryKey();
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysInner.java
new file mode 100644
index 0000000000000..4d6a1262db2a2
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AccessKeysInner.java
@@ -0,0 +1,124 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Namespace/EventHub Connection String.
+ */
+public class AccessKeysInner {
+ /**
+ * Primary connection string of the created namespace AuthorizationRule.
+ */
+ @JsonProperty(value = "primaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryConnectionString;
+
+ /**
+ * Secondary connection string of the created namespace AuthorizationRule.
+ */
+ @JsonProperty(value = "secondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryConnectionString;
+
+ /**
+ * Primary connection string of the alias if GEO DR is enabled.
+ */
+ @JsonProperty(value = "aliasPrimaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasPrimaryConnectionString;
+
+ /**
+ * Secondary connection string of the alias if GEO DR is enabled.
+ */
+ @JsonProperty(value = "aliasSecondaryConnectionString", access = JsonProperty.Access.WRITE_ONLY)
+ private String aliasSecondaryConnectionString;
+
+ /**
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String primaryKey;
+
+ /**
+ * A base64-encoded 256-bit primary key for signing and validating the SAS
+ * token.
+ */
+ @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String secondaryKey;
+
+ /**
+ * A string that describes the AuthorizationRule.
+ */
+ @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY)
+ private String keyName;
+
+ /**
+ * Get primary connection string of the created namespace AuthorizationRule.
+ *
+ * @return the primaryConnectionString value
+ */
+ public String primaryConnectionString() {
+ return this.primaryConnectionString;
+ }
+
+ /**
+ * Get secondary connection string of the created namespace AuthorizationRule.
+ *
+ * @return the secondaryConnectionString value
+ */
+ public String secondaryConnectionString() {
+ return this.secondaryConnectionString;
+ }
+
+ /**
+ * Get primary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasPrimaryConnectionString value
+ */
+ public String aliasPrimaryConnectionString() {
+ return this.aliasPrimaryConnectionString;
+ }
+
+ /**
+ * Get secondary connection string of the alias if GEO DR is enabled.
+ *
+ * @return the aliasSecondaryConnectionString value
+ */
+ public String aliasSecondaryConnectionString() {
+ return this.aliasSecondaryConnectionString;
+ }
+
+ /**
+ * Get a base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the primaryKey value
+ */
+ public String primaryKey() {
+ return this.primaryKey;
+ }
+
+ /**
+ * Get a base64-encoded 256-bit primary key for signing and validating the SAS token.
+ *
+ * @return the secondaryKey value
+ */
+ public String secondaryKey() {
+ return this.secondaryKey;
+ }
+
+ /**
+ * Get a string that describes the AuthorizationRule.
+ *
+ * @return the keyName value
+ */
+ public String keyName() {
+ return this.keyName;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryImpl.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryImpl.java
new file mode 100644
index 0000000000000..54b4eb34296d4
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryImpl.java
@@ -0,0 +1,133 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview.implementation;
+
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.ArmDisasterRecovery;
+import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
+import rx.Observable;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.ProvisioningStateDR;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.RoleDisasterRecovery;
+
+class ArmDisasterRecoveryImpl extends CreatableUpdatableImpl implements ArmDisasterRecovery, ArmDisasterRecovery.Definition, ArmDisasterRecovery.Update {
+ private final EventHubsManager manager;
+ private String resourceGroupName;
+ private String namespaceName;
+ private String alias;
+
+ ArmDisasterRecoveryImpl(String name, EventHubsManager manager) {
+ super(name, new ArmDisasterRecoveryInner());
+ this.manager = manager;
+ // Set resource name
+ this.alias = name;
+ //
+ }
+
+ ArmDisasterRecoveryImpl(ArmDisasterRecoveryInner inner, EventHubsManager manager) {
+ super(inner.name(), inner);
+ this.manager = manager;
+ // Set resource name
+ this.alias = inner.name();
+ // set resource ancestor and positional variables
+ this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
+ this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "namespaces");
+ this.alias = IdParsingUtils.getValueFromIdByName(inner.id(), "disasterRecoveryConfigs");
+ //
+ }
+
+ @Override
+ public EventHubsManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public Observable createResourceAsync() {
+ DisasterRecoveryConfigsInner client = this.manager().inner().disasterRecoveryConfigs();
+ return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.alias, this.inner())
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ public Observable updateResourceAsync() {
+ DisasterRecoveryConfigsInner client = this.manager().inner().disasterRecoveryConfigs();
+ return client.createOrUpdateAsync(this.resourceGroupName, this.namespaceName, this.alias, this.inner())
+ .map(innerToFluentMap(this));
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ DisasterRecoveryConfigsInner client = this.manager().inner().disasterRecoveryConfigs();
+ return client.getAsync(this.resourceGroupName, this.namespaceName, this.alias);
+ }
+
+ @Override
+ public boolean isInCreateMode() {
+ return this.inner().id() == null;
+ }
+
+
+ @Override
+ public String alternateName() {
+ return this.inner().alternateName();
+ }
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public String partnerNamespace() {
+ return this.inner().partnerNamespace();
+ }
+
+ @Override
+ public Long pendingReplicationOperationsCount() {
+ return this.inner().pendingReplicationOperationsCount();
+ }
+
+ @Override
+ public ProvisioningStateDR provisioningState() {
+ return this.inner().provisioningState();
+ }
+
+ @Override
+ public RoleDisasterRecovery role() {
+ return this.inner().role();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+ @Override
+ public ArmDisasterRecoveryImpl withExistingNamespace(String resourceGroupName, String namespaceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.namespaceName = namespaceName;
+ return this;
+ }
+
+ @Override
+ public ArmDisasterRecoveryImpl withAlternateName(String alternateName) {
+ this.inner().withAlternateName(alternateName);
+ return this;
+ }
+
+ @Override
+ public ArmDisasterRecoveryImpl withPartnerNamespace(String partnerNamespace) {
+ this.inner().withPartnerNamespace(partnerNamespace);
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryInner.java
new file mode 100644
index 0000000000000..4be691fac4e7c
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ArmDisasterRecoveryInner.java
@@ -0,0 +1,124 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview.implementation;
+
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.ProvisioningStateDR;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.RoleDisasterRecovery;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Single item in List or Get Alias(Disaster Recovery configuration) operation.
+ */
+@JsonFlatten
+public class ArmDisasterRecoveryInner extends ProxyResource {
+ /**
+ * Provisioning state of the Alias(Disaster Recovery configuration) -
+ * possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values
+ * include: 'Accepted', 'Succeeded', 'Failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningStateDR provisioningState;
+
+ /**
+ * ARM Id of the Primary/Secondary eventhub namespace name, which is part
+ * of GEO DR pairing.
+ */
+ @JsonProperty(value = "properties.partnerNamespace")
+ private String partnerNamespace;
+
+ /**
+ * Alternate name specified when alias and namespace names are same.
+ */
+ @JsonProperty(value = "properties.alternateName")
+ private String alternateName;
+
+ /**
+ * role of namespace in GEO DR - possible values 'Primary' or
+ * 'PrimaryNotReplicating' or 'Secondary'. Possible values include:
+ * 'Primary', 'PrimaryNotReplicating', 'Secondary'.
+ */
+ @JsonProperty(value = "properties.role", access = JsonProperty.Access.WRITE_ONLY)
+ private RoleDisasterRecovery role;
+
+ /**
+ * Number of entities pending to be replicated.
+ */
+ @JsonProperty(value = "properties.pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Long pendingReplicationOperationsCount;
+
+ /**
+ * Get provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningStateDR provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @return the partnerNamespace value
+ */
+ public String partnerNamespace() {
+ return this.partnerNamespace;
+ }
+
+ /**
+ * Set aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
+ *
+ * @param partnerNamespace the partnerNamespace value to set
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace) {
+ this.partnerNamespace = partnerNamespace;
+ return this;
+ }
+
+ /**
+ * Get alternate name specified when alias and namespace names are same.
+ *
+ * @return the alternateName value
+ */
+ public String alternateName() {
+ return this.alternateName;
+ }
+
+ /**
+ * Set alternate name specified when alias and namespace names are same.
+ *
+ * @param alternateName the alternateName value to set
+ * @return the ArmDisasterRecoveryInner object itself.
+ */
+ public ArmDisasterRecoveryInner withAlternateName(String alternateName) {
+ this.alternateName = alternateName;
+ return this;
+ }
+
+ /**
+ * Get role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'.
+ *
+ * @return the role value
+ */
+ public RoleDisasterRecovery role() {
+ return this.role;
+ }
+
+ /**
+ * Get number of entities pending to be replicated.
+ *
+ * @return the pendingReplicationOperationsCount value
+ */
+ public Long pendingReplicationOperationsCount() {
+ return this.pendingReplicationOperationsCount;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AuthorizationRuleInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AuthorizationRuleInner.java
new file mode 100644
index 0000000000000..56280715edb31
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/AuthorizationRuleInner.java
@@ -0,0 +1,48 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview.implementation;
+
+import java.util.List;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.AccessRights;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * Single item in a List or Get AuthorizationRule operation.
+ */
+@JsonFlatten
+public class AuthorizationRuleInner extends ProxyResource {
+ /**
+ * The rights associated with the rule.
+ */
+ @JsonProperty(value = "properties.rights", required = true)
+ private List rights;
+
+ /**
+ * Get the rights associated with the rule.
+ *
+ * @return the rights value
+ */
+ public List rights() {
+ return this.rights;
+ }
+
+ /**
+ * Set the rights associated with the rule.
+ *
+ * @param rights the rights value to set
+ * @return the AuthorizationRuleInner object itself.
+ */
+ public AuthorizationRuleInner withRights(List rights) {
+ this.rights = rights;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultImpl.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 0000000000000..c5f722730bec0
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultImpl.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.eventhubs.v2018_01_01_preview.implementation;
+
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.CheckNameAvailabilityResult;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.UnavailableReason;
+
+class CheckNameAvailabilityResultImpl extends WrapperImpl implements CheckNameAvailabilityResult {
+ private final EventHubsManager manager;
+ CheckNameAvailabilityResultImpl(CheckNameAvailabilityResultInner inner, EventHubsManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public EventHubsManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ public String message() {
+ return this.inner().message();
+ }
+
+ @Override
+ public Boolean nameAvailable() {
+ return this.inner().nameAvailable();
+ }
+
+ @Override
+ public UnavailableReason reason() {
+ return this.inner().reason();
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultInner.java
new file mode 100644
index 0000000000000..14eb267e7a71b
--- /dev/null
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/CheckNameAvailabilityResultInner.java
@@ -0,0 +1,88 @@
+/**
+ * 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.eventhubs.v2018_01_01_preview.implementation;
+
+import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.UnavailableReason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The Result of the CheckNameAvailability operation.
+ */
+public class CheckNameAvailabilityResultInner {
+ /**
+ * The detailed info regarding the reason associated with the Namespace.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Value indicating Namespace is availability, true if the Namespace is
+ * available; otherwise, false.
+ */
+ @JsonProperty(value = "nameAvailable")
+ private Boolean nameAvailable;
+
+ /**
+ * The reason for unavailability of a Namespace. Possible values include:
+ * 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse',
+ * 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
+ */
+ @JsonProperty(value = "reason")
+ private UnavailableReason reason;
+
+ /**
+ * Get the detailed info regarding the reason associated with the Namespace.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get value indicating Namespace is availability, true if the Namespace is available; otherwise, false.
+ *
+ * @return the nameAvailable value
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Set value indicating Namespace is availability, true if the Namespace is available; otherwise, false.
+ *
+ * @param nameAvailable the nameAvailable value to set
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withNameAvailable(Boolean nameAvailable) {
+ this.nameAvailable = nameAvailable;
+ return this;
+ }
+
+ /**
+ * Get the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
+ *
+ * @return the reason value
+ */
+ public UnavailableReason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Set the reason for unavailability of a Namespace. Possible values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription'.
+ *
+ * @param reason the reason value to set
+ * @return the CheckNameAvailabilityResultInner object itself.
+ */
+ public CheckNameAvailabilityResultInner withReason(UnavailableReason reason) {
+ this.reason = reason;
+ return this;
+ }
+
+}
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterImpl.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterImpl.java
index bab787115332f..9fe992e055e25 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterImpl.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterImpl.java
@@ -21,14 +21,14 @@ class ClusterImpl extends GroupableResourceCoreImpl createResourceAsync() {
ClustersInner client = this.manager().inner().clusters();
- return client.putAsync(this.resourceGroupName(), this.name())
+ return client.createOrUpdateAsync(this.resourceGroupName(), this.name(), this.inner())
.map(innerToFluentMap(this));
}
@Override
public Observable updateResourceAsync() {
ClustersInner client = this.manager().inner().clusters();
- return client.patchAsync(this.resourceGroupName(), this.name(), this.inner())
+ return client.updateAsync(this.resourceGroupName(), this.name(), this.inner())
.map(innerToFluentMap(this));
}
@@ -45,8 +45,8 @@ public boolean isInCreateMode() {
@Override
- public String created() {
- return this.inner().created();
+ public String createdAt() {
+ return this.inner().createdAt();
}
@Override
@@ -65,8 +65,8 @@ public String status() {
}
@Override
- public String updated() {
- return this.inner().updated();
+ public String updatedAt() {
+ return this.inner().updatedAt();
}
@Override
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterInner.java
index 3b6f1e96d45d8..7b9c74c537334 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterInner.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClusterInner.java
@@ -29,14 +29,14 @@ public class ClusterInner extends Resource {
/**
* The UTC time when the Event Hubs Cluster was created.
*/
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private String created;
+ @JsonProperty(value = "properties.createdAt", access = JsonProperty.Access.WRITE_ONLY)
+ private String createdAt;
/**
* The UTC time when the Event Hubs Cluster was last updated.
*/
- @JsonProperty(value = "properties.updated", access = JsonProperty.Access.WRITE_ONLY)
- private String updated;
+ @JsonProperty(value = "properties.updatedAt", access = JsonProperty.Access.WRITE_ONLY)
+ private String updatedAt;
/**
* The metric ID of the cluster resource. Provided by the service and not
@@ -74,19 +74,19 @@ public ClusterInner withSku(ClusterSku sku) {
/**
* Get the UTC time when the Event Hubs Cluster was created.
*
- * @return the created value
+ * @return the createdAt value
*/
- public String created() {
- return this.created;
+ public String createdAt() {
+ return this.createdAt;
}
/**
* Get the UTC time when the Event Hubs Cluster was last updated.
*
- * @return the updated value
+ * @return the updatedAt value
*/
- public String updated() {
- return this.updated;
+ public String updatedAt() {
+ return this.updatedAt;
}
/**
diff --git a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClustersInner.java b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClustersInner.java
index 0c6cf586b7b85..67c9293b80775 100644
--- a/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClustersInner.java
+++ b/sdk/eventhubs/mgmt-v2018_01_01_preview/src/main/java/com/microsoft/azure/management/eventhubs/v2018_01_01_preview/implementation/ClustersInner.java
@@ -46,7 +46,7 @@ public class ClustersInner implements InnerSupportsGet, InnerSuppo
/** The Retrofit service to perform REST calls. */
private ClustersService service;
/** The service client containing this operation class. */
- private EventHub2018PreviewManagementClientImpl client;
+ private EventHubManagementClientImpl client;
/**
* Initializes an instance of ClustersInner.
@@ -54,7 +54,7 @@ public class ClustersInner implements InnerSupportsGet, InnerSuppo
* @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, EventHub2018PreviewManagementClientImpl client) {
+ public ClustersInner(Retrofit retrofit, EventHubManagementClientImpl client) {
this.service = retrofit.create(ClustersService.class);
this.client = client;
}
@@ -76,21 +76,21 @@ interface ClustersService {
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}")
Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @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.eventhubs.v2018_01_01_preview.Clusters put" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Clusters createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}")
- Observable> put(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @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.eventhubs.v2018_01_01_preview.Clusters beginPut" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Clusters beginCreateOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}")
- Observable> beginPut(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @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.eventhubs.v2018_01_01_preview.Clusters patch" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Clusters update" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}")
- Observable> patch(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterInner parameters, @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.eventhubs.v2018_01_01_preview.Clusters beginPatch" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Clusters beginUpdate" })
@PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}")
- Observable> beginPatch(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> beginUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("clusterName") String clusterName, @Query("api-version") String apiVersion, @Body ClusterInner parameters, @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.eventhubs.v2018_01_01_preview.Clusters delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", method = "DELETE", hasBody = true)
@@ -116,7 +116,7 @@ interface ClustersService {
* @return the PagedList object if successful.
*/
public PagedList list() {
- PageImpl1 page = new PageImpl1<>();
+ PageImpl page = new PageImpl<>();
page.setItems(listWithServiceResponseAsync().toBlocking().single().body());
page.setNextPageLink(null);
return new PagedList(page) {
@@ -146,7 +146,7 @@ public Observable> listAsync() {
return listWithServiceResponseAsync().map(new Func1>, Page>() {
@Override
public Page call(ServiceResponse> response) {
- PageImpl1 page = new PageImpl1<>();
+ PageImpl page = new PageImpl<>();
page.setItems(response.body());
return page;
}
@@ -162,15 +162,13 @@ public Observable>> listWithServiceR
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.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ final String apiVersion = "2018-01-01-preview";
+ return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
public Observable>> call(Response response) {
try {
- ServiceResponse> result = listDelegate(response);
+ ServiceResponse> result = listDelegate(response);
List items = null;
if (result.body() != null) {
items = result.body().items();
@@ -184,9 +182,9 @@ public Observable>> call(Response> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken>() { }.getType())
+ private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
.registerError(ErrorResponseException.class)
.build(response);
}
@@ -194,7 +192,7 @@ private ServiceResponse> listDelegate(Response<
/**
* Lists the available Event Hubs Clusters within an ARM resource group.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@@ -213,7 +211,7 @@ public Page nextPage(String nextPageLink) {
/**
* Lists the available Event Hubs Clusters within an ARM resource group.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
@@ -233,7 +231,7 @@ public Observable>> call(String nextPageLink)
/**
* Lists the available Event Hubs Clusters within an ARM resource group.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<ClusterInner> object
*/
@@ -250,7 +248,7 @@ public Page call(ServiceResponse> response) {
/**
* Lists the available Event Hubs Clusters within an ARM resource group.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<ClusterInner> object
*/
@@ -271,7 +269,7 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName Name of the resource group within the Azure subscription.
+ ServiceResponse> * @param resourceGroupName Name of the resource group within the azure subscription.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<ClusterInner> object wrapped in {@link ServiceResponse} if successful.
*/
@@ -282,15 +280,13 @@ public Observable>> listByResourceGroupSingle
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName 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.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ final String apiVersion = "2018-01-01-preview";
+ return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
public Observable>> call(Response response) {
try {
- ServiceResponse> result = listByResourceGroupDelegate(response);
+ ServiceResponse> result = listByResourceGroupDelegate(response);
return Observable.just(new ServiceResponse>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
@@ -299,9 +295,9 @@ public Observable>> call(Response> listByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
- return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter())
- .register(200, new TypeToken>() { }.getType())
+ private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
.registerError(ErrorResponseException.class)
.build(response);
}
@@ -309,7 +305,7 @@ private ServiceResponse> listByResourceGroupDelegate(Resp
/**
* Gets the resource description of the specified Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
@@ -323,7 +319,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN
/**
* Gets the resource description of the specified Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -336,7 +332,7 @@ public ServiceFuture getByResourceGroupAsync(String resourceGroupN
/**
* Gets the resource description of the specified Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ClusterInner object
@@ -353,7 +349,7 @@ public ClusterInner call(ServiceResponse response) {
/**
* Gets the resource description of the specified Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ClusterInner object
@@ -368,10 +364,8 @@ public Observable> getByResourceGroupWithServiceRe
if (clusterName == null) {
throw new IllegalArgumentException("Parameter clusterName 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(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ final String apiVersion = "2018-01-01-preview";
+ return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, clusterName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
@@ -395,40 +389,43 @@ private ServiceResponse getByResourceGroupDelegate(Response putAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(putWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ public ServiceFuture createOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
}
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- public Observable putAsync(String resourceGroupName, String clusterName) {
- return putWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() {
+ 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();
@@ -439,12 +436,13 @@ public ClusterInner call(ServiceResponse response) {
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- public Observable> putWithServiceResponseAsync(String resourceGroupName, String clusterName) {
+ public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -454,50 +452,55 @@ public Observable> putWithServiceResponseAsync(Str
if (clusterName == null) {
throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
}
- if (this.client.apiVersion() == null) {
- throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
}
- Observable> observable = service.put(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
+ Validator.validate(parameters);
+ final String apiVersion = "2018-01-01-preview";
+ Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, clusterName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType());
}
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException 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 beginPut(String resourceGroupName, String clusterName) {
- return beginPutWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().single().body();
+ public ClusterInner beginCreateOrUpdate(String resourceGroupName, String clusterName, ClusterInner parameters) {
+ return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters).toBlocking().single().body();
}
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @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 beginPutAsync(String resourceGroupName, String clusterName, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(beginPutWithServiceResponseAsync(resourceGroupName, clusterName), serviceCallback);
+ public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String clusterName, ClusterInner parameters, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, parameters), serviceCallback);
}
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ClusterInner object
*/
- public Observable beginPutAsync(String resourceGroupName, String clusterName) {
- return beginPutWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1, ClusterInner>() {
+ 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();
@@ -508,12 +511,13 @@ public ClusterInner call(ServiceResponse response) {
/**
* Creates or updates an instance of an Event Hubs Cluster.
*
- * @param resourceGroupName Name of the resource group within the Azure subscription.
+ * @param resourceGroupName Name of the resource group within the azure subscription.
* @param clusterName The name of the Event Hubs Cluster.
+ * @param parameters Parameters for creating a eventhub cluster resource.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ClusterInner object
*/
- public Observable> beginPutWithServiceResponseAsync(String resourceGroupName, String clusterName) {
+ public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String clusterName, ClusterInner parameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
@@ -523,15 +527,17 @@ public Observable> beginPutWithServiceResponseAsyn
if (clusterName == null) {
throw new IllegalArgumentException("Parameter clusterName is required and cannot be null.");
}
- if (this.client.apiVersion() == null) {
- throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ if (parameters == null) {
+ throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
}
- return service.beginPut(this.client.subscriptionId(), resourceGroupName, clusterName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ Validator.validate(parameters);
+ final String apiVersion = "2018-01-01-preview";
+ return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, clusterName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = beginPutDelegate(response);
+ ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -540,7 +546,7 @@ public Observable> call(Response res
});
}
- private ServiceResponse beginPutDelegate(Response