-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ManagedClusterPodIdentity.cs
68 lines (61 loc) · 3.36 KB
/
ManagedClusterPodIdentity.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
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure;
using Azure.Core;
namespace Azure.ResourceManager.ContainerService.Models
{
/// <summary> Details about the pod identity assigned to the Managed Cluster. </summary>
public partial class ManagedClusterPodIdentity
{
/// <summary> Initializes a new instance of ManagedClusterPodIdentity. </summary>
/// <param name="name"> The name of the pod identity. </param>
/// <param name="namespace"> The namespace of the pod identity. </param>
/// <param name="identity"> The user assigned identity details. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="namespace"/> or <paramref name="identity"/> is null. </exception>
public ManagedClusterPodIdentity(string name, string @namespace, ContainerServiceUserAssignedIdentity identity)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(@namespace, nameof(@namespace));
Argument.AssertNotNull(identity, nameof(identity));
Name = name;
Namespace = @namespace;
Identity = identity;
}
/// <summary> Initializes a new instance of ManagedClusterPodIdentity. </summary>
/// <param name="name"> The name of the pod identity. </param>
/// <param name="namespace"> The namespace of the pod identity. </param>
/// <param name="bindingSelector"> The binding selector to use for the AzureIdentityBinding resource. </param>
/// <param name="identity"> The user assigned identity details. </param>
/// <param name="provisioningState"> The current provisioning state of the pod identity. </param>
/// <param name="provisioningInfo"></param>
internal ManagedClusterPodIdentity(string name, string @namespace, string bindingSelector, ContainerServiceUserAssignedIdentity identity, ManagedClusterPodIdentityProvisioningState? provisioningState, ManagedClusterPodIdentityProvisioningInfo provisioningInfo)
{
Name = name;
Namespace = @namespace;
BindingSelector = bindingSelector;
Identity = identity;
ProvisioningState = provisioningState;
ProvisioningInfo = provisioningInfo;
}
/// <summary> The name of the pod identity. </summary>
public string Name { get; set; }
/// <summary> The namespace of the pod identity. </summary>
public string Namespace { get; set; }
/// <summary> The binding selector to use for the AzureIdentityBinding resource. </summary>
public string BindingSelector { get; set; }
/// <summary> The user assigned identity details. </summary>
public ContainerServiceUserAssignedIdentity Identity { get; set; }
/// <summary> The current provisioning state of the pod identity. </summary>
public ManagedClusterPodIdentityProvisioningState? ProvisioningState { get; }
/// <summary> Gets the provisioning info. </summary>
internal ManagedClusterPodIdentityProvisioningInfo ProvisioningInfo { get; }
/// <summary> Details about the error. </summary>
public ResponseError ErrorDetail
{
get => ProvisioningInfo?.ErrorDetail;
}
}
}