-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
DigitalTwinsServiceBusProperties.cs
51 lines (45 loc) · 3.73 KB
/
DigitalTwinsServiceBusProperties.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
46
47
48
49
50
51
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.DigitalTwins.Models
{
/// <summary> Properties related to ServiceBus. </summary>
public partial class DigitalTwinsServiceBusProperties : DigitalTwinsEndpointResourceProperties
{
/// <summary> Initializes a new instance of DigitalTwinsServiceBusProperties. </summary>
public DigitalTwinsServiceBusProperties()
{
EndpointType = EndpointType.ServiceBus;
}
/// <summary> Initializes a new instance of DigitalTwinsServiceBusProperties. </summary>
/// <param name="endpointType"> The type of Digital Twins endpoint. </param>
/// <param name="provisioningState"> The provisioning state. </param>
/// <param name="createdOn"> Time when the Endpoint was added to DigitalTwinsInstance. </param>
/// <param name="authenticationType"> Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified. </param>
/// <param name="deadLetterSecret"> Dead letter storage secret for key-based authentication. Will be obfuscated during read. </param>
/// <param name="deadLetterUri"> Dead letter storage URL for identity-based authentication. </param>
/// <param name="identity"> Managed identity properties for the endpoint. </param>
/// <param name="primaryConnectionString"> PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. </param>
/// <param name="secondaryConnectionString"> SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. </param>
/// <param name="endpointUri"> The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol 'sb://'. </param>
/// <param name="entityPath"> The ServiceBus Topic name for identity-based authentication. </param>
internal DigitalTwinsServiceBusProperties(EndpointType endpointType, DigitalTwinsEndpointProvisioningState? provisioningState, DateTimeOffset? createdOn, DigitalTwinsAuthenticationType? authenticationType, string deadLetterSecret, Uri deadLetterUri, DigitalTwinsManagedIdentityReference identity, string primaryConnectionString, string secondaryConnectionString, Uri endpointUri, string entityPath) : base(endpointType, provisioningState, createdOn, authenticationType, deadLetterSecret, deadLetterUri, identity)
{
PrimaryConnectionString = primaryConnectionString;
SecondaryConnectionString = secondaryConnectionString;
EndpointUri = endpointUri;
EntityPath = entityPath;
EndpointType = endpointType;
}
/// <summary> PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. </summary>
public string PrimaryConnectionString { get; set; }
/// <summary> SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read. </summary>
public string SecondaryConnectionString { get; set; }
/// <summary> The URL of the ServiceBus namespace for identity-based authentication. It must include the protocol 'sb://'. </summary>
public Uri EndpointUri { get; set; }
/// <summary> The ServiceBus Topic name for identity-based authentication. </summary>
public string EntityPath { get; set; }
}
}