-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
NetworkFunctionPropertiesFormat.cs
88 lines (82 loc) · 6.28 KB
/
NetworkFunctionPropertiesFormat.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.HybridNetwork.Models
{
/// <summary>
/// Network function properties.
/// Please note <see cref="NetworkFunctionPropertiesFormat"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="NetworkFunctionValueWithoutSecrets"/> and <see cref="NetworkFunctionValueWithSecrets"/>.
/// </summary>
public abstract partial class NetworkFunctionPropertiesFormat
{
/// <summary> Initializes a new instance of <see cref="NetworkFunctionPropertiesFormat"/>. </summary>
protected NetworkFunctionPropertiesFormat()
{
RoleOverrideValues = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of <see cref="NetworkFunctionPropertiesFormat"/>. </summary>
/// <param name="provisioningState"> The provisioning state of the network function resource. </param>
/// <param name="publisherName"> The publisher name for the network function. </param>
/// <param name="publisherScope"> The scope of the publisher. </param>
/// <param name="networkFunctionDefinitionGroupName"> The network function definition group name for the network function. </param>
/// <param name="networkFunctionDefinitionVersion"> The network function definition version for the network function. </param>
/// <param name="networkFunctionDefinitionOfferingLocation"> The location of the network function definition offering. </param>
/// <param name="networkFunctionDefinitionVersionResourceReference">
/// The network function definition version resource reference.
/// Please note <see cref="DeploymentResourceIdReference"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="OpenDeploymentResourceReference"/> and <see cref="SecretDeploymentResourceReference"/>.
/// </param>
/// <param name="nfviType"> The nfvi type for the network function. </param>
/// <param name="nfviId"> The nfviId for the network function. </param>
/// <param name="allowSoftwareUpdate"> Indicates if software updates are allowed during deployment. </param>
/// <param name="configurationType"> The value which indicates if NF values are secrets. </param>
/// <param name="roleOverrideValues"> The role configuration override values from the user. </param>
internal NetworkFunctionPropertiesFormat(ProvisioningState? provisioningState, string publisherName, PublisherScope? publisherScope, string networkFunctionDefinitionGroupName, string networkFunctionDefinitionVersion, string networkFunctionDefinitionOfferingLocation, DeploymentResourceIdReference networkFunctionDefinitionVersionResourceReference, NfviType? nfviType, ResourceIdentifier nfviId, bool? allowSoftwareUpdate, NetworkFunctionConfigurationType configurationType, IList<string> roleOverrideValues)
{
ProvisioningState = provisioningState;
PublisherName = publisherName;
PublisherScope = publisherScope;
NetworkFunctionDefinitionGroupName = networkFunctionDefinitionGroupName;
NetworkFunctionDefinitionVersion = networkFunctionDefinitionVersion;
NetworkFunctionDefinitionOfferingLocation = networkFunctionDefinitionOfferingLocation;
NetworkFunctionDefinitionVersionResourceReference = networkFunctionDefinitionVersionResourceReference;
NfviType = nfviType;
NfviId = nfviId;
AllowSoftwareUpdate = allowSoftwareUpdate;
ConfigurationType = configurationType;
RoleOverrideValues = roleOverrideValues;
}
/// <summary> The provisioning state of the network function resource. </summary>
public ProvisioningState? ProvisioningState { get; }
/// <summary> The publisher name for the network function. </summary>
public string PublisherName { get; }
/// <summary> The scope of the publisher. </summary>
public PublisherScope? PublisherScope { get; }
/// <summary> The network function definition group name for the network function. </summary>
public string NetworkFunctionDefinitionGroupName { get; }
/// <summary> The network function definition version for the network function. </summary>
public string NetworkFunctionDefinitionVersion { get; }
/// <summary> The location of the network function definition offering. </summary>
public string NetworkFunctionDefinitionOfferingLocation { get; }
/// <summary>
/// The network function definition version resource reference.
/// Please note <see cref="DeploymentResourceIdReference"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="OpenDeploymentResourceReference"/> and <see cref="SecretDeploymentResourceReference"/>.
/// </summary>
public DeploymentResourceIdReference NetworkFunctionDefinitionVersionResourceReference { get; set; }
/// <summary> The nfvi type for the network function. </summary>
public NfviType? NfviType { get; set; }
/// <summary> The nfviId for the network function. </summary>
public ResourceIdentifier NfviId { get; set; }
/// <summary> Indicates if software updates are allowed during deployment. </summary>
public bool? AllowSoftwareUpdate { get; set; }
/// <summary> The value which indicates if NF values are secrets. </summary>
internal NetworkFunctionConfigurationType ConfigurationType { get; set; }
/// <summary> The role configuration override values from the user. </summary>
public IList<string> RoleOverrideValues { get; }
}
}