-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
NodeTypeVmssExtension.cs
145 lines (138 loc) · 8.7 KB
/
NodeTypeVmssExtension.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// 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;
namespace Azure.ResourceManager.ServiceFabricManagedClusters.Models
{
/// <summary> Specifies set of extensions that should be installed onto the virtual machines. </summary>
public partial class NodeTypeVmssExtension
{
/// <summary> Initializes a new instance of NodeTypeVmssExtension. </summary>
/// <param name="name"> The name of the extension. </param>
/// <param name="publisher"> The name of the extension handler publisher. </param>
/// <param name="vmssExtensionPropertiesType"> Specifies the type of the extension; an example is "CustomScriptExtension". </param>
/// <param name="typeHandlerVersion"> Specifies the version of the script handler. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/>, <paramref name="publisher"/>, <paramref name="vmssExtensionPropertiesType"/> or <paramref name="typeHandlerVersion"/> is null. </exception>
public NodeTypeVmssExtension(string name, string publisher, string vmssExtensionPropertiesType, string typeHandlerVersion)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(publisher, nameof(publisher));
Argument.AssertNotNull(vmssExtensionPropertiesType, nameof(vmssExtensionPropertiesType));
Argument.AssertNotNull(typeHandlerVersion, nameof(typeHandlerVersion));
Name = name;
Publisher = publisher;
VmssExtensionPropertiesType = vmssExtensionPropertiesType;
TypeHandlerVersion = typeHandlerVersion;
ProvisionAfterExtensions = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of NodeTypeVmssExtension. </summary>
/// <param name="name"> The name of the extension. </param>
/// <param name="publisher"> The name of the extension handler publisher. </param>
/// <param name="vmssExtensionPropertiesType"> Specifies the type of the extension; an example is "CustomScriptExtension". </param>
/// <param name="typeHandlerVersion"> Specifies the version of the script handler. </param>
/// <param name="autoUpgradeMinorVersion"> Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. </param>
/// <param name="settings"> Json formatted public settings for the extension. </param>
/// <param name="protectedSettings"> The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. </param>
/// <param name="forceUpdateTag"> If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. </param>
/// <param name="provisionAfterExtensions"> Collection of extension names after which this extension needs to be provisioned. </param>
/// <param name="provisioningState"> The provisioning state, which only appears in the response. </param>
/// <param name="isAutomaticUpgradeEnabled"> Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. </param>
internal NodeTypeVmssExtension(string name, string publisher, string vmssExtensionPropertiesType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, BinaryData settings, BinaryData protectedSettings, string forceUpdateTag, IList<string> provisionAfterExtensions, string provisioningState, bool? isAutomaticUpgradeEnabled)
{
Name = name;
Publisher = publisher;
VmssExtensionPropertiesType = vmssExtensionPropertiesType;
TypeHandlerVersion = typeHandlerVersion;
AutoUpgradeMinorVersion = autoUpgradeMinorVersion;
Settings = settings;
ProtectedSettings = protectedSettings;
ForceUpdateTag = forceUpdateTag;
ProvisionAfterExtensions = provisionAfterExtensions;
ProvisioningState = provisioningState;
IsAutomaticUpgradeEnabled = isAutomaticUpgradeEnabled;
}
/// <summary> The name of the extension. </summary>
public string Name { get; set; }
/// <summary> The name of the extension handler publisher. </summary>
public string Publisher { get; set; }
/// <summary> Specifies the type of the extension; an example is "CustomScriptExtension". </summary>
public string VmssExtensionPropertiesType { get; set; }
/// <summary> Specifies the version of the script handler. </summary>
public string TypeHandlerVersion { get; set; }
/// <summary> Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. </summary>
public bool? AutoUpgradeMinorVersion { get; set; }
/// <summary>
/// Json formatted public settings for the extension.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formated json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData Settings { get; set; }
/// <summary>
/// The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formated json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData ProtectedSettings { get; set; }
/// <summary> If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed. </summary>
public string ForceUpdateTag { get; set; }
/// <summary> Collection of extension names after which this extension needs to be provisioned. </summary>
public IList<string> ProvisionAfterExtensions { get; }
/// <summary> The provisioning state, which only appears in the response. </summary>
public string ProvisioningState { get; }
/// <summary> Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. </summary>
public bool? IsAutomaticUpgradeEnabled { get; set; }
}
}