/
SystemAssignedIdentityData.cs
55 lines (49 loc) · 2.77 KB
/
SystemAssignedIdentityData.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
52
53
54
55
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ManagedServiceIdentities
{
/// <summary>
/// A class representing the SystemAssignedIdentity data model.
/// Describes a system assigned identity resource.
/// </summary>
public partial class SystemAssignedIdentityData : TrackedResourceData
{
/// <summary> Initializes a new instance of SystemAssignedIdentityData. </summary>
/// <param name="location"> The location. </param>
public SystemAssignedIdentityData(AzureLocation location) : base(location)
{
}
/// <summary> Initializes a new instance of SystemAssignedIdentityData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="tenantId"> The id of the tenant which the identity belongs to. </param>
/// <param name="principalId"> The id of the service principal object associated with the created identity. </param>
/// <param name="clientId"> The id of the app associated with the identity. This is a random generated UUID by MSI. </param>
/// <param name="clientSecretUri"> The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials. </param>
internal SystemAssignedIdentityData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, Guid? tenantId, Guid? principalId, Guid? clientId, Uri clientSecretUri) : base(id, name, resourceType, systemData, tags, location)
{
TenantId = tenantId;
PrincipalId = principalId;
ClientId = clientId;
ClientSecretUri = clientSecretUri;
}
/// <summary> The id of the tenant which the identity belongs to. </summary>
public Guid? TenantId { get; }
/// <summary> The id of the service principal object associated with the created identity. </summary>
public Guid? PrincipalId { get; }
/// <summary> The id of the app associated with the identity. This is a random generated UUID by MSI. </summary>
public Guid? ClientId { get; }
/// <summary> The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials. </summary>
public Uri ClientSecretUri { get; }
}
}