diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IIotHubOperations.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IIotHubOperations.cs
index 6c2670299f9b5..3575635a842bb 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IIotHubOperations.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IIotHubOperations.cs
@@ -24,19 +24,23 @@ namespace Microsoft.Azure.Management.IotHub
public partial interface IIotHubOperations
{
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary
+ /// region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary
+ /// region. To learn more, see https://aka.ms/manualfailover
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the
+ /// value from the secondary location in the locations property. To
+ /// learn more, see https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// The headers that will be added to request.
@@ -52,19 +56,23 @@ public partial interface IIotHubOperations
///
Task ManualFailoverWithHttpMessagesAsync(string iotHubName, FailoverInput failoverInput, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary
+ /// region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary
+ /// region. To learn more, see https://aka.ms/manualfailover
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the
+ /// value from the secondary location in the locations property. To
+ /// learn more, see https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// The headers that will be added to request.
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs
index 460dd9fe79be0..d333bdf74b4f9 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubClient.cs
@@ -346,7 +346,7 @@ private void Initialize()
Certificates = new CertificatesOperations(this);
IotHub = new IotHubOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2019-03-22-preview";
+ ApiVersion = "2019-03-22";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperations.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperations.cs
index 7134be018cc59..30286aa52144f 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperations.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperations.cs
@@ -51,19 +51,22 @@ internal IotHubOperations(IotHubClient client)
public IotHubClient Client { get; private set; }
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// The headers that will be added to request.
@@ -79,19 +82,22 @@ internal IotHubOperations(IotHubClient client)
}
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// Headers that will be added to request.
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperationsExtensions.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperationsExtensions.cs
index 6dbd00354cf62..078a0b5cfcb0d 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperationsExtensions.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/IotHubOperationsExtensions.cs
@@ -22,22 +22,25 @@ namespace Microsoft.Azure.Management.IotHub
public static partial class IotHubOperationsExtensions
{
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
/// The operations group for this extension method.
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
public static void ManualFailover(this IIotHubOperations operations, string iotHubName, FailoverInput failoverInput, string resourceGroupName)
{
@@ -45,22 +48,25 @@ public static void ManualFailover(this IIotHubOperations operations, string iotH
}
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
/// The operations group for this extension method.
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// The cancellation token.
@@ -71,22 +77,25 @@ public static void ManualFailover(this IIotHubOperations operations, string iotH
}
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
/// The operations group for this extension method.
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
public static void BeginManualFailover(this IIotHubOperations operations, string iotHubName, FailoverInput failoverInput, string resourceGroupName)
{
@@ -94,22 +103,25 @@ public static void BeginManualFailover(this IIotHubOperations operations, string
}
///
- /// Manual Failover Fail over
+ /// Manually initiate a failover for the IoT Hub to its secondary region
///
///
- /// Perform manual fail over of given hub
+ /// Manually initiate a failover for the IoT Hub to its secondary region. To
+ /// learn more, see https://aka.ms/manualfailover
///
///
/// The operations group for this extension method.
///
///
- /// IotHub to fail over
+ /// Name of the IoT hub to failover
///
///
- /// Region to failover to. Must be a azure DR pair
+ /// Region to failover to. Must be the Azure paired region. Get the value from
+ /// the secondary location in the locations property. To learn more, see
+ /// https://aka.ms/manualfailover/region
///
///
- /// resource group which Iot Hub belongs to
+ /// Resource group in which the IoT hub is in
///
///
/// The cancellation token.
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/EnrichmentProperties.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/EnrichmentProperties.cs
deleted file mode 100644
index b277ee3a4127a..0000000000000
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/EnrichmentProperties.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.IotHub.Models
-{
- using Microsoft.Rest;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// The properties of an enrichment that your IoT hub applies to messages
- /// delivered to endpoints.
- ///
- public partial class EnrichmentProperties
- {
- ///
- /// Initializes a new instance of the EnrichmentProperties class.
- ///
- public EnrichmentProperties()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EnrichmentProperties class.
- ///
- /// The key or name for the enrichment
- /// property.
- /// The value for the enrichment property.
- /// The list of endpoints for which the
- /// enrichment is applied to the message.
- public EnrichmentProperties(string key, string value, IList endpointNames)
- {
- Key = key;
- Value = value;
- EndpointNames = endpointNames;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the key or name for the enrichment property.
- ///
- [JsonProperty(PropertyName = "key")]
- public string Key { get; set; }
-
- ///
- /// Gets or sets the value for the enrichment property.
- ///
- [JsonProperty(PropertyName = "value")]
- public string Value { get; set; }
-
- ///
- /// Gets or sets the list of endpoints for which the enrichment is
- /// applied to the message.
- ///
- [JsonProperty(PropertyName = "endpointNames")]
- public IList EndpointNames { get; set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Key == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Key");
- }
- if (Value == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Value");
- }
- if (EndpointNames == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "EndpointNames");
- }
- if (EndpointNames != null)
- {
- if (EndpointNames.Count < 1)
- {
- throw new ValidationException(ValidationRules.MinItems, "EndpointNames", 1);
- }
- }
- }
- }
-}
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubLocationDescription.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubLocationDescription.cs
index 81b9b6254fe03..31cefac3ab946 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubLocationDescription.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubLocationDescription.cs
@@ -30,9 +30,13 @@ public IotHubLocationDescription()
///
/// Initializes a new instance of the IotHubLocationDescription class.
///
- /// Azure Geo Regions
- /// Specific Role assigned to this location.
- /// Possible values include: 'primary', 'secondary'
+ /// The name of the Azure region
+ /// The role of the region, can be either primary or
+ /// secondary. The primary region is where the IoT hub is currently
+ /// provisioned. The secondary region is the the Azure disaster
+ /// recovery (DR) paired region and also the region where the IoT hub
+ /// can failover to. Possible values include: 'primary',
+ /// 'secondary'
public IotHubLocationDescription(string location = default(string), string role = default(string))
{
Location = location;
@@ -46,14 +50,17 @@ public IotHubLocationDescription()
partial void CustomInit();
///
- /// Gets or sets azure Geo Regions
+ /// Gets or sets the name of the Azure region
///
[JsonProperty(PropertyName = "location")]
public string Location { get; set; }
///
- /// Gets or sets specific Role assigned to this location. Possible
- /// values include: 'primary', 'secondary'
+ /// Gets or sets the role of the region, can be either primary or
+ /// secondary. The primary region is where the IoT hub is currently
+ /// provisioned. The secondary region is the the Azure disaster
+ /// recovery (DR) paired region and also the region where the IoT hub
+ /// can failover to. Possible values include: 'primary', 'secondary'
///
[JsonProperty(PropertyName = "role")]
public string Role { get; set; }
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs
index 77b4a13002f32..bc0a2480a45be 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubProperties.cs
@@ -53,14 +53,12 @@ public IotHubProperties()
/// If True, file upload
/// notifications are enabled.
/// IoT hub comments.
- /// The device streams properties of
- /// iothub.
/// The capabilities and features enabled for
/// the IoT hub. Possible values include: 'None',
/// 'DeviceManagement'
/// Primary and secondary location for iot
/// hub
- public IotHubProperties(IList authorizationPolicies = default(IList), IList ipFilterRules = default(IList), string provisioningState = default(string), string state = default(string), string hostName = default(string), IDictionary eventHubEndpoints = default(IDictionary), RoutingProperties routing = default(RoutingProperties), IDictionary storageEndpoints = default(IDictionary), IDictionary messagingEndpoints = default(IDictionary), bool? enableFileUploadNotifications = default(bool?), CloudToDeviceProperties cloudToDevice = default(CloudToDeviceProperties), string comments = default(string), IotHubPropertiesDeviceStreams deviceStreams = default(IotHubPropertiesDeviceStreams), string features = default(string), IList locations = default(IList))
+ public IotHubProperties(IList authorizationPolicies = default(IList), IList ipFilterRules = default(IList), string provisioningState = default(string), string state = default(string), string hostName = default(string), IDictionary eventHubEndpoints = default(IDictionary), RoutingProperties routing = default(RoutingProperties), IDictionary storageEndpoints = default(IDictionary), IDictionary messagingEndpoints = default(IDictionary), bool? enableFileUploadNotifications = default(bool?), CloudToDeviceProperties cloudToDevice = default(CloudToDeviceProperties), string comments = default(string), string features = default(string), IList locations = default(IList))
{
AuthorizationPolicies = authorizationPolicies;
IpFilterRules = ipFilterRules;
@@ -74,7 +72,6 @@ public IotHubProperties()
EnableFileUploadNotifications = enableFileUploadNotifications;
CloudToDevice = cloudToDevice;
Comments = comments;
- DeviceStreams = deviceStreams;
Features = features;
Locations = locations;
CustomInit();
@@ -166,12 +163,6 @@ public IotHubProperties()
[JsonProperty(PropertyName = "comments")]
public string Comments { get; set; }
- ///
- /// Gets or sets the device streams properties of iothub.
- ///
- [JsonProperty(PropertyName = "deviceStreams")]
- public IotHubPropertiesDeviceStreams DeviceStreams { get; set; }
-
///
/// Gets or sets the capabilities and features enabled for the IoT hub.
/// Possible values include: 'None', 'DeviceManagement'
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubPropertiesDeviceStreams.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubPropertiesDeviceStreams.cs
deleted file mode 100644
index 19f258e077c38..0000000000000
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/IotHubPropertiesDeviceStreams.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.IotHub.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// The device streams properties of iothub.
- ///
- public partial class IotHubPropertiesDeviceStreams
- {
- ///
- /// Initializes a new instance of the IotHubPropertiesDeviceStreams
- /// class.
- ///
- public IotHubPropertiesDeviceStreams()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the IotHubPropertiesDeviceStreams
- /// class.
- ///
- /// List of Device Streams
- /// Endpoints.
- public IotHubPropertiesDeviceStreams(IList streamingEndpoints = default(IList))
- {
- StreamingEndpoints = streamingEndpoints;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets list of Device Streams Endpoints.
- ///
- [JsonProperty(PropertyName = "streamingEndpoints")]
- public IList StreamingEndpoints { get; set; }
-
- }
-}
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/RoutingProperties.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/RoutingProperties.cs
index 43333e1f90204..1c77b24f666e4 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/RoutingProperties.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/Models/RoutingProperties.cs
@@ -42,15 +42,11 @@ public RoutingProperties()
/// this property is not set, the messages which do not meet any of the
/// conditions specified in the 'routes' section get routed to the
/// built-in eventhub endpoint.
- /// The list of user-provided enrichments
- /// that the IoT hub applies to messages to be delivered to built-in
- /// and custom endpoints. See: https://aka.ms/iotmsgenrich
- public RoutingProperties(RoutingEndpoints endpoints = default(RoutingEndpoints), IList routes = default(IList), FallbackRouteProperties fallbackRoute = default(FallbackRouteProperties), IList enrichments = default(IList))
+ public RoutingProperties(RoutingEndpoints endpoints = default(RoutingEndpoints), IList routes = default(IList), FallbackRouteProperties fallbackRoute = default(FallbackRouteProperties))
{
Endpoints = endpoints;
Routes = routes;
FallbackRoute = fallbackRoute;
- Enrichments = enrichments;
CustomInit();
}
@@ -84,14 +80,6 @@ public RoutingProperties()
[JsonProperty(PropertyName = "fallbackRoute")]
public FallbackRouteProperties FallbackRoute { get; set; }
- ///
- /// Gets or sets the list of user-provided enrichments that the IoT hub
- /// applies to messages to be delivered to built-in and custom
- /// endpoints. See: https://aka.ms/iotmsgenrich
- ///
- [JsonProperty(PropertyName = "enrichments")]
- public IList Enrichments { get; set; }
-
///
/// Validate the object.
///
@@ -114,16 +102,6 @@ public virtual void Validate()
{
FallbackRoute.Validate();
}
- if (Enrichments != null)
- {
- foreach (var element1 in Enrichments)
- {
- if (element1 != null)
- {
- element1.Validate();
- }
- }
- }
}
}
}
diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs
index 8c714a355a2f0..ed595d80c15d5 100644
--- a/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs
+++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/src/Generated/SdkInfo_iotHubClient.cs
@@ -19,24 +19,13 @@ public static IEnumerable> ApiInfo_iotHubClient
{
return new Tuple[]
{
- new Tuple("Devices", "Certificates", "2019-03-22-preview"),
- new Tuple("Devices", "IotHub", "2019-03-22-preview"),
- new Tuple("Devices", "IotHubResource", "2019-03-22-preview"),
- new Tuple("Devices", "Operations", "2019-03-22-preview"),
- new Tuple("Devices", "ResourceProviderCommon", "2019-03-22-preview"),
+ new Tuple("Devices", "Certificates", "2019-03-22"),
+ new Tuple("Devices", "IotHub", "2019-03-22"),
+ new Tuple("Devices", "IotHubResource", "2019-03-22"),
+ new Tuple("Devices", "Operations", "2019-03-22"),
+ new Tuple("Devices", "ResourceProviderCommon", "2019-03-22"),
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iothub/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "2a65faa9ddbf9970708ba507eeb8071a2d310b57";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-