diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
index eeb225a59a76..2a4a6b730ed1 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs
@@ -31,13 +31,6 @@ private string GetApiVersionOrNull(ResourceType resourceType)
return apiVersion;
}
- /// Gets a collection of PhpWorkloadResources in the ResourceGroupResource.
- /// An object representing collection of PhpWorkloadResources and their operations over a PhpWorkloadResource.
- public virtual PhpWorkloadResourceCollection GetPhpWorkloadResources()
- {
- return GetCachedClient(Client => new PhpWorkloadResourceCollection(Client, Id));
- }
-
/// Gets a collection of SapVirtualInstanceResources in the ResourceGroupResource.
/// An object representing collection of SapVirtualInstanceResources and their operations over a SapVirtualInstanceResource.
public virtual SapVirtualInstanceCollection GetSapVirtualInstances()
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
index b2ec8183ffde..7e46495371d8 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs
@@ -19,16 +19,12 @@ namespace Azure.ResourceManager.Workloads
/// A class to add extension methods to SubscriptionResource.
internal partial class SubscriptionResourceExtensionClient : ArmResource
{
- private ClientDiagnostics _phpWorkloadResourcePhpWorkloadsClientDiagnostics;
- private PhpWorkloadsRestOperations _phpWorkloadResourcePhpWorkloadsRestClient;
private ClientDiagnostics _defaultClientDiagnostics;
private WorkloadsRestOperations _defaultRestClient;
private ClientDiagnostics _sapVirtualInstanceSapVirtualInstancesClientDiagnostics;
private SAPVirtualInstancesRestOperations _sapVirtualInstanceSapVirtualInstancesRestClient;
private ClientDiagnostics _sapMonitormonitorsClientDiagnostics;
private MonitorsRestOperations _sapMonitormonitorsRestClient;
- private ClientDiagnostics _skusClientDiagnostics;
- private SkusRestOperations _skusRestClient;
/// Initializes a new instance of the class for mocking.
protected SubscriptionResourceExtensionClient()
@@ -42,16 +38,12 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie
{
}
- private ClientDiagnostics PhpWorkloadResourcePhpWorkloadsClientDiagnostics => _phpWorkloadResourcePhpWorkloadsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Workloads", PhpWorkloadResource.ResourceType.Namespace, Diagnostics);
- private PhpWorkloadsRestOperations PhpWorkloadResourcePhpWorkloadsRestClient => _phpWorkloadResourcePhpWorkloadsRestClient ??= new PhpWorkloadsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(PhpWorkloadResource.ResourceType));
private ClientDiagnostics DefaultClientDiagnostics => _defaultClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Workloads", ProviderConstants.DefaultProviderNamespace, Diagnostics);
private WorkloadsRestOperations DefaultRestClient => _defaultRestClient ??= new WorkloadsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private ClientDiagnostics SapVirtualInstanceSAPVirtualInstancesClientDiagnostics => _sapVirtualInstanceSapVirtualInstancesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Workloads", SapVirtualInstanceResource.ResourceType.Namespace, Diagnostics);
private SAPVirtualInstancesRestOperations SapVirtualInstanceSAPVirtualInstancesRestClient => _sapVirtualInstanceSapVirtualInstancesRestClient ??= new SAPVirtualInstancesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SapVirtualInstanceResource.ResourceType));
private ClientDiagnostics SapMonitormonitorsClientDiagnostics => _sapMonitormonitorsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Workloads", SapMonitorResource.ResourceType.Namespace, Diagnostics);
private MonitorsRestOperations SapMonitormonitorsRestClient => _sapMonitormonitorsRestClient ??= new MonitorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SapMonitorResource.ResourceType));
- private ClientDiagnostics SkusClientDiagnostics => _skusClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Workloads", ProviderConstants.DefaultProviderNamespace, Diagnostics);
- private SkusRestOperations SkusRestClient => _skusRestClient ??= new SkusRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private string GetApiVersionOrNull(ResourceType resourceType)
{
@@ -60,51 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
}
///
- /// Lists PHP workload resources for a subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_ListBySubscription
- ///
- ///
- ///
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetPhpWorkloadResourcesAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => PhpWorkloadResourcePhpWorkloadsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PhpWorkloadResourcePhpWorkloadsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new PhpWorkloadResource(Client, PhpWorkloadResourceData.DeserializePhpWorkloadResourceData(e)), PhpWorkloadResourcePhpWorkloadsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPhpWorkloadResources", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Lists PHP workload resources for a subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_ListBySubscription
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetPhpWorkloadResources(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => PhpWorkloadResourcePhpWorkloadsRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PhpWorkloadResourcePhpWorkloadsRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new PhpWorkloadResource(Client, PhpWorkloadResourceData.DeserializePhpWorkloadResourceData(e)), PhpWorkloadResourcePhpWorkloadsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetPhpWorkloadResources", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Get SAP sizing recommendations.
+ /// Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
///
/// -
/// Request Path
@@ -136,7 +84,7 @@ public virtual async Task> SapSizingReco
}
///
- /// Get SAP sizing recommendations.
+ /// Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
///
/// -
/// Request Path
@@ -168,7 +116,7 @@ public virtual Response SapSizingRecommendations(
}
///
- /// Get SAP supported SKUs.
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
///
/// -
/// Request Path
@@ -200,7 +148,7 @@ public virtual async Task> SapSupported
}
///
- /// Get SAP supported SKUs.
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
///
/// -
/// Request Path
@@ -232,7 +180,7 @@ public virtual Response SapSupportedSku(AzureLoc
}
///
- /// Get SAP Disk Configurations.
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
///
/// -
/// Request Path
@@ -264,7 +212,7 @@ public virtual async Task> SapDiskConfigur
}
///
- /// Get SAP Disk Configurations.
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
///
/// -
/// Request Path
@@ -296,7 +244,7 @@ public virtual Response SapDiskConfigurations(Azure
}
///
- /// Get SAP Availability Zone Details.
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
///
/// -
/// Request Path
@@ -328,7 +276,7 @@ public virtual async Task> SapAvailab
}
///
- /// Get SAP Availability Zone Details.
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
///
/// -
/// Request Path
@@ -360,7 +308,7 @@ public virtual Response SapAvailabilityZoneDet
}
///
- /// Gets all Virtual Instances for SAP in the subscription.
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
///
/// -
/// Request Path
@@ -382,7 +330,7 @@ public virtual AsyncPageable GetSapVirtualInstancesA
}
///
- /// Gets all Virtual Instances for SAP in the subscription.
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
///
/// -
/// Request Path
@@ -446,49 +394,5 @@ public virtual Pageable GetSapMonitors(CancellationToken can
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SapMonitormonitorsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SapMonitorResource(Client, SapMonitorData.DeserializeSapMonitorData(e)), SapMonitormonitorsClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetSapMonitors", "value", "nextLink", cancellationToken);
}
-
- ///
- /// Lists all the available SKUs under this PR
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus
- ///
- /// -
- /// Operation Id
- /// Skus_List
- ///
- ///
- ///
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetSkusAsync(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => SkusRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SkusRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, SkuDefinition.DeserializeSkuDefinition, SkusClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetSkus", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Lists all the available SKUs under this PR
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus
- ///
- /// -
- /// Operation Id
- /// Skus_List
- ///
- ///
- ///
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetSkus(CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => SkusRestClient.CreateListRequest(Id.SubscriptionId);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SkusRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, SkuDefinition.DeserializeSkuDefinition, SkusClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetSkus", "value", "nextLink", cancellationToken);
- }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/WorkloadsExtensions.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/WorkloadsExtensions.cs
index 54407f072522..c7689c6b5b8d 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/WorkloadsExtensions.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Extensions/WorkloadsExtensions.cs
@@ -29,49 +29,7 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti
}
///
- /// Lists PHP workload resources for a subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_ListBySubscription
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetPhpWorkloadResourcesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetExtensionClient(subscriptionResource).GetPhpWorkloadResourcesAsync(cancellationToken);
- }
-
- ///
- /// Lists PHP workload resources for a subscription.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_ListBySubscription
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetPhpWorkloadResources(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetExtensionClient(subscriptionResource).GetPhpWorkloadResources(cancellationToken);
- }
-
- ///
- /// Get SAP sizing recommendations.
+ /// Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
///
/// -
/// Request Path
@@ -93,7 +51,7 @@ public static async Task> SapSizingRecom
}
///
- /// Get SAP sizing recommendations.
+ /// Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
///
/// -
/// Request Path
@@ -115,7 +73,7 @@ public static Response SapSizingRecommendations(t
}
///
- /// Get SAP supported SKUs.
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
///
/// -
/// Request Path
@@ -137,7 +95,7 @@ public static async Task> SapSupportedS
}
///
- /// Get SAP supported SKUs.
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
///
/// -
/// Request Path
@@ -159,7 +117,7 @@ public static Response SapSupportedSku(this Subs
}
///
- /// Get SAP Disk Configurations.
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
///
/// -
/// Request Path
@@ -181,7 +139,7 @@ public static async Task> SapDiskConfigura
}
///
- /// Get SAP Disk Configurations.
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
///
/// -
/// Request Path
@@ -203,7 +161,7 @@ public static Response SapDiskConfigurations(this S
}
///
- /// Get SAP Availability Zone Details.
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
///
/// -
/// Request Path
@@ -225,7 +183,7 @@ public static async Task> SapAvailabi
}
///
- /// Get SAP Availability Zone Details.
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
///
/// -
/// Request Path
@@ -247,7 +205,7 @@ public static Response SapAvailabilityZoneDeta
}
///
- /// Gets all Virtual Instances for SAP in the subscription.
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
///
/// -
/// Request Path
@@ -268,7 +226,7 @@ public static AsyncPageable GetSapVirtualInstancesAs
}
///
- /// Gets all Virtual Instances for SAP in the subscription.
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
///
/// -
/// Request Path
@@ -330,48 +288,6 @@ public static Pageable GetSapMonitors(this SubscriptionResou
return GetExtensionClient(subscriptionResource).GetSapMonitors(cancellationToken);
}
- ///
- /// Lists all the available SKUs under this PR
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus
- ///
- /// -
- /// Operation Id
- /// Skus_List
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public static AsyncPageable GetSkusAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetExtensionClient(subscriptionResource).GetSkusAsync(cancellationToken);
- }
-
- ///
- /// Lists all the available SKUs under this PR
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus
- ///
- /// -
- /// Operation Id
- /// Skus_List
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public static Pageable GetSkus(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
- {
- return GetExtensionClient(subscriptionResource).GetSkus(cancellationToken);
- }
-
private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource)
{
return resourceGroupResource.GetCachedClient((client) =>
@@ -381,62 +297,6 @@ private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceG
);
}
- /// Gets a collection of PhpWorkloadResources in the ResourceGroupResource.
- /// The instance the method will execute against.
- /// An object representing collection of PhpWorkloadResources and their operations over a PhpWorkloadResource.
- public static PhpWorkloadResourceCollection GetPhpWorkloadResources(this ResourceGroupResource resourceGroupResource)
- {
- return GetExtensionClient(resourceGroupResource).GetPhpWorkloadResources();
- }
-
- ///
- /// Gets the PHP workload resource.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_Get
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// Php workload name.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public static async Task> GetPhpWorkloadResourceAsync(this ResourceGroupResource resourceGroupResource, string phpWorkloadName, CancellationToken cancellationToken = default)
- {
- return await resourceGroupResource.GetPhpWorkloadResources().GetAsync(phpWorkloadName, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Gets the PHP workload resource.
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}
- ///
- /// -
- /// Operation Id
- /// PhpWorkloads_Get
- ///
- ///
- ///
- /// The instance the method will execute against.
- /// Php workload name.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- [ForwardsClientCalls]
- public static Response GetPhpWorkloadResource(this ResourceGroupResource resourceGroupResource, string phpWorkloadName, CancellationToken cancellationToken = default)
- {
- return resourceGroupResource.GetPhpWorkloadResources().Get(phpWorkloadName, cancellationToken);
- }
-
/// Gets a collection of SapVirtualInstanceResources in the ResourceGroupResource.
/// The instance the method will execute against.
/// An object representing collection of SapVirtualInstanceResources and their operations over a SapVirtualInstanceResource.
@@ -446,7 +306,7 @@ public static SapVirtualInstanceCollection GetSapVirtualInstances(this ResourceG
}
///
- /// Gets an Virtual Instance for SAP.
+ /// Gets a Virtual Instance for SAP solutions resource
///
/// -
/// Request Path
@@ -459,7 +319,7 @@ public static SapVirtualInstanceCollection GetSapVirtualInstances(this ResourceG
///
///
/// The instance the method will execute against.
- /// The name of the Virtual Instances for SAP.
+ /// The name of the Virtual Instances for SAP solutions resource.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -470,7 +330,7 @@ public static async Task> GetSapVirtualInst
}
///
- /// Gets an Virtual Instance for SAP.
+ /// Gets a Virtual Instance for SAP solutions resource
///
/// -
/// Request Path
@@ -483,7 +343,7 @@ public static async Task> GetSapVirtualInst
///
///
/// The instance the method will execute against.
- /// The name of the Virtual Instances for SAP.
+ /// The name of the Virtual Instances for SAP solutions resource.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -549,44 +409,6 @@ public static Response GetSapMonitor(this ResourceGroupResou
return resourceGroupResource.GetSapMonitors().Get(monitorName, cancellationToken);
}
- #region PhpWorkloadResource
- ///
- /// 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 instance the method will execute against.
- /// The resource ID of the resource to get.
- /// Returns a object.
- public static PhpWorkloadResource GetPhpWorkloadResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- PhpWorkloadResource.ValidateResourceId(id);
- return new PhpWorkloadResource(client, id);
- }
- );
- }
- #endregion
-
- #region WordPressInstanceResource
- ///
- /// 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 instance the method will execute against.
- /// The resource ID of the resource to get.
- /// Returns a object.
- public static WordPressInstanceResource GetWordPressInstanceResource(this ArmClient client, ResourceIdentifier id)
- {
- return client.GetResourceClient(() =>
- {
- WordPressInstanceResource.ValidateResourceId(id);
- return new WordPressInstanceResource(client, id);
- }
- );
- }
- #endregion
-
#region SapVirtualInstanceResource
///
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
@@ -700,5 +522,24 @@ public static SapProviderInstanceResource GetSapProviderInstanceResource(this Ar
);
}
#endregion
+
+ #region SapLandscapeMonitorResource
+ ///
+ /// 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 instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static SapLandscapeMonitorResource GetSapLandscapeMonitorResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ SapLandscapeMonitorResource.ValidateResourceId(id);
+ return new SapLandscapeMonitorResource(client, id);
+ }
+ );
+ }
+ #endregion
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/PhpWorkloadResourceOperationSource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/PhpWorkloadResourceOperationSource.cs
deleted file mode 100644
index e93f7e992a3a..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/PhpWorkloadResourceOperationSource.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.Workloads
-{
- internal class PhpWorkloadResourceOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal PhpWorkloadResourceOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- PhpWorkloadResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- using var document = JsonDocument.Parse(response.ContentStream);
- var data = PhpWorkloadResourceData.DeserializePhpWorkloadResourceData(document.RootElement);
- return new PhpWorkloadResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
- var data = PhpWorkloadResourceData.DeserializePhpWorkloadResourceData(document.RootElement);
- return new PhpWorkloadResource(_client, data);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WordPressInstanceResourceOperationSource.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WordPressInstanceResourceOperationSource.cs
deleted file mode 100644
index 53d090cb6adc..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/LongRunningOperation/WordPressInstanceResourceOperationSource.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using System.Threading;
-using System.Threading.Tasks;
-using Azure;
-using Azure.Core;
-using Azure.ResourceManager;
-
-namespace Azure.ResourceManager.Workloads
-{
- internal class WordPressInstanceResourceOperationSource : IOperationSource
- {
- private readonly ArmClient _client;
-
- internal WordPressInstanceResourceOperationSource(ArmClient client)
- {
- _client = client;
- }
-
- WordPressInstanceResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
- {
- using var document = JsonDocument.Parse(response.ContentStream);
- var data = WordPressInstanceResourceData.DeserializeWordPressInstanceResourceData(document.RootElement);
- return new WordPressInstanceResource(_client, data);
- }
-
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
- {
- using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
- var data = WordPressInstanceResourceData.DeserializeWordPressInstanceResourceData(document.RootElement);
- return new WordPressInstanceResource(_client, data);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationProvisioningState.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationProvisioningState.cs
deleted file mode 100644
index 3594358eea7e..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationProvisioningState.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// WordPress instance provisioning state.
- public readonly partial struct ApplicationProvisioningState : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public ApplicationProvisioningState(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string NotSpecifiedValue = "NotSpecified";
- private const string AcceptedValue = "Accepted";
- private const string CreatedValue = "Created";
- private const string SucceededValue = "Succeeded";
- private const string FailedValue = "Failed";
- private const string CanceledValue = "Canceled";
- private const string InstallingValue = "Installing";
-
- /// NotSpecified.
- public static ApplicationProvisioningState NotSpecified { get; } = new ApplicationProvisioningState(NotSpecifiedValue);
- /// Accepted.
- public static ApplicationProvisioningState Accepted { get; } = new ApplicationProvisioningState(AcceptedValue);
- /// Created.
- public static ApplicationProvisioningState Created { get; } = new ApplicationProvisioningState(CreatedValue);
- /// Succeeded.
- public static ApplicationProvisioningState Succeeded { get; } = new ApplicationProvisioningState(SucceededValue);
- /// Failed.
- public static ApplicationProvisioningState Failed { get; } = new ApplicationProvisioningState(FailedValue);
- /// Canceled.
- public static ApplicationProvisioningState Canceled { get; } = new ApplicationProvisioningState(CanceledValue);
- /// Installing.
- public static ApplicationProvisioningState Installing { get; } = new ApplicationProvisioningState(InstallingValue);
- /// Determines if two values are the same.
- public static bool operator ==(ApplicationProvisioningState left, ApplicationProvisioningState right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(ApplicationProvisioningState left, ApplicationProvisioningState right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator ApplicationProvisioningState(string value) => new ApplicationProvisioningState(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ApplicationProvisioningState other && Equals(other);
- ///
- public bool Equals(ApplicationProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.Serialization.cs
new file mode 100644
index 000000000000..0cbf7995b05b
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.Serialization.cs
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class ApplicationServerFullResourceNames : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsCollectionDefined(VirtualMachines))
+ {
+ writer.WritePropertyName("virtualMachines"u8);
+ writer.WriteStartArray();
+ foreach (var item in VirtualMachines)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(AvailabilitySetName))
+ {
+ writer.WritePropertyName("availabilitySetName"u8);
+ writer.WriteStringValue(AvailabilitySetName);
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static ApplicationServerFullResourceNames DeserializeApplicationServerFullResourceNames(JsonElement element)
+ {
+ Optional> virtualMachines = default;
+ Optional availabilitySetName = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("virtualMachines"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(VirtualMachineResourceNames.DeserializeVirtualMachineResourceNames(item));
+ }
+ virtualMachines = array;
+ continue;
+ }
+ if (property.NameEquals("availabilitySetName"u8))
+ {
+ availabilitySetName = property.Value.GetString();
+ continue;
+ }
+ }
+ return new ApplicationServerFullResourceNames(Optional.ToList(virtualMachines), availabilitySetName.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs
new file mode 100644
index 000000000000..7c28cc6b6430
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerFullResourceNames.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The full resource names object for application layer resources. The number of entries in this list should be equal to the number VMs to be created for application layer.
+ public partial class ApplicationServerFullResourceNames
+ {
+ /// Initializes a new instance of ApplicationServerFullResourceNames.
+ public ApplicationServerFullResourceNames()
+ {
+ VirtualMachines = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of ApplicationServerFullResourceNames.
+ /// The list of virtual machine naming details.
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-App-AvSet.
+ internal ApplicationServerFullResourceNames(IList virtualMachines, string availabilitySetName)
+ {
+ VirtualMachines = virtualMachines;
+ AvailabilitySetName = availabilitySetName;
+ }
+
+ /// The list of virtual machine naming details.
+ public IList VirtualMachines { get; }
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-App-AvSet.
+ public string AvailabilitySetName { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVirtualMachineType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVirtualMachineType.cs
new file mode 100644
index 000000000000..933d90067e8d
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVirtualMachineType.cs
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// Defines the type of application server VM.
+ public readonly partial struct ApplicationServerVirtualMachineType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ApplicationServerVirtualMachineType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string ActiveValue = "Active";
+ private const string StandbyValue = "Standby";
+ private const string UnknownValue = "Unknown";
+
+ /// Active.
+ public static ApplicationServerVirtualMachineType Active { get; } = new ApplicationServerVirtualMachineType(ActiveValue);
+ /// Standby.
+ public static ApplicationServerVirtualMachineType Standby { get; } = new ApplicationServerVirtualMachineType(StandbyValue);
+ /// Unknown.
+ public static ApplicationServerVirtualMachineType Unknown { get; } = new ApplicationServerVirtualMachineType(UnknownValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ApplicationServerVirtualMachineType left, ApplicationServerVirtualMachineType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ApplicationServerVirtualMachineType left, ApplicationServerVirtualMachineType right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator ApplicationServerVirtualMachineType(string value) => new ApplicationServerVirtualMachineType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ApplicationServerVirtualMachineType other && Equals(other);
+ ///
+ public bool Equals(ApplicationServerVirtualMachineType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SkuRestriction.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.Serialization.cs
similarity index 51%
rename from sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SkuRestriction.Serialization.cs
rename to sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.Serialization.cs
index da645c868c41..84226ae067d4 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/SkuRestriction.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.Serialization.cs
@@ -8,17 +8,17 @@
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Workloads.Models
{
- public partial class SkuRestriction
+ public partial class ApplicationServerVmDetails
{
- internal static SkuRestriction DeserializeSkuRestriction(JsonElement element)
+ internal static ApplicationServerVmDetails DeserializeApplicationServerVmDetails(JsonElement element)
{
- Optional type = default;
- Optional> values = default;
- Optional restrictionInfo = default;
- Optional reasonCode = default;
+ Optional type = default;
+ Optional virtualMachineId = default;
+ Optional> storageDetails = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("type"u8))
@@ -28,46 +28,36 @@ internal static SkuRestriction DeserializeSkuRestriction(JsonElement element)
property.ThrowNonNullablePropertyIsNull();
continue;
}
- type = new SkuRestrictionType(property.Value.GetString());
+ type = new ApplicationServerVirtualMachineType(property.Value.GetString());
continue;
}
- if (property.NameEquals("values"u8))
+ if (property.NameEquals("virtualMachineId"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- List array = new List();
- foreach (var item in property.Value.EnumerateArray())
- {
- array.Add(item.GetString());
- }
- values = array;
+ virtualMachineId = new ResourceIdentifier(property.Value.GetString());
continue;
}
- if (property.NameEquals("restrictionInfo"u8))
+ if (property.NameEquals("storageDetails"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
- restrictionInfo = RestrictionInfo.DeserializeRestrictionInfo(property.Value);
- continue;
- }
- if (property.NameEquals("reasonCode"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
{
- property.ThrowNonNullablePropertyIsNull();
- continue;
+ array.Add(JsonSerializer.Deserialize(item.GetRawText()));
}
- reasonCode = new SkuRestrictionReasonCode(property.Value.GetString());
+ storageDetails = array;
continue;
}
}
- return new SkuRestriction(Optional.ToNullable(type), Optional.ToList(values), restrictionInfo.Value, Optional.ToNullable(reasonCode));
+ return new ApplicationServerVmDetails(Optional.ToNullable(type), virtualMachineId.Value, Optional.ToList(storageDetails));
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs
new file mode 100644
index 000000000000..ea2ffb286cc6
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ApplicationServerVmDetails.cs
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The Application Server VM Details.
+ public partial class ApplicationServerVmDetails
+ {
+ /// Initializes a new instance of ApplicationServerVmDetails.
+ internal ApplicationServerVmDetails()
+ {
+ StorageDetails = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of ApplicationServerVmDetails.
+ /// Defines the type of application server VM.
+ ///
+ /// Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ internal ApplicationServerVmDetails(ApplicationServerVirtualMachineType? virtualMachineType, ResourceIdentifier virtualMachineId, IReadOnlyList storageDetails)
+ {
+ VirtualMachineType = virtualMachineType;
+ VirtualMachineId = virtualMachineId;
+ StorageDetails = storageDetails;
+ }
+
+ /// Defines the type of application server VM.
+ public ApplicationServerVirtualMachineType? VirtualMachineType { get; }
+ /// Gets the virtual machine id.
+ public ResourceIdentifier VirtualMachineId { get; }
+ /// Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ public IReadOnlyList StorageDetails { get; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/AzureFrontDoorEnabled.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/AzureFrontDoorEnabled.cs
deleted file mode 100644
index 8c57900fa49c..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/AzureFrontDoorEnabled.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Whether to enable Azure front door.
- public readonly partial struct AzureFrontDoorEnabled : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public AzureFrontDoorEnabled(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static AzureFrontDoorEnabled Enabled { get; } = new AzureFrontDoorEnabled(EnabledValue);
- /// Disabled.
- public static AzureFrontDoorEnabled Disabled { get; } = new AzureFrontDoorEnabled(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(AzureFrontDoorEnabled left, AzureFrontDoorEnabled right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(AzureFrontDoorEnabled left, AzureFrontDoorEnabled right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator AzureFrontDoorEnabled(string value) => new AzureFrontDoorEnabled(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AzureFrontDoorEnabled other && Equals(other);
- ///
- public bool Equals(AzureFrontDoorEnabled other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.Serialization.cs
deleted file mode 100644
index 7277e071bc3c..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.Serialization.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- public partial class BackupProfile : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("backupEnabled"u8);
- writer.WriteStringValue(BackupEnabled.ToString());
- writer.WriteEndObject();
- }
-
- internal static BackupProfile DeserializeBackupProfile(JsonElement element)
- {
- EnableBackup backupEnabled = default;
- Optional vaultResourceId = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("backupEnabled"u8))
- {
- backupEnabled = new EnableBackup(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("vaultResourceId"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- vaultResourceId = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- }
- return new BackupProfile(backupEnabled, vaultResourceId.Value);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.cs
deleted file mode 100644
index f246570eca36..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/BackupProfile.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Backup profile.
- public partial class BackupProfile
- {
- /// Initializes a new instance of BackupProfile.
- /// Whether to enable Azure backup for the workload.
- public BackupProfile(EnableBackup backupEnabled)
- {
- BackupEnabled = backupEnabled;
- }
-
- /// Initializes a new instance of BackupProfile.
- /// Whether to enable Azure backup for the workload.
- /// Backup vault resource Id.
- internal BackupProfile(EnableBackup backupEnabled, ResourceIdentifier vaultResourceId)
- {
- BackupEnabled = backupEnabled;
- VaultResourceId = vaultResourceId;
- }
-
- /// Whether to enable Azure backup for the workload.
- public EnableBackup BackupEnabled { get; set; }
- /// Backup vault resource Id.
- public ResourceIdentifier VaultResourceId { get; }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.Serialization.cs
deleted file mode 100644
index 69b9924c3540..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.Serialization.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- public partial class CacheProfile : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- if (Optional.IsDefined(Name))
- {
- writer.WritePropertyName("name"u8);
- writer.WriteStringValue(Name);
- }
- writer.WritePropertyName("skuName"u8);
- writer.WriteStringValue(SkuName);
- writer.WritePropertyName("family"u8);
- writer.WriteStringValue(Family.ToString());
- writer.WritePropertyName("capacity"u8);
- writer.WriteNumberValue(Capacity);
- writer.WriteEndObject();
- }
-
- internal static CacheProfile DeserializeCacheProfile(JsonElement element)
- {
- Optional name = default;
- string skuName = default;
- RedisCacheFamily family = default;
- long capacity = default;
- Optional cacheResourceId = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("name"u8))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("skuName"u8))
- {
- skuName = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("family"u8))
- {
- family = new RedisCacheFamily(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("capacity"u8))
- {
- capacity = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("cacheResourceId"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- cacheResourceId = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- }
- return new CacheProfile(name.Value, skuName, family, capacity, cacheResourceId.Value);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.cs
deleted file mode 100644
index 4acc32ed768f..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CacheProfile.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Cache profile.
- public partial class CacheProfile
- {
- /// Initializes a new instance of CacheProfile.
- /// Cache SKU name.
- /// Cache family.
- /// Cache capacity.
- /// is null.
- public CacheProfile(string skuName, RedisCacheFamily family, long capacity)
- {
- Argument.AssertNotNull(skuName, nameof(skuName));
-
- SkuName = skuName;
- Family = family;
- Capacity = capacity;
- }
-
- /// Initializes a new instance of CacheProfile.
- /// Cache name.
- /// Cache SKU name.
- /// Cache family.
- /// Cache capacity.
- /// Cache resource Id.
- internal CacheProfile(string name, string skuName, RedisCacheFamily family, long capacity, ResourceIdentifier cacheResourceId)
- {
- Name = name;
- SkuName = skuName;
- Family = family;
- Capacity = capacity;
- CacheResourceId = cacheResourceId;
- }
-
- /// Cache name.
- public string Name { get; set; }
- /// Cache SKU name.
- public string SkuName { get; set; }
- /// Cache family.
- public RedisCacheFamily Family { get; set; }
- /// Cache capacity.
- public long Capacity { get; set; }
- /// Cache resource Id.
- public ResourceIdentifier CacheResourceId { get; }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.Serialization.cs
new file mode 100644
index 000000000000..43fa8717a485
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.Serialization.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class CentralServerFullResourceNames : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsCollectionDefined(VirtualMachines))
+ {
+ writer.WritePropertyName("virtualMachines"u8);
+ writer.WriteStartArray();
+ foreach (var item in VirtualMachines)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(AvailabilitySetName))
+ {
+ writer.WritePropertyName("availabilitySetName"u8);
+ writer.WriteStringValue(AvailabilitySetName);
+ }
+ if (Optional.IsDefined(LoadBalancer))
+ {
+ writer.WritePropertyName("loadBalancer"u8);
+ writer.WriteObjectValue(LoadBalancer);
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static CentralServerFullResourceNames DeserializeCentralServerFullResourceNames(JsonElement element)
+ {
+ Optional> virtualMachines = default;
+ Optional availabilitySetName = default;
+ Optional loadBalancer = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("virtualMachines"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(VirtualMachineResourceNames.DeserializeVirtualMachineResourceNames(item));
+ }
+ virtualMachines = array;
+ continue;
+ }
+ if (property.NameEquals("availabilitySetName"u8))
+ {
+ availabilitySetName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("loadBalancer"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ loadBalancer = LoadBalancerResourceNames.DeserializeLoadBalancerResourceNames(property.Value);
+ continue;
+ }
+ }
+ return new CentralServerFullResourceNames(Optional.ToList(virtualMachines), availabilitySetName.Value, loadBalancer.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs
new file mode 100644
index 000000000000..2714ee5158a2
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerFullResourceNames.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The full resource names object for central server layer resources.
+ public partial class CentralServerFullResourceNames
+ {
+ /// Initializes a new instance of CentralServerFullResourceNames.
+ public CentralServerFullResourceNames()
+ {
+ VirtualMachines = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of CentralServerFullResourceNames.
+ /// The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to the number VMs to be created for ASCS layer. At maximum, there can be two virtual machines at this layer: ASCS and ERS.
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-ASCS-AvSet.
+ /// The resource names object for load balancer and related resources.
+ internal CentralServerFullResourceNames(IList virtualMachines, string availabilitySetName, LoadBalancerResourceNames loadBalancer)
+ {
+ VirtualMachines = virtualMachines;
+ AvailabilitySetName = availabilitySetName;
+ LoadBalancer = loadBalancer;
+ }
+
+ /// The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to the number VMs to be created for ASCS layer. At maximum, there can be two virtual machines at this layer: ASCS and ERS.
+ public IList VirtualMachines { get; }
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-ASCS-AvSet.
+ public string AvailabilitySetName { get; set; }
+ /// The resource names object for load balancer and related resources.
+ public LoadBalancerResourceNames LoadBalancer { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.Serialization.cs
index 506b0f5452b6..692f8b92e76a 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.Serialization.cs
@@ -5,8 +5,10 @@
#nullable disable
+using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Workloads.Models
{
@@ -16,6 +18,7 @@ internal static CentralServerVmDetails DeserializeCentralServerVmDetails(JsonEle
{
Optional type = default;
Optional virtualMachineId = default;
+ Optional> storageDetails = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("type"u8))
@@ -38,8 +41,23 @@ internal static CentralServerVmDetails DeserializeCentralServerVmDetails(JsonEle
virtualMachineId = new ResourceIdentifier(property.Value.GetString());
continue;
}
+ if (property.NameEquals("storageDetails"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(JsonSerializer.Deserialize(item.GetRawText()));
+ }
+ storageDetails = array;
+ continue;
+ }
}
- return new CentralServerVmDetails(Optional.ToNullable(type), virtualMachineId.Value);
+ return new CentralServerVmDetails(Optional.ToNullable(type), virtualMachineId.Value, Optional.ToList(storageDetails));
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs
index 204f9cfc4a91..ac98e8cee702 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CentralServerVmDetails.cs
@@ -5,30 +5,37 @@
#nullable disable
+using System.Collections.Generic;
using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Workloads.Models
{
- /// The Central Server VM Details.
+ /// The SAP Central Services Instance VM details.
public partial class CentralServerVmDetails
{
/// Initializes a new instance of CentralServerVmDetails.
internal CentralServerVmDetails()
{
+ StorageDetails = new ChangeTrackingList();
}
/// Initializes a new instance of CentralServerVmDetails.
/// Defines the type of central server VM.
///
- internal CentralServerVmDetails(CentralServerVirtualMachineType? virtualMachineType, ResourceIdentifier virtualMachineId)
+ /// Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ internal CentralServerVmDetails(CentralServerVirtualMachineType? virtualMachineType, ResourceIdentifier virtualMachineId, IReadOnlyList storageDetails)
{
VirtualMachineType = virtualMachineType;
VirtualMachineId = virtualMachineId;
+ StorageDetails = storageDetails;
}
/// Defines the type of central server VM.
public CentralServerVirtualMachineType? VirtualMachineType { get; }
/// Gets the virtual machine id.
public ResourceIdentifier VirtualMachineId { get; }
+ /// Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ public IReadOnlyList StorageDetails { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ConfigurationType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ConfigurationType.cs
new file mode 100644
index 000000000000..f0631a014cf9
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ConfigurationType.cs
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The type of file share config.
+ internal readonly partial struct ConfigurationType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ConfigurationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string SkipValue = "Skip";
+ private const string CreateAndMountValue = "CreateAndMount";
+ private const string MountValue = "Mount";
+
+ /// Skip.
+ public static ConfigurationType Skip { get; } = new ConfigurationType(SkipValue);
+ /// CreateAndMount.
+ public static ConfigurationType CreateAndMount { get; } = new ConfigurationType(CreateAndMountValue);
+ /// Mount.
+ public static ConfigurationType Mount { get; } = new ConfigurationType(MountValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ConfigurationType left, ConfigurationType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ConfigurationType left, ConfigurationType right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator ConfigurationType(string value) => new ConfigurationType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ConfigurationType other && Equals(other);
+ ///
+ public bool Equals(ConfigurationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.Serialization.cs
new file mode 100644
index 000000000000..dfadf007fd5d
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.Serialization.cs
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class CreateAndMountFileShareConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(ResourceGroup))
+ {
+ writer.WritePropertyName("resourceGroup"u8);
+ writer.WriteStringValue(ResourceGroup);
+ }
+ if (Optional.IsDefined(StorageAccountName))
+ {
+ writer.WritePropertyName("storageAccountName"u8);
+ writer.WriteStringValue(StorageAccountName);
+ }
+ writer.WritePropertyName("configurationType"u8);
+ writer.WriteStringValue(ConfigurationType.ToString());
+ writer.WriteEndObject();
+ }
+
+ internal static CreateAndMountFileShareConfiguration DeserializeCreateAndMountFileShareConfiguration(JsonElement element)
+ {
+ Optional resourceGroup = default;
+ Optional storageAccountName = default;
+ ConfigurationType configurationType = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("resourceGroup"u8))
+ {
+ resourceGroup = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("storageAccountName"u8))
+ {
+ storageAccountName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("configurationType"u8))
+ {
+ configurationType = new ConfigurationType(property.Value.GetString());
+ continue;
+ }
+ }
+ return new CreateAndMountFileShareConfiguration(configurationType, resourceGroup.Value, storageAccountName.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.cs
new file mode 100644
index 000000000000..f223fbc53baf
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/CreateAndMountFileShareConfiguration.cs
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ public partial class CreateAndMountFileShareConfiguration : FileShareConfiguration
+ {
+ /// Initializes a new instance of CreateAndMountFileShareConfiguration.
+ public CreateAndMountFileShareConfiguration()
+ {
+ ConfigurationType = ConfigurationType.CreateAndMount;
+ }
+
+ /// Initializes a new instance of CreateAndMountFileShareConfiguration.
+ /// The type of file share config.
+ /// The name of transport file share resource group. This should be pre created by the customer. The app rg is used in case of missing input.
+ /// The name of file share storage account name . A custom name is used in case of missing input.
+ internal CreateAndMountFileShareConfiguration(ConfigurationType configurationType, string resourceGroup, string storageAccountName) : base(configurationType)
+ {
+ ResourceGroup = resourceGroup;
+ StorageAccountName = storageAccountName;
+ ConfigurationType = configurationType;
+ }
+
+ /// The name of transport file share resource group. This should be pre created by the customer. The app rg is used in case of missing input.
+ public string ResourceGroup { get; set; }
+ /// The name of file share storage account name . A custom name is used in case of missing input.
+ public string StorageAccountName { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.Serialization.cs
index 664d21c38f55..c64c4a65b5cb 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.Serialization.cs
@@ -51,6 +51,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("sapSid"u8);
writer.WriteStringValue(SapSid);
}
+ if (Optional.IsDefined(SslPreference))
+ {
+ writer.WritePropertyName("sslPreference"u8);
+ writer.WriteStringValue(SslPreference.Value.ToString());
+ }
+ if (Optional.IsDefined(SslCertificateUri))
+ {
+ writer.WritePropertyName("sslCertificateUri"u8);
+ writer.WriteStringValue(SslCertificateUri.AbsoluteUri);
+ }
writer.WritePropertyName("providerType"u8);
writer.WriteStringValue(ProviderType);
writer.WriteEndObject();
@@ -65,6 +75,8 @@ internal static DB2ProviderInstanceProperties DeserializeDB2ProviderInstanceProp
Optional dbPassword = default;
Optional dbPasswordUri = default;
Optional sapSid = default;
+ Optional sslPreference = default;
+ Optional sslCertificateUri = default;
string providerType = default;
foreach (var property in element.EnumerateObject())
{
@@ -108,13 +120,33 @@ internal static DB2ProviderInstanceProperties DeserializeDB2ProviderInstanceProp
sapSid = property.Value.GetString();
continue;
}
+ if (property.NameEquals("sslPreference"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sslPreference = new SslPreference(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("sslCertificateUri"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ sslCertificateUri = null;
+ continue;
+ }
+ sslCertificateUri = new Uri(property.Value.GetString());
+ continue;
+ }
if (property.NameEquals("providerType"u8))
{
providerType = property.Value.GetString();
continue;
}
}
- return new DB2ProviderInstanceProperties(providerType, hostname.Value, dbName.Value, dbPort.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, sapSid.Value);
+ return new DB2ProviderInstanceProperties(providerType, hostname.Value, dbName.Value, dbPort.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, sapSid.Value, Optional.ToNullable(sslPreference), sslCertificateUri.Value);
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.cs
index c8eddc4f237c..fea11cbec060 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DB2ProviderInstanceProperties.cs
@@ -27,7 +27,9 @@ public DB2ProviderInstanceProperties()
/// Gets or sets the db2 database password.
/// Gets or sets the key vault URI to secret with the database password.
/// Gets or sets the SAP System Identifier.
- internal DB2ProviderInstanceProperties(string providerType, string hostname, string dbName, string dbPort, string dbUsername, string dbPassword, Uri dbPasswordUri, string sapSid) : base(providerType)
+ /// Gets or sets certificate preference if secure communication is enabled.
+ /// Gets or sets the blob URI to SSL certificate for the DB2 Database.
+ internal DB2ProviderInstanceProperties(string providerType, string hostname, string dbName, string dbPort, string dbUsername, string dbPassword, Uri dbPasswordUri, string sapSid, SslPreference? sslPreference, Uri sslCertificateUri) : base(providerType)
{
Hostname = hostname;
DBName = dbName;
@@ -36,6 +38,8 @@ internal DB2ProviderInstanceProperties(string providerType, string hostname, str
DBPassword = dbPassword;
DBPasswordUri = dbPasswordUri;
SapSid = sapSid;
+ SslPreference = sslPreference;
+ SslCertificateUri = sslCertificateUri;
ProviderType = providerType ?? "Db2";
}
@@ -53,5 +57,9 @@ internal DB2ProviderInstanceProperties(string providerType, string hostname, str
public Uri DBPasswordUri { get; set; }
/// Gets or sets the SAP System Identifier.
public string SapSid { get; set; }
+ /// Gets or sets certificate preference if secure communication is enabled.
+ public SslPreference? SslPreference { get; set; }
+ /// Gets or sets the blob URI to SSL certificate for the DB2 Database.
+ public Uri SslCertificateUri { get; set; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.Serialization.cs
index 6d1620d84aa2..866bedb01547 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.Serialization.cs
@@ -26,6 +26,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WriteObjectValue(VirtualMachineConfiguration);
writer.WritePropertyName("instanceCount"u8);
writer.WriteNumberValue(InstanceCount);
+ if (Optional.IsDefined(DiskConfiguration))
+ {
+ writer.WritePropertyName("diskConfiguration"u8);
+ writer.WriteObjectValue(DiskConfiguration);
+ }
writer.WriteEndObject();
}
@@ -35,6 +40,7 @@ internal static DatabaseConfiguration DeserializeDatabaseConfiguration(JsonEleme
ResourceIdentifier subnetId = default;
VirtualMachineConfiguration virtualMachineConfiguration = default;
long instanceCount = default;
+ Optional diskConfiguration = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("databaseType"u8))
@@ -62,8 +68,18 @@ internal static DatabaseConfiguration DeserializeDatabaseConfiguration(JsonEleme
instanceCount = property.Value.GetInt64();
continue;
}
+ if (property.NameEquals("diskConfiguration"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ diskConfiguration = DiskConfiguration.DeserializeDiskConfiguration(property.Value);
+ continue;
+ }
}
- return new DatabaseConfiguration(Optional.ToNullable(databaseType), subnetId, virtualMachineConfiguration, instanceCount);
+ return new DatabaseConfiguration(Optional.ToNullable(databaseType), subnetId, virtualMachineConfiguration, instanceCount, diskConfiguration.Value);
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.cs
index bb124fce6325..4af5ae6277f9 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseConfiguration.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Workloads.Models
@@ -33,12 +34,14 @@ public DatabaseConfiguration(ResourceIdentifier subnetId, VirtualMachineConfigur
/// The subnet id.
/// Gets or sets the virtual machine configuration.
/// The number of database VMs.
- internal DatabaseConfiguration(SapDatabaseType? databaseType, ResourceIdentifier subnetId, VirtualMachineConfiguration virtualMachineConfiguration, long instanceCount)
+ /// Gets or sets the disk configuration.
+ internal DatabaseConfiguration(SapDatabaseType? databaseType, ResourceIdentifier subnetId, VirtualMachineConfiguration virtualMachineConfiguration, long instanceCount, DiskConfiguration diskConfiguration)
{
DatabaseType = databaseType;
SubnetId = subnetId;
VirtualMachineConfiguration = virtualMachineConfiguration;
InstanceCount = instanceCount;
+ DiskConfiguration = diskConfiguration;
}
/// The database type.
@@ -49,5 +52,17 @@ internal DatabaseConfiguration(SapDatabaseType? databaseType, ResourceIdentifier
public VirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
/// The number of database VMs.
public long InstanceCount { get; set; }
+ /// Gets or sets the disk configuration.
+ internal DiskConfiguration DiskConfiguration { get; set; }
+ /// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].
+ public IDictionary DiskVolumeConfigurations
+ {
+ get
+ {
+ if (DiskConfiguration is null)
+ DiskConfiguration = new DiskConfiguration();
+ return DiskConfiguration.DiskVolumeConfigurations;
+ }
+ }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.Serialization.cs
deleted file mode 100644
index 347ec8edc517..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.Serialization.cs
+++ /dev/null
@@ -1,177 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- public partial class DatabaseProfile : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("type"u8);
- writer.WriteStringValue(DatabaseType.ToString());
- if (Optional.IsDefined(ServerName))
- {
- writer.WritePropertyName("serverName"u8);
- writer.WriteStringValue(ServerName);
- }
- if (Optional.IsDefined(Version))
- {
- writer.WritePropertyName("version"u8);
- writer.WriteStringValue(Version);
- }
- writer.WritePropertyName("sku"u8);
- writer.WriteStringValue(Sku);
- writer.WritePropertyName("tier"u8);
- writer.WriteStringValue(Tier.ToSerialString());
- if (Optional.IsDefined(HAEnabled))
- {
- writer.WritePropertyName("haEnabled"u8);
- writer.WriteStringValue(HAEnabled.Value.ToString());
- }
- if (Optional.IsDefined(StorageSku))
- {
- writer.WritePropertyName("storageSku"u8);
- writer.WriteStringValue(StorageSku);
- }
- if (Optional.IsDefined(StorageInGB))
- {
- writer.WritePropertyName("storageInGB"u8);
- writer.WriteNumberValue(StorageInGB.Value);
- }
- if (Optional.IsDefined(StorageIops))
- {
- writer.WritePropertyName("storageIops"u8);
- writer.WriteNumberValue(StorageIops.Value);
- }
- if (Optional.IsDefined(BackupRetentionDays))
- {
- writer.WritePropertyName("backupRetentionDays"u8);
- writer.WriteNumberValue(BackupRetentionDays.Value);
- }
- if (Optional.IsDefined(SslEnforcementEnabled))
- {
- writer.WritePropertyName("sslEnforcementEnabled"u8);
- writer.WriteStringValue(SslEnforcementEnabled.Value.ToString());
- }
- writer.WriteEndObject();
- }
-
- internal static DatabaseProfile DeserializeDatabaseProfile(JsonElement element)
- {
- DatabaseType type = default;
- Optional serverName = default;
- Optional version = default;
- string sku = default;
- DatabaseTier tier = default;
- Optional haEnabled = default;
- Optional storageSku = default;
- Optional storageInGB = default;
- Optional storageIops = default;
- Optional backupRetentionDays = default;
- Optional sslEnforcementEnabled = default;
- Optional serverResourceId = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("type"u8))
- {
- type = new DatabaseType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("serverName"u8))
- {
- serverName = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("version"u8))
- {
- version = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("sku"u8))
- {
- sku = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("tier"u8))
- {
- tier = property.Value.GetString().ToDatabaseTier();
- continue;
- }
- if (property.NameEquals("haEnabled"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- haEnabled = new HAEnabled(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("storageSku"u8))
- {
- storageSku = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("storageInGB"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- storageInGB = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("storageIops"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- storageIops = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("backupRetentionDays"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- backupRetentionDays = property.Value.GetInt32();
- continue;
- }
- if (property.NameEquals("sslEnforcementEnabled"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- sslEnforcementEnabled = new EnableSslEnforcement(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("serverResourceId"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- serverResourceId = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- }
- return new DatabaseProfile(type, serverName.Value, version.Value, sku, tier, Optional.ToNullable(haEnabled), storageSku.Value, Optional.ToNullable(storageInGB), Optional.ToNullable(storageIops), Optional.ToNullable(backupRetentionDays), Optional.ToNullable(sslEnforcementEnabled), serverResourceId.Value);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.cs
deleted file mode 100644
index 2c7dd1a41968..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseProfile.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Workload database profile.
- public partial class DatabaseProfile
- {
- /// Initializes a new instance of DatabaseProfile.
- /// Database type.
- /// The name of the server SKU, e.g. Standard_D32s_v4.
- /// Tier of the server SKU.
- /// is null.
- public DatabaseProfile(DatabaseType databaseType, string sku, DatabaseTier tier)
- {
- Argument.AssertNotNull(sku, nameof(sku));
-
- DatabaseType = databaseType;
- Sku = sku;
- Tier = tier;
- }
-
- /// Initializes a new instance of DatabaseProfile.
- /// Database type.
- /// Database server name.
- /// Database version.
- /// The name of the server SKU, e.g. Standard_D32s_v4.
- /// Tier of the server SKU.
- /// Whether to enable HA for the server.
- /// SKU name for database storage.
- /// Database storage size in GB.
- /// Storage IOPS for the server.
- /// Backup retention days for the server.
- /// Whether to enable SSL enforcement on the database.
- /// Azure Database Server resource Id.
- internal DatabaseProfile(DatabaseType databaseType, string serverName, string version, string sku, DatabaseTier tier, HAEnabled? haEnabled, string storageSku, long? storageInGB, long? storageIops, int? backupRetentionDays, EnableSslEnforcement? sslEnforcementEnabled, ResourceIdentifier serverResourceId)
- {
- DatabaseType = databaseType;
- ServerName = serverName;
- Version = version;
- Sku = sku;
- Tier = tier;
- HAEnabled = haEnabled;
- StorageSku = storageSku;
- StorageInGB = storageInGB;
- StorageIops = storageIops;
- BackupRetentionDays = backupRetentionDays;
- SslEnforcementEnabled = sslEnforcementEnabled;
- ServerResourceId = serverResourceId;
- }
-
- /// Database type.
- public DatabaseType DatabaseType { get; set; }
- /// Database server name.
- public string ServerName { get; set; }
- /// Database version.
- public string Version { get; set; }
- /// The name of the server SKU, e.g. Standard_D32s_v4.
- public string Sku { get; set; }
- /// Tier of the server SKU.
- public DatabaseTier Tier { get; set; }
- /// Whether to enable HA for the server.
- public HAEnabled? HAEnabled { get; set; }
- /// SKU name for database storage.
- public string StorageSku { get; set; }
- /// Database storage size in GB.
- public long? StorageInGB { get; set; }
- /// Storage IOPS for the server.
- public long? StorageIops { get; set; }
- /// Backup retention days for the server.
- public int? BackupRetentionDays { get; set; }
- /// Whether to enable SSL enforcement on the database.
- public EnableSslEnforcement? SslEnforcementEnabled { get; set; }
- /// Azure Database Server resource Id.
- public ResourceIdentifier ServerResourceId { get; }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.Serialization.cs
new file mode 100644
index 000000000000..7b1d963490fe
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.Serialization.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class DatabaseServerFullResourceNames : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsCollectionDefined(VirtualMachines))
+ {
+ writer.WritePropertyName("virtualMachines"u8);
+ writer.WriteStartArray();
+ foreach (var item in VirtualMachines)
+ {
+ writer.WriteObjectValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(AvailabilitySetName))
+ {
+ writer.WritePropertyName("availabilitySetName"u8);
+ writer.WriteStringValue(AvailabilitySetName);
+ }
+ if (Optional.IsDefined(LoadBalancer))
+ {
+ writer.WritePropertyName("loadBalancer"u8);
+ writer.WriteObjectValue(LoadBalancer);
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static DatabaseServerFullResourceNames DeserializeDatabaseServerFullResourceNames(JsonElement element)
+ {
+ Optional> virtualMachines = default;
+ Optional availabilitySetName = default;
+ Optional loadBalancer = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("virtualMachines"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(VirtualMachineResourceNames.DeserializeVirtualMachineResourceNames(item));
+ }
+ virtualMachines = array;
+ continue;
+ }
+ if (property.NameEquals("availabilitySetName"u8))
+ {
+ availabilitySetName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("loadBalancer"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ loadBalancer = LoadBalancerResourceNames.DeserializeLoadBalancerResourceNames(property.Value);
+ continue;
+ }
+ }
+ return new DatabaseServerFullResourceNames(Optional.ToList(virtualMachines), availabilitySetName.Value, loadBalancer.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs
new file mode 100644
index 000000000000..ff917e69a9e0
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseServerFullResourceNames.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The full resource names object for database layer resources. The number of entries in this list should be equal to the number VMs to be created for database layer.
+ public partial class DatabaseServerFullResourceNames
+ {
+ /// Initializes a new instance of DatabaseServerFullResourceNames.
+ public DatabaseServerFullResourceNames()
+ {
+ VirtualMachines = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of DatabaseServerFullResourceNames.
+ /// The list of virtual machine naming details.
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-DB-AvSet.
+ /// The resource names object for load balancer and related resources.
+ internal DatabaseServerFullResourceNames(IList virtualMachines, string availabilitySetName, LoadBalancerResourceNames loadBalancer)
+ {
+ VirtualMachines = virtualMachines;
+ AvailabilitySetName = availabilitySetName;
+ LoadBalancer = loadBalancer;
+ }
+
+ /// The list of virtual machine naming details.
+ public IList VirtualMachines { get; }
+ /// The full name for availability set. In case name is not provided, it will be defaulted to {SID}-DB-AvSet.
+ public string AvailabilitySetName { get; set; }
+ /// The resource names object for load balancer and related resources.
+ public LoadBalancerResourceNames LoadBalancer { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs
deleted file mode 100644
index 4a5afeb36e44..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.Serialization.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- internal static partial class DatabaseTierExtensions
- {
- public static string ToSerialString(this DatabaseTier value) => value switch
- {
- DatabaseTier.Burstable => "Burstable",
- DatabaseTier.GeneralPurpose => "GeneralPurpose",
- DatabaseTier.MemoryOptimized => "MemoryOptimized",
- _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DatabaseTier value.")
- };
-
- public static DatabaseTier ToDatabaseTier(this string value)
- {
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "Burstable")) return DatabaseTier.Burstable;
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "GeneralPurpose")) return DatabaseTier.GeneralPurpose;
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "MemoryOptimized")) return DatabaseTier.MemoryOptimized;
- throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DatabaseTier value.");
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.cs
deleted file mode 100644
index 2cdc6881fe23..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseTier.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Tier of the server SKU.
- public enum DatabaseTier
- {
- /// Burstable.
- Burstable,
- /// GeneralPurpose.
- GeneralPurpose,
- /// MemoryOptimized.
- MemoryOptimized
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseType.cs
deleted file mode 100644
index 3e90e4d0c5ca..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseType.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Database type.
- public readonly partial struct DatabaseType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public DatabaseType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string MySqlValue = "MySql";
-
- /// MySql.
- public static DatabaseType MySql { get; } = new DatabaseType(MySqlValue);
- /// Determines if two values are the same.
- public static bool operator ==(DatabaseType left, DatabaseType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(DatabaseType left, DatabaseType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator DatabaseType(string value) => new DatabaseType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is DatabaseType other && Equals(other);
- ///
- public bool Equals(DatabaseType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.Serialization.cs
index 472742110e38..98627f4799c2 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.Serialization.cs
@@ -5,8 +5,10 @@
#nullable disable
+using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Workloads.Models
{
@@ -16,6 +18,7 @@ internal static DatabaseVmDetails DeserializeDatabaseVmDetails(JsonElement eleme
{
Optional virtualMachineId = default;
Optional status = default;
+ Optional> storageDetails = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("virtualMachineId"u8))
@@ -38,8 +41,23 @@ internal static DatabaseVmDetails DeserializeDatabaseVmDetails(JsonElement eleme
status = new SapVirtualInstanceStatus(property.Value.GetString());
continue;
}
+ if (property.NameEquals("storageDetails"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(JsonSerializer.Deserialize(item.GetRawText()));
+ }
+ storageDetails = array;
+ continue;
+ }
}
- return new DatabaseVmDetails(virtualMachineId.Value, Optional.ToNullable(status));
+ return new DatabaseVmDetails(virtualMachineId.Value, Optional.ToNullable(status), Optional.ToList(storageDetails));
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs
index 3a315267e850..eb3dfccebde9 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DatabaseVmDetails.cs
@@ -5,30 +5,37 @@
#nullable disable
+using System.Collections.Generic;
using Azure.Core;
+using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Workloads.Models
{
- /// The Database VM Details.
+ /// Database VM details.
public partial class DatabaseVmDetails
{
/// Initializes a new instance of DatabaseVmDetails.
internal DatabaseVmDetails()
{
+ StorageDetails = new ChangeTrackingList();
}
/// Initializes a new instance of DatabaseVmDetails.
///
/// Defines the SAP Instance status.
- internal DatabaseVmDetails(ResourceIdentifier virtualMachineId, SapVirtualInstanceStatus? status)
+ /// Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ internal DatabaseVmDetails(ResourceIdentifier virtualMachineId, SapVirtualInstanceStatus? status, IReadOnlyList storageDetails)
{
VirtualMachineId = virtualMachineId;
Status = status;
+ StorageDetails = storageDetails;
}
/// Gets the virtual machine id.
public ResourceIdentifier VirtualMachineId { get; }
/// Defines the SAP Instance status.
public SapVirtualInstanceStatus? Status { get; }
+ /// Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ public IReadOnlyList StorageDetails { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentConfiguration.cs
index d4ebce2c43c8..5e55a9e269ae 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentConfiguration.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentConfiguration.cs
@@ -29,7 +29,7 @@ public DeploymentConfiguration()
///
/// The software configuration.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
+ /// The available derived classes include , and .
///
internal DeploymentConfiguration(SapConfigurationType configurationType, AzureLocation? appLocation, InfrastructureConfiguration infrastructureConfiguration, SoftwareConfiguration softwareConfiguration) : base(configurationType)
{
@@ -50,7 +50,7 @@ internal DeploymentConfiguration(SapConfigurationType configurationType, AzureLo
///
/// The software configuration.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
+ /// The available derived classes include , and .
///
public SoftwareConfiguration SoftwareConfiguration { get; set; }
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentWithOSConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentWithOSConfiguration.cs
index 6c3fc059cf5b..bfe7971ced3b 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentWithOSConfiguration.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DeploymentWithOSConfiguration.cs
@@ -29,7 +29,7 @@ public DeploymentWithOSConfiguration()
///
/// The software configuration.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
+ /// The available derived classes include , and .
///
/// The OS and SAP configuration.
internal DeploymentWithOSConfiguration(SapConfigurationType configurationType, AzureLocation? appLocation, InfrastructureConfiguration infrastructureConfiguration, SoftwareConfiguration softwareConfiguration, OSSapConfiguration osSapConfiguration) : base(configurationType)
@@ -52,7 +52,7 @@ internal DeploymentWithOSConfiguration(SapConfigurationType configurationType, A
///
/// The software configuration.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
+ /// The available derived classes include , and .
///
public SoftwareConfiguration SoftwareConfiguration { get; set; }
/// The OS and SAP configuration.
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.Serialization.cs
index 1132198e70d9..3738656ed041 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.Serialization.cs
@@ -20,6 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("centralServerVmId"u8);
writer.WriteStringValue(CentralServerVmId);
}
+ if (Optional.IsDefined(ManagedRgStorageAccountName))
+ {
+ writer.WritePropertyName("managedRgStorageAccountName"u8);
+ writer.WriteStringValue(ManagedRgStorageAccountName);
+ }
writer.WritePropertyName("configurationType"u8);
writer.WriteStringValue(ConfigurationType.ToString());
writer.WriteEndObject();
@@ -28,6 +33,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
internal static DiscoveryConfiguration DeserializeDiscoveryConfiguration(JsonElement element)
{
Optional centralServerVmId = default;
+ Optional managedRgStorageAccountName = default;
Optional appLocation = default;
SapConfigurationType configurationType = default;
foreach (var property in element.EnumerateObject())
@@ -37,6 +43,11 @@ internal static DiscoveryConfiguration DeserializeDiscoveryConfiguration(JsonEle
centralServerVmId = property.Value.GetString();
continue;
}
+ if (property.NameEquals("managedRgStorageAccountName"u8))
+ {
+ managedRgStorageAccountName = property.Value.GetString();
+ continue;
+ }
if (property.NameEquals("appLocation"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -53,7 +64,7 @@ internal static DiscoveryConfiguration DeserializeDiscoveryConfiguration(JsonEle
continue;
}
}
- return new DiscoveryConfiguration(configurationType, centralServerVmId.Value, Optional.ToNullable(appLocation));
+ return new DiscoveryConfiguration(configurationType, centralServerVmId.Value, managedRgStorageAccountName.Value, Optional.ToNullable(appLocation));
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.cs
index 790fd865e748..17619db5c966 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiscoveryConfiguration.cs
@@ -21,16 +21,20 @@ public DiscoveryConfiguration()
/// Initializes a new instance of DiscoveryConfiguration.
/// The configuration Type.
/// The virtual machine ID of the Central Server.
+ /// The custom storage account name for the storage account created by the service in the managed resource group created as part of VIS deployment.<br><br>Refer to the storage account naming rules [here](https://learn.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftstorage).<br><br>If not provided, the service will create the storage account with a random name.
/// The geo-location where the SAP system exists.
- internal DiscoveryConfiguration(SapConfigurationType configurationType, string centralServerVmId, AzureLocation? appLocation) : base(configurationType)
+ internal DiscoveryConfiguration(SapConfigurationType configurationType, string centralServerVmId, string managedRgStorageAccountName, AzureLocation? appLocation) : base(configurationType)
{
CentralServerVmId = centralServerVmId;
+ ManagedRgStorageAccountName = managedRgStorageAccountName;
AppLocation = appLocation;
ConfigurationType = configurationType;
}
/// The virtual machine ID of the Central Server.
public string CentralServerVmId { get; set; }
+ /// The custom storage account name for the storage account created by the service in the managed resource group created as part of VIS deployment.<br><br>Refer to the storage account naming rules [here](https://learn.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftstorage).<br><br>If not provided, the service will create the storage account with a random name.
+ public string ManagedRgStorageAccountName { get; set; }
/// The geo-location where the SAP system exists.
public AzureLocation? AppLocation { get; }
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.Serialization.cs
new file mode 100644
index 000000000000..da80c249c5ce
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.Serialization.cs
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ internal partial class DiskConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsCollectionDefined(DiskVolumeConfigurations))
+ {
+ writer.WritePropertyName("diskVolumeConfigurations"u8);
+ writer.WriteStartObject();
+ foreach (var item in DiskVolumeConfigurations)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteObjectValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static DiskConfiguration DeserializeDiskConfiguration(JsonElement element)
+ {
+ Optional> diskVolumeConfigurations = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("diskVolumeConfigurations"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, DiskVolumeConfiguration.DeserializeDiskVolumeConfiguration(property0.Value));
+ }
+ diskVolumeConfigurations = dictionary;
+ continue;
+ }
+ }
+ return new DiskConfiguration(Optional.ToDictionary(diskVolumeConfigurations));
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.cs
new file mode 100644
index 000000000000..bffa97591ce1
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskConfiguration.cs
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The Disk Configuration Details.
+ internal partial class DiskConfiguration
+ {
+ /// Initializes a new instance of DiskConfiguration.
+ public DiskConfiguration()
+ {
+ DiskVolumeConfigurations = new ChangeTrackingDictionary();
+ }
+
+ /// Initializes a new instance of DiskConfiguration.
+ /// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].
+ internal DiskConfiguration(IDictionary diskVolumeConfigurations)
+ {
+ DiskVolumeConfigurations = diskVolumeConfigurations;
+ }
+
+ /// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].
+ public IDictionary DiskVolumeConfigurations { get; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.Serialization.cs
new file mode 100644
index 000000000000..555cf9d524d8
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.Serialization.cs
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class DiskDetails
+ {
+ internal static DiskDetails DeserializeDiskDetails(JsonElement element)
+ {
+ Optional sku = default;
+ Optional sizeGB = default;
+ Optional minimumSupportedDiskCount = default;
+ Optional maximumSupportedDiskCount = default;
+ Optional iopsReadWrite = default;
+ Optional mbpsReadWrite = default;
+ Optional diskTier = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("sku"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sku = DiskSku.DeserializeDiskSku(property.Value);
+ continue;
+ }
+ if (property.NameEquals("sizeGB"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sizeGB = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("minimumSupportedDiskCount"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ minimumSupportedDiskCount = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("maximumSupportedDiskCount"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ maximumSupportedDiskCount = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("iopsReadWrite"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ iopsReadWrite = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("mbpsReadWrite"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ mbpsReadWrite = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("diskTier"u8))
+ {
+ diskTier = property.Value.GetString();
+ continue;
+ }
+ }
+ return new DiskDetails(sku.Value, Optional.ToNullable(sizeGB), Optional.ToNullable(minimumSupportedDiskCount), Optional.ToNullable(maximumSupportedDiskCount), Optional.ToNullable(iopsReadWrite), Optional.ToNullable(mbpsReadWrite), diskTier.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.cs
new file mode 100644
index 000000000000..aae8a51b2256
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskDetails.cs
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The supported disk size details for a disk type.
+ public partial class DiskDetails
+ {
+ /// Initializes a new instance of DiskDetails.
+ internal DiskDetails()
+ {
+ }
+
+ /// Initializes a new instance of DiskDetails.
+ /// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
+ /// The disk size in GB.
+ /// The minimum supported disk count.
+ /// The maximum supported disk count.
+ /// The disk Iops.
+ /// The disk provisioned throughput in MBps.
+ /// The disk tier, e.g. P10, E10.
+ internal DiskDetails(DiskSku sku, long? sizeGB, long? minimumSupportedDiskCount, long? maximumSupportedDiskCount, long? iopsReadWrite, long? mbpsReadWrite, string diskTier)
+ {
+ Sku = sku;
+ SizeGB = sizeGB;
+ MinimumSupportedDiskCount = minimumSupportedDiskCount;
+ MaximumSupportedDiskCount = maximumSupportedDiskCount;
+ IopsReadWrite = iopsReadWrite;
+ MbpsReadWrite = mbpsReadWrite;
+ DiskTier = diskTier;
+ }
+
+ /// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
+ internal DiskSku Sku { get; }
+ /// Defines the disk sku name.
+ public DiskSkuName? SkuName
+ {
+ get => Sku?.Name;
+ }
+
+ /// The disk size in GB.
+ public long? SizeGB { get; }
+ /// The minimum supported disk count.
+ public long? MinimumSupportedDiskCount { get; }
+ /// The maximum supported disk count.
+ public long? MaximumSupportedDiskCount { get; }
+ /// The disk Iops.
+ public long? IopsReadWrite { get; }
+ /// The disk provisioned throughput in MBps.
+ public long? MbpsReadWrite { get; }
+ /// The disk tier, e.g. P10, E10.
+ public string DiskTier { get; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.Serialization.cs
deleted file mode 100644
index 74f7be28e544..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.Serialization.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- public partial class DiskInfo : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("storageType"u8);
- writer.WriteStringValue(StorageType.ToSerialString());
- if (Optional.IsDefined(SizeInGB))
- {
- writer.WritePropertyName("sizeInGB"u8);
- writer.WriteNumberValue(SizeInGB.Value);
- }
- writer.WriteEndObject();
- }
-
- internal static DiskInfo DeserializeDiskInfo(JsonElement element)
- {
- DiskStorageType storageType = default;
- Optional sizeInGB = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("storageType"u8))
- {
- storageType = property.Value.GetString().ToDiskStorageType();
- continue;
- }
- if (property.NameEquals("sizeInGB"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- sizeInGB = property.Value.GetInt64();
- continue;
- }
- }
- return new DiskInfo(storageType, Optional.ToNullable(sizeInGB));
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.cs
deleted file mode 100644
index 3b834d0be78d..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskInfo.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Disk resource creation details.
- public partial class DiskInfo
- {
- /// Initializes a new instance of DiskInfo.
- /// Storage type.
- public DiskInfo(DiskStorageType storageType)
- {
- StorageType = storageType;
- }
-
- /// Initializes a new instance of DiskInfo.
- /// Storage type.
- /// Disk size in GB.
- internal DiskInfo(DiskStorageType storageType, long? sizeInGB)
- {
- StorageType = storageType;
- SizeInGB = sizeInGB;
- }
-
- /// Storage type.
- public DiskStorageType StorageType { get; set; }
- /// Disk size in GB.
- public long? SizeInGB { get; set; }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.Serialization.cs
new file mode 100644
index 000000000000..e790e41b5d20
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.Serialization.cs
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ internal partial class DiskSku : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Name))
+ {
+ writer.WritePropertyName("name"u8);
+ writer.WriteStringValue(Name.Value.ToString());
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static DiskSku DeserializeDiskSku(JsonElement element)
+ {
+ Optional name = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("name"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ name = new DiskSkuName(property.Value.GetString());
+ continue;
+ }
+ }
+ return new DiskSku(Optional.ToNullable(name));
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.cs
new file mode 100644
index 000000000000..44fe0fde32b6
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSku.cs
@@ -0,0 +1,28 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
+ internal partial class DiskSku
+ {
+ /// Initializes a new instance of DiskSku.
+ public DiskSku()
+ {
+ }
+
+ /// Initializes a new instance of DiskSku.
+ /// Defines the disk sku name.
+ internal DiskSku(DiskSkuName? name)
+ {
+ Name = name;
+ }
+
+ /// Defines the disk sku name.
+ public DiskSkuName? Name { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSkuName.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSkuName.cs
new file mode 100644
index 000000000000..39ccd99af4b8
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskSkuName.cs
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// Defines the disk sku name.
+ public readonly partial struct DiskSkuName : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DiskSkuName(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string StandardLrsValue = "Standard_LRS";
+ private const string PremiumLrsValue = "Premium_LRS";
+ private const string StandardSsdLrsValue = "StandardSSD_LRS";
+ private const string UltraSsdLrsValue = "UltraSSD_LRS";
+ private const string PremiumZrsValue = "Premium_ZRS";
+ private const string StandardSsdZrsValue = "StandardSSD_ZRS";
+ private const string PremiumV2LrsValue = "PremiumV2_LRS";
+
+ /// Standard_LRS.
+ public static DiskSkuName StandardLrs { get; } = new DiskSkuName(StandardLrsValue);
+ /// Premium_LRS.
+ public static DiskSkuName PremiumLrs { get; } = new DiskSkuName(PremiumLrsValue);
+ /// StandardSSD_LRS.
+ public static DiskSkuName StandardSsdLrs { get; } = new DiskSkuName(StandardSsdLrsValue);
+ /// UltraSSD_LRS.
+ public static DiskSkuName UltraSsdLrs { get; } = new DiskSkuName(UltraSsdLrsValue);
+ /// Premium_ZRS.
+ public static DiskSkuName PremiumZrs { get; } = new DiskSkuName(PremiumZrsValue);
+ /// StandardSSD_ZRS.
+ public static DiskSkuName StandardSsdZrs { get; } = new DiskSkuName(StandardSsdZrsValue);
+ /// PremiumV2_LRS.
+ public static DiskSkuName PremiumV2Lrs { get; } = new DiskSkuName(PremiumV2LrsValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DiskSkuName left, DiskSkuName right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DiskSkuName left, DiskSkuName right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator DiskSkuName(string value) => new DiskSkuName(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DiskSkuName other && Equals(other);
+ ///
+ public bool Equals(DiskSkuName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value?.GetHashCode() ?? 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs
deleted file mode 100644
index 8e616b44c91c..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.Serialization.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- internal static partial class DiskStorageTypeExtensions
- {
- public static string ToSerialString(this DiskStorageType value) => value switch
- {
- DiskStorageType.PremiumLrs => "Premium_LRS",
- DiskStorageType.StandardLrs => "Standard_LRS",
- DiskStorageType.StandardSsdLrs => "StandardSSD_LRS",
- _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DiskStorageType value.")
- };
-
- public static DiskStorageType ToDiskStorageType(this string value)
- {
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "Premium_LRS")) return DiskStorageType.PremiumLrs;
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard_LRS")) return DiskStorageType.StandardLrs;
- if (StringComparer.OrdinalIgnoreCase.Equals(value, "StandardSSD_LRS")) return DiskStorageType.StandardSsdLrs;
- throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DiskStorageType value.");
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.cs
deleted file mode 100644
index 64a1ac8c5f49..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskStorageType.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Storage type.
- public enum DiskStorageType
- {
- /// Premium_LRS.
- PremiumLrs,
- /// Standard_LRS.
- StandardLrs,
- /// StandardSSD_LRS.
- StandardSsdLrs
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.Serialization.cs
new file mode 100644
index 000000000000..4027dbe34b3d
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.Serialization.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class DiskVolumeConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Count))
+ {
+ writer.WritePropertyName("count"u8);
+ writer.WriteNumberValue(Count.Value);
+ }
+ if (Optional.IsDefined(SizeGB))
+ {
+ writer.WritePropertyName("sizeGB"u8);
+ writer.WriteNumberValue(SizeGB.Value);
+ }
+ if (Optional.IsDefined(Sku))
+ {
+ writer.WritePropertyName("sku"u8);
+ writer.WriteObjectValue(Sku);
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static DiskVolumeConfiguration DeserializeDiskVolumeConfiguration(JsonElement element)
+ {
+ Optional count = default;
+ Optional sizeGB = default;
+ Optional sku = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("count"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ count = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("sizeGB"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sizeGB = property.Value.GetInt64();
+ continue;
+ }
+ if (property.NameEquals("sku"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sku = DiskSku.DeserializeDiskSku(property.Value);
+ continue;
+ }
+ }
+ return new DiskVolumeConfiguration(Optional.ToNullable(count), Optional.ToNullable(sizeGB), sku.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.cs
new file mode 100644
index 000000000000..ad54bb0a6c33
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/DiskVolumeConfiguration.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The disk configuration required for the selected volume.
+ public partial class DiskVolumeConfiguration
+ {
+ /// Initializes a new instance of DiskVolumeConfiguration.
+ public DiskVolumeConfiguration()
+ {
+ }
+
+ /// Initializes a new instance of DiskVolumeConfiguration.
+ /// The total number of disks required for the concerned volume.
+ /// The disk size in GB.
+ /// The disk SKU details.
+ internal DiskVolumeConfiguration(long? count, long? sizeGB, DiskSku sku)
+ {
+ Count = count;
+ SizeGB = sizeGB;
+ Sku = sku;
+ }
+
+ /// The total number of disks required for the concerned volume.
+ public long? Count { get; set; }
+ /// The disk size in GB.
+ public long? SizeGB { get; set; }
+ /// The disk SKU details.
+ internal DiskSku Sku { get; set; }
+ /// Defines the disk sku name.
+ public DiskSkuName? SkuName
+ {
+ get => Sku is null ? default : Sku.Name;
+ set
+ {
+ if (Sku is null)
+ Sku = new DiskSku();
+ Sku.Name = value;
+ }
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableBackup.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableBackup.cs
deleted file mode 100644
index 026c422c3995..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableBackup.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Whether to enable Azure backup for the workload.
- public readonly partial struct EnableBackup : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public EnableBackup(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static EnableBackup Enabled { get; } = new EnableBackup(EnabledValue);
- /// Disabled.
- public static EnableBackup Disabled { get; } = new EnableBackup(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(EnableBackup left, EnableBackup right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(EnableBackup left, EnableBackup right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator EnableBackup(string value) => new EnableBackup(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is EnableBackup other && Equals(other);
- ///
- public bool Equals(EnableBackup other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableSslEnforcement.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableSslEnforcement.cs
deleted file mode 100644
index 0b4537f44144..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnableSslEnforcement.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Whether to enable SSL enforcement on the database.
- public readonly partial struct EnableSslEnforcement : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public EnableSslEnforcement(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static EnableSslEnforcement Enabled { get; } = new EnableSslEnforcement(EnabledValue);
- /// Disabled.
- public static EnableSslEnforcement Disabled { get; } = new EnableSslEnforcement(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(EnableSslEnforcement left, EnableSslEnforcement right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(EnableSslEnforcement left, EnableSslEnforcement right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator EnableSslEnforcement(string value) => new EnableSslEnforcement(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is EnableSslEnforcement other && Equals(other);
- ///
- public bool Equals(EnableSslEnforcement other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueReplicationServerProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueReplicationServerProperties.cs
index 6d7881fb0fe0..8a6c14af33af 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueReplicationServerProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueReplicationServerProperties.cs
@@ -7,7 +7,7 @@
namespace Azure.ResourceManager.Workloads.Models
{
- /// Defines the SAP ERS Server properties.
+ /// Defines the SAP Enqueue Replication Server (ERS) properties.
public partial class EnqueueReplicationServerProperties
{
/// Initializes a new instance of EnqueueReplicationServerProperties.
@@ -17,12 +17,12 @@ public EnqueueReplicationServerProperties()
/// Initializes a new instance of EnqueueReplicationServerProperties.
/// Defines the type of Enqueue Replication Server.
- /// The ERS server instance id.
- /// The ERS server SAP host name.
- /// The ERS server SAP kernel version.
- /// The ERS server SAP kernel patch.
- /// The ERS server SAP IP Address.
- /// Defines the SAP Instance health.
+ /// ERS Instance Number.
+ /// ERS SAP Hostname.
+ /// ERS SAP Kernel Version.
+ /// ERS SAP Kernel Patch level.
+ /// ERS SAP IP Address.
+ /// Defines the health of SAP Instances.
internal EnqueueReplicationServerProperties(EnqueueReplicationServerType? ersVersion, string instanceNo, string hostname, string kernelVersion, string kernelPatch, string ipAddress, SapHealthState? health)
{
ErsVersion = ersVersion;
@@ -36,17 +36,17 @@ internal EnqueueReplicationServerProperties(EnqueueReplicationServerType? ersVer
/// Defines the type of Enqueue Replication Server.
public EnqueueReplicationServerType? ErsVersion { get; }
- /// The ERS server instance id.
+ /// ERS Instance Number.
public string InstanceNo { get; }
- /// The ERS server SAP host name.
+ /// ERS SAP Hostname.
public string Hostname { get; }
- /// The ERS server SAP kernel version.
+ /// ERS SAP Kernel Version.
public string KernelVersion { get; }
- /// The ERS server SAP kernel patch.
+ /// ERS SAP Kernel Patch level.
public string KernelPatch { get; }
- /// The ERS server SAP IP Address.
+ /// ERS SAP IP Address.
public string IPAddress { get; }
- /// Defines the SAP Instance health.
+ /// Defines the health of SAP Instances.
public SapHealthState? Health { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueServerProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueServerProperties.cs
index e4b67cb5103f..29a9c65591c7 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueServerProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/EnqueueServerProperties.cs
@@ -7,7 +7,7 @@
namespace Azure.ResourceManager.Workloads.Models
{
- /// Defines the SAP enqueue server properties.
+ /// Defines the SAP Enqueue Server properties.
public partial class EnqueueServerProperties
{
/// Initializes a new instance of EnqueueServerProperties.
@@ -16,10 +16,10 @@ public EnqueueServerProperties()
}
/// Initializes a new instance of EnqueueServerProperties.
- /// The enqueue server SAP host name.
- /// The enqueue server SAP IP Address.
- /// The enqueue server Port.
- /// Defines the SAP Instance health.
+ /// Enqueue Server SAP Hostname.
+ /// Enqueue Server SAP IP Address.
+ /// Enqueue Server Port.
+ /// Defines the health of SAP Instances.
internal EnqueueServerProperties(string hostname, string ipAddress, long? port, SapHealthState? health)
{
Hostname = hostname;
@@ -28,13 +28,13 @@ internal EnqueueServerProperties(string hostname, string ipAddress, long? port,
Health = health;
}
- /// The enqueue server SAP host name.
+ /// Enqueue Server SAP Hostname.
public string Hostname { get; }
- /// The enqueue server SAP IP Address.
+ /// Enqueue Server SAP IP Address.
public string IPAddress { get; }
- /// The enqueue server Port.
+ /// Enqueue Server Port.
public long? Port { get; }
- /// Defines the SAP Instance health.
+ /// Defines the health of SAP Instances.
public SapHealthState? Health { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.Serialization.cs
new file mode 100644
index 000000000000..7a03195b90f9
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.Serialization.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class ExternalInstallationSoftwareConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(CentralServerVmId))
+ {
+ writer.WritePropertyName("centralServerVmId"u8);
+ writer.WriteStringValue(CentralServerVmId);
+ }
+ writer.WritePropertyName("softwareInstallationType"u8);
+ writer.WriteStringValue(SoftwareInstallationType.ToString());
+ writer.WriteEndObject();
+ }
+
+ internal static ExternalInstallationSoftwareConfiguration DeserializeExternalInstallationSoftwareConfiguration(JsonElement element)
+ {
+ Optional centralServerVmId = default;
+ SapSoftwareInstallationType softwareInstallationType = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("centralServerVmId"u8))
+ {
+ centralServerVmId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("softwareInstallationType"u8))
+ {
+ softwareInstallationType = new SapSoftwareInstallationType(property.Value.GetString());
+ continue;
+ }
+ }
+ return new ExternalInstallationSoftwareConfiguration(softwareInstallationType, centralServerVmId.Value);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.cs
new file mode 100644
index 000000000000..89595812509d
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ExternalInstallationSoftwareConfiguration.cs
@@ -0,0 +1,31 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The SAP Software configuration Input when the software is installed externally outside the service.
+ public partial class ExternalInstallationSoftwareConfiguration : SoftwareConfiguration
+ {
+ /// Initializes a new instance of ExternalInstallationSoftwareConfiguration.
+ public ExternalInstallationSoftwareConfiguration()
+ {
+ SoftwareInstallationType = SapSoftwareInstallationType.External;
+ }
+
+ /// Initializes a new instance of ExternalInstallationSoftwareConfiguration.
+ /// The SAP software installation Type.
+ /// The resource ID of the virtual machine containing the central server instance.
+ internal ExternalInstallationSoftwareConfiguration(SapSoftwareInstallationType softwareInstallationType, string centralServerVmId) : base(softwareInstallationType)
+ {
+ CentralServerVmId = centralServerVmId;
+ SoftwareInstallationType = softwareInstallationType;
+ }
+
+ /// The resource ID of the virtual machine containing the central server instance.
+ public string CentralServerVmId { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.Serialization.cs
new file mode 100644
index 000000000000..765f835c86a8
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.Serialization.cs
@@ -0,0 +1,37 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class FileShareConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("configurationType"u8);
+ writer.WriteStringValue(ConfigurationType.ToString());
+ writer.WriteEndObject();
+ }
+
+ internal static FileShareConfiguration DeserializeFileShareConfiguration(JsonElement element)
+ {
+ if (element.TryGetProperty("configurationType", out JsonElement discriminator))
+ {
+ switch (discriminator.GetString())
+ {
+ case "CreateAndMount": return CreateAndMountFileShareConfiguration.DeserializeCreateAndMountFileShareConfiguration(element);
+ case "Mount": return MountFileShareConfiguration.DeserializeMountFileShareConfiguration(element);
+ case "Skip": return SkipFileShareConfiguration.DeserializeSkipFileShareConfiguration(element);
+ }
+ }
+ return UnknownFileShareConfiguration.DeserializeUnknownFileShareConfiguration(element);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.cs
new file mode 100644
index 000000000000..c1ca4a38e380
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareConfiguration.cs
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ ///
+ /// File Share configuration details, populated with information on storage configuration mounted on the VIS. The createAndMount option is selected in case of missing input.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
+ ///
+ public abstract partial class FileShareConfiguration
+ {
+ /// Initializes a new instance of FileShareConfiguration.
+ protected FileShareConfiguration()
+ {
+ }
+
+ /// Initializes a new instance of FileShareConfiguration.
+ /// The type of file share config.
+ internal FileShareConfiguration(ConfigurationType configurationType)
+ {
+ ConfigurationType = configurationType;
+ }
+
+ /// The type of file share config.
+ internal ConfigurationType ConfigurationType { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareStorageType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareStorageType.cs
deleted file mode 100644
index bbd4e7593fb1..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareStorageType.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// File share backing storage type.
- public readonly partial struct FileShareStorageType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public FileShareStorageType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string StandardLrsValue = "Standard_LRS";
- private const string StandardGrsValue = "Standard_GRS";
- private const string StandardZrsValue = "Standard_ZRS";
- private const string PremiumLrsValue = "Premium_LRS";
-
- /// Standard_LRS.
- public static FileShareStorageType StandardLrs { get; } = new FileShareStorageType(StandardLrsValue);
- /// Standard_GRS.
- public static FileShareStorageType StandardGrs { get; } = new FileShareStorageType(StandardGrsValue);
- /// Standard_ZRS.
- public static FileShareStorageType StandardZrs { get; } = new FileShareStorageType(StandardZrsValue);
- /// Premium_LRS.
- public static FileShareStorageType PremiumLrs { get; } = new FileShareStorageType(PremiumLrsValue);
- /// Determines if two values are the same.
- public static bool operator ==(FileShareStorageType left, FileShareStorageType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(FileShareStorageType left, FileShareStorageType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator FileShareStorageType(string value) => new FileShareStorageType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is FileShareStorageType other && Equals(other);
- ///
- public bool Equals(FileShareStorageType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareType.cs
deleted file mode 100644
index 55e61f568f79..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileShareType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Share type.
- public readonly partial struct FileShareType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public FileShareType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string NfsOnControllerValue = "NfsOnController";
- private const string AzureFilesValue = "AzureFiles";
-
- /// NfsOnController.
- public static FileShareType NfsOnController { get; } = new FileShareType(NfsOnControllerValue);
- /// AzureFiles.
- public static FileShareType AzureFiles { get; } = new FileShareType(AzureFilesValue);
- /// Determines if two values are the same.
- public static bool operator ==(FileShareType left, FileShareType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(FileShareType left, FileShareType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator FileShareType(string value) => new FileShareType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is FileShareType other && Equals(other);
- ///
- public bool Equals(FileShareType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.Serialization.cs
deleted file mode 100644
index f2cd540bf9ef..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.Serialization.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.Text.Json;
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- public partial class FileshareProfile : IUtf8JsonSerializable
- {
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
- {
- writer.WriteStartObject();
- writer.WritePropertyName("shareType"u8);
- writer.WriteStringValue(ShareType.ToString());
- writer.WritePropertyName("storageType"u8);
- writer.WriteStringValue(StorageType.ToString());
- if (Optional.IsDefined(ShareSizeInGB))
- {
- writer.WritePropertyName("shareSizeInGB"u8);
- writer.WriteNumberValue(ShareSizeInGB.Value);
- }
- writer.WriteEndObject();
- }
-
- internal static FileshareProfile DeserializeFileshareProfile(JsonElement element)
- {
- FileShareType shareType = default;
- FileShareStorageType storageType = default;
- Optional shareSizeInGB = default;
- Optional storageResourceId = default;
- Optional shareName = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("shareType"u8))
- {
- shareType = new FileShareType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("storageType"u8))
- {
- storageType = new FileShareStorageType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("shareSizeInGB"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- shareSizeInGB = property.Value.GetInt64();
- continue;
- }
- if (property.NameEquals("storageResourceId"u8))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- storageResourceId = new ResourceIdentifier(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("shareName"u8))
- {
- shareName = property.Value.GetString();
- continue;
- }
- }
- return new FileshareProfile(shareType, storageType, Optional.ToNullable(shareSizeInGB), storageResourceId.Value, shareName.Value);
- }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.cs
deleted file mode 100644
index fd8824d8aef4..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/FileshareProfile.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using Azure.Core;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// File share profile.
- public partial class FileshareProfile
- {
- /// Initializes a new instance of FileshareProfile.
- /// Share type.
- /// File share backing storage type.
- public FileshareProfile(FileShareType shareType, FileShareStorageType storageType)
- {
- ShareType = shareType;
- StorageType = storageType;
- }
-
- /// Initializes a new instance of FileshareProfile.
- /// Share type.
- /// File share backing storage type.
- /// File share size in GB.
- /// File share storage resource id.
- /// File share name.
- internal FileshareProfile(FileShareType shareType, FileShareStorageType storageType, long? shareSizeInGB, ResourceIdentifier storageResourceId, string shareName)
- {
- ShareType = shareType;
- StorageType = storageType;
- ShareSizeInGB = shareSizeInGB;
- StorageResourceId = storageResourceId;
- ShareName = shareName;
- }
-
- /// Share type.
- public FileShareType ShareType { get; set; }
- /// File share backing storage type.
- public FileShareStorageType StorageType { get; set; }
- /// File share size in GB.
- public long? ShareSizeInGB { get; set; }
- /// File share storage resource id.
- public ResourceIdentifier StorageResourceId { get; }
- /// File share name.
- public string ShareName { get; }
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/GatewayServerProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/GatewayServerProperties.cs
index bb90efa5c1d9..7e2cb7ab0117 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/GatewayServerProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/GatewayServerProperties.cs
@@ -16,17 +16,17 @@ public GatewayServerProperties()
}
/// Initializes a new instance of GatewayServerProperties.
- /// The gateway Port.
- /// Defines the SAP Instance health.
+ /// Gateway Port.
+ /// Defines the health of SAP Instances.
internal GatewayServerProperties(long? port, SapHealthState? health)
{
Port = port;
Health = health;
}
- /// The gateway Port.
+ /// Gateway Port.
public long? Port { get; }
- /// Defines the SAP Instance health.
+ /// Defines the health of SAP Instances.
public SapHealthState? Health { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HAEnabled.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HAEnabled.cs
deleted file mode 100644
index 58aefec4f0f9..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HAEnabled.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Whether to enable HA for the server.
- public readonly partial struct HAEnabled : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public HAEnabled(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string EnabledValue = "Enabled";
- private const string DisabledValue = "Disabled";
-
- /// Enabled.
- public static HAEnabled Enabled { get; } = new HAEnabled(EnabledValue);
- /// Disabled.
- public static HAEnabled Disabled { get; } = new HAEnabled(DisabledValue);
- /// Determines if two values are the same.
- public static bool operator ==(HAEnabled left, HAEnabled right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(HAEnabled left, HAEnabled right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator HAEnabled(string value) => new HAEnabled(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is HAEnabled other && Equals(other);
- ///
- public bool Equals(HAEnabled other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.Serialization.cs
index ac97eb8806bb..e968b24424a4 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.Serialization.cs
@@ -51,16 +51,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("dbPasswordUri"u8);
writer.WriteStringValue(DBPasswordUri.AbsoluteUri);
}
- if (Optional.IsDefined(DBSslCertificateUri))
+ if (Optional.IsDefined(SslCertificateUri))
{
- writer.WritePropertyName("dbSslCertificateUri"u8);
- writer.WriteStringValue(DBSslCertificateUri.AbsoluteUri);
+ writer.WritePropertyName("sslCertificateUri"u8);
+ writer.WriteStringValue(SslCertificateUri.AbsoluteUri);
}
if (Optional.IsDefined(SslHostNameInCertificate))
{
writer.WritePropertyName("sslHostNameInCertificate"u8);
writer.WriteStringValue(SslHostNameInCertificate);
}
+ if (Optional.IsDefined(SslPreference))
+ {
+ writer.WritePropertyName("sslPreference"u8);
+ writer.WriteStringValue(SslPreference.Value.ToString());
+ }
+ if (Optional.IsDefined(SapSid))
+ {
+ writer.WritePropertyName("sapSid"u8);
+ writer.WriteStringValue(SapSid);
+ }
writer.WritePropertyName("providerType"u8);
writer.WriteStringValue(ProviderType);
writer.WriteEndObject();
@@ -75,8 +85,10 @@ internal static HanaDBProviderInstanceProperties DeserializeHanaDBProviderInstan
Optional dbUsername = default;
Optional dbPassword = default;
Optional dbPasswordUri = default;
- Optional dbSslCertificateUri = default;
+ Optional sslCertificateUri = default;
Optional sslHostNameInCertificate = default;
+ Optional sslPreference = default;
+ Optional sapSid = default;
string providerType = default;
foreach (var property in element.EnumerateObject())
{
@@ -120,14 +132,14 @@ internal static HanaDBProviderInstanceProperties DeserializeHanaDBProviderInstan
dbPasswordUri = new Uri(property.Value.GetString());
continue;
}
- if (property.NameEquals("dbSslCertificateUri"u8))
+ if (property.NameEquals("sslCertificateUri"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
- dbSslCertificateUri = null;
+ sslCertificateUri = null;
continue;
}
- dbSslCertificateUri = new Uri(property.Value.GetString());
+ sslCertificateUri = new Uri(property.Value.GetString());
continue;
}
if (property.NameEquals("sslHostNameInCertificate"u8))
@@ -135,13 +147,28 @@ internal static HanaDBProviderInstanceProperties DeserializeHanaDBProviderInstan
sslHostNameInCertificate = property.Value.GetString();
continue;
}
+ if (property.NameEquals("sslPreference"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sslPreference = new SslPreference(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("sapSid"u8))
+ {
+ sapSid = property.Value.GetString();
+ continue;
+ }
if (property.NameEquals("providerType"u8))
{
providerType = property.Value.GetString();
continue;
}
}
- return new HanaDBProviderInstanceProperties(providerType, hostname.Value, dbName.Value, sqlPort.Value, instanceNumber.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, dbSslCertificateUri.Value, sslHostNameInCertificate.Value);
+ return new HanaDBProviderInstanceProperties(providerType, hostname.Value, dbName.Value, sqlPort.Value, instanceNumber.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, sslCertificateUri.Value, sslHostNameInCertificate.Value, Optional.ToNullable(sslPreference), sapSid.Value);
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.cs
index a2786b93b6dd..1c253680f4a2 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/HanaDBProviderInstanceProperties.cs
@@ -27,9 +27,11 @@ public HanaDBProviderInstanceProperties()
/// Gets or sets the database user name.
/// Gets or sets the database password.
/// Gets or sets the key vault URI to secret with the database password.
- /// Gets or sets the blob URI to SSL certificate for the DB.
+ /// Gets or sets the blob URI to SSL certificate for the DB.
/// Gets or sets the hostname(s) in the SSL certificate.
- internal HanaDBProviderInstanceProperties(string providerType, string hostname, string dbName, string sqlPort, string instanceNumber, string dbUsername, string dbPassword, Uri dbPasswordUri, Uri dbSslCertificateUri, string sslHostNameInCertificate) : base(providerType)
+ /// Gets or sets certificate preference if secure communication is enabled.
+ /// Gets or sets the SAP System Identifier.
+ internal HanaDBProviderInstanceProperties(string providerType, string hostname, string dbName, string sqlPort, string instanceNumber, string dbUsername, string dbPassword, Uri dbPasswordUri, Uri sslCertificateUri, string sslHostNameInCertificate, SslPreference? sslPreference, string sapSid) : base(providerType)
{
Hostname = hostname;
DBName = dbName;
@@ -38,8 +40,10 @@ internal HanaDBProviderInstanceProperties(string providerType, string hostname,
DBUsername = dbUsername;
DBPassword = dbPassword;
DBPasswordUri = dbPasswordUri;
- DBSslCertificateUri = dbSslCertificateUri;
+ SslCertificateUri = sslCertificateUri;
SslHostNameInCertificate = sslHostNameInCertificate;
+ SslPreference = sslPreference;
+ SapSid = sapSid;
ProviderType = providerType ?? "SapHana";
}
@@ -58,8 +62,12 @@ internal HanaDBProviderInstanceProperties(string providerType, string hostname,
/// Gets or sets the key vault URI to secret with the database password.
public Uri DBPasswordUri { get; set; }
/// Gets or sets the blob URI to SSL certificate for the DB.
- public Uri DBSslCertificateUri { get; set; }
+ public Uri SslCertificateUri { get; set; }
/// Gets or sets the hostname(s) in the SSL certificate.
public string SslHostNameInCertificate { get; set; }
+ /// Gets or sets certificate preference if secure communication is enabled.
+ public SslPreference? SslPreference { get; set; }
+ /// Gets or sets the SAP System Identifier.
+ public string SapSid { get; set; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.Serialization.cs
index 3948cd637c44..86cf86c02463 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.Serialization.cs
@@ -35,11 +35,6 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("version"u8);
writer.WriteStringValue(Version);
}
- if (Optional.IsDefined(SharedGalleryImageId))
- {
- writer.WritePropertyName("sharedGalleryImageId"u8);
- writer.WriteStringValue(SharedGalleryImageId);
- }
writer.WriteEndObject();
}
@@ -49,8 +44,6 @@ internal static ImageReference DeserializeImageReference(JsonElement element)
Optional offer = default;
Optional sku = default;
Optional version = default;
- Optional exactVersion = default;
- Optional sharedGalleryImageId = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("publisher"u8))
@@ -73,18 +66,8 @@ internal static ImageReference DeserializeImageReference(JsonElement element)
version = property.Value.GetString();
continue;
}
- if (property.NameEquals("exactVersion"u8))
- {
- exactVersion = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("sharedGalleryImageId"u8))
- {
- sharedGalleryImageId = property.Value.GetString();
- continue;
- }
}
- return new ImageReference(publisher.Value, offer.Value, sku.Value, version.Value, exactVersion.Value, sharedGalleryImageId.Value);
+ return new ImageReference(publisher.Value, offer.Value, sku.Value, version.Value);
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.cs
index e48cb31a2614..069d06ec6a45 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/ImageReference.cs
@@ -20,16 +20,12 @@ public ImageReference()
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
/// The image SKU.
/// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
- /// Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
- /// Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.
- internal ImageReference(string publisher, string offer, string sku, string version, string exactVersion, string sharedGalleryImageId)
+ internal ImageReference(string publisher, string offer, string sku, string version)
{
Publisher = publisher;
Offer = offer;
Sku = sku;
Version = version;
- ExactVersion = exactVersion;
- SharedGalleryImageId = sharedGalleryImageId;
}
/// The image publisher.
@@ -40,9 +36,5 @@ internal ImageReference(string publisher, string offer, string sku, string versi
public string Sku { get; set; }
/// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
public string Version { get; set; }
- /// Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
- public string ExactVersion { get; }
- /// Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call.
- public string SharedGalleryImageId { get; set; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/InfrastructureConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/InfrastructureConfiguration.cs
index 5205bbb7576b..f4dc17649686 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/InfrastructureConfiguration.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/InfrastructureConfiguration.cs
@@ -28,7 +28,7 @@ protected InfrastructureConfiguration(string appResourceGroup)
}
/// Initializes a new instance of InfrastructureConfiguration.
- /// The deployment Type.
+ /// The type of SAP deployment, single server or Three tier.
/// The application resource group where SAP system resources will be deployed.
internal InfrastructureConfiguration(SapDeploymentType deploymentType, string appResourceGroup)
{
@@ -36,7 +36,7 @@ internal InfrastructureConfiguration(SapDeploymentType deploymentType, string ap
AppResourceGroup = appResourceGroup;
}
- /// The deployment Type.
+ /// The type of SAP deployment, single server or Three tier.
internal SapDeploymentType DeploymentType { get; set; }
/// The application resource group where SAP system resources will be deployed.
public string AppResourceGroup { get; set; }
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.Serialization.cs
new file mode 100644
index 000000000000..4c151d528a17
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.Serialization.cs
@@ -0,0 +1,119 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class LoadBalancerResourceNames : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ if (Optional.IsDefined(LoadBalancerName))
+ {
+ writer.WritePropertyName("loadBalancerName"u8);
+ writer.WriteStringValue(LoadBalancerName);
+ }
+ if (Optional.IsCollectionDefined(FrontendIPConfigurationNames))
+ {
+ writer.WritePropertyName("frontendIpConfigurationNames"u8);
+ writer.WriteStartArray();
+ foreach (var item in FrontendIPConfigurationNames)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(BackendPoolNames))
+ {
+ writer.WritePropertyName("backendPoolNames"u8);
+ writer.WriteStartArray();
+ foreach (var item in BackendPoolNames)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(HealthProbeNames))
+ {
+ writer.WritePropertyName("healthProbeNames"u8);
+ writer.WriteStartArray();
+ foreach (var item in HealthProbeNames)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ writer.WriteEndObject();
+ }
+
+ internal static LoadBalancerResourceNames DeserializeLoadBalancerResourceNames(JsonElement element)
+ {
+ Optional loadBalancerName = default;
+ Optional> frontendIPConfigurationNames = default;
+ Optional> backendPoolNames = default;
+ Optional> healthProbeNames = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("loadBalancerName"u8))
+ {
+ loadBalancerName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("frontendIpConfigurationNames"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ frontendIPConfigurationNames = array;
+ continue;
+ }
+ if (property.NameEquals("backendPoolNames"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ backendPoolNames = array;
+ continue;
+ }
+ if (property.NameEquals("healthProbeNames"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ healthProbeNames = array;
+ continue;
+ }
+ }
+ return new LoadBalancerResourceNames(loadBalancerName.Value, Optional.ToList(frontendIPConfigurationNames), Optional.ToList(backendPoolNames), Optional.ToList(healthProbeNames));
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs
new file mode 100644
index 000000000000..e9862bf6b2e5
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerResourceNames.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The resource names object for load balancer and related resources.
+ public partial class LoadBalancerResourceNames
+ {
+ /// Initializes a new instance of LoadBalancerResourceNames.
+ public LoadBalancerResourceNames()
+ {
+ FrontendIPConfigurationNames = new ChangeTrackingList();
+ BackendPoolNames = new ChangeTrackingList();
+ HealthProbeNames = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of LoadBalancerResourceNames.
+ /// The full resource name for load balancer. If this value is not provided, load balancer will be name as {ASCS/DB}-loadBalancer.
+ /// The list of frontend IP configuration names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database layer.
+ /// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1.
+ /// The list of health probe names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database layer.
+ internal LoadBalancerResourceNames(string loadBalancerName, IList frontendIPConfigurationNames, IList backendPoolNames, IList healthProbeNames)
+ {
+ LoadBalancerName = loadBalancerName;
+ FrontendIPConfigurationNames = frontendIPConfigurationNames;
+ BackendPoolNames = backendPoolNames;
+ HealthProbeNames = healthProbeNames;
+ }
+
+ /// The full resource name for load balancer. If this value is not provided, load balancer will be name as {ASCS/DB}-loadBalancer.
+ public string LoadBalancerName { get; set; }
+ /// The list of frontend IP configuration names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database layer.
+ public IList FrontendIPConfigurationNames { get; }
+ /// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1.
+ public IList BackendPoolNames { get; }
+ /// The list of health probe names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database layer.
+ public IList HealthProbeNames { get; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerType.cs
deleted file mode 100644
index ce8807310793..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LoadBalancerType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Load balancer type.
- public readonly partial struct LoadBalancerType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public LoadBalancerType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string ApplicationGatewayValue = "ApplicationGateway";
- private const string LoadBalancerValue = "LoadBalancer";
-
- /// ApplicationGateway.
- public static LoadBalancerType ApplicationGateway { get; } = new LoadBalancerType(ApplicationGatewayValue);
- /// LoadBalancer.
- public static LoadBalancerType LoadBalancer { get; } = new LoadBalancerType(LoadBalancerValue);
- /// Determines if two values are the same.
- public static bool operator ==(LoadBalancerType left, LoadBalancerType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(LoadBalancerType left, LoadBalancerType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator LoadBalancerType(string value) => new LoadBalancerType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is LoadBalancerType other && Equals(other);
- ///
- public bool Equals(LoadBalancerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LocationType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LocationType.cs
deleted file mode 100644
index abcec3cda7d9..000000000000
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/LocationType.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.ResourceManager.Workloads.Models
-{
- /// Type of the extended location.
- public readonly partial struct LocationType : IEquatable
- {
- private readonly string _value;
-
- /// Initializes a new instance of .
- /// is null.
- public LocationType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string RegionValue = "Region";
- private const string EdgeZoneValue = "EdgeZone";
-
- /// Region.
- public static LocationType Region { get; } = new LocationType(RegionValue);
- /// EdgeZone.
- public static LocationType EdgeZone { get; } = new LocationType(EdgeZoneValue);
- /// Determines if two values are the same.
- public static bool operator ==(LocationType left, LocationType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(LocationType left, LocationType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator LocationType(string value) => new LocationType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is LocationType other && Equals(other);
- ///
- public bool Equals(LocationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MessageServerProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MessageServerProperties.cs
index a16f7d95bf49..7cb291bba594 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MessageServerProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MessageServerProperties.cs
@@ -7,7 +7,7 @@
namespace Azure.ResourceManager.Workloads.Models
{
- /// Defines the SAP message server properties.
+ /// Defines the SAP Message Server properties.
public partial class MessageServerProperties
{
/// Initializes a new instance of MessageServerProperties.
@@ -16,13 +16,13 @@ public MessageServerProperties()
}
/// Initializes a new instance of MessageServerProperties.
- /// The message server port.
- /// The message server internal MS port.
- /// The message server http port.
- /// The message server https port.
- /// The message server SAP host name.
- /// The message server IP Address.
- /// Defines the SAP Instance health.
+ /// Message Server port.
+ /// Message Server internal MS port.
+ /// Message Server HTTP Port.
+ /// Message Server HTTPS Port.
+ /// Message Server SAP Hostname.
+ /// Message server IP Address.
+ /// Defines the health of SAP Instances.
internal MessageServerProperties(long? msPort, long? internalMsPort, long? httpPort, long? httpsPort, string hostname, string ipAddress, SapHealthState? health)
{
MsPort = msPort;
@@ -34,19 +34,19 @@ internal MessageServerProperties(long? msPort, long? internalMsPort, long? httpP
Health = health;
}
- /// The message server port.
+ /// Message Server port.
public long? MsPort { get; }
- /// The message server internal MS port.
+ /// Message Server internal MS port.
public long? InternalMsPort { get; }
- /// The message server http port.
+ /// Message Server HTTP Port.
public long? HttpPort { get; }
- /// The message server https port.
+ /// Message Server HTTPS Port.
public long? HttpsPort { get; }
- /// The message server SAP host name.
+ /// Message Server SAP Hostname.
public string Hostname { get; }
- /// The message server IP Address.
+ /// Message server IP Address.
public string IPAddress { get; }
- /// Defines the SAP Instance health.
+ /// Defines the health of SAP Instances.
public SapHealthState? Health { get; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.Serialization.cs
new file mode 100644
index 000000000000..7c99cf422b08
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.Serialization.cs
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ public partial class MountFileShareConfiguration : IUtf8JsonSerializable
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
+ {
+ writer.WriteStartObject();
+ writer.WritePropertyName("id"u8);
+ writer.WriteStringValue(Id);
+ writer.WritePropertyName("privateEndpointId"u8);
+ writer.WriteStringValue(PrivateEndpointId);
+ writer.WritePropertyName("configurationType"u8);
+ writer.WriteStringValue(ConfigurationType.ToString());
+ writer.WriteEndObject();
+ }
+
+ internal static MountFileShareConfiguration DeserializeMountFileShareConfiguration(JsonElement element)
+ {
+ string id = default;
+ string privateEndpointId = default;
+ ConfigurationType configurationType = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("privateEndpointId"u8))
+ {
+ privateEndpointId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("configurationType"u8))
+ {
+ configurationType = new ConfigurationType(property.Value.GetString());
+ continue;
+ }
+ }
+ return new MountFileShareConfiguration(configurationType, id, privateEndpointId);
+ }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.cs
new file mode 100644
index 000000000000..a71ae95c0c33
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MountFileShareConfiguration.cs
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// Gets or sets the file share configuration where the transport directory fileshare already exists, and user wishes to mount the fileshare as a part of the create infra flow.
+ public partial class MountFileShareConfiguration : FileShareConfiguration
+ {
+ /// Initializes a new instance of MountFileShareConfiguration.
+ /// The fileshare resource ID.
+ /// The private endpoint resource ID.
+ /// or is null.
+ public MountFileShareConfiguration(string id, string privateEndpointId)
+ {
+ Argument.AssertNotNull(id, nameof(id));
+ Argument.AssertNotNull(privateEndpointId, nameof(privateEndpointId));
+
+ Id = id;
+ PrivateEndpointId = privateEndpointId;
+ ConfigurationType = ConfigurationType.Mount;
+ }
+
+ /// Initializes a new instance of MountFileShareConfiguration.
+ /// The type of file share config.
+ /// The fileshare resource ID.
+ /// The private endpoint resource ID.
+ internal MountFileShareConfiguration(ConfigurationType configurationType, string id, string privateEndpointId) : base(configurationType)
+ {
+ Id = id;
+ PrivateEndpointId = privateEndpointId;
+ ConfigurationType = configurationType;
+ }
+
+ /// The fileshare resource ID.
+ public string Id { get; set; }
+ /// The private endpoint resource ID.
+ public string PrivateEndpointId { get; set; }
+ }
+}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.Serialization.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.Serialization.cs
index f8c507306ad1..4166d84ea805 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.Serialization.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.Serialization.cs
@@ -46,6 +46,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("sapSid"u8);
writer.WriteStringValue(SapSid);
}
+ if (Optional.IsDefined(SslPreference))
+ {
+ writer.WritePropertyName("sslPreference"u8);
+ writer.WriteStringValue(SslPreference.Value.ToString());
+ }
+ if (Optional.IsDefined(SslCertificateUri))
+ {
+ writer.WritePropertyName("sslCertificateUri"u8);
+ writer.WriteStringValue(SslCertificateUri.AbsoluteUri);
+ }
writer.WritePropertyName("providerType"u8);
writer.WriteStringValue(ProviderType);
writer.WriteEndObject();
@@ -59,6 +69,8 @@ internal static MsSqlServerProviderInstanceProperties DeserializeMsSqlServerProv
Optional dbPassword = default;
Optional dbPasswordUri = default;
Optional sapSid = default;
+ Optional sslPreference = default;
+ Optional sslCertificateUri = default;
string providerType = default;
foreach (var property in element.EnumerateObject())
{
@@ -97,13 +109,33 @@ internal static MsSqlServerProviderInstanceProperties DeserializeMsSqlServerProv
sapSid = property.Value.GetString();
continue;
}
+ if (property.NameEquals("sslPreference"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ sslPreference = new SslPreference(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("sslCertificateUri"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ sslCertificateUri = null;
+ continue;
+ }
+ sslCertificateUri = new Uri(property.Value.GetString());
+ continue;
+ }
if (property.NameEquals("providerType"u8))
{
providerType = property.Value.GetString();
continue;
}
}
- return new MsSqlServerProviderInstanceProperties(providerType, hostname.Value, dbPort.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, sapSid.Value);
+ return new MsSqlServerProviderInstanceProperties(providerType, hostname.Value, dbPort.Value, dbUsername.Value, dbPassword.Value, dbPasswordUri.Value, sapSid.Value, Optional.ToNullable(sslPreference), sslCertificateUri.Value);
}
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.cs
index b2b552792232..75b5884398a0 100644
--- a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.cs
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/MsSqlServerProviderInstanceProperties.cs
@@ -26,7 +26,9 @@ public MsSqlServerProviderInstanceProperties()
/// Gets or sets the database password.
/// Gets or sets the key vault URI to secret with the database password.
/// Gets or sets the SAP System Identifier.
- internal MsSqlServerProviderInstanceProperties(string providerType, string hostname, string dbPort, string dbUsername, string dbPassword, Uri dbPasswordUri, string sapSid) : base(providerType)
+ /// Gets or sets certificate preference if secure communication is enabled.
+ /// Gets or sets the blob URI to SSL certificate for the SQL Database.
+ internal MsSqlServerProviderInstanceProperties(string providerType, string hostname, string dbPort, string dbUsername, string dbPassword, Uri dbPasswordUri, string sapSid, SslPreference? sslPreference, Uri sslCertificateUri) : base(providerType)
{
Hostname = hostname;
DBPort = dbPort;
@@ -34,6 +36,8 @@ internal MsSqlServerProviderInstanceProperties(string providerType, string hostn
DBPassword = dbPassword;
DBPasswordUri = dbPasswordUri;
SapSid = sapSid;
+ SslPreference = sslPreference;
+ SslCertificateUri = sslCertificateUri;
ProviderType = providerType ?? "MsSqlServer";
}
@@ -49,5 +53,9 @@ internal MsSqlServerProviderInstanceProperties(string providerType, string hostn
public Uri DBPasswordUri { get; set; }
/// Gets or sets the SAP System Identifier.
public string SapSid { get; set; }
+ /// Gets or sets certificate preference if secure communication is enabled.
+ public SslPreference? SslPreference { get; set; }
+ /// Gets or sets the blob URI to SSL certificate for the SQL Database.
+ public Uri SslCertificateUri { get; set; }
}
}
diff --git a/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/NamingPatternType.cs b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/NamingPatternType.cs
new file mode 100644
index 000000000000..32a8a1743dc5
--- /dev/null
+++ b/sdk/workloads/Azure.ResourceManager.Workloads/src/Generated/Models/NamingPatternType.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Workloads.Models
+{
+ /// The pattern type to be used for resource naming.
+ internal readonly partial struct NamingPatternType : IEquatable
+ {
+ private readonly string _value;
+
+ ///