-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VirtualMachineExtensionData.cs
190 lines (182 loc) · 11.1 KB
/
VirtualMachineExtensionData.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// 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.Compute.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Compute
{
/// <summary>
/// A class representing the VirtualMachineExtension data model.
/// Describes a Virtual Machine Extension.
/// </summary>
public partial class VirtualMachineExtensionData : TrackedResourceData
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted 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>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="VirtualMachineExtensionData"/>. </summary>
/// <param name="location"> The location. </param>
public VirtualMachineExtensionData(AzureLocation location) : base(location)
{
ProvisionAfterExtensions = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineExtensionData"/>. </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="forceUpdateTag"> How the extension handler should be forced to update even if the extension configuration has not changed. </param>
/// <param name="publisher"> The name of the extension handler publisher. </param>
/// <param name="extensionType"> 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="enableAutomaticUpgrade"> Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. </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="provisioningState"> The provisioning state, which only appears in the response. </param>
/// <param name="instanceView"> The virtual machine extension instance view. </param>
/// <param name="suppressFailures"> Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. </param>
/// <param name="keyVaultProtectedSettings"> The extensions protected settings that are passed by reference, and consumed from key vault. </param>
/// <param name="provisionAfterExtensions"> Collection of extension names after which this extension needs to be provisioned. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal VirtualMachineExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, VirtualMachineExtensionInstanceView instanceView, bool? suppressFailures, KeyVaultSecretReference keyVaultProtectedSettings, IList<string> provisionAfterExtensions, IDictionary<string, BinaryData> serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
ForceUpdateTag = forceUpdateTag;
Publisher = publisher;
ExtensionType = extensionType;
TypeHandlerVersion = typeHandlerVersion;
AutoUpgradeMinorVersion = autoUpgradeMinorVersion;
EnableAutomaticUpgrade = enableAutomaticUpgrade;
Settings = settings;
ProtectedSettings = protectedSettings;
ProvisioningState = provisioningState;
InstanceView = instanceView;
SuppressFailures = suppressFailures;
KeyVaultProtectedSettings = keyVaultProtectedSettings;
ProvisionAfterExtensions = provisionAfterExtensions;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> Initializes a new instance of <see cref="VirtualMachineExtensionData"/> for deserialization. </summary>
internal VirtualMachineExtensionData()
{
}
/// <summary> How the extension handler should be forced to update even if the extension configuration has not changed. </summary>
public string ForceUpdateTag { 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 ExtensionType { 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> Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. </summary>
public bool? EnableAutomaticUpgrade { 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 formatted 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 formatted 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> The provisioning state, which only appears in the response. </summary>
public string ProvisioningState { get; }
/// <summary> The virtual machine extension instance view. </summary>
public VirtualMachineExtensionInstanceView InstanceView { get; set; }
/// <summary> Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. </summary>
public bool? SuppressFailures { get; set; }
/// <summary> The extensions protected settings that are passed by reference, and consumed from key vault. </summary>
public KeyVaultSecretReference KeyVaultProtectedSettings { get; set; }
/// <summary> Collection of extension names after which this extension needs to be provisioned. </summary>
public IList<string> ProvisionAfterExtensions { get; }
}
}