-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
IotHubRoutingProperties.cs
45 lines (39 loc) · 3.59 KB
/
IotHubRoutingProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.IotHub.Models
{
/// <summary> The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging. </summary>
public partial class IotHubRoutingProperties
{
/// <summary> Initializes a new instance of <see cref="IotHubRoutingProperties"/>. </summary>
public IotHubRoutingProperties()
{
Routes = new ChangeTrackingList<RoutingRuleProperties>();
Enrichments = new ChangeTrackingList<IotHubEnrichmentProperties>();
}
/// <summary> Initializes a new instance of <see cref="IotHubRoutingProperties"/>. </summary>
/// <param name="endpoints"> The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs. </param>
/// <param name="routes"> The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs. </param>
/// <param name="fallbackRoute"> The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not present in the template, the fallback route is disabled by default. </param>
/// <param name="enrichments"> 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/telemetryoneventgrid. </param>
internal IotHubRoutingProperties(RoutingEndpoints endpoints, IList<RoutingRuleProperties> routes, IotHubFallbackRouteProperties fallbackRoute, IList<IotHubEnrichmentProperties> enrichments)
{
Endpoints = endpoints;
Routes = routes;
FallbackRoute = fallbackRoute;
Enrichments = enrichments;
}
/// <summary> The properties related to the custom endpoints to which your IoT hub routes messages based on the routing rules. A maximum of 10 custom endpoints are allowed across all endpoint types for paid hubs and only 1 custom endpoint is allowed across all endpoint types for free hubs. </summary>
public RoutingEndpoints Endpoints { get; set; }
/// <summary> The list of user-provided routing rules that the IoT hub uses to route messages to built-in and custom endpoints. A maximum of 100 routing rules are allowed for paid hubs and a maximum of 5 routing rules are allowed for free hubs. </summary>
public IList<RoutingRuleProperties> Routes { get; }
/// <summary> The properties of the route that is used as a fall-back route when none of the conditions specified in the 'routes' section are met. This is an optional parameter. When this property is not present in the template, the fallback route is disabled by default. </summary>
public IotHubFallbackRouteProperties FallbackRoute { get; set; }
/// <summary> 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/telemetryoneventgrid. </summary>
public IList<IotHubEnrichmentProperties> Enrichments { get; }
}
}