-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
LinkedIntegrationRuntimeKeyAuthorization.cs
38 lines (31 loc) · 1.5 KB
/
LinkedIntegrationRuntimeKeyAuthorization.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The key authorization type integration runtime. </summary>
public partial class LinkedIntegrationRuntimeKeyAuthorization : LinkedIntegrationRuntimeType
{
/// <summary> Initializes a new instance of <see cref="LinkedIntegrationRuntimeKeyAuthorization"/>. </summary>
/// <param name="key"> The key used for authorization. </param>
/// <exception cref="ArgumentNullException"> <paramref name="key"/> is null. </exception>
public LinkedIntegrationRuntimeKeyAuthorization(SecureString key)
{
Argument.AssertNotNull(key, nameof(key));
Key = key;
AuthorizationType = "Key";
}
/// <summary> Initializes a new instance of <see cref="LinkedIntegrationRuntimeKeyAuthorization"/>. </summary>
/// <param name="authorizationType"> The authorization type for integration runtime sharing. </param>
/// <param name="key"> The key used for authorization. </param>
internal LinkedIntegrationRuntimeKeyAuthorization(string authorizationType, SecureString key) : base(authorizationType)
{
Key = key;
AuthorizationType = authorizationType ?? "Key";
}
/// <summary> The key used for authorization. </summary>
public SecureString Key { get; set; }
}
}