diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs
new file mode 100644
index 000000000000..5f66df257afb
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs
@@ -0,0 +1,761 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ public partial class ActiveSessionHostConfigurationData : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ writer.WritePropertyName("properties"u8);
+ writer.WriteStartObject();
+ if (options.Format != "W" && Optional.IsDefined(Version))
+ {
+ writer.WritePropertyName("version"u8);
+ writer.WriteStringValue(Version.Value, "O");
+ }
+ if (Optional.IsDefined(FriendlyName))
+ {
+ writer.WritePropertyName("friendlyName"u8);
+ writer.WriteStringValue(FriendlyName);
+ }
+ if (Optional.IsCollectionDefined(VmTags))
+ {
+ writer.WritePropertyName("vmTags"u8);
+ writer.WriteStartObject();
+ foreach (var item in VmTags)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteStringValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
+ if (Optional.IsDefined(VmLocation))
+ {
+ writer.WritePropertyName("vmLocation"u8);
+ writer.WriteStringValue(VmLocation);
+ }
+ if (Optional.IsDefined(VmResourceGroup))
+ {
+ writer.WritePropertyName("vmResourceGroup"u8);
+ writer.WriteStringValue(VmResourceGroup);
+ }
+ writer.WritePropertyName("vmNamePrefix"u8);
+ writer.WriteStringValue(VmNamePrefix);
+ if (Optional.IsCollectionDefined(AvailabilityZones))
+ {
+ writer.WritePropertyName("availabilityZones"u8);
+ writer.WriteStartArray();
+ foreach (var item in AvailabilityZones)
+ {
+ writer.WriteNumberValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ writer.WritePropertyName("networkInfo"u8);
+ writer.WriteObjectValue(NetworkInfo, options);
+ writer.WritePropertyName("vmSizeId"u8);
+ writer.WriteStringValue(VmSizeId);
+ writer.WritePropertyName("diskInfo"u8);
+ writer.WriteObjectValue(DiskInfo, options);
+ if (Optional.IsDefined(CustomConfigurationScriptUri))
+ {
+ writer.WritePropertyName("customConfigurationScriptUrl"u8);
+ writer.WriteStringValue(CustomConfigurationScriptUri.AbsoluteUri);
+ }
+ writer.WritePropertyName("imageInfo"u8);
+ writer.WriteObjectValue(ImageInfo, options);
+ writer.WritePropertyName("domainInfo"u8);
+ writer.WriteObjectValue(DomainInfo, options);
+ if (Optional.IsDefined(SecurityInfo))
+ {
+ writer.WritePropertyName("securityInfo"u8);
+ writer.WriteObjectValue(SecurityInfo, options);
+ }
+ writer.WritePropertyName("vmAdminCredentials"u8);
+ writer.WriteObjectValue(VmAdminCredentials, options);
+ if (Optional.IsDefined(BootDiagnosticsInfo))
+ {
+ writer.WritePropertyName("bootDiagnosticsInfo"u8);
+ writer.WriteObjectValue(BootDiagnosticsInfo, options);
+ }
+ writer.WriteEndObject();
+ }
+
+ ActiveSessionHostConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActiveSessionHostConfigurationData(document.RootElement, options);
+ }
+
+ internal static ActiveSessionHostConfigurationData DeserializeActiveSessionHostConfigurationData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ SystemData systemData = default;
+ DateTimeOffset? version = default;
+ string friendlyName = default;
+ IDictionary vmTags = default;
+ string vmLocation = default;
+ string vmResourceGroup = default;
+ string vmNamePrefix = default;
+ IList availabilityZones = default;
+ NetworkInfoProperties networkInfo = default;
+ string vmSizeId = default;
+ DiskInfoProperties diskInfo = default;
+ Uri customConfigurationScriptUrl = default;
+ ImageInfoProperties imageInfo = default;
+ DomainInfoProperties domainInfo = default;
+ SecurityInfoProperties securityInfo = default;
+ KeyVaultCredentialsProperties vmAdminCredentials = default;
+ BootDiagnosticsInfoProperties bootDiagnosticsInfo = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("version"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ version = property0.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property0.NameEquals("friendlyName"u8))
+ {
+ friendlyName = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmTags"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property1 in property0.Value.EnumerateObject())
+ {
+ dictionary.Add(property1.Name, property1.Value.GetString());
+ }
+ vmTags = dictionary;
+ continue;
+ }
+ if (property0.NameEquals("vmLocation"u8))
+ {
+ vmLocation = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmResourceGroup"u8))
+ {
+ vmResourceGroup = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmNamePrefix"u8))
+ {
+ vmNamePrefix = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("availabilityZones"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetInt32());
+ }
+ availabilityZones = array;
+ continue;
+ }
+ if (property0.NameEquals("networkInfo"u8))
+ {
+ networkInfo = NetworkInfoProperties.DeserializeNetworkInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("vmSizeId"u8))
+ {
+ vmSizeId = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("diskInfo"u8))
+ {
+ diskInfo = DiskInfoProperties.DeserializeDiskInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("customConfigurationScriptUrl"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ customConfigurationScriptUrl = new Uri(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("imageInfo"u8))
+ {
+ imageInfo = ImageInfoProperties.DeserializeImageInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("domainInfo"u8))
+ {
+ domainInfo = DomainInfoProperties.DeserializeDomainInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("securityInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ securityInfo = SecurityInfoProperties.DeserializeSecurityInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("vmAdminCredentials"u8))
+ {
+ vmAdminCredentials = KeyVaultCredentialsProperties.DeserializeKeyVaultCredentialsProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("bootDiagnosticsInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ bootDiagnosticsInfo = BootDiagnosticsInfoProperties.DeserializeBootDiagnosticsInfoProperties(property0.Value, options);
+ continue;
+ }
+ }
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActiveSessionHostConfigurationData(
+ id,
+ name,
+ type,
+ systemData,
+ version,
+ friendlyName,
+ vmTags ?? new ChangeTrackingDictionary(),
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones ?? new ChangeTrackingList(),
+ networkInfo,
+ vmSizeId,
+ diskInfo,
+ customConfigurationScriptUrl,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
+ serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" name: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Name))
+ {
+ builder.Append(" name: ");
+ if (Name.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{Name}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{Name}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" id: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Id))
+ {
+ builder.Append(" id: ");
+ builder.AppendLine($"'{Id.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" systemData: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(SystemData))
+ {
+ builder.Append(" systemData: ");
+ builder.AppendLine($"'{SystemData.ToString()}'");
+ }
+ }
+
+ builder.Append(" properties:");
+ builder.AppendLine(" {");
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Version), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" version: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Version))
+ {
+ builder.Append(" version: ");
+ var formattedDateTimeString = TypeFormatters.ToString(Version.Value, "o");
+ builder.AppendLine($"'{formattedDateTimeString}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(FriendlyName), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" friendlyName: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(FriendlyName))
+ {
+ builder.Append(" friendlyName: ");
+ if (FriendlyName.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{FriendlyName}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{FriendlyName}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmTags), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmTags: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(VmTags))
+ {
+ if (VmTags.Any())
+ {
+ builder.Append(" vmTags: ");
+ builder.AppendLine("{");
+ foreach (var item in VmTags)
+ {
+ builder.Append($" '{item.Key}': ");
+ if (item.Value == null)
+ {
+ builder.Append("null");
+ continue;
+ }
+ if (item.Value.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{item.Value}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{item.Value}'");
+ }
+ }
+ builder.AppendLine(" }");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmLocation), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmLocation: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmLocation))
+ {
+ builder.Append(" vmLocation: ");
+ if (VmLocation.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmLocation}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmLocation}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmResourceGroup), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmResourceGroup: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmResourceGroup))
+ {
+ builder.Append(" vmResourceGroup: ");
+ if (VmResourceGroup.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmResourceGroup}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmResourceGroup}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmNamePrefix), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmNamePrefix: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmNamePrefix))
+ {
+ builder.Append(" vmNamePrefix: ");
+ if (VmNamePrefix.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmNamePrefix}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmNamePrefix}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AvailabilityZones), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" availabilityZones: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(AvailabilityZones))
+ {
+ if (AvailabilityZones.Any())
+ {
+ builder.Append(" availabilityZones: ");
+ builder.AppendLine("[");
+ foreach (var item in AvailabilityZones)
+ {
+ builder.AppendLine($" {item}");
+ }
+ builder.AppendLine(" ]");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NetworkInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" networkInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(NetworkInfo))
+ {
+ builder.Append(" networkInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, NetworkInfo, options, 4, false, " networkInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmSizeId), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmSizeId: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmSizeId))
+ {
+ builder.Append(" vmSizeId: ");
+ if (VmSizeId.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmSizeId}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmSizeId}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("VirtualMachineDiskType", out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" diskInfo: ");
+ builder.AppendLine("{");
+ builder.AppendLine(" diskInfo: {");
+ builder.Append(" type: ");
+ builder.AppendLine(propertyOverride);
+ builder.AppendLine(" }");
+ builder.AppendLine(" }");
+ }
+ else
+ {
+ if (Optional.IsDefined(DiskInfo))
+ {
+ builder.Append(" diskInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, DiskInfo, options, 4, false, " diskInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomConfigurationScriptUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" customConfigurationScriptUrl: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(CustomConfigurationScriptUri))
+ {
+ builder.Append(" customConfigurationScriptUrl: ");
+ builder.AppendLine($"'{CustomConfigurationScriptUri.AbsoluteUri}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ImageInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" imageInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ImageInfo))
+ {
+ builder.Append(" imageInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, ImageInfo, options, 4, false, " imageInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" domainInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(DomainInfo))
+ {
+ builder.Append(" domainInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, DomainInfo, options, 4, false, " domainInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SecurityInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" securityInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(SecurityInfo))
+ {
+ builder.Append(" securityInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, SecurityInfo, options, 4, false, " securityInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmAdminCredentials), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmAdminCredentials: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmAdminCredentials))
+ {
+ builder.Append(" vmAdminCredentials: ");
+ BicepSerializationHelpers.AppendChildObject(builder, VmAdminCredentials, options, 4, false, " vmAdminCredentials: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(BootDiagnosticsInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" bootDiagnosticsInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(BootDiagnosticsInfo))
+ {
+ builder.Append(" bootDiagnosticsInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, BootDiagnosticsInfo, options, 4, false, " bootDiagnosticsInfo: ");
+ }
+ }
+
+ builder.AppendLine(" }");
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActiveSessionHostConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeActiveSessionHostConfigurationData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs
new file mode 100644
index 000000000000..f1051371f765
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ ///
+ /// A class representing the ActiveSessionHostConfiguration data model.
+ /// Schema for ActiveSessionHostConfiguration properties.
+ ///
+ public partial class ActiveSessionHostConfigurationData : ResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The prefix that should be associated with session host names.
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// Image configurations of the HostPool.
+ /// Domain configurations of session hosts.
+ /// Local Admin credentials for session hosts.
+ /// , , , , , or is null.
+ public ActiveSessionHostConfigurationData(string vmNamePrefix, NetworkInfoProperties networkInfo, string vmSizeId, DiskInfoProperties diskInfo, ImageInfoProperties imageInfo, DomainInfoProperties domainInfo, KeyVaultCredentialsProperties vmAdminCredentials)
+ {
+ Argument.AssertNotNull(vmNamePrefix, nameof(vmNamePrefix));
+ Argument.AssertNotNull(networkInfo, nameof(networkInfo));
+ Argument.AssertNotNull(vmSizeId, nameof(vmSizeId));
+ Argument.AssertNotNull(diskInfo, nameof(diskInfo));
+ Argument.AssertNotNull(imageInfo, nameof(imageInfo));
+ Argument.AssertNotNull(domainInfo, nameof(domainInfo));
+ Argument.AssertNotNull(vmAdminCredentials, nameof(vmAdminCredentials));
+
+ VmTags = new ChangeTrackingDictionary();
+ VmNamePrefix = vmNamePrefix;
+ AvailabilityZones = new ChangeTrackingList();
+ NetworkInfo = networkInfo;
+ VmSizeId = vmSizeId;
+ DiskInfo = diskInfo;
+ ImageInfo = imageInfo;
+ DomainInfo = domainInfo;
+ VmAdminCredentials = vmAdminCredentials;
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of the HostPool.
+ /// Domain configurations of session hosts.
+ /// Security information.
+ /// Local Admin credentials for session hosts.
+ /// Boot Diagnostics information.
+ /// Keeps track of any properties unknown to the library.
+ internal ActiveSessionHostConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? version, string friendlyName, IDictionary vmTags, string vmLocation, string vmResourceGroup, string vmNamePrefix, IList availabilityZones, NetworkInfoProperties networkInfo, string vmSizeId, DiskInfoProperties diskInfo, Uri customConfigurationScriptUri, ImageInfoProperties imageInfo, DomainInfoProperties domainInfo, SecurityInfoProperties securityInfo, KeyVaultCredentialsProperties vmAdminCredentials, BootDiagnosticsInfoProperties bootDiagnosticsInfo, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Version = version;
+ FriendlyName = friendlyName;
+ VmTags = vmTags;
+ VmLocation = vmLocation;
+ VmResourceGroup = vmResourceGroup;
+ VmNamePrefix = vmNamePrefix;
+ AvailabilityZones = availabilityZones;
+ NetworkInfo = networkInfo;
+ VmSizeId = vmSizeId;
+ DiskInfo = diskInfo;
+ CustomConfigurationScriptUri = customConfigurationScriptUri;
+ ImageInfo = imageInfo;
+ DomainInfo = domainInfo;
+ SecurityInfo = securityInfo;
+ VmAdminCredentials = vmAdminCredentials;
+ BootDiagnosticsInfo = bootDiagnosticsInfo;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal ActiveSessionHostConfigurationData()
+ {
+ }
+
+ /// The timestamp of the last update.
+ [WirePath("properties.version")]
+ public DateTimeOffset? Version { get; }
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ [WirePath("properties.friendlyName")]
+ public string FriendlyName { get; set; }
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ [WirePath("properties.vmTags")]
+ public IDictionary VmTags { get; }
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ [WirePath("properties.vmLocation")]
+ public string VmLocation { get; set; }
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ [WirePath("properties.vmResourceGroup")]
+ public string VmResourceGroup { get; set; }
+ /// The prefix that should be associated with session host names.
+ [WirePath("properties.vmNamePrefix")]
+ public string VmNamePrefix { get; set; }
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ [WirePath("properties.availabilityZones")]
+ public IList AvailabilityZones { get; }
+ /// Network information.
+ [WirePath("properties.networkInfo")]
+ public NetworkInfoProperties NetworkInfo { get; set; }
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ [WirePath("properties.vmSizeId")]
+ public string VmSizeId { get; set; }
+ /// Disk information.
+ internal DiskInfoProperties DiskInfo { get; set; }
+ /// The disk type used by virtual machine in hostpool session host.
+ [WirePath("properties.diskInfo.type")]
+ public VirtualMachineDiskType? VirtualMachineDiskType
+ {
+ get => DiskInfo is null ? default(VirtualMachineDiskType?) : DiskInfo.VirtualMachineDiskType;
+ set
+ {
+ DiskInfo = value.HasValue ? new DiskInfoProperties(value.Value) : null;
+ }
+ }
+
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ [WirePath("properties.customConfigurationScriptUrl")]
+ public Uri CustomConfigurationScriptUri { get; set; }
+ /// Image configurations of the HostPool.
+ [WirePath("properties.imageInfo")]
+ public ImageInfoProperties ImageInfo { get; set; }
+ /// Domain configurations of session hosts.
+ [WirePath("properties.domainInfo")]
+ public DomainInfoProperties DomainInfo { get; set; }
+ /// Security information.
+ [WirePath("properties.securityInfo")]
+ public SecurityInfoProperties SecurityInfo { get; set; }
+ /// Local Admin credentials for session hosts.
+ [WirePath("properties.vmAdminCredentials")]
+ public KeyVaultCredentialsProperties VmAdminCredentials { get; set; }
+ /// Boot Diagnostics information.
+ [WirePath("properties.bootDiagnosticsInfo")]
+ public BootDiagnosticsInfoProperties BootDiagnosticsInfo { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs
new file mode 100644
index 000000000000..c95105c78e89
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ public partial class ActiveSessionHostConfigurationResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ActiveSessionHostConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ActiveSessionHostConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs
new file mode 100644
index 000000000000..dd86a0bd8a1a
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ ///
+ /// A Class representing an ActiveSessionHostConfiguration along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetActiveSessionHostConfigurationResource method.
+ /// Otherwise you can get one from its parent resource using the GetActiveSessionHostConfiguration method.
+ ///
+ public partial class ActiveSessionHostConfigurationResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The hostPoolName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostPoolName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _activeSessionHostConfigurationClientDiagnostics;
+ private readonly ActiveSessionHostConfigurationsRestOperations _activeSessionHostConfigurationRestClient;
+ private readonly ActiveSessionHostConfigurationData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.DesktopVirtualization/hostPools/activeSessionHostConfigurations";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ActiveSessionHostConfigurationResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ActiveSessionHostConfigurationResource(ArmClient client, ActiveSessionHostConfigurationData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal ActiveSessionHostConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _activeSessionHostConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string activeSessionHostConfigurationApiVersion);
+ _activeSessionHostConfigurationRestClient = new ActiveSessionHostConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, activeSessionHostConfigurationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual ActiveSessionHostConfigurationData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get a ActiveSessionHostConfiguration.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default
+ ///
+ /// -
+ /// Operation Id
+ /// ActiveSessionHostConfigurations_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _activeSessionHostConfigurationClientDiagnostics.CreateScope("ActiveSessionHostConfigurationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _activeSessionHostConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ActiveSessionHostConfigurationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a ActiveSessionHostConfiguration.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default
+ ///
+ /// -
+ /// Operation Id
+ /// ActiveSessionHostConfigurations_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _activeSessionHostConfigurationClientDiagnostics.CreateScope("ActiveSessionHostConfigurationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _activeSessionHostConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ActiveSessionHostConfigurationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
index a8a7cee93187..2d2452265ac1 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdate
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string ap
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual Response Get(string appAttachPackageNam
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string filter
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = null, C
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string appAttachPackageNam
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -405,7 +405,7 @@ public virtual Response Exists(string appAttachPackageName, CancellationTo
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -450,7 +450,7 @@ public virtual async Task> GetIfExist
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs
index 47672944dc3d..c21c549d38f6 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.Serialization.cs
@@ -40,7 +40,53 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
base.JsonModelWriteCore(writer, options);
writer.WritePropertyName("properties"u8);
- writer.WriteObjectValue(Properties, options);
+ writer.WriteStartObject();
+ if (options.Format != "W" && Optional.IsDefined(ProvisioningState))
+ {
+ writer.WritePropertyName("provisioningState"u8);
+ writer.WriteStringValue(ProvisioningState.Value.ToString());
+ }
+ if (Optional.IsDefined(Image))
+ {
+ writer.WritePropertyName("image"u8);
+ writer.WriteObjectValue(Image, options);
+ }
+ if (Optional.IsCollectionDefined(HostPoolReferences))
+ {
+ writer.WritePropertyName("hostPoolReferences"u8);
+ writer.WriteStartArray();
+ foreach (var item in HostPoolReferences)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(KeyVaultURL))
+ {
+ writer.WritePropertyName("keyVaultURL"u8);
+ writer.WriteStringValue(KeyVaultURL);
+ }
+ if (Optional.IsDefined(FailHealthCheckOnStagingFailure))
+ {
+ writer.WritePropertyName("failHealthCheckOnStagingFailure"u8);
+ writer.WriteStringValue(FailHealthCheckOnStagingFailure.Value.ToString());
+ }
+ if (Optional.IsDefined(PackageOwnerName))
+ {
+ writer.WritePropertyName("packageOwnerName"u8);
+ writer.WriteStringValue(PackageOwnerName);
+ }
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ writer.WritePropertyName("packageLookbackUrl"u8);
+ writer.WriteStringValue(PackageLookbackUri.AbsoluteUri);
+ }
+ if (Optional.IsDefined(CustomData))
+ {
+ writer.WritePropertyName("customData"u8);
+ writer.WriteStringValue(CustomData);
+ }
+ writer.WriteEndObject();
}
AppAttachPackageData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
@@ -63,22 +109,24 @@ internal static AppAttachPackageData DeserializeAppAttachPackageData(JsonElement
{
return null;
}
- AppAttachPackageProperties properties = default;
IDictionary tags = default;
AzureLocation location = default;
ResourceIdentifier id = default;
string name = default;
ResourceType type = default;
SystemData systemData = default;
+ AppAttachPackageProvisioningState? provisioningState = default;
+ AppAttachPackageInfoProperties image = default;
+ IList hostPoolReferences = default;
+ string keyVaultURL = default;
+ FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default;
+ string packageOwnerName = default;
+ Uri packageLookbackUrl = default;
+ string customData = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("properties"u8))
- {
- properties = AppAttachPackageProperties.DeserializeAppAttachPackageProperties(property.Value, options);
- continue;
- }
if (property.NameEquals("tags"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -122,6 +170,83 @@ internal static AppAttachPackageData DeserializeAppAttachPackageData(JsonElement
systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
continue;
}
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("provisioningState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ provisioningState = new AppAttachPackageProvisioningState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("image"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ image = AppAttachPackageInfoProperties.DeserializeAppAttachPackageInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("hostPoolReferences"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ hostPoolReferences = array;
+ continue;
+ }
+ if (property0.NameEquals("keyVaultURL"u8))
+ {
+ keyVaultURL = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("failHealthCheckOnStagingFailure"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ failHealthCheckOnStagingFailure = new FailHealthCheckOnStagingFailure(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("packageOwnerName"u8))
+ {
+ packageOwnerName = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("packageLookbackUrl"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ packageLookbackUrl = new Uri(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("customData"u8))
+ {
+ customData = property0.Value.GetString();
+ continue;
+ }
+ }
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
@@ -135,7 +260,14 @@ internal static AppAttachPackageData DeserializeAppAttachPackageData(JsonElement
systemData,
tags ?? new ChangeTrackingDictionary(),
location,
- properties,
+ provisioningState,
+ image,
+ hostPoolReferences ?? new ChangeTrackingList(),
+ keyVaultURL,
+ failHealthCheckOnStagingFailure,
+ packageOwnerName,
+ packageLookbackUrl,
+ customData,
serializedAdditionalRawData);
}
@@ -222,21 +354,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
- hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride);
- if (hasPropertyOverride)
- {
- builder.Append(" properties: ");
- builder.AppendLine(propertyOverride);
- }
- else
- {
- if (Optional.IsDefined(Properties))
- {
- builder.Append(" properties: ");
- BicepSerializationHelpers.AppendChildObject(builder, Properties, options, 2, false, " properties: ");
- }
- }
-
hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride);
if (hasPropertyOverride)
{
@@ -267,6 +384,174 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ builder.Append(" properties:");
+ builder.AppendLine(" {");
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" provisioningState: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ProvisioningState))
+ {
+ builder.Append(" provisioningState: ");
+ builder.AppendLine($"'{ProvisioningState.Value.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Image), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" image: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Image))
+ {
+ builder.Append(" image: ");
+ BicepSerializationHelpers.AppendChildObject(builder, Image, options, 4, false, " image: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(HostPoolReferences), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" hostPoolReferences: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(HostPoolReferences))
+ {
+ if (HostPoolReferences.Any())
+ {
+ builder.Append(" hostPoolReferences: ");
+ builder.AppendLine("[");
+ foreach (var item in HostPoolReferences)
+ {
+ if (item == null)
+ {
+ builder.Append("null");
+ continue;
+ }
+ if (item.Contains(Environment.NewLine))
+ {
+ builder.AppendLine(" '''");
+ builder.AppendLine($"{item}'''");
+ }
+ else
+ {
+ builder.AppendLine($" '{item}'");
+ }
+ }
+ builder.AppendLine(" ]");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(KeyVaultURL), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" keyVaultURL: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(KeyVaultURL))
+ {
+ builder.Append(" keyVaultURL: ");
+ if (KeyVaultURL.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{KeyVaultURL}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{KeyVaultURL}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(FailHealthCheckOnStagingFailure), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" failHealthCheckOnStagingFailure: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(FailHealthCheckOnStagingFailure))
+ {
+ builder.Append(" failHealthCheckOnStagingFailure: ");
+ builder.AppendLine($"'{FailHealthCheckOnStagingFailure.Value.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PackageOwnerName), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" packageOwnerName: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PackageOwnerName))
+ {
+ builder.Append(" packageOwnerName: ");
+ if (PackageOwnerName.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{PackageOwnerName}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{PackageOwnerName}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PackageLookbackUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine($"'{PackageLookbackUri.AbsoluteUri}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomData), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" customData: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(CustomData))
+ {
+ builder.Append(" customData: ");
+ if (CustomData.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{CustomData}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{CustomData}'");
+ }
+ }
+ }
+
+ builder.AppendLine(" }");
builder.AppendLine("}");
return BinaryData.FromString(builder.ToString());
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs
index c13e57ba66fa..79d3490995b6 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageData.cs
@@ -53,13 +53,9 @@ public partial class AppAttachPackageData : TrackedResourceData
/// Initializes a new instance of .
/// The location.
- /// Detailed properties for App Attach Package.
- /// is null.
- public AppAttachPackageData(AzureLocation location, AppAttachPackageProperties properties) : base(location)
+ public AppAttachPackageData(AzureLocation location) : base(location)
{
- Argument.AssertNotNull(properties, nameof(properties));
-
- Properties = properties;
+ HostPoolReferences = new ChangeTrackingList();
}
/// Initializes a new instance of .
@@ -69,11 +65,25 @@ public AppAttachPackageData(AzureLocation location, AppAttachPackageProperties p
/// The systemData.
/// The tags.
/// The location.
- /// Detailed properties for App Attach Package.
+ /// The provisioning state of the App Attach Package.
+ /// Detailed properties for App Attach Package.
+ /// List of Hostpool resource Ids.
+ /// URL path to certificate name located in keyVault.
+ /// Parameter indicating how the health check should behave if this package fails staging.
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ /// Field that can be populated with custom data and filtered on in list GET calls.
/// Keeps track of any properties unknown to the library.
- internal AppAttachPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppAttachPackageProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ internal AppAttachPackageData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, AppAttachPackageProvisioningState? provisioningState, AppAttachPackageInfoProperties image, IList hostPoolReferences, string keyVaultURL, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, string packageOwnerName, Uri packageLookbackUri, string customData, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
- Properties = properties;
+ ProvisioningState = provisioningState;
+ Image = image;
+ HostPoolReferences = hostPoolReferences;
+ KeyVaultURL = keyVaultURL;
+ FailHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure;
+ PackageOwnerName = packageOwnerName;
+ PackageLookbackUri = packageLookbackUri;
+ CustomData = customData;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -82,8 +92,29 @@ internal AppAttachPackageData()
{
}
+ /// The provisioning state of the App Attach Package.
+ [WirePath("properties.provisioningState")]
+ public AppAttachPackageProvisioningState? ProvisioningState { get; }
/// Detailed properties for App Attach Package.
- [WirePath("properties")]
- public AppAttachPackageProperties Properties { get; set; }
+ [WirePath("properties.image")]
+ public AppAttachPackageInfoProperties Image { get; set; }
+ /// List of Hostpool resource Ids.
+ [WirePath("properties.hostPoolReferences")]
+ public IList HostPoolReferences { get; }
+ /// URL path to certificate name located in keyVault.
+ [WirePath("properties.keyVaultURL")]
+ public string KeyVaultURL { get; set; }
+ /// Parameter indicating how the health check should behave if this package fails staging.
+ [WirePath("properties.failHealthCheckOnStagingFailure")]
+ public FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get; set; }
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ [WirePath("properties.packageOwnerName")]
+ public string PackageOwnerName { get; set; }
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ [WirePath("properties.packageLookbackUrl")]
+ public Uri PackageLookbackUri { get; set; }
+ /// Field that can be populated with custom data and filtered on in list GET calls.
+ [WirePath("properties.customData")]
+ public string CustomData { get; set; }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
index 61eb87ae10fa..b341983aee5e 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
@@ -102,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -142,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -182,7 +183,7 @@ public virtual Response Get(CancellationToken cancella
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -191,15 +192,16 @@ public virtual Response Get(CancellationToken cancella
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Allows force delete.
/// The cancellation token to use.
- public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default)
{
using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete");
scope.Start();
try
{
- var response = await _appAttachPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
- var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ var response = await _appAttachPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken).ConfigureAwait(false);
+ var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force);
var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken);
if (waitUntil == WaitUntil.Completed)
@@ -226,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -235,15 +237,16 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Allows force delete.
/// The cancellation token to use.
- public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default)
{
using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete");
scope.Start();
try
{
- var response = _appAttachPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
- var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ var response = _appAttachPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken);
+ var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force);
var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken);
if (waitUntil == WaitUntil.Completed)
@@ -270,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -278,7 +281,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
///
///
- /// Object containing App Attach Package definition.
+ /// The resource properties to be updated.
/// The cancellation token to use.
/// is null.
public virtual async Task> UpdateAsync(AppAttachPackagePatch patch, CancellationToken cancellationToken = default)
@@ -312,7 +315,7 @@ public virtual async Task> UpdateAsync(AppAtt
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
@@ -320,7 +323,7 @@ public virtual async Task> UpdateAsync(AppAtt
///
///
///
- /// Object containing App Attach Package definition.
+ /// The resource properties to be updated.
/// The cancellation token to use.
/// is null.
public virtual Response Update(AppAttachPackagePatch patch, CancellationToken cancellationToken = default)
@@ -340,5 +343,363 @@ public virtual Response Update(AppAttachPackagePatch p
throw;
}
}
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues[key] = value;
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues[key] = value;
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken);
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.Remove(key);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-04-01-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.Remove(key);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
index 41d4d2aba32f..2bd854ec363c 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
@@ -17,133 +17,221 @@ namespace Azure.ResourceManager.DesktopVirtualization.Models
/// Model factory for models.
public static partial class ArmDesktopVirtualizationModelFactory
{
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
/// The tags.
/// The location.
- /// ObjectId of Workspace. (internal use).
- /// Description of Workspace.
- /// Friendly name of Workspace.
- /// List of applicationGroup resource Ids.
- /// Is cloud pc resource.
- /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
- /// List of private endpoint connection associated with the specified resource.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- /// A new instance for mocking.
- public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, IEnumerable applicationGroupReferences = null, bool? isCloudPCResource = null, DesktopVirtualizationPublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
+ /// The provisioning state of the App Attach Package.
+ /// Detailed properties for App Attach Package.
+ /// List of Hostpool resource Ids.
+ /// URL path to certificate name located in keyVault.
+ /// Parameter indicating how the health check should behave if this package fails staging.
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ /// Field that can be populated with custom data and filtered on in list GET calls.
+ /// A new instance for mocking.
+ public static AppAttachPackageData AppAttachPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppAttachPackageProvisioningState? provisioningState = null, AppAttachPackageInfoProperties image = null, IEnumerable hostPoolReferences = null, string keyVaultURL = null, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = null, string packageOwnerName = null, Uri packageLookbackUri = null, string customData = null)
{
tags ??= new Dictionary();
- applicationGroupReferences ??= new List();
- privateEndpointConnections ??= new List();
+ hostPoolReferences ??= new List();
- return new VirtualWorkspaceData(
+ return new AppAttachPackageData(
id,
name,
resourceType,
systemData,
tags,
location,
- objectId,
- description,
- friendlyName,
- applicationGroupReferences?.ToList(),
- isCloudPCResource,
- publicNetworkAccess,
- privateEndpointConnections?.ToList(),
- managedBy,
- kind,
- etag,
- identity,
- sku,
- plan,
+ provisioningState,
+ image,
+ hostPoolReferences?.ToList(),
+ keyVaultURL,
+ failHealthCheckOnStagingFailure,
+ packageOwnerName,
+ packageLookbackUri,
+ customData,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The group ids for the private endpoint resource.
- /// The private endpoint resource.
- /// A collection of information about the state of the connection between service consumer and provider.
- /// The provisioning state of the private endpoint connection resource.
- /// A new instance for mocking.
- public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null)
+ /// The tags.
+ /// The location.
+ /// The managed service identities assigned to this resource.
+ /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
+ /// Details of the resource plan.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// ObjectId of ApplicationGroup. (internal use).
+ /// Description of ApplicationGroup.
+ /// Friendly name of ApplicationGroup.
+ /// HostPool arm path of ApplicationGroup.
+ /// Workspace arm path of ApplicationGroup.
+ /// Resource Type of ApplicationGroup.
+ /// Is cloud pc resource.
+ /// Boolean representing whether the applicationGroup is show in the feed.
+ /// A new instance for mocking.
+ public static VirtualApplicationGroupData VirtualApplicationGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ETag? etag = null, string kind = null, string managedBy = null, ArmPlan plan = null, DesktopVirtualizationSku sku = null, string objectId = null, string description = null, string friendlyName = null, ResourceIdentifier hostPoolId = null, ResourceIdentifier workspaceId = null, VirtualApplicationGroupType applicationGroupType = default, bool? isCloudPCResource = null, bool? showInFeed = null)
{
- groupIds ??= new List();
+ tags ??= new Dictionary();
- return new DesktopVirtualizationPrivateEndpointConnection(
+ return new VirtualApplicationGroupData(
id,
name,
resourceType,
systemData,
- groupIds?.ToList(),
- privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null,
- connectionState,
- provisioningState,
+ tags,
+ location,
+ identity,
+ etag,
+ kind,
+ managedBy,
+ plan,
+ sku,
+ objectId,
+ description,
+ friendlyName,
+ hostPoolId,
+ workspaceId,
+ applicationGroupType,
+ isCloudPCResource,
+ showInFeed,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The group ids for the private endpoint resource.
- /// The private endpoint resource.
- /// A collection of information about the state of the connection between service consumer and provider.
- /// The provisioning state of the private endpoint connection resource.
- /// A new instance for mocking.
- public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null)
+ /// The tags.
+ /// The location.
+ /// The managed service identities assigned to this resource.
+ /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
+ /// Details of the resource plan.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// ObjectId of HostPool. (internal use).
+ /// Friendly name of HostPool.
+ /// Description of HostPool.
+ /// HostPool type for desktop.
+ /// PersonalDesktopAssignment type for HostPool.
+ /// Custom rdp property of HostPool.
+ /// The max session limit of HostPool.
+ /// The type of the load balancer.
+ /// The ring number of HostPool.
+ /// Is validation environment.
+ /// The registration info of HostPool.
+ /// VM template for sessionhosts configuration within hostpool.
+ /// List of applicationGroup links.
+ /// List of App Attach Package links.
+ /// URL to customer ADFS server for signing WVD SSO certificates.
+ /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
+ /// Path to Azure KeyVault storing the secret used for communication to ADFS.
+ /// The type of single sign on Secret Type.
+ /// The type of preferred application group type, default to Desktop Application Group.
+ /// The flag to turn on/off StartVMOnConnect feature.
+ /// Is cloud pc resource.
+ /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
+ /// The session host configuration for updating agent, monitoring agent, and stack component.
+ /// List of private endpoint connection associated with the specified resource.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// The type of management for this hostpool, Automated or Standard. The default value is Automated.
+ /// A new instance for mocking.
+ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ETag? etag = null, string kind = null, string managedBy = null, ArmPlan plan = null, DesktopVirtualizationSku sku = null, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, IEnumerable applicationGroupReferences = null, IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ManagedPrivateUDP? managedPrivateUDP = null, DirectUDP? directUDP = null, PublicUDP? publicUDP = null, RelayUDP? relayUDP = null, ManagementType? managementType = null)
{
- groupIds ??= new List();
+ tags ??= new Dictionary();
+ applicationGroupReferences ??= new List();
+ appAttachPackageReferences ??= new List();
+ privateEndpointConnections ??= new List();
- return new DesktopVirtualizationPrivateEndpointConnectionDataData(
+ return new HostPoolData(
id,
name,
resourceType,
systemData,
- groupIds?.ToList(),
- privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null,
- connectionState,
- provisioningState,
+ tags,
+ location,
+ identity,
+ etag,
+ kind,
+ managedBy,
+ plan,
+ sku,
+ objectId,
+ friendlyName,
+ description,
+ hostPoolType,
+ personalDesktopAssignmentType,
+ customRdpProperty,
+ maxSessionLimit,
+ loadBalancerType,
+ ring,
+ isValidationEnvironment,
+ registrationInfo,
+ vmTemplate,
+ applicationGroupReferences?.ToList(),
+ appAttachPackageReferences?.ToList(),
+ ssoAdfsAuthority,
+ ssoClientId,
+ ssoClientSecretKeyVaultPath,
+ ssoSecretType,
+ preferredAppGroupType,
+ startVmOnConnect,
+ isCloudPCResource,
+ publicNetworkAccess,
+ agentUpdate,
+ privateEndpointConnections?.ToList(),
+ managedPrivateUDP,
+ directUDP,
+ publicUDP,
+ relayUDP,
+ managementType,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The private link resource group id.
- /// The private link resource required member names.
- /// The private link resource Private link DNS zone name.
- /// A new instance for mocking.
- public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualizationPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null)
+ /// Resource properties.
+ /// A new instance for mocking.
+ public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PrivateEndpointConnectionProperties properties = null)
{
- requiredMembers ??= new List();
- requiredZoneNames ??= new List();
-
- return new DesktopVirtualizationPrivateLinkResourceData(
+ return new DesktopVirtualizationPrivateEndpointConnection(
id,
name,
resourceType,
systemData,
- groupId,
- requiredMembers?.ToList(),
- requiredZoneNames?.ToList(),
+ properties,
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The group ids for the private endpoint resource.
+ /// The private endpoint resource.
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// The provisioning state of the private endpoint connection resource.
+ /// A new instance for mocking.
+ public static PrivateEndpointConnectionProperties PrivateEndpointConnectionProperties(IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null)
+ {
+ groupIds ??= new List();
+
+ return new PrivateEndpointConnectionProperties(groupIds?.ToList(), privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -151,6 +239,12 @@ public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualization
/// The systemData.
/// The tags.
/// The location.
+ /// The managed service identities assigned to this resource.
+ /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
+ /// Details of the resource plan.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
/// ObjectId of scaling plan. (internal use).
/// Description of scaling plan.
/// User friendly name of scaling plan.
@@ -159,14 +253,8 @@ public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualization
/// Exclusion tag for scaling plan.
/// List of ScalingPlanPooledSchedule definitions.
/// List of ScalingHostPoolReference definitions.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
/// A new instance for mocking.
- public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, string timeZone = null, ScalingHostPoolType? scalingHostPoolType = null, string exclusionTag = null, IEnumerable schedules = null, IEnumerable hostPoolReferences = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
+ public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ETag? etag = null, string kind = null, string managedBy = null, ArmPlan plan = null, DesktopVirtualizationSku sku = null, string objectId = null, string description = null, string friendlyName = null, string timeZone = null, ScalingHostPoolType? scalingHostPoolType = null, string exclusionTag = null, IEnumerable schedules = null, IEnumerable hostPoolReferences = null)
{
tags ??= new Dictionary();
schedules ??= new List();
@@ -179,6 +267,12 @@ public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, stri
systemData,
tags,
location,
+ identity,
+ etag,
+ kind,
+ managedBy,
+ plan,
+ sku,
objectId,
description,
friendlyName,
@@ -187,288 +281,100 @@ public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, stri
exclusionTag,
schedules?.ToList(),
hostPoolReferences?.ToList(),
- managedBy,
- kind,
- etag,
- identity,
- sku,
- plan,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Set of days of the week on which this schedule is active.
- /// Starting time for ramp up period.
- /// Load balancing algorithm for ramp up period.
- /// Minimum host percentage for ramp up period.
- /// Capacity threshold for ramp up period.
- /// Starting time for peak period.
- /// Load balancing algorithm for peak period.
- /// Starting time for ramp down period.
- /// Load balancing algorithm for ramp down period.
- /// Minimum host percentage for ramp down period.
- /// Capacity threshold for ramp down period.
- /// Should users be logged off forcefully from hosts.
- /// Specifies when to stop hosts during ramp down period.
- /// Number of minutes to wait to stop hosts during ramp down period.
- /// Notification message for users during ramp down period.
- /// Starting time for off-peak period.
- /// Load balancing algorithm for off-peak period.
- /// A new instance for mocking.
- public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
+ /// The tags.
+ /// The location.
+ /// The managed service identities assigned to this resource.
+ /// If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
+ /// Details of the resource plan.
+ /// The SKU (Stock Keeping Unit) assigned to this resource.
+ /// ObjectId of Workspace. (internal use).
+ /// Description of Workspace.
+ /// Friendly name of Workspace.
+ /// List of applicationGroup resource Ids.
+ /// Is cloud pc resource.
+ /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
+ /// List of private endpoint connection associated with the specified resource.
+ /// A new instance for mocking.
+ public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ETag? etag = null, string kind = null, string managedBy = null, ArmPlan plan = null, DesktopVirtualizationSku sku = null, string objectId = null, string description = null, string friendlyName = null, IEnumerable applicationGroupReferences = null, bool? isCloudPCResource = null, DesktopVirtualizationPublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null)
{
- daysOfWeek ??= new List();
+ tags ??= new Dictionary();
+ applicationGroupReferences ??= new List();
+ privateEndpointConnections ??= new List();
- return new ScalingPlanPooledScheduleData(
- id,
- name,
- resourceType,
- systemData,
- daysOfWeek?.ToList(),
- rampUpStartTime,
- rampUpLoadBalancingAlgorithm,
- rampUpMinimumHostsPct,
- rampUpCapacityThresholdPct,
- peakStartTime,
- peakLoadBalancingAlgorithm,
- rampDownStartTime,
- rampDownLoadBalancingAlgorithm,
- rampDownMinimumHostsPct,
- rampDownCapacityThresholdPct,
- rampDownForceLogoffUsers,
- rampDownStopHostsWhen,
- rampDownWaitTimeMinutes,
- rampDownNotificationMessage,
- offPeakStartTime,
- offPeakLoadBalancingAlgorithm,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Set of days of the week on which this schedule is active.
- /// Starting time for ramp up period.
- /// Load balancing algorithm for ramp up period.
- /// Minimum host percentage for ramp up period.
- /// Capacity threshold for ramp up period.
- /// Starting time for peak period.
- /// Load balancing algorithm for peak period.
- /// Starting time for ramp down period.
- /// Load balancing algorithm for ramp down period.
- /// Minimum host percentage for ramp down period.
- /// Capacity threshold for ramp down period.
- /// Should users be logged off forcefully from hosts.
- /// Specifies when to stop hosts during ramp down period.
- /// Number of minutes to wait to stop hosts during ramp down period.
- /// Notification message for users during ramp down period.
- /// Starting time for off-peak period.
- /// Load balancing algorithm for off-peak period.
- /// A new instance for mocking.
- public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
- {
- daysOfWeek ??= new List();
-
- return new ScalingPlanPooledSchedulePatch(
- id,
- name,
- resourceType,
- systemData,
- daysOfWeek?.ToList(),
- rampUpStartTime,
- rampUpLoadBalancingAlgorithm,
- rampUpMinimumHostsPct,
- rampUpCapacityThresholdPct,
- peakStartTime,
- peakLoadBalancingAlgorithm,
- rampDownStartTime,
- rampDownLoadBalancingAlgorithm,
- rampDownMinimumHostsPct,
- rampDownCapacityThresholdPct,
- rampDownForceLogoffUsers,
- rampDownStopHostsWhen,
- rampDownWaitTimeMinutes,
- rampDownNotificationMessage,
- offPeakStartTime,
- offPeakLoadBalancingAlgorithm,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Set of days of the week on which this schedule is active.
- /// Starting time for ramp up period.
- /// The desired startup behavior during the ramp up period for personal vms in the hostpool.
- /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- /// Action to be taken after a user disconnect during the ramp up period.
- /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- /// Action to be taken after a logoff during the ramp up period.
- /// The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- /// Starting time for peak period.
- /// The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- /// Action to be taken after a user disconnect during the peak period.
- /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- /// Action to be taken after a logoff during the peak period.
- /// The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- /// Starting time for ramp down period.
- /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- /// Action to be taken after a user disconnect during the ramp down period.
- /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- /// Action to be taken after a logoff during the ramp down period.
- /// The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- /// Starting time for off-peak period.
- /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- /// Action to be taken after a user disconnect during the off-peak period.
- /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- /// Action to be taken after a logoff during the off-peak period.
- /// The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- /// A new instance for mocking.
- public static ScalingPlanPersonalScheduleData ScalingPlanPersonalScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, StartupBehavior? rampUpAutoStartHosts = null, SetStartVmOnConnect? rampUpStartVmOnConnect = null, SessionHandlingOperation? rampUpActionOnDisconnect = null, int? rampUpMinutesToWaitOnDisconnect = null, SessionHandlingOperation? rampUpActionOnLogoff = null, int? rampUpMinutesToWaitOnLogoff = null, ScalingActionTime peakStartTime = null, SetStartVmOnConnect? peakStartVmOnConnect = null, SessionHandlingOperation? peakActionOnDisconnect = null, int? peakMinutesToWaitOnDisconnect = null, SessionHandlingOperation? peakActionOnLogoff = null, int? peakMinutesToWaitOnLogoff = null, ScalingActionTime rampDownStartTime = null, SetStartVmOnConnect? rampDownStartVmOnConnect = null, SessionHandlingOperation? rampDownActionOnDisconnect = null, int? rampDownMinutesToWaitOnDisconnect = null, SessionHandlingOperation? rampDownActionOnLogoff = null, int? rampDownMinutesToWaitOnLogoff = null, ScalingActionTime offPeakStartTime = null, SetStartVmOnConnect? offPeakStartVmOnConnect = null, SessionHandlingOperation? offPeakActionOnDisconnect = null, int? offPeakMinutesToWaitOnDisconnect = null, SessionHandlingOperation? offPeakActionOnLogoff = null, int? offPeakMinutesToWaitOnLogoff = null)
- {
- daysOfWeek ??= new List();
-
- return new ScalingPlanPersonalScheduleData(
- id,
- name,
- resourceType,
- systemData,
- daysOfWeek?.ToList(),
- rampUpStartTime,
- rampUpAutoStartHosts,
- rampUpStartVmOnConnect,
- rampUpActionOnDisconnect,
- rampUpMinutesToWaitOnDisconnect,
- rampUpActionOnLogoff,
- rampUpMinutesToWaitOnLogoff,
- peakStartTime,
- peakStartVmOnConnect,
- peakActionOnDisconnect,
- peakMinutesToWaitOnDisconnect,
- peakActionOnLogoff,
- peakMinutesToWaitOnLogoff,
- rampDownStartTime,
- rampDownStartVmOnConnect,
- rampDownActionOnDisconnect,
- rampDownMinutesToWaitOnDisconnect,
- rampDownActionOnLogoff,
- rampDownMinutesToWaitOnLogoff,
- offPeakStartTime,
- offPeakStartVmOnConnect,
- offPeakActionOnDisconnect,
- offPeakMinutesToWaitOnDisconnect,
- offPeakActionOnLogoff,
- offPeakMinutesToWaitOnLogoff,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of ApplicationGroup. (internal use).
- /// Description of ApplicationGroup.
- /// Friendly name of ApplicationGroup.
- /// HostPool arm path of ApplicationGroup.
- /// Workspace arm path of ApplicationGroup.
- /// Resource Type of ApplicationGroup.
- /// Is cloud pc resource.
- /// Boolean representing whether the applicationGroup is show in the feed.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- /// A new instance for mocking.
- public static VirtualApplicationGroupData VirtualApplicationGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, ResourceIdentifier hostPoolId = null, ResourceIdentifier workspaceId = null, VirtualApplicationGroupType applicationGroupType = default, bool? isCloudPCResource = null, bool? showInFeed = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
- {
- tags ??= new Dictionary();
-
- return new VirtualApplicationGroupData(
+ return new VirtualWorkspaceData(
id,
name,
resourceType,
systemData,
tags,
location,
+ identity,
+ etag,
+ kind,
+ managedBy,
+ plan,
+ sku,
objectId,
description,
friendlyName,
- hostPoolId,
- workspaceId,
- applicationGroupType,
+ applicationGroupReferences?.ToList(),
isCloudPCResource,
- showInFeed,
- managedBy,
- kind,
- etag,
- identity,
- sku,
- plan,
+ publicNetworkAccess,
+ privateEndpointConnections?.ToList(),
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
/// tags to be updated.
- /// Description of ApplicationGroup.
- /// Friendly name of ApplicationGroup.
- /// Boolean representing whether the applicationGroup is show in the feed.
- /// A new instance for mocking.
- public static VirtualApplicationGroupPatch VirtualApplicationGroupPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string description = null, string friendlyName = null, bool? showInFeed = null)
+ /// Detailed properties for App Attach Package.
+ /// A new instance for mocking.
+ public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AppAttachPackagePatchProperties properties = null)
{
tags ??= new Dictionary();
- return new VirtualApplicationGroupPatch(
+ return new AppAttachPackagePatch(
id,
name,
resourceType,
systemData,
tags,
- description,
- friendlyName,
- showInFeed,
+ properties,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Alias of StartMenuItem.
- /// Path to the file of StartMenuItem.
- /// Command line arguments for StartMenuItem.
- /// Path to the icon.
- /// Index of the icon.
- /// A new instance for mocking.
- public static DesktopVirtualizationStartMenuItem DesktopVirtualizationStartMenuItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string appAlias = null, string filePath = null, string commandLineArguments = null, string iconPath = null, int? iconIndex = null)
+ /// tags to be updated.
+ /// ApplicationGroup properties that can be patched.
+ /// A new instance for mocking.
+ public static VirtualApplicationGroupPatch VirtualApplicationGroupPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, ApplicationGroupPatchProperties properties = null)
{
- return new DesktopVirtualizationStartMenuItem(
+ tags ??= new Dictionary();
+
+ return new VirtualApplicationGroupPatch(
id,
name,
resourceType,
systemData,
- appAlias,
- filePath,
- commandLineArguments,
- iconPath,
- iconIndex,
+ tags,
+ properties,
serializedAdditionalRawData: null);
}
@@ -542,172 +448,372 @@ public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of HostPool. (internal use).
- /// Friendly name of HostPool.
- /// Description of HostPool.
- /// HostPool type for desktop.
- /// PersonalDesktopAssignment type for HostPool.
- /// Custom rdp property of HostPool.
- /// The max session limit of HostPool.
- /// The type of the load balancer.
- /// The ring number of HostPool.
- /// Is validation environment.
- /// The registration info of HostPool.
- /// VM template for sessionhosts configuration within hostpool.
- /// List of applicationGroup links.
- /// List of App Attach Package links.
- /// URL to customer ADFS server for signing WVD SSO certificates.
- /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
- /// Path to Azure KeyVault storing the secret used for communication to ADFS.
- /// The type of single sign on Secret Type.
- /// The type of preferred application group type, default to Desktop Application Group.
- /// The flag to turn on/off StartVMOnConnect feature.
- /// Is cloud pc resource.
- /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
- /// The session host configuration for updating agent, monitoring agent, and stack component.
- /// List of private endpoint connection associated with the specified resource.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- /// A new instance for mocking.
- public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, IEnumerable applicationGroupReferences = null, IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
+ /// Detailed properties for StartMenuItem.
+ /// A new instance for mocking.
+ public static DesktopVirtualizationStartMenuItem DesktopVirtualizationStartMenuItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, StartMenuItemProperties properties = null)
+ {
+ return new DesktopVirtualizationStartMenuItem(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// tags to be updated.
+ /// HostPool properties that can be patched.
+ /// A new instance for mocking.
+ public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, HostPoolPatchProperties properties = null)
{
tags ??= new Dictionary();
- applicationGroupReferences ??= new List();
- appAttachPackageReferences ??= new List();
- privateEndpointConnections ??= new List();
- return new HostPoolData(
+ return new HostPoolPatch(
id,
name,
resourceType,
systemData,
tags,
- location,
- objectId,
- friendlyName,
- description,
- hostPoolType,
- personalDesktopAssignmentType,
- customRdpProperty,
- maxSessionLimit,
- loadBalancerType,
- ring,
- isValidationEnvironment,
- registrationInfo,
- vmTemplate,
- applicationGroupReferences?.ToList(),
- appAttachPackageReferences?.ToList(),
- ssoAdfsAuthority,
- ssoClientId,
- ssoClientSecretKeyVaultPath,
- ssoSecretType,
- preferredAppGroupType,
- startVmOnConnect,
- isCloudPCResource,
- publicNetworkAccess,
- agentUpdate,
- privateEndpointConnections?.ToList(),
- managedBy,
- kind,
- etag,
- identity,
- sku,
- plan,
+ properties,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// tags to be updated.
- /// Friendly name of HostPool.
- /// Description of HostPool.
- /// Custom rdp property of HostPool.
- /// The max session limit of HostPool.
- /// PersonalDesktopAssignment type for HostPool.
- /// The type of the load balancer.
- /// The ring number of HostPool.
- /// Is validation environment.
- /// The registration info of HostPool.
- /// VM template for sessionhosts configuration within hostpool.
- /// URL to customer ADFS server for signing WVD SSO certificates.
- /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
- /// Path to Azure KeyVault storing the secret used for communication to ADFS.
- /// The type of single sign on Secret Type.
- /// The type of preferred application group type, default to Desktop Application Group.
- /// The flag to turn on/off StartVMOnConnect feature.
- /// Enabled to allow this resource to be access from the public network.
- /// The session host configuration for updating agent, monitoring agent, and stack component.
- /// A new instance for mocking.
- public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string friendlyName = null, string description = null, string customRdpProperty = null, int? maxSessionLimit = null, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, HostPoolLoadBalancerType? loadBalancerType = null, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfoPatch registrationInfo = null, string vmTemplate = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType? preferredAppGroupType = null, bool? startVmOnConnect = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdatePatchProperties agentUpdate = null)
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of the HostPool.
+ /// Domain configurations of session hosts.
+ /// Security information.
+ /// Local Admin credentials for session hosts.
+ /// Boot Diagnostics information.
+ /// A new instance for mocking.
+ public static ActiveSessionHostConfigurationData ActiveSessionHostConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? version = null, string friendlyName = null, IDictionary vmTags = null, string vmLocation = null, string vmResourceGroup = null, string vmNamePrefix = null, IEnumerable availabilityZones = null, NetworkInfoProperties networkInfo = null, string vmSizeId = null, VirtualMachineDiskType? virtualMachineDiskType = null, Uri customConfigurationScriptUri = null, ImageInfoProperties imageInfo = null, DomainInfoProperties domainInfo = null, SecurityInfoProperties securityInfo = null, KeyVaultCredentialsProperties vmAdminCredentials = null, BootDiagnosticsInfoProperties bootDiagnosticsInfo = null)
{
- tags ??= new Dictionary();
+ vmTags ??= new Dictionary();
+ availabilityZones ??= new List();
- return new HostPoolPatch(
+ return new ActiveSessionHostConfigurationData(
id,
name,
resourceType,
systemData,
- tags,
+ version,
friendlyName,
- description,
- customRdpProperty,
- maxSessionLimit,
- personalDesktopAssignmentType,
- loadBalancerType,
- ring,
- isValidationEnvironment,
- registrationInfo,
- vmTemplate,
- ssoAdfsAuthority,
- ssoClientId,
- ssoClientSecretKeyVaultPath,
- ssoSecretType,
- preferredAppGroupType,
- startVmOnConnect,
- publicNetworkAccess,
- agentUpdate,
+ vmTags,
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones?.ToList(),
+ networkInfo,
+ vmSizeId,
+ virtualMachineDiskType.HasValue ? new DiskInfoProperties(virtualMachineDiskType.Value, serializedAdditionalRawData: null) : null,
+ customConfigurationScriptUri,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// ObjectId of user session. (internal use).
- /// The user principal name.
- /// Application type of application.
- /// State of user session.
- /// The active directory user name.
- /// The timestamp of the user session create.
- /// A new instance for mocking.
- public static UserSessionData UserSessionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, string userPrincipalName = null, VirtualApplicationType? applicationType = null, UserSessionState? sessionState = null, string activeDirectoryUserName = null, DateTimeOffset? createOn = null)
+ /// Detailed properties for ExpandMsixImage.
+ /// A new instance for mocking.
+ public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ExpandMsixImageProperties properties = null)
{
- return new UserSessionData(
+ return new ExpandMsixImage(
id,
name,
resourceType,
systemData,
- objectId,
- userPrincipalName,
- applicationType,
- sessionState,
- activeDirectoryUserName,
- createOn,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Expiration time of registration token.
+ /// The registration token base64 encoded string.
+ /// A new instance for mocking.
+ public static RegistrationTokenMinimal RegistrationTokenMinimal(DateTimeOffset? expireOn = null, string token = null)
+ {
+ return new RegistrationTokenMinimal(expireOn, token, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// VHD/CIM image path on Network Share.
+ /// Package Name from appxmanifest.xml.
+ /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
+ /// User friendly Name to be displayed in the portal.
+ /// Relative Path to the package inside the image.
+ /// Specifies how to register Package in feed.
+ /// Make this version of the package the active one across the hostpool.
+ /// List of package dependencies.
+ /// Package version found in the appxmanifest.xml.
+ /// Date Package was last updated, found in the appxmanifest.xml.
+ /// List of package applications.
+ /// A new instance for mocking.
+ public static MsixPackageData MsixPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = null, bool? isActive = null, IEnumerable packageDependencies = null, string version = null, DateTimeOffset? lastUpdatedOn = null, IEnumerable packageApplications = null)
+ {
+ packageDependencies ??= new List();
+ packageApplications ??= new List();
+
+ return new MsixPackageData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ imagePath,
+ packageName,
+ packageFamilyName,
+ displayName,
+ packageRelativePath,
+ isRegularRegistration,
+ isActive,
+ packageDependencies?.ToList(),
+ version,
+ lastUpdatedOn,
+ packageApplications?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Detailed properties for MSIX Package.
+ /// A new instance for mocking.
+ public static MsixPackagePatch MsixPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MsixPackagePatchProperties properties = null)
+ {
+ return new MsixPackagePatch(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The group ids for the private endpoint resource.
+ /// The private endpoint resource.
+ /// A collection of information about the state of the connection between service consumer and provider.
+ /// The provisioning state of the private endpoint connection resource.
+ /// A new instance for mocking.
+ public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirtualizationPrivateEndpointConnectionDataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable groupIds = null, ResourceIdentifier privateEndpointId = null, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState = null, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState = null)
+ {
+ groupIds ??= new List();
+
+ return new DesktopVirtualizationPrivateEndpointConnectionDataData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ groupIds?.ToList(),
+ privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null,
+ connectionState,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Resource properties.
+ /// A new instance for mocking.
+ public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualizationPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DesktopVirtualizationPrivateLinkResourceProperties properties = null)
+ {
+ return new DesktopVirtualizationPrivateLinkResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The private link resource group id.
+ /// The private link resource required member names.
+ /// The private link resource Private link DNS zone name.
+ /// A new instance for mocking.
+ public static DesktopVirtualizationPrivateLinkResourceProperties DesktopVirtualizationPrivateLinkResourceProperties(string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null)
+ {
+ requiredMembers ??= new List();
+ requiredZoneNames ??= new List();
+
+ return new DesktopVirtualizationPrivateLinkResourceProperties(groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Provisioning state of the Session Host Configuration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk Information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of HostPool.
+ /// Domain configurations of session hosts.
+ /// Security Information.
+ /// Local Admin credentials for session hosts.".
+ /// Boot Diagnostics Information.
+ /// A new instance for mocking.
+ public static SessionHostConfigurationData SessionHostConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? version = null, string friendlyName = null, ProvisioningStateSHC? provisioningState = null, IDictionary vmTags = null, string vmLocation = null, string vmResourceGroup = null, string vmNamePrefix = null, IEnumerable availabilityZones = null, NetworkInfoProperties networkInfo = null, string vmSizeId = null, VirtualMachineDiskType? virtualMachineDiskType = null, Uri customConfigurationScriptUri = null, ImageInfoProperties imageInfo = null, DomainInfoProperties domainInfo = null, SecurityInfoProperties securityInfo = null, KeyVaultCredentialsProperties vmAdminCredentials = null, BootDiagnosticsInfoProperties bootDiagnosticsInfo = null)
+ {
+ vmTags ??= new Dictionary();
+ availabilityZones ??= new List();
+
+ return new SessionHostConfigurationData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ version,
+ friendlyName,
+ provisioningState,
+ vmTags,
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones?.ToList(),
+ networkInfo,
+ vmSizeId,
+ virtualMachineDiskType.HasValue ? new DiskInfoProperties(virtualMachineDiskType.Value, serializedAdditionalRawData: null) : null,
+ customConfigurationScriptUri,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Time zone for sessionHostManagement operations as defined in https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid. Must be set if useLocalTime is true.
+ /// Parameters for a hostpool update.
+ /// A new instance for mocking.
+ public static SessionHostManagementData SessionHostManagementData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scheduledDateTimeZone = null, HostPoolUpdateConfigurationProperties update = null)
+ {
+ return new SessionHostManagementData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ scheduledDateTimeZone,
+ update,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Action types for controlling hostpool update.
+ /// The cancel message sent to the user on the session host. This is can only be specified if the action is 'Cancel'.
+ /// A new instance for mocking.
+ public static HostPoolUpdateControlParameter HostPoolUpdateControlParameter(HostPoolUpdateAction action = default, string cancelMessage = null)
+ {
+ return new HostPoolUpdateControlParameter(action, cancelMessage, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified ID for the async operation.
+ /// Name of the async operation.
+ /// Percent of the operation that is complete.
+ /// The start time of the operation.
+ /// The end time of the operation.
+ /// If present, details of the operation error.
+ /// Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled.
+ /// Properties bag to hold custom RP properties for sessionHostManagement Update Statuses.
+ /// A new instance for mocking.
+ public static SessionHostManagementUpdateStatus SessionHostManagementUpdateStatus(ResourceIdentifier id = null, string name = null, double? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, ResponseError error = null, SessionHostManagementUpdateOperationStatus status = default, SessionHostManagementUpdateStatusProperties properties = null)
+ {
+ return new SessionHostManagementUpdateStatus(
+ id,
+ name,
+ percentComplete,
+ startOn,
+ endOn,
+ error,
+ status,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The Log Analytics.
+ /// Progress information on the sessionHostManagement operation.
+ /// The timestamp that the update is scheduled for.
+ /// SessionHostManagement properties used for the operation.
+ /// A new instance for mocking.
+ public static SessionHostManagementUpdateStatusProperties SessionHostManagementUpdateStatusProperties(string correlationId = null, SessionHostManagementOperationProgress progress = null, DateTimeOffset? scheduledOn = null, SessionHostManagementData sessionHostManagement = null)
+ {
+ return new SessionHostManagementUpdateStatusProperties(correlationId, progress, scheduledOn, sessionHostManagement, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Time that the sessionHostManagement operation was created.
+ /// The number of sessionHosts to be started in the sessionHostManagement operation.
+ /// The number of sessionHosts in progress in the sessionHostManagement operation.
+ /// The number of sessionHosts completed in the sessionHostManagement operation.
+ /// The number of sessionHosts rollback failed in the sessionHostManagement operation.
+ /// A new instance for mocking.
+ public static SessionHostManagementOperationProgress SessionHostManagementOperationProgress(DateTimeOffset? executionStartOn = null, int? totalSessionHosts = null, int? sessionHostsInProgress = null, int? sessionHostsCompleted = null, int? sessionHostsRollbackFailed = null)
+ {
+ return new SessionHostManagementOperationProgress(
+ executionStartOn,
+ totalSessionHosts,
+ sessionHostsInProgress,
+ sessionHostsCompleted,
+ sessionHostsRollbackFailed,
serializedAdditionalRawData: null);
}
@@ -716,6 +822,9 @@ public static UserSessionData UserSessionData(ResourceIdentifier id = null, stri
/// The name.
/// The resourceType.
/// The systemData.
+ /// Number of active sessions on SessionHost.
+ /// Number of disconnected sessions on SessionHost.
+ /// Number of pending sessions on SessionHost.
/// ObjectId of SessionHost. (internal use).
/// Last heart beat from SessionHost.
/// Number of sessions on SessionHost.
@@ -732,9 +841,11 @@ public static UserSessionData UserSessionData(ResourceIdentifier id = null, stri
/// Update state of a SessionHost.
/// The timestamp of the last update.
/// The error message.
+ /// The last time update was completed.
+ /// SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z.
/// List of SessionHostHealthCheckReports.
/// A new instance for mocking.
- public static SessionHostData SessionHostData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, DateTimeOffset? lastHeartBeatOn = null, int? sessions = null, string agentVersion = null, bool? allowNewSession = null, string vmId = null, ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, SessionHostStatus? status = null, DateTimeOffset? statusTimestamp = null, string osVersion = null, string sxsStackVersion = null, SessionHostUpdateState? updateState = null, DateTimeOffset? lastUpdatedOn = null, string updateErrorMessage = null, IEnumerable sessionHostHealthCheckResults = null)
+ public static SessionHostData SessionHostData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? activeSessions = null, int? disconnectedSessions = null, int? pendingSessions = null, string objectId = null, DateTimeOffset? lastHeartBeatOn = null, int? sessions = null, string agentVersion = null, bool? allowNewSession = null, string vmId = null, ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, SessionHostStatus? status = null, DateTimeOffset? statusTimestamp = null, string osVersion = null, string sxsStackVersion = null, SessionHostUpdateState? updateState = null, DateTimeOffset? lastUpdatedOn = null, string updateErrorMessage = null, DateTimeOffset? lastSessionHostUpdateOn = null, string sessionHostConfiguration = null, IEnumerable sessionHostHealthCheckResults = null)
{
sessionHostHealthCheckResults ??= new List();
@@ -743,6 +854,9 @@ public static SessionHostData SessionHostData(ResourceIdentifier id = null, stri
name,
resourceType,
systemData,
+ activeSessions,
+ disconnectedSessions,
+ pendingSessions,
objectId,
lastHeartBeatOn,
sessions,
@@ -759,6 +873,8 @@ public static SessionHostData SessionHostData(ResourceIdentifier id = null, stri
updateState,
lastUpdatedOn,
updateErrorMessage,
+ lastSessionHostUpdateOn,
+ sessionHostConfiguration,
sessionHostHealthCheckResults?.ToList(),
serializedAdditionalRawData: null);
}
@@ -788,189 +904,185 @@ public static SessionHostHealthCheckFailureDetails SessionHostHealthCheckFailure
/// The name.
/// The resourceType.
/// The systemData.
- /// Allow a new session.
- /// User assigned to SessionHost.
- /// Friendly name of SessionHost.
+ /// Detailed properties for SessionHost.
/// A new instance for mocking.
- public static SessionHostPatch SessionHostPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? allowNewSession = null, string assignedUser = null, string friendlyName = null)
+ public static SessionHostPatch SessionHostPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SessionHostPatchProperties properties = null)
{
return new SessionHostPatch(
id,
name,
resourceType,
systemData,
- allowNewSession,
- assignedUser,
- friendlyName,
+ properties,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// VHD/CIM image path on Network Share.
- /// Package Name from appxmanifest.xml.
- /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
- /// User friendly Name to be displayed in the portal.
- /// Relative Path to the package inside the image.
- /// Specifies how to register Package in feed.
- /// Make this version of the package the active one across the hostpool.
- /// List of package dependencies.
- /// Package version found in the appxmanifest.xml.
- /// Date Package was last updated, found in the appxmanifest.xml.
- /// List of package applications.
- /// A new instance for mocking.
- public static MsixPackageData MsixPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = null, bool? isActive = null, IEnumerable packageDependencies = null, string version = null, DateTimeOffset? lastUpdatedOn = null, IEnumerable packageApplications = null)
- {
- packageDependencies ??= new List();
- packageApplications ??= new List();
-
- return new MsixPackageData(
- id,
- name,
- resourceType,
- systemData,
- imagePath,
- packageName,
- packageFamilyName,
- displayName,
- packageRelativePath,
- isRegularRegistration,
- isActive,
- packageDependencies?.ToList(),
- version,
- lastUpdatedOn,
- packageApplications?.ToList(),
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Set a version of the package to be active across hostpool.
- /// Set Registration mode. Regular or Delayed.
- /// Display name for MSIX Package.
- /// A new instance for mocking.
- public static MsixPackagePatch MsixPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isActive = null, bool? isRegularRegistration = null, string displayName = null)
+ /// ObjectId of user session. (internal use).
+ /// The user principal name.
+ /// Application type of application.
+ /// State of user session.
+ /// The active directory user name.
+ /// The timestamp of the user session create.
+ /// A new instance for mocking.
+ public static UserSessionData UserSessionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, string userPrincipalName = null, VirtualApplicationType? applicationType = null, UserSessionState? sessionState = null, string activeDirectoryUserName = null, DateTimeOffset? createOn = null)
{
- return new MsixPackagePatch(
+ return new UserSessionData(
id,
name,
resourceType,
systemData,
- isActive,
- isRegularRegistration,
- displayName,
+ objectId,
+ userPrincipalName,
+ applicationType,
+ sessionState,
+ activeDirectoryUserName,
+ createOn,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The tags.
- /// The location.
- /// Detailed properties for App Attach Package.
- /// A new instance for mocking.
- public static AppAttachPackageData AppAttachPackageData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, AppAttachPackageProperties properties = null)
+ /// Set of days of the week on which this schedule is active.
+ /// Starting time for ramp up period.
+ /// The desired startup behavior during the ramp up period for personal vms in the hostpool.
+ /// The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
+ /// Action to be taken after a user disconnect during the ramp up period.
+ /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
+ /// Action to be taken after a logoff during the ramp up period.
+ /// The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
+ /// Starting time for peak period.
+ /// The desired configuration of Start VM On Connect for the hostpool during the peak phase.
+ /// Action to be taken after a user disconnect during the peak period.
+ /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
+ /// Action to be taken after a logoff during the peak period.
+ /// The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
+ /// Starting time for ramp down period.
+ /// The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
+ /// Action to be taken after a user disconnect during the ramp down period.
+ /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
+ /// Action to be taken after a logoff during the ramp down period.
+ /// The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
+ /// Starting time for off-peak period.
+ /// The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
+ /// Action to be taken after a user disconnect during the off-peak period.
+ /// The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
+ /// Action to be taken after a logoff during the off-peak period.
+ /// The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
+ /// A new instance for mocking.
+ public static ScalingPlanPersonalScheduleData ScalingPlanPersonalScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, StartupBehavior? rampUpAutoStartHosts = null, SetStartVmOnConnect? rampUpStartVmOnConnect = null, SessionHandlingOperation? rampUpActionOnDisconnect = null, int? rampUpMinutesToWaitOnDisconnect = null, SessionHandlingOperation? rampUpActionOnLogoff = null, int? rampUpMinutesToWaitOnLogoff = null, ScalingActionTime peakStartTime = null, SetStartVmOnConnect? peakStartVmOnConnect = null, SessionHandlingOperation? peakActionOnDisconnect = null, int? peakMinutesToWaitOnDisconnect = null, SessionHandlingOperation? peakActionOnLogoff = null, int? peakMinutesToWaitOnLogoff = null, ScalingActionTime rampDownStartTime = null, SetStartVmOnConnect? rampDownStartVmOnConnect = null, SessionHandlingOperation? rampDownActionOnDisconnect = null, int? rampDownMinutesToWaitOnDisconnect = null, SessionHandlingOperation? rampDownActionOnLogoff = null, int? rampDownMinutesToWaitOnLogoff = null, ScalingActionTime offPeakStartTime = null, SetStartVmOnConnect? offPeakStartVmOnConnect = null, SessionHandlingOperation? offPeakActionOnDisconnect = null, int? offPeakMinutesToWaitOnDisconnect = null, SessionHandlingOperation? offPeakActionOnLogoff = null, int? offPeakMinutesToWaitOnLogoff = null)
{
- tags ??= new Dictionary();
+ daysOfWeek ??= new List();
- return new AppAttachPackageData(
+ return new ScalingPlanPersonalScheduleData(
id,
name,
resourceType,
systemData,
- tags,
- location,
- properties,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The provisioning state of the App Attach Package.
- /// Detailed properties for App Attach Package.
- /// List of Hostpool resource Ids.
- /// URL path to certificate name located in keyVault.
- /// Parameter indicating how the health check should behave if this package fails staging.
- /// A new instance for mocking.
- public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState = null, AppAttachPackageInfoProperties image = null, IEnumerable hostPoolReferences = null, Uri keyVaultUri = null, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = null)
- {
- hostPoolReferences ??= new List();
-
- return new AppAttachPackageProperties(
- provisioningState,
- image,
- hostPoolReferences?.ToList(),
- keyVaultUri,
- failHealthCheckOnStagingFailure,
+ daysOfWeek?.ToList(),
+ rampUpStartTime,
+ rampUpAutoStartHosts,
+ rampUpStartVmOnConnect,
+ rampUpActionOnDisconnect,
+ rampUpMinutesToWaitOnDisconnect,
+ rampUpActionOnLogoff,
+ rampUpMinutesToWaitOnLogoff,
+ peakStartTime,
+ peakStartVmOnConnect,
+ peakActionOnDisconnect,
+ peakMinutesToWaitOnDisconnect,
+ peakActionOnLogoff,
+ peakMinutesToWaitOnLogoff,
+ rampDownStartTime,
+ rampDownStartVmOnConnect,
+ rampDownActionOnDisconnect,
+ rampDownMinutesToWaitOnDisconnect,
+ rampDownActionOnLogoff,
+ rampDownMinutesToWaitOnLogoff,
+ offPeakStartTime,
+ offPeakStartVmOnConnect,
+ offPeakActionOnDisconnect,
+ offPeakMinutesToWaitOnDisconnect,
+ offPeakActionOnLogoff,
+ offPeakMinutesToWaitOnLogoff,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Alias of MSIX Package.
- /// VHD/CIM image path on Network Share.
- /// Package Name from appxmanifest.xml.
- /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
- /// Package Full Name from appxmanifest.xml.
- /// User friendly Name to be displayed in the portal.
- /// Relative Path to the package inside the image.
- /// Specifies how to register Package in feed.
- /// Make this version of the package the active one across the hostpool.
- /// List of package dependencies.
- /// Package version found in the appxmanifest.xml.
- /// Date Package was last updated, found in the appxmanifest.xml.
- /// List of package applications.
- /// Certificate name found in the appxmanifest.xml.
- /// Date certificate expires, found in the appxmanifest.xml.
- /// A new instance for mocking.
- public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string packageAlias = null, string imagePath = null, string packageName = null, string packageFamilyName = null, string packageFullName = null, string displayName = null, string packageRelativePath = null, bool? isRegularRegistration = null, bool? isActive = null, IEnumerable packageDependencies = null, string version = null, DateTimeOffset? lastUpdatedOn = null, IEnumerable packageApplications = null, string certificateName = null, DateTimeOffset? certificateExpiry = null)
+ /// Name of the ScalingPlanPooledSchedule.
+ /// Set of days of the week on which this schedule is active.
+ /// The desired scaling method to be used to scale the hosts in the assigned host pool.
+ /// The properties that control how Scaling will manage the size of the hostpool by creating and deleting hosts.
+ /// Starting time for ramp up period.
+ /// Load balancing algorithm for ramp up period.
+ /// Minimum host percentage for ramp up period.
+ /// Capacity threshold for ramp up period.
+ /// Starting time for peak period.
+ /// Load balancing algorithm for peak period.
+ /// Starting time for ramp down period.
+ /// Load balancing algorithm for ramp down period.
+ /// Minimum host percentage for ramp down period.
+ /// Capacity threshold for ramp down period.
+ /// Should users be logged off forcefully from hosts.
+ /// Specifies when to stop hosts during ramp down period.
+ /// Number of minutes to wait to stop hosts during ramp down period.
+ /// Notification message for users during ramp down period.
+ /// Starting time for off-peak period.
+ /// Load balancing algorithm for off-peak period.
+ /// A new instance for mocking.
+ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string namePropertiesName = null, IEnumerable daysOfWeek = null, ScalingMethodType? scalingMethod = null, CreateDeleteProperties createDelete = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
{
- packageDependencies ??= new List();
- packageApplications ??= new List();
+ daysOfWeek ??= new List();
- return new ExpandMsixImage(
+ return new ScalingPlanPooledScheduleData(
id,
name,
resourceType,
systemData,
- packageAlias,
- imagePath,
- packageName,
- packageFamilyName,
- packageFullName,
- displayName,
- packageRelativePath,
- isRegularRegistration,
- isActive,
- packageDependencies?.ToList(),
- version,
- lastUpdatedOn,
- packageApplications?.ToList(),
- certificateName,
- certificateExpiry,
+ namePropertiesName,
+ daysOfWeek?.ToList(),
+ scalingMethod,
+ createDelete,
+ rampUpStartTime,
+ rampUpLoadBalancingAlgorithm,
+ rampUpMinimumHostsPct,
+ rampUpCapacityThresholdPct,
+ peakStartTime,
+ peakLoadBalancingAlgorithm,
+ rampDownStartTime,
+ rampDownLoadBalancingAlgorithm,
+ rampDownMinimumHostsPct,
+ rampDownCapacityThresholdPct,
+ rampDownForceLogoffUsers,
+ rampDownStopHostsWhen,
+ rampDownWaitTimeMinutes,
+ rampDownNotificationMessage,
+ offPeakStartTime,
+ offPeakLoadBalancingAlgorithm,
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// Detailed properties for App Attach Package.
- /// A new instance for mocking.
- public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppAttachPackagePatchProperties properties = null)
+ /// Detailed properties for ScalingPlanPooledSchedule.
+ /// A new instance for mocking.
+ public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ScalingPlanPooledSchedulePatchProperties properties = null)
{
- return new AppAttachPackagePatch(
+ return new ScalingPlanPooledSchedulePatch(
id,
name,
resourceType,
@@ -979,151 +1091,125 @@ public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id
serializedAdditionalRawData: null);
}
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of HostPool. (internal use).
- /// Friendly name of HostPool.
- /// Description of HostPool.
- /// HostPool type for desktop.
- /// PersonalDesktopAssignment type for HostPool.
- /// Custom rdp property of HostPool.
- /// The max session limit of HostPool.
- /// The type of the load balancer.
- /// The ring number of HostPool.
- /// Is validation environment.
- /// The registration info of HostPool.
- /// VM template for sessionhosts configuration within hostpool.
- /// List of applicationGroup links.
- /// URL to customer ADFS server for signing WVD SSO certificates.
- /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
- /// Path to Azure KeyVault storing the secret used for communication to ADFS.
- /// The type of single sign on Secret Type.
- /// The type of preferred application group type, default to Desktop Application Group.
- /// The flag to turn on/off StartVMOnConnect feature.
- /// Is cloud pc resource.
- /// The session host configuration for updating agent, monitoring agent, and stack component.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static HostPoolData HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, SessionHostAgentUpdateProperties agentUpdate, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
- {
- return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: default, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: default, agentUpdate: agentUpdate, privateEndpointConnections: default, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
- }
-
- /// Initializes a new instance of HostPoolPatch.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// tags to be updated.
- /// Friendly name of HostPool.
- /// Description of HostPool.
- /// Custom rdp property of HostPool.
- /// The max session limit of HostPool.
- /// PersonalDesktopAssignment type for HostPool.
- /// The type of the load balancer.
- /// The ring number of HostPool.
- /// Is validation environment.
- /// The registration info of HostPool.
- /// VM template for sessionhosts configuration within hostpool.
- /// URL to customer ADFS server for signing WVD SSO certificates.
- /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
- /// Path to Azure KeyVault storing the secret used for communication to ADFS.
- /// The type of single sign on Secret Type.
- /// The type of preferred application group type, default to Desktop Application Group.
- /// The flag to turn on/off StartVMOnConnect feature.
- /// The session host configuration for updating agent, monitoring agent, and stack component.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static HostPoolPatch HostPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, string friendlyName, string description, string customRdpProperty, int? maxSessionLimit, PersonalDesktopAssignmentType? personalDesktopAssignmentType, HostPoolLoadBalancerType? loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfoPatch registrationInfo, string vmTemplate, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType? preferredAppGroupType, bool? startVmOnConnect, SessionHostAgentUpdatePatchProperties agentUpdate)
+ /// Initializes a new instance of .
+ /// Name of the ScalingPlanPooledSchedule.
+ /// Set of days of the week on which this schedule is active.
+ /// The desired scaling method to be used to scale the hosts in the assigned host pool.
+ /// The properties that control how Scaling will manage the size of the hostpool by creating and deleting hosts.
+ /// Starting time for ramp up period.
+ /// Load balancing algorithm for ramp up period.
+ /// Minimum host percentage for ramp up period.
+ /// Capacity threshold for ramp up period.
+ /// Starting time for peak period.
+ /// Load balancing algorithm for peak period.
+ /// Starting time for ramp down period.
+ /// Load balancing algorithm for ramp down period.
+ /// Minimum host percentage for ramp down period.
+ /// Capacity threshold for ramp down period.
+ /// Should users be logged off forcefully from hosts.
+ /// Specifies when to stop hosts during ramp down period.
+ /// Number of minutes to wait to stop hosts during ramp down period.
+ /// Notification message for users during ramp down period.
+ /// Starting time for off-peak period.
+ /// Load balancing algorithm for off-peak period.
+ /// A new instance for mocking.
+ public static ScalingPlanPooledSchedulePatchProperties ScalingPlanPooledSchedulePatchProperties(string name = null, IEnumerable daysOfWeek = null, ScalingMethodType? scalingMethod = null, CreateDeleteProperties createDelete = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
{
- return HostPoolPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, friendlyName: friendlyName, description: description, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, personalDesktopAssignmentType: personalDesktopAssignmentType, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, publicNetworkAccess: default, agentUpdate: agentUpdate);
- }
+ daysOfWeek ??= new List();
- /// Initializes a new instance of VirtualApplicationGroupData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of ApplicationGroup. (internal use).
- /// Description of ApplicationGroup.
- /// Friendly name of ApplicationGroup.
- /// HostPool arm path of ApplicationGroup.
- /// Workspace arm path of ApplicationGroup.
- /// Resource Type of ApplicationGroup.
- /// Is cloud pc resource.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static VirtualApplicationGroupData VirtualApplicationGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, ResourceIdentifier hostPoolId, ResourceIdentifier workspaceId, VirtualApplicationGroupType applicationGroupType, bool? isCloudPCResource, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
- {
- return VirtualApplicationGroupData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, description: description, friendlyName: friendlyName, hostPoolId: hostPoolId, workspaceId: workspaceId, applicationGroupType: applicationGroupType, isCloudPCResource: isCloudPCResource, showInFeed: default, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
+ return new ScalingPlanPooledSchedulePatchProperties(
+ name,
+ daysOfWeek?.ToList(),
+ scalingMethod,
+ createDelete,
+ rampUpStartTime,
+ rampUpLoadBalancingAlgorithm,
+ rampUpMinimumHostsPct,
+ rampUpCapacityThresholdPct,
+ peakStartTime,
+ peakLoadBalancingAlgorithm,
+ rampDownStartTime,
+ rampDownLoadBalancingAlgorithm,
+ rampDownMinimumHostsPct,
+ rampDownCapacityThresholdPct,
+ rampDownForceLogoffUsers,
+ rampDownStopHostsWhen,
+ rampDownWaitTimeMinutes,
+ rampDownNotificationMessage,
+ offPeakStartTime,
+ offPeakLoadBalancingAlgorithm,
+ serializedAdditionalRawData: null);
}
- /// Initializes a new instance of VirtualApplicationGroupPatch.
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// tags to be updated.
- /// Description of ApplicationGroup.
- /// Friendly name of ApplicationGroup.
+ /// Set of days of the week on which this schedule is active.
+ /// Starting time for ramp up period.
+ /// Load balancing algorithm for ramp up period.
+ /// Minimum host percentage for ramp up period.
+ /// Capacity threshold for ramp up period.
+ /// Starting time for peak period.
+ /// Load balancing algorithm for peak period.
+ /// Starting time for ramp down period.
+ /// Load balancing algorithm for ramp down period.
+ /// Minimum host percentage for ramp down period.
+ /// Capacity threshold for ramp down period.
+ /// Should users be logged off forcefully from hosts.
+ /// Specifies when to stop hosts during ramp down period.
+ /// Number of minutes to wait to stop hosts during ramp down period.
+ /// Notification message for users during ramp down period.
+ /// Starting time for off-peak period.
+ /// Load balancing algorithm for off-peak period.
+ /// A new instance for mocking.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static VirtualApplicationGroupPatch VirtualApplicationGroupPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, string description, string friendlyName)
+ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IEnumerable daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm)
{
- return VirtualApplicationGroupPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, description: description, friendlyName: friendlyName, showInFeed: default);
+ return ScalingPlanPooledScheduleData(id: id, name: name, resourceType: resourceType, systemData: systemData, namePropertiesName: default, daysOfWeek: daysOfWeek, scalingMethod: default, createDelete: default, rampUpStartTime: rampUpStartTime, rampUpLoadBalancingAlgorithm: rampUpLoadBalancingAlgorithm, rampUpMinimumHostsPct: rampUpMinimumHostsPct, rampUpCapacityThresholdPct: rampUpCapacityThresholdPct, peakStartTime: peakStartTime, peakLoadBalancingAlgorithm: peakLoadBalancingAlgorithm, rampDownStartTime: rampDownStartTime, rampDownLoadBalancingAlgorithm: rampDownLoadBalancingAlgorithm, rampDownMinimumHostsPct: rampDownMinimumHostsPct, rampDownCapacityThresholdPct: rampDownCapacityThresholdPct, rampDownForceLogoffUsers: rampDownForceLogoffUsers, rampDownStopHostsWhen: rampDownStopHostsWhen, rampDownWaitTimeMinutes: rampDownWaitTimeMinutes, rampDownNotificationMessage: rampDownNotificationMessage, offPeakStartTime: offPeakStartTime, offPeakLoadBalancingAlgorithm: offPeakLoadBalancingAlgorithm);
}
- /// Initializes a new instance of VirtualWorkspaceData.
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of Workspace. (internal use).
- /// Description of Workspace.
- /// Friendly name of Workspace.
- /// List of applicationGroup resource Ids.
- /// Is cloud pc resource.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// ObjectId of SessionHost. (internal use).
+ /// Last heart beat from SessionHost.
+ /// Number of sessions on SessionHost.
+ /// Version of agent on SessionHost.
+ /// Allow a new session.
+ /// Virtual Machine Id of SessionHost's underlying virtual machine.
+ /// Resource Id of SessionHost's underlying virtual machine.
+ /// User assigned to SessionHost.
+ /// Friendly name of SessionHost.
+ /// Status for a SessionHost.
+ /// The timestamp of the status.
+ /// The version of the OS on the session host.
+ /// The version of the side by side stack on the session host.
+ /// Update state of a SessionHost.
+ /// The timestamp of the last update.
+ /// The error message.
+ /// List of SessionHostHealthCheckReports.
+ /// A new instance for mocking.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string description, string friendlyName, IEnumerable applicationGroupReferences, bool? isCloudPCResource, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
+ public static SessionHostData SessionHostData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string objectId, DateTimeOffset? lastHeartBeatOn, int? sessions, string agentVersion, bool? allowNewSession, string vmId, ResourceIdentifier resourceId, string assignedUser, string friendlyName, SessionHostStatus? status, DateTimeOffset? statusTimestamp, string osVersion, string sxsStackVersion, SessionHostUpdateState? updateState, DateTimeOffset? lastUpdatedOn, string updateErrorMessage, IEnumerable sessionHostHealthCheckResults)
{
- return VirtualWorkspaceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, description: description, friendlyName: friendlyName, applicationGroupReferences: applicationGroupReferences, isCloudPCResource: isCloudPCResource, publicNetworkAccess: default, privateEndpointConnections: default, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
+ return SessionHostData(id: id, name: name, resourceType: resourceType, systemData: systemData, activeSessions: default, disconnectedSessions: default, pendingSessions: default, objectId: objectId, lastHeartBeatOn: lastHeartBeatOn, sessions: sessions, agentVersion: agentVersion, allowNewSession: allowNewSession, vmId: vmId, resourceId: resourceId, assignedUser: assignedUser, friendlyName: friendlyName, status: status, statusTimestamp: statusTimestamp, osVersion: osVersion, sxsStackVersion: sxsStackVersion, updateState: updateState, lastUpdatedOn: lastUpdatedOn, updateErrorMessage: updateErrorMessage, lastSessionHostUpdateOn: default, sessionHostConfiguration: default, sessionHostHealthCheckResults: sessionHostHealthCheckResults);
}
- /// Initializes a new instance of DesktopVirtualizationPrivateEndpointConnection.
+ /// Initializes a new instance of .
/// The id.
/// The name.
/// The resourceType.
/// The systemData.
- /// The resource of private end point.
- /// A collection of information about the state of the connection between service consumer and provider.
- /// The provisioning state of the private endpoint connection resource.
- /// A new instance for mocking.
+ /// Detailed properties for App Attach Package.
+ /// A new instance for mocking.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static DesktopVirtualizationPrivateEndpointConnection DesktopVirtualizationPrivateEndpointConnection(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ResourceIdentifier privateEndpointId, DesktopVirtualizationPrivateLinkServiceConnectionState connectionState, DesktopVirtualizationPrivateEndpointConnectionProvisioningState? provisioningState)
+ public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppAttachPackagePatchProperties properties)
{
- return DesktopVirtualizationPrivateEndpointConnection(id: id, name: name, resourceType: resourceType, systemData: systemData, groupIds: default, privateEndpointId: privateEndpointId, connectionState: connectionState, provisioningState: provisioningState);
+ return AppAttachPackagePatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: default, properties: properties);
}
/// Initializes a new instance of DesktopVirtualizationPrivateEndpointConnectionDataData.
@@ -1140,73 +1226,5 @@ public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirt
{
return DesktopVirtualizationPrivateEndpointConnectionDataData(id: id, name: name, resourceType: resourceType, systemData: systemData, groupIds: default, privateEndpointId: privateEndpointId, connectionState: connectionState, provisioningState: provisioningState);
}
-
- /// Initializes a new instance of HostPoolData.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
- /// ObjectId of HostPool. (internal use).
- /// Friendly name of HostPool.
- /// Description of HostPool.
- /// HostPool type for desktop.
- /// PersonalDesktopAssignment type for HostPool.
- /// Custom rdp property of HostPool.
- /// The max session limit of HostPool.
- /// The type of the load balancer.
- /// The ring number of HostPool.
- /// Is validation environment.
- /// The registration info of HostPool.
- /// VM template for sessionhosts configuration within hostpool.
- /// List of applicationGroup links.
- /// URL to customer ADFS server for signing WVD SSO certificates.
- /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
- /// Path to Azure KeyVault storing the secret used for communication to ADFS.
- /// The type of single sign on Secret Type.
- /// The type of preferred application group type, default to Desktop Application Group.
- /// The flag to turn on/off StartVMOnConnect feature.
- /// Is cloud pc resource.
- /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
- /// The session host configuration for updating agent, monitoring agent, and stack component.
- /// List of private endpoint connection associated with the specified resource.
- /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
- /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
- /// The resource model definition representing SKU.
- /// Gets or sets the plan.
- /// A new instance for mocking.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static HostPoolData HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IEnumerable privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
- {
- return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: default, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, privateEndpointConnections: privateEndpointConnections, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
- }
-
- /// Initializes a new instance of ExpandMsixImage.
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// Alias of MSIX Package.
- /// VHD/CIM image path on Network Share.
- /// Package Name from appxmanifest.xml.
- /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
- /// Package Full Name from appxmanifest.xml.
- /// User friendly Name to be displayed in the portal.
- /// Relative Path to the package inside the image.
- /// Specifies how to register Package in feed.
- /// Make this version of the package the active one across the hostpool.
- /// List of package dependencies.
- /// Package Version found in the appxmanifest.xml.
- /// Date Package was last updated, found in the appxmanifest.xml.
- /// List of package applications.
- /// A new instance for mocking.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string packageAlias, string imagePath, string packageName, string packageFamilyName, string packageFullName, string displayName, string packageRelativePath, bool? isRegularRegistration, bool? isActive, IEnumerable packageDependencies, string version, DateTimeOffset? lastUpdatedOn, IEnumerable packageApplications)
- {
- return ExpandMsixImage(id: id, name: name, resourceType: resourceType, systemData: systemData, packageAlias: packageAlias, imagePath: imagePath, packageName: packageName, packageFamilyName: packageFamilyName, packageFullName: packageFullName, displayName: displayName, packageRelativePath: packageRelativePath, isRegularRegistration: isRegularRegistration, isActive: isActive, packageDependencies: packageDependencies, version: version, lastUpdatedOn: lastUpdatedOn, packageApplications: packageApplications, certificateName: default, certificateExpiry: default);
- }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
index 641ebfdd02b5..b2ada7bccabb 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
@@ -33,60 +33,60 @@ private static MockableDesktopVirtualizationSubscriptionResource GetMockableDesk
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static VirtualWorkspaceResource GetVirtualWorkspaceResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static AppAttachPackageResource GetAppAttachPackageResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetVirtualWorkspaceResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetAppAttachPackageResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static WorkspacePrivateEndpointConnectionResource GetWorkspacePrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static VirtualApplicationGroupResource GetVirtualApplicationGroupResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetWorkspacePrivateEndpointConnectionResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetVirtualApplicationGroupResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static HostPoolResource GetHostPoolResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetHostPoolPrivateEndpointConnectionResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetHostPoolResource(id);
}
///
@@ -109,136 +109,174 @@ public static ScalingPlanResource GetScalingPlanResource(this ArmClient client,
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static VirtualWorkspaceResource GetVirtualWorkspaceResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetScalingPlanPooledScheduleResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetVirtualWorkspaceResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static ScalingPlanPersonalScheduleResource GetScalingPlanPersonalScheduleResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static VirtualApplicationResource GetVirtualApplicationResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetScalingPlanPersonalScheduleResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetVirtualApplicationResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static VirtualApplicationGroupResource GetVirtualApplicationGroupResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static VirtualDesktopResource GetVirtualDesktopResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetVirtualApplicationGroupResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetVirtualDesktopResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static VirtualApplicationResource GetVirtualApplicationResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ActiveSessionHostConfigurationResource GetActiveSessionHostConfigurationResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetVirtualApplicationResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetActiveSessionHostConfigurationResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static VirtualDesktopResource GetVirtualDesktopResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static MsixPackageResource GetMsixPackageResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetVirtualDesktopResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetMsixPackageResource(id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static HostPoolResource GetHostPoolResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetHostPoolResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetHostPoolPrivateEndpointConnectionResource(id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static UserSessionResource GetUserSessionResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static WorkspacePrivateEndpointConnectionResource GetWorkspacePrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetUserSessionResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetWorkspacePrivateEndpointConnectionResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SessionHostConfigurationResource GetSessionHostConfigurationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetSessionHostConfigurationResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SessionHostManagementResource GetSessionHostManagementResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetSessionHostManagementResource(id);
}
///
@@ -261,755 +299,776 @@ public static SessionHostResource GetSessionHostResource(this ArmClient client,
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static MsixPackageResource GetMsixPackageResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static UserSessionResource GetUserSessionResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetMsixPackageResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetUserSessionResource(id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
/// is null.
- /// Returns a object.
- public static AppAttachPackageResource GetAppAttachPackageResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ScalingPlanPersonalScheduleResource GetScalingPlanPersonalScheduleResource(this ArmClient client, ResourceIdentifier id)
{
Argument.AssertNotNull(client, nameof(client));
- return GetMockableDesktopVirtualizationArmClient(client).GetAppAttachPackageResource(id);
+ return GetMockableDesktopVirtualizationArmClient(client).GetScalingPlanPersonalScheduleResource(id);
}
///
- /// Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetScalingPlanPooledScheduleResource(id);
+ }
+
+ ///
+ /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of VirtualWorkspaceResources and their operations over a VirtualWorkspaceResource.
- public static VirtualWorkspaceCollection GetVirtualWorkspaces(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource.
+ public static AppAttachPackageCollection GetAppAttachPackages(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspaces();
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackages();
}
///
- /// Get a workspace.
+ /// Get an app attach package.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
///
/// -
/// Operation Id
- /// Workspaces_Get
+ /// AppAttachPackage_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the workspace.
+ /// The name of the App Attach package.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetVirtualWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
+ public static async Task> GetAppAttachPackageAsync(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspaceAsync(workspaceName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackageAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a workspace.
+ /// Get an app attach package.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
///
/// -
/// Operation Id
- /// Workspaces_Get
+ /// AppAttachPackage_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the workspace.
+ /// The name of the App Attach package.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetVirtualWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
+ public static Response GetAppAttachPackage(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspace(workspaceName, cancellationToken);
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackage(appAttachPackageName, cancellationToken);
}
///
- /// Gets a collection of ScalingPlanResources in the ResourceGroupResource.
+ /// Gets a collection of VirtualApplicationGroupResources in the ResourceGroupResource.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of ScalingPlanResources and their operations over a ScalingPlanResource.
- public static ScalingPlanCollection GetScalingPlans(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of VirtualApplicationGroupResources and their operations over a VirtualApplicationGroupResource.
+ public static VirtualApplicationGroupCollection GetVirtualApplicationGroups(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlans();
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroups();
}
///
- /// Get a scaling plan.
+ /// Get an application group.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
///
/// -
/// Operation Id
- /// ScalingPlans_Get
+ /// ApplicationGroups_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the scaling plan.
+ /// The name of the application group.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetScalingPlanAsync(this ResourceGroupResource resourceGroupResource, string scalingPlanName, CancellationToken cancellationToken = default)
+ public static async Task> GetVirtualApplicationGroupAsync(this ResourceGroupResource resourceGroupResource, string applicationGroupName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlanAsync(scalingPlanName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroupAsync(applicationGroupName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a scaling plan.
+ /// Get an application group.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
///
/// -
/// Operation Id
- /// ScalingPlans_Get
+ /// ApplicationGroups_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the scaling plan.
+ /// The name of the application group.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetScalingPlan(this ResourceGroupResource resourceGroupResource, string scalingPlanName, CancellationToken cancellationToken = default)
+ public static Response GetVirtualApplicationGroup(this ResourceGroupResource resourceGroupResource, string applicationGroupName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlan(scalingPlanName, cancellationToken);
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroup(applicationGroupName, cancellationToken);
}
///
- /// Gets a collection of VirtualApplicationGroupResources in the ResourceGroupResource.
+ /// Gets a collection of HostPoolResources in the ResourceGroupResource.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of VirtualApplicationGroupResources and their operations over a VirtualApplicationGroupResource.
- public static VirtualApplicationGroupCollection GetVirtualApplicationGroups(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of HostPoolResources and their operations over a HostPoolResource.
+ public static HostPoolCollection GetHostPools(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroups();
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPools();
}
///
- /// Get an application group.
+ /// Get a host pool.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
///
/// -
/// Operation Id
- /// ApplicationGroups_Get
+ /// HostPools_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the application group.
+ /// The name of the host pool within the specified resource group.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetVirtualApplicationGroupAsync(this ResourceGroupResource resourceGroupResource, string applicationGroupName, CancellationToken cancellationToken = default)
+ public static async Task> GetHostPoolAsync(this ResourceGroupResource resourceGroupResource, string hostPoolName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroupAsync(applicationGroupName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPoolAsync(hostPoolName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an application group.
+ /// Get a host pool.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
///
/// -
/// Operation Id
- /// ApplicationGroups_Get
+ /// HostPools_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the application group.
+ /// The name of the host pool within the specified resource group.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetVirtualApplicationGroup(this ResourceGroupResource resourceGroupResource, string applicationGroupName, CancellationToken cancellationToken = default)
+ public static Response GetHostPool(this ResourceGroupResource resourceGroupResource, string hostPoolName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualApplicationGroup(applicationGroupName, cancellationToken);
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPool(hostPoolName, cancellationToken);
}
///
- /// Gets a collection of HostPoolResources in the ResourceGroupResource.
+ /// Gets a collection of ScalingPlanResources in the ResourceGroupResource.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of HostPoolResources and their operations over a HostPoolResource.
- public static HostPoolCollection GetHostPools(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of ScalingPlanResources and their operations over a ScalingPlanResource.
+ public static ScalingPlanCollection GetScalingPlans(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPools();
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlans();
}
///
- /// Get a host pool.
+ /// Get a scaling plan.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
///
/// -
/// Operation Id
- /// HostPools_Get
+ /// ScalingPlans_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the host pool within the specified resource group.
+ /// The name of the scaling plan.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetHostPoolAsync(this ResourceGroupResource resourceGroupResource, string hostPoolName, CancellationToken cancellationToken = default)
+ public static async Task> GetScalingPlanAsync(this ResourceGroupResource resourceGroupResource, string scalingPlanName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPoolAsync(hostPoolName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlanAsync(scalingPlanName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a host pool.
+ /// Get a scaling plan.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
///
/// -
/// Operation Id
- /// HostPools_Get
+ /// ScalingPlans_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the host pool within the specified resource group.
+ /// The name of the scaling plan.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetHostPool(this ResourceGroupResource resourceGroupResource, string hostPoolName, CancellationToken cancellationToken = default)
+ public static Response GetScalingPlan(this ResourceGroupResource resourceGroupResource, string scalingPlanName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetHostPool(hostPoolName, cancellationToken);
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetScalingPlan(scalingPlanName, cancellationToken);
}
///
- /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource.
+ /// Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource.
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
/// is null.
- /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource.
- public static AppAttachPackageCollection GetAppAttachPackages(this ResourceGroupResource resourceGroupResource)
+ /// An object representing collection of VirtualWorkspaceResources and their operations over a VirtualWorkspaceResource.
+ public static VirtualWorkspaceCollection GetVirtualWorkspaces(this ResourceGroupResource resourceGroupResource)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackages();
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspaces();
}
///
- /// Get an app attach package.
+ /// Get a workspace.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
///
/// -
/// Operation Id
- /// AppAttachPackage_Get
+ /// Workspaces_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the App Attach package.
+ /// The name of the workspace.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static async Task> GetAppAttachPackageAsync(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default)
+ public static async Task> GetVirtualWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackageAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false);
+ return await GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspaceAsync(workspaceName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an app attach package.
+ /// Get a workspace.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
///
/// -
/// Operation Id
- /// AppAttachPackage_Get
+ /// Workspaces_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// The name of the App Attach package.
+ /// The name of the workspace.
/// The cancellation token to use.
- /// or is null.
- /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public static Response GetAppAttachPackage(this ResourceGroupResource resourceGroupResource, string appAttachPackageName, CancellationToken cancellationToken = default)
+ public static Response GetVirtualWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
- return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetAppAttachPackage(appAttachPackageName, cancellationToken);
+ return GetMockableDesktopVirtualizationResourceGroupResource(resourceGroupResource).GetVirtualWorkspace(workspaceName, cancellationToken);
}
///
- /// List workspaces in subscription.
+ /// List App Attach packages in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
///
/// -
/// Operation Id
- /// Workspaces_ListBySubscription
+ /// AppAttachPackage_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
+ /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetVirtualWorkspacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetAppAttachPackagesAsync(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualWorkspacesAsync(cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackagesAsync(filter, cancellationToken);
}
///
- /// List workspaces in subscription.
+ /// List App Attach packages in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
///
/// -
/// Operation Id
- /// Workspaces_ListBySubscription
+ /// AppAttachPackage_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
+ /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetVirtualWorkspaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetAppAttachPackages(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualWorkspaces(cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackages(filter, cancellationToken);
}
///
- /// List scaling plans in subscription.
+ /// List applicationGroups in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
///
/// -
/// Operation Id
- /// ScalingPlans_ListBySubscription
+ /// ApplicationGroups_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Number of items per page.
- /// Indicates whether the collection is descending.
- /// Initial number of items to skip.
+ /// OData filter expression. Valid properties for filtering are applicationGroupType.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetScalingPlansAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetVirtualApplicationGroupsAsync(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetScalingPlansAsync(pageSize, isDescending, initialSkip, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualApplicationGroupsAsync(filter, cancellationToken);
}
///
- /// List scaling plans in subscription.
+ /// List applicationGroups in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
///
/// -
/// Operation Id
- /// ScalingPlans_ListBySubscription
+ /// ApplicationGroups_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// Number of items per page.
- /// Indicates whether the collection is descending.
- /// Initial number of items to skip.
+ /// OData filter expression. Valid properties for filtering are applicationGroupType.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetScalingPlans(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetVirtualApplicationGroups(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetScalingPlans(pageSize, isDescending, initialSkip, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualApplicationGroups(filter, cancellationToken);
}
///
- /// List applicationGroups in subscription.
+ /// List hostPools in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools
///
/// -
/// Operation Id
- /// ApplicationGroups_ListBySubscription
+ /// HostPools_List
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are applicationGroupType.
+ /// Number of items per page.
+ /// Indicates whether the collection is descending.
+ /// Initial number of items to skip.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetVirtualApplicationGroupsAsync(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetHostPoolsAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualApplicationGroupsAsync(filter, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetHostPoolsAsync(pageSize, isDescending, initialSkip, cancellationToken);
}
///
- /// List applicationGroups in subscription.
+ /// List hostPools in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools
///
/// -
/// Operation Id
- /// ApplicationGroups_ListBySubscription
+ /// HostPools_List
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are applicationGroupType.
+ /// Number of items per page.
+ /// Indicates whether the collection is descending.
+ /// Initial number of items to skip.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetVirtualApplicationGroups(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetHostPools(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualApplicationGroups(filter, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetHostPools(pageSize, isDescending, initialSkip, cancellationToken);
}
///
- /// List hostPools in subscription.
+ /// List scaling plans in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
///
/// -
/// Operation Id
- /// HostPools_List
+ /// ScalingPlans_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
@@ -1018,37 +1077,37 @@ public static Pageable GetVirtualApplicationGro
/// Initial number of items to skip.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetHostPoolsAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetScalingPlansAsync(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetHostPoolsAsync(pageSize, isDescending, initialSkip, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetScalingPlansAsync(pageSize, isDescending, initialSkip, cancellationToken);
}
///
- /// List hostPools in subscription.
+ /// List scaling plans in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
///
/// -
/// Operation Id
- /// HostPools_List
+ /// ScalingPlans_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
@@ -1057,86 +1116,84 @@ public static AsyncPageable GetHostPoolsAsync(this Subscriptio
/// Initial number of items to skip.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetHostPools(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetScalingPlans(this SubscriptionResource subscriptionResource, int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetHostPools(pageSize, isDescending, initialSkip, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetScalingPlans(pageSize, isDescending, initialSkip, cancellationToken);
}
///
- /// List App Attach packages in subscription.
+ /// List workspaces in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
///
/// -
/// Operation Id
- /// AppAttachPackage_ListBySubscription
+ /// Workspaces_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
/// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetAppAttachPackagesAsync(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetVirtualWorkspacesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackagesAsync(filter, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualWorkspacesAsync(cancellationToken);
}
///
- /// List App Attach packages in subscription.
+ /// List workspaces in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
///
/// -
/// Operation Id
- /// AppAttachPackage_ListBySubscription
+ /// Workspaces_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
/// -
/// Mocking
- /// To mock this method, please mock instead.
+ /// To mock this method, please mock instead.
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
/// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetAppAttachPackages(this SubscriptionResource subscriptionResource, string filter = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetVirtualWorkspaces(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
- return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetAppAttachPackages(filter, cancellationToken);
+ return GetMockableDesktopVirtualizationSubscriptionResource(subscriptionResource).GetVirtualWorkspaces(cancellationToken);
}
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
index 7efa6c0ac63f..46d59533e2b6 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
@@ -35,39 +35,39 @@ private string GetApiVersionOrNull(ResourceType resourceType)
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual VirtualWorkspaceResource GetVirtualWorkspaceResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual AppAttachPackageResource GetAppAttachPackageResource(ResourceIdentifier id)
{
- VirtualWorkspaceResource.ValidateResourceId(id);
- return new VirtualWorkspaceResource(Client, id);
+ AppAttachPackageResource.ValidateResourceId(id);
+ return new AppAttachPackageResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual WorkspacePrivateEndpointConnectionResource GetWorkspacePrivateEndpointConnectionResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual VirtualApplicationGroupResource GetVirtualApplicationGroupResource(ResourceIdentifier id)
{
- WorkspacePrivateEndpointConnectionResource.ValidateResourceId(id);
- return new WorkspacePrivateEndpointConnectionResource(Client, id);
+ VirtualApplicationGroupResource.ValidateResourceId(id);
+ return new VirtualApplicationGroupResource(Client, id);
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual HostPoolResource GetHostPoolResource(ResourceIdentifier id)
{
- HostPoolPrivateEndpointConnectionResource.ValidateResourceId(id);
- return new HostPoolPrivateEndpointConnectionResource(Client, id);
+ HostPoolResource.ValidateResourceId(id);
+ return new HostPoolResource(Client, id);
}
///
@@ -83,39 +83,15 @@ public virtual ScalingPlanResource GetScalingPlanResource(ResourceIdentifier id)
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- ///
- /// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(ResourceIdentifier id)
- {
- ScalingPlanPooledScheduleResource.ValidateResourceId(id);
- return new ScalingPlanPooledScheduleResource(Client, id);
- }
-
- ///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
- ///
- /// The resource ID of the resource to get.
- /// Returns a object.
- public virtual ScalingPlanPersonalScheduleResource GetScalingPlanPersonalScheduleResource(ResourceIdentifier id)
- {
- ScalingPlanPersonalScheduleResource.ValidateResourceId(id);
- return new ScalingPlanPersonalScheduleResource(Client, id);
- }
-
- ///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual VirtualApplicationGroupResource GetVirtualApplicationGroupResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual VirtualWorkspaceResource GetVirtualWorkspaceResource(ResourceIdentifier id)
{
- VirtualApplicationGroupResource.ValidateResourceId(id);
- return new VirtualApplicationGroupResource(Client, id);
+ VirtualWorkspaceResource.ValidateResourceId(id);
+ return new VirtualWorkspaceResource(Client, id);
}
///
@@ -143,27 +119,75 @@ public virtual VirtualDesktopResource GetVirtualDesktopResource(ResourceIdentifi
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual HostPoolResource GetHostPoolResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual ActiveSessionHostConfigurationResource GetActiveSessionHostConfigurationResource(ResourceIdentifier id)
{
- HostPoolResource.ValidateResourceId(id);
- return new HostPoolResource(Client, id);
+ ActiveSessionHostConfigurationResource.ValidateResourceId(id);
+ return new ActiveSessionHostConfigurationResource(Client, id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual UserSessionResource GetUserSessionResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual MsixPackageResource GetMsixPackageResource(ResourceIdentifier id)
{
- UserSessionResource.ValidateResourceId(id);
- return new UserSessionResource(Client, id);
+ MsixPackageResource.ValidateResourceId(id);
+ return new MsixPackageResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual HostPoolPrivateEndpointConnectionResource GetHostPoolPrivateEndpointConnectionResource(ResourceIdentifier id)
+ {
+ HostPoolPrivateEndpointConnectionResource.ValidateResourceId(id);
+ return new HostPoolPrivateEndpointConnectionResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual WorkspacePrivateEndpointConnectionResource GetWorkspacePrivateEndpointConnectionResource(ResourceIdentifier id)
+ {
+ WorkspacePrivateEndpointConnectionResource.ValidateResourceId(id);
+ return new WorkspacePrivateEndpointConnectionResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SessionHostConfigurationResource GetSessionHostConfigurationResource(ResourceIdentifier id)
+ {
+ SessionHostConfigurationResource.ValidateResourceId(id);
+ return new SessionHostConfigurationResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SessionHostManagementResource GetSessionHostManagementResource(ResourceIdentifier id)
+ {
+ SessionHostManagementResource.ValidateResourceId(id);
+ return new SessionHostManagementResource(Client, id);
}
///
@@ -179,27 +203,39 @@ public virtual SessionHostResource GetSessionHostResource(ResourceIdentifier id)
}
///
- /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
- /// You can use to create a from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual MsixPackageResource GetMsixPackageResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual UserSessionResource GetUserSessionResource(ResourceIdentifier id)
{
- MsixPackageResource.ValidateResourceId(id);
- return new MsixPackageResource(Client, id);
+ UserSessionResource.ValidateResourceId(id);
+ return new UserSessionResource(Client, id);
}
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The resource ID of the resource to get.
- /// Returns a object.
- public virtual AppAttachPackageResource GetAppAttachPackageResource(ResourceIdentifier id)
+ /// Returns a object.
+ public virtual ScalingPlanPersonalScheduleResource GetScalingPlanPersonalScheduleResource(ResourceIdentifier id)
{
- AppAttachPackageResource.ValidateResourceId(id);
- return new AppAttachPackageResource(Client, id);
+ ScalingPlanPersonalScheduleResource.ValidateResourceId(id);
+ return new ScalingPlanPersonalScheduleResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ScalingPlanPooledScheduleResource GetScalingPlanPooledScheduleResource(ResourceIdentifier id)
+ {
+ ScalingPlanPooledScheduleResource.ValidateResourceId(id);
+ return new ScalingPlanPooledScheduleResource(Client, id);
}
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
index 45290221f07e..1198010bbaae 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
@@ -33,349 +33,349 @@ private string GetApiVersionOrNull(ResourceType resourceType)
return apiVersion;
}
- /// Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource.
- /// An object representing collection of VirtualWorkspaceResources and their operations over a VirtualWorkspaceResource.
- public virtual VirtualWorkspaceCollection GetVirtualWorkspaces()
+ /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource.
+ /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource.
+ public virtual AppAttachPackageCollection GetAppAttachPackages()
{
- return GetCachedClient(client => new VirtualWorkspaceCollection(client, Id));
+ return GetCachedClient(client => new AppAttachPackageCollection(client, Id));
}
///
- /// Get a workspace.
+ /// Get an app attach package.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
///
/// -
/// Operation Id
- /// Workspaces_Get
+ /// AppAttachPackage_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the workspace.
+ /// The name of the App Attach package.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetVirtualWorkspaceAsync(string workspaceName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetAppAttachPackageAsync(string appAttachPackageName, CancellationToken cancellationToken = default)
{
- return await GetVirtualWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false);
+ return await GetAppAttachPackages().GetAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a workspace.
+ /// Get an app attach package.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
///
/// -
/// Operation Id
- /// Workspaces_Get
+ /// AppAttachPackage_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the workspace.
+ /// The name of the App Attach package.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetVirtualWorkspace(string workspaceName, CancellationToken cancellationToken = default)
+ public virtual Response GetAppAttachPackage(string appAttachPackageName, CancellationToken cancellationToken = default)
{
- return GetVirtualWorkspaces().Get(workspaceName, cancellationToken);
+ return GetAppAttachPackages().Get(appAttachPackageName, cancellationToken);
}
- /// Gets a collection of ScalingPlanResources in the ResourceGroupResource.
- /// An object representing collection of ScalingPlanResources and their operations over a ScalingPlanResource.
- public virtual ScalingPlanCollection GetScalingPlans()
+ /// Gets a collection of VirtualApplicationGroupResources in the ResourceGroupResource.
+ /// An object representing collection of VirtualApplicationGroupResources and their operations over a VirtualApplicationGroupResource.
+ public virtual VirtualApplicationGroupCollection GetVirtualApplicationGroups()
{
- return GetCachedClient(client => new ScalingPlanCollection(client, Id));
+ return GetCachedClient(client => new VirtualApplicationGroupCollection(client, Id));
}
///
- /// Get a scaling plan.
+ /// Get an application group.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
///
/// -
/// Operation Id
- /// ScalingPlans_Get
+ /// ApplicationGroups_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the scaling plan.
+ /// The name of the application group.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetScalingPlanAsync(string scalingPlanName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetVirtualApplicationGroupAsync(string applicationGroupName, CancellationToken cancellationToken = default)
{
- return await GetScalingPlans().GetAsync(scalingPlanName, cancellationToken).ConfigureAwait(false);
+ return await GetVirtualApplicationGroups().GetAsync(applicationGroupName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a scaling plan.
+ /// Get an application group.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
///
/// -
/// Operation Id
- /// ScalingPlans_Get
+ /// ApplicationGroups_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the scaling plan.
+ /// The name of the application group.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetScalingPlan(string scalingPlanName, CancellationToken cancellationToken = default)
+ public virtual Response GetVirtualApplicationGroup(string applicationGroupName, CancellationToken cancellationToken = default)
{
- return GetScalingPlans().Get(scalingPlanName, cancellationToken);
+ return GetVirtualApplicationGroups().Get(applicationGroupName, cancellationToken);
}
- /// Gets a collection of VirtualApplicationGroupResources in the ResourceGroupResource.
- /// An object representing collection of VirtualApplicationGroupResources and their operations over a VirtualApplicationGroupResource.
- public virtual VirtualApplicationGroupCollection GetVirtualApplicationGroups()
+ /// Gets a collection of HostPoolResources in the ResourceGroupResource.
+ /// An object representing collection of HostPoolResources and their operations over a HostPoolResource.
+ public virtual HostPoolCollection GetHostPools()
{
- return GetCachedClient(client => new VirtualApplicationGroupCollection(client, Id));
+ return GetCachedClient(client => new HostPoolCollection(client, Id));
}
///
- /// Get an application group.
+ /// Get a host pool.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
///
/// -
/// Operation Id
- /// ApplicationGroups_Get
+ /// HostPools_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the application group.
+ /// The name of the host pool within the specified resource group.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetVirtualApplicationGroupAsync(string applicationGroupName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetHostPoolAsync(string hostPoolName, CancellationToken cancellationToken = default)
{
- return await GetVirtualApplicationGroups().GetAsync(applicationGroupName, cancellationToken).ConfigureAwait(false);
+ return await GetHostPools().GetAsync(hostPoolName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an application group.
+ /// Get a host pool.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
///
/// -
/// Operation Id
- /// ApplicationGroups_Get
+ /// HostPools_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the application group.
+ /// The name of the host pool within the specified resource group.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetVirtualApplicationGroup(string applicationGroupName, CancellationToken cancellationToken = default)
+ public virtual Response GetHostPool(string hostPoolName, CancellationToken cancellationToken = default)
{
- return GetVirtualApplicationGroups().Get(applicationGroupName, cancellationToken);
+ return GetHostPools().Get(hostPoolName, cancellationToken);
}
- /// Gets a collection of HostPoolResources in the ResourceGroupResource.
- /// An object representing collection of HostPoolResources and their operations over a HostPoolResource.
- public virtual HostPoolCollection GetHostPools()
+ /// Gets a collection of ScalingPlanResources in the ResourceGroupResource.
+ /// An object representing collection of ScalingPlanResources and their operations over a ScalingPlanResource.
+ public virtual ScalingPlanCollection GetScalingPlans()
{
- return GetCachedClient(client => new HostPoolCollection(client, Id));
+ return GetCachedClient(client => new ScalingPlanCollection(client, Id));
}
///
- /// Get a host pool.
+ /// Get a scaling plan.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
///
/// -
/// Operation Id
- /// HostPools_Get
+ /// ScalingPlans_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the host pool within the specified resource group.
+ /// The name of the scaling plan.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetHostPoolAsync(string hostPoolName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetScalingPlanAsync(string scalingPlanName, CancellationToken cancellationToken = default)
{
- return await GetHostPools().GetAsync(hostPoolName, cancellationToken).ConfigureAwait(false);
+ return await GetScalingPlans().GetAsync(scalingPlanName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a host pool.
+ /// Get a scaling plan.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
///
/// -
/// Operation Id
- /// HostPools_Get
+ /// ScalingPlans_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the host pool within the specified resource group.
+ /// The name of the scaling plan.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetHostPool(string hostPoolName, CancellationToken cancellationToken = default)
+ public virtual Response GetScalingPlan(string scalingPlanName, CancellationToken cancellationToken = default)
{
- return GetHostPools().Get(hostPoolName, cancellationToken);
+ return GetScalingPlans().Get(scalingPlanName, cancellationToken);
}
- /// Gets a collection of AppAttachPackageResources in the ResourceGroupResource.
- /// An object representing collection of AppAttachPackageResources and their operations over a AppAttachPackageResource.
- public virtual AppAttachPackageCollection GetAppAttachPackages()
+ /// Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource.
+ /// An object representing collection of VirtualWorkspaceResources and their operations over a VirtualWorkspaceResource.
+ public virtual VirtualWorkspaceCollection GetVirtualWorkspaces()
{
- return GetCachedClient(client => new AppAttachPackageCollection(client, Id));
+ return GetCachedClient(client => new VirtualWorkspaceCollection(client, Id));
}
///
- /// Get an app attach package.
+ /// Get a workspace.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
///
/// -
/// Operation Id
- /// AppAttachPackage_Get
+ /// Workspaces_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the App Attach package.
+ /// The name of the workspace.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual async Task> GetAppAttachPackageAsync(string appAttachPackageName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetVirtualWorkspaceAsync(string workspaceName, CancellationToken cancellationToken = default)
{
- return await GetAppAttachPackages().GetAsync(appAttachPackageName, cancellationToken).ConfigureAwait(false);
+ return await GetVirtualWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false);
}
///
- /// Get an app attach package.
+ /// Get a workspace.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
///
/// -
/// Operation Id
- /// AppAttachPackage_Get
+ /// Workspaces_Get
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// The name of the App Attach package.
+ /// The name of the workspace.
/// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
[ForwardsClientCalls]
- public virtual Response GetAppAttachPackage(string appAttachPackageName, CancellationToken cancellationToken = default)
+ public virtual Response GetVirtualWorkspace(string workspaceName, CancellationToken cancellationToken = default)
{
- return GetAppAttachPackages().Get(appAttachPackageName, cancellationToken);
+ return GetVirtualWorkspaces().Get(workspaceName, cancellationToken);
}
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
index b29ed49e7ebc..3c5b4db2e197 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
@@ -15,16 +15,16 @@ namespace Azure.ResourceManager.DesktopVirtualization.Mocking
/// A class to add extension methods to SubscriptionResource.
public partial class MockableDesktopVirtualizationSubscriptionResource : ArmResource
{
- private ClientDiagnostics _virtualWorkspaceWorkspacesClientDiagnostics;
- private WorkspacesRestOperations _virtualWorkspaceWorkspacesRestClient;
- private ClientDiagnostics _scalingPlanClientDiagnostics;
- private ScalingPlansRestOperations _scalingPlanRestClient;
+ private ClientDiagnostics _appAttachPackageClientDiagnostics;
+ private AppAttachPackageRestOperations _appAttachPackageRestClient;
private ClientDiagnostics _virtualApplicationGroupApplicationGroupsClientDiagnostics;
private ApplicationGroupsRestOperations _virtualApplicationGroupApplicationGroupsRestClient;
private ClientDiagnostics _hostPoolClientDiagnostics;
private HostPoolsRestOperations _hostPoolRestClient;
- private ClientDiagnostics _appAttachPackageClientDiagnostics;
- private AppAttachPackageRestOperations _appAttachPackageRestClient;
+ private ClientDiagnostics _scalingPlanClientDiagnostics;
+ private ScalingPlansRestOperations _scalingPlanRestClient;
+ private ClientDiagnostics _virtualWorkspaceWorkspacesClientDiagnostics;
+ private WorkspacesRestOperations _virtualWorkspaceWorkspacesRestClient;
/// Initializes a new instance of the class for mocking.
protected MockableDesktopVirtualizationSubscriptionResource()
@@ -38,16 +38,16 @@ internal MockableDesktopVirtualizationSubscriptionResource(ArmClient client, Res
{
}
- private ClientDiagnostics VirtualWorkspaceWorkspacesClientDiagnostics => _virtualWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", VirtualWorkspaceResource.ResourceType.Namespace, Diagnostics);
- private WorkspacesRestOperations VirtualWorkspaceWorkspacesRestClient => _virtualWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(VirtualWorkspaceResource.ResourceType));
- private ClientDiagnostics ScalingPlanClientDiagnostics => _scalingPlanClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ScalingPlanResource.ResourceType.Namespace, Diagnostics);
- private ScalingPlansRestOperations ScalingPlanRestClient => _scalingPlanRestClient ??= new ScalingPlansRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ScalingPlanResource.ResourceType));
+ private ClientDiagnostics AppAttachPackageClientDiagnostics => _appAttachPackageClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", AppAttachPackageResource.ResourceType.Namespace, Diagnostics);
+ private AppAttachPackageRestOperations AppAttachPackageRestClient => _appAttachPackageRestClient ??= new AppAttachPackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppAttachPackageResource.ResourceType));
private ClientDiagnostics VirtualApplicationGroupApplicationGroupsClientDiagnostics => _virtualApplicationGroupApplicationGroupsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", VirtualApplicationGroupResource.ResourceType.Namespace, Diagnostics);
private ApplicationGroupsRestOperations VirtualApplicationGroupApplicationGroupsRestClient => _virtualApplicationGroupApplicationGroupsRestClient ??= new ApplicationGroupsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(VirtualApplicationGroupResource.ResourceType));
private ClientDiagnostics HostPoolClientDiagnostics => _hostPoolClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", HostPoolResource.ResourceType.Namespace, Diagnostics);
private HostPoolsRestOperations HostPoolRestClient => _hostPoolRestClient ??= new HostPoolsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(HostPoolResource.ResourceType));
- private ClientDiagnostics AppAttachPackageClientDiagnostics => _appAttachPackageClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", AppAttachPackageResource.ResourceType.Namespace, Diagnostics);
- private AppAttachPackageRestOperations AppAttachPackageRestClient => _appAttachPackageRestClient ??= new AppAttachPackageRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(AppAttachPackageResource.ResourceType));
+ private ClientDiagnostics ScalingPlanClientDiagnostics => _scalingPlanClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ScalingPlanResource.ResourceType.Namespace, Diagnostics);
+ private ScalingPlansRestOperations ScalingPlanRestClient => _scalingPlanRestClient ??= new ScalingPlansRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ScalingPlanResource.ResourceType));
+ private ClientDiagnostics VirtualWorkspaceWorkspacesClientDiagnostics => _virtualWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", VirtualWorkspaceResource.ResourceType.Namespace, Diagnostics);
+ private WorkspacesRestOperations VirtualWorkspaceWorkspacesRestClient => _virtualWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(VirtualWorkspaceResource.ResourceType));
private string GetApiVersionOrNull(ResourceType resourceType)
{
@@ -56,211 +56,213 @@ private string GetApiVersionOrNull(ResourceType resourceType)
}
///
- /// List workspaces in subscription.
+ /// List App Attach packages in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
///
/// -
/// Operation Id
- /// Workspaces_ListBySubscription
+ /// AppAttachPackage_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
+ /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetVirtualWorkspacesAsync(CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAppAttachPackagesAsync(string filter = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => VirtualWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => VirtualWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualWorkspaceResource(Client, VirtualWorkspaceData.DeserializeVirtualWorkspaceData(e)), VirtualWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetVirtualWorkspaces", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => AppAttachPackageRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppAttachPackageRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), AppAttachPackageClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetAppAttachPackages", "value", "nextLink", cancellationToken);
}
///
- /// List workspaces in subscription.
+ /// List App Attach packages in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages
///
/// -
/// Operation Id
- /// Workspaces_ListBySubscription
+ /// AppAttachPackage_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
+ /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetVirtualWorkspaces(CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAppAttachPackages(string filter = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => VirtualWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => VirtualWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualWorkspaceResource(Client, VirtualWorkspaceData.DeserializeVirtualWorkspaceData(e)), VirtualWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetVirtualWorkspaces", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => AppAttachPackageRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => AppAttachPackageRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AppAttachPackageResource(Client, AppAttachPackageData.DeserializeAppAttachPackageData(e)), AppAttachPackageClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetAppAttachPackages", "value", "nextLink", cancellationToken);
}
///
- /// List scaling plans in subscription.
+ /// List applicationGroups in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
///
/// -
/// Operation Id
- /// ScalingPlans_ListBySubscription
+ /// ApplicationGroups_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Number of items per page.
- /// Indicates whether the collection is descending.
- /// Initial number of items to skip.
+ /// OData filter expression. Valid properties for filtering are applicationGroupType.
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetScalingPlansAsync(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetVirtualApplicationGroupsAsync(string filter = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), ScalingPlanClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetScalingPlans", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => VirtualApplicationGroupApplicationGroupsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => VirtualApplicationGroupApplicationGroupsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationGroupResource(Client, VirtualApplicationGroupData.DeserializeVirtualApplicationGroupData(e)), VirtualApplicationGroupApplicationGroupsClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetVirtualApplicationGroups", "value", "nextLink", cancellationToken);
}
///
- /// List scaling plans in subscription.
+ /// List applicationGroups in subscription.
///
/// -
/// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups
///
/// -
/// Operation Id
- /// ScalingPlans_ListBySubscription
+ /// ApplicationGroups_ListBySubscription
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2025-04-01-preview
///
/// -
/// Resource
- ///
+ ///
///
///
///
- /// Number of items per page.
- /// Indicates whether the collection is descending.
- /// Initial number of items to skip.
+ /// OData filter expression. Valid properties for filtering are applicationGroupType.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetScalingPlans(int? pageSize = null, bool? isDescending = null, int? initialSkip = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetVirtualApplicationGroups(string filter = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => ScalingPlanRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, pageSizeHint, isDescending, initialSkip);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ScalingPlanRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, pageSizeHint, isDescending, initialSkip);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ScalingPlanResource(Client, ScalingPlanData.DeserializeScalingPlanData(e)), ScalingPlanClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetScalingPlans", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => VirtualApplicationGroupApplicationGroupsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => VirtualApplicationGroupApplicationGroupsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, filter);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VirtualApplicationGroupResource(Client, VirtualApplicationGroupData.DeserializeVirtualApplicationGroupData(e)), VirtualApplicationGroupApplicationGroupsClientDiagnostics, Pipeline, "MockableDesktopVirtualizationSubscriptionResource.GetVirtualApplicationGroups", "value", "nextLink", cancellationToken);
}
///
- /// List applicationGroups in subscription.
+ /// List hostPools in subscription.
///
/// -
///