-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
CustomLocationData.cs
69 lines (63 loc) · 4.22 KB
/
CustomLocationData.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
69
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.ExtendedLocation.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ExtendedLocation
{
/// <summary> A class representing the CustomLocation data model. </summary>
public partial class CustomLocationData : TrackedResourceData
{
/// <summary> Initializes a new instance of CustomLocationData. </summary>
/// <param name="location"> The location. </param>
public CustomLocationData(AzureLocation location) : base(location)
{
ClusterExtensionIds = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of CustomLocationData. </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="identity"> Identity for the resource. </param>
/// <param name="authentication"> This is optional input that contains the authentication that should be used to generate the namespace. </param>
/// <param name="clusterExtensionIds"> Contains the reference to the add-on that contains charts to deploy CRDs and operators. </param>
/// <param name="displayName"> Display name for the Custom Locations location. </param>
/// <param name="hostResourceId"> Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions. </param>
/// <param name="hostType"> Type of host the Custom Locations is referencing (Kubernetes, etc...). </param>
/// <param name="namespace"> Kubernetes namespace that will be created on the specified cluster. </param>
/// <param name="provisioningState"> Provisioning State for the Custom Location. </param>
internal CustomLocationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, SystemAssignedServiceIdentity identity, CustomLocationPropertiesAuthentication authentication, IList<string> clusterExtensionIds, string displayName, string hostResourceId, HostType? hostType, string @namespace, string provisioningState) : base(id, name, resourceType, systemData, tags, location)
{
Identity = identity;
Authentication = authentication;
ClusterExtensionIds = clusterExtensionIds;
DisplayName = displayName;
HostResourceId = hostResourceId;
HostType = hostType;
Namespace = @namespace;
ProvisioningState = provisioningState;
}
/// <summary> Identity for the resource. </summary>
public SystemAssignedServiceIdentity Identity { get; set; }
/// <summary> This is optional input that contains the authentication that should be used to generate the namespace. </summary>
public CustomLocationPropertiesAuthentication Authentication { get; set; }
/// <summary> Contains the reference to the add-on that contains charts to deploy CRDs and operators. </summary>
public IList<string> ClusterExtensionIds { get; }
/// <summary> Display name for the Custom Locations location. </summary>
public string DisplayName { get; set; }
/// <summary> Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions. </summary>
public string HostResourceId { get; set; }
/// <summary> Type of host the Custom Locations is referencing (Kubernetes, etc...). </summary>
public HostType? HostType { get; set; }
/// <summary> Kubernetes namespace that will be created on the specified cluster. </summary>
public string Namespace { get; set; }
/// <summary> Provisioning State for the Custom Location. </summary>
public string ProvisioningState { get; set; }
}
}