-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
LinkedIntegrationRuntimeRbacAuthorization.cs
43 lines (36 loc) · 2.1 KB
/
LinkedIntegrationRuntimeRbacAuthorization.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.DataFactory.Models
{
/// <summary> The role based access control (RBAC) authorization type integration runtime. </summary>
public partial class LinkedIntegrationRuntimeRbacAuthorization : LinkedIntegrationRuntimeType
{
/// <summary> Initializes a new instance of <see cref="LinkedIntegrationRuntimeRbacAuthorization"/>. </summary>
/// <param name="resourceId"> The resource identifier of the integration runtime to be shared. </param>
/// <exception cref="ArgumentNullException"> <paramref name="resourceId"/> is null. </exception>
public LinkedIntegrationRuntimeRbacAuthorization(ResourceIdentifier resourceId)
{
Argument.AssertNotNull(resourceId, nameof(resourceId));
ResourceId = resourceId;
AuthorizationType = "RBAC";
}
/// <summary> Initializes a new instance of <see cref="LinkedIntegrationRuntimeRbacAuthorization"/>. </summary>
/// <param name="authorizationType"> The authorization type for integration runtime sharing. </param>
/// <param name="resourceId"> The resource identifier of the integration runtime to be shared. </param>
/// <param name="credential"> The credential reference containing authentication information. </param>
internal LinkedIntegrationRuntimeRbacAuthorization(string authorizationType, ResourceIdentifier resourceId, DataFactoryCredentialReference credential) : base(authorizationType)
{
ResourceId = resourceId;
Credential = credential;
AuthorizationType = authorizationType ?? "RBAC";
}
/// <summary> The resource identifier of the integration runtime to be shared. </summary>
public ResourceIdentifier ResourceId { get; set; }
/// <summary> The credential reference containing authentication information. </summary>
public DataFactoryCredentialReference Credential { get; set; }
}
}