From d5730bc47d4fc1f4c360852a395457d71f2318ad Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 18 Oct 2024 17:41:06 +0000 Subject: [PATCH] CodeGen from PR 3538 in test-repo-billy/azure-rest-api-specs Merge b6a2841e699808a5d59d8ae13bc34c58d21d006d into 6c6e1713f03acaf37e5c89652b023dd2c9eae16e --- ...urceManager.ComputeFleet.netstandard2.0.cs | 208 +++++++++--------- .../Generated/ArmComputeFleetModelFactory.cs | 4 +- .../AdditionalCapabilities.Serialization.cs | 8 +- .../Models/AdditionalCapabilities.cs | 14 +- .../ComputeFleetProperties.Serialization.cs | 4 +- .../Models/ComputeFleetProperties.cs | 4 +- .../Models/ComputeFleetVmAttributeSupport.cs | 54 ----- .../Models/ComputeFleetVmss.Serialization.cs | 4 +- .../src/Generated/Models/ComputeFleetVmss.cs | 7 +- .../Models/LocationProfile.Serialization.cs | 4 +- .../src/Generated/Models/LocationProfile.cs | 10 +- ... VmAttributeMinMaxDouble.Serialization.cs} | 38 ++-- ...axDouble.cs => VmAttributeMinMaxDouble.cs} | 10 +- ...VmAttributeMinMaxInteger.Serialization.cs} | 38 ++-- ...Integer.cs => VmAttributeMinMaxInteger.cs} | 10 +- .../Generated/Models/VmAttributeSupport.cs | 54 +++++ ...ation.cs => VmAttributes.Serialization.cs} | 98 ++++----- ...teFleetVmAttributes.cs => VmAttributes.cs} | 44 ++-- ...omputeFleetVmCategory.cs => VmCategory.cs} | 36 +-- .../tsp-location.yaml | 6 +- .../tsp-location.yaml | 6 +- 21 files changed, 331 insertions(+), 330 deletions(-) delete mode 100644 sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeSupport.cs rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributeMinMaxDouble.Serialization.cs => VmAttributeMinMaxDouble.Serialization.cs} (65%) rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributeMinMaxDouble.cs => VmAttributeMinMaxDouble.cs} (83%) rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributeMinMaxInteger.Serialization.cs => VmAttributeMinMaxInteger.Serialization.cs} (65%) rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributeMinMaxInteger.cs => VmAttributeMinMaxInteger.cs} (84%) create mode 100644 sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeSupport.cs rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributes.Serialization.cs => VmAttributes.Serialization.cs} (77%) rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmAttributes.cs => VmAttributes.cs} (81%) rename sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/{ComputeFleetVmCategory.cs => VmCategory.cs} (65%) diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/api/Azure.ResourceManager.ComputeFleet.netstandard2.0.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/api/Azure.ResourceManager.ComputeFleet.netstandard2.0.cs index 9bb47397d0fe..7141b7d06d17 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/api/Azure.ResourceManager.ComputeFleet.netstandard2.0.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/api/Azure.ResourceManager.ComputeFleet.netstandard2.0.cs @@ -131,8 +131,8 @@ namespace Azure.ResourceManager.ComputeFleet.Models public partial class AdditionalCapabilities : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AdditionalCapabilities() { } - public bool? IsHibernationEnabled { get { throw null; } set { } } - public bool? IsUltraSSDEnabled { get { throw null; } set { } } + public bool? HibernationEnabled { get { throw null; } set { } } + public bool? UltraSSDEnabled { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.ComputeFleet.Models.AdditionalCapabilities System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -183,9 +183,9 @@ public static partial class ArmComputeFleetModelFactory public static Azure.ResourceManager.ComputeFleet.ComputeFleetData ComputeFleetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProperties properties = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Models.ArmPlan plan = null) { throw null; } public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetImageReference ComputeFleetImageReference(Azure.Core.ResourceIdentifier id = null, string publisher = null, string offer = null, string sku = null, string version = null, string exactVersion = null, string sharedGalleryImageId = null, string communityGalleryImageId = null) { throw null; } public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetInnerError ComputeFleetInnerError(string exceptionType = null, string errorDetail = null) { throw null; } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProperties ComputeFleetProperties(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState? provisioningState = default(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState?), Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile spotPriorityProfile = null, Azure.ResourceManager.ComputeFleet.Models.RegularPriorityProfile regularPriorityProfile = null, System.Collections.Generic.IEnumerable vmSizesProfile = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributes vmAttributes = null, System.Collections.Generic.IEnumerable additionalLocationsLocationProfiles = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetComputeProfile computeProfile = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string uniqueId = null) { throw null; } + public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProperties ComputeFleetProperties(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState? provisioningState = default(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState?), Azure.ResourceManager.ComputeFleet.Models.SpotPriorityProfile spotPriorityProfile = null, Azure.ResourceManager.ComputeFleet.Models.RegularPriorityProfile regularPriorityProfile = null, System.Collections.Generic.IEnumerable vmSizesProfile = null, Azure.ResourceManager.ComputeFleet.Models.VmAttributes vmAttributes = null, System.Collections.Generic.IEnumerable additionalLocationsLocationProfiles = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetComputeProfile computeProfile = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string uniqueId = null) { throw null; } public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmProfile ComputeFleetVmProfile(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssOSProfile osProfile = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssStorageProfile storageProfile = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssNetworkProfile networkProfile = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityProfile securityProfile = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetBootDiagnostics bootDiagnostics = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtensionProfile extensionProfile = null, string licenseType = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetScheduledEventsProfile scheduledEventsProfile = null, string userData = null, Azure.Core.ResourceIdentifier capacityReservationGroupId = null, System.Collections.Generic.IEnumerable galleryApplications = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmSizeProperties hardwareVmSizeProperties = null, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityPostureReference securityPostureReference = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmss ComputeFleetVmss(Azure.Core.ResourceIdentifier id = null, string type = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState operationStatus = default(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState), Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiError error = null) { throw null; } + public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmss ComputeFleetVmss(string id = null, string type = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState operationStatus = default(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState), Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiError error = null) { throw null; } public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtension ComputeFleetVmssExtension(Azure.Core.ResourceIdentifier id = null, string name = null, string extensionType = null, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtensionProperties properties = null) { throw null; } public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtensionProperties ComputeFleetVmssExtensionProperties(string forceUpdateTag = null, string publisher = null, string extensionType = null, string typeHandlerVersion = null, bool? shouldAutoUpgradeMinorVersion = default(bool?), bool? isAutomaticUpgradeEnabled = default(bool?), System.Collections.Generic.IDictionary settings = null, System.Collections.Generic.IDictionary protectedSettings = null, string provisioningState = null, System.Collections.Generic.IEnumerable provisionAfterExtensions = null, bool? isSuppressFailuresEnabled = default(bool?), Azure.ResourceManager.ComputeFleet.Models.ComputeFleetKeyVaultSecretReference protectedSettingsFromKeyVault = null) { throw null; } } @@ -672,7 +672,7 @@ public ComputeFleetProperties(System.Collections.Generic.IEnumerable VmSizesProfile { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -943,102 +943,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class ComputeFleetVmAttributeMinMaxDouble : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ComputeFleetVmAttributeMinMaxDouble() { } - public double? Max { get { throw null; } set { } } - public double? Min { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ComputeFleetVmAttributeMinMaxInteger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ComputeFleetVmAttributeMinMaxInteger() { } - public int? Max { get { throw null; } set { } } - public int? Min { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ComputeFleetVmAttributes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ComputeFleetVmAttributes(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger vCpuCount, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble memoryInGiB) { } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger AcceleratorCount { get { throw null; } set { } } - public System.Collections.Generic.IList AcceleratorManufacturers { get { throw null; } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport? AcceleratorSupport { get { throw null; } set { } } - public System.Collections.Generic.IList AcceleratorTypes { get { throw null; } } - public System.Collections.Generic.IList ArchitectureTypes { get { throw null; } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport? BurstableSupport { get { throw null; } set { } } - public System.Collections.Generic.IList CpuManufacturers { get { throw null; } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger DataDiskCount { get { throw null; } set { } } - public System.Collections.Generic.IList ExcludedVmSizes { get { throw null; } } - public System.Collections.Generic.IList LocalStorageDiskTypes { get { throw null; } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble LocalStorageInGiB { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport? LocalStorageSupport { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble MemoryInGiB { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble MemoryInGiBPerVCpu { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxDouble NetworkBandwidthInMbps { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger NetworkInterfaceCount { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger RdmaNetworkInterfaceCount { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport? RdmaSupport { get { throw null; } set { } } - public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeMinMaxInteger VCpuCount { get { throw null; } set { } } - public System.Collections.Generic.IList VmCategories { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributes System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ComputeFleetVmAttributeSupport : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ComputeFleetVmAttributeSupport(string value) { throw null; } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport Excluded { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport Included { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport Required { get { throw null; } } - public bool Equals(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport left, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport right) { throw null; } - public static implicit operator Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport left, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmAttributeSupport right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ComputeFleetVmCategory : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ComputeFleetVmCategory(string value) { throw null; } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory ComputeOptimized { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory FpgaAccelerated { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory GeneralPurpose { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory GpuAccelerated { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory HighPerformanceCompute { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory MemoryOptimized { get { throw null; } } - public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory StorageOptimized { get { throw null; } } - public bool Equals(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory left, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory right) { throw null; } - public static implicit operator Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory left, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmCategory right) { throw null; } - public override string ToString() { throw null; } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ComputeFleetVmDeleteOption : System.IEquatable { @@ -1152,7 +1056,7 @@ public partial class ComputeFleetVmss : System.ClientModel.Primitives.IJsonModel { internal ComputeFleetVmss() { } public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiError Error { get { throw null; } } - public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Id { get { throw null; } } public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetProvisioningState OperationStatus { get { throw null; } } public string Type { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1564,8 +1468,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class LocationProfile : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public LocationProfile(Azure.Core.AzureLocation location) { } - public Azure.Core.AzureLocation Location { get { throw null; } set { } } + public LocationProfile(string location) { } + public string Location { get { throw null; } set { } } public Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmProfile VirtualMachineProfileOverride { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.ComputeFleet.Models.LocationProfile System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1658,6 +1562,102 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class VmAttributeMinMaxDouble : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VmAttributeMinMaxDouble() { } + public double? Max { get { throw null; } set { } } + public double? Min { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class VmAttributeMinMaxInteger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VmAttributeMinMaxInteger() { } + public int? Max { get { throw null; } set { } } + public int? Min { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class VmAttributes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VmAttributes(Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger vCpuCount, Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble memoryInGiB) { } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger AcceleratorCount { get { throw null; } set { } } + public System.Collections.Generic.IList AcceleratorManufacturers { get { throw null; } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport? AcceleratorSupport { get { throw null; } set { } } + public System.Collections.Generic.IList AcceleratorTypes { get { throw null; } } + public System.Collections.Generic.IList ArchitectureTypes { get { throw null; } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport? BurstableSupport { get { throw null; } set { } } + public System.Collections.Generic.IList CpuManufacturers { get { throw null; } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger DataDiskCount { get { throw null; } set { } } + public System.Collections.Generic.IList ExcludedVmSizes { get { throw null; } } + public System.Collections.Generic.IList LocalStorageDiskTypes { get { throw null; } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble LocalStorageInGiB { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport? LocalStorageSupport { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble MemoryInGiB { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble MemoryInGiBPerVCpu { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxDouble NetworkBandwidthInMbps { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger NetworkInterfaceCount { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger RdmaNetworkInterfaceCount { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport? RdmaSupport { get { throw null; } set { } } + public Azure.ResourceManager.ComputeFleet.Models.VmAttributeMinMaxInteger VCpuCount { get { throw null; } set { } } + public System.Collections.Generic.IList VmCategories { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributes System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.ComputeFleet.Models.VmAttributes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VmAttributeSupport : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VmAttributeSupport(string value) { throw null; } + public static Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport Excluded { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport Included { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport Required { get { throw null; } } + public bool Equals(Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport left, Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport right) { throw null; } + public static implicit operator Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport left, Azure.ResourceManager.ComputeFleet.Models.VmAttributeSupport right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct VmCategory : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public VmCategory(string value) { throw null; } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory ComputeOptimized { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory FpgaAccelerated { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory GeneralPurpose { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory GpuAccelerated { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory HighPerformanceCompute { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory MemoryOptimized { get { throw null; } } + public static Azure.ResourceManager.ComputeFleet.Models.VmCategory StorageOptimized { get { throw null; } } + public bool Equals(Azure.ResourceManager.ComputeFleet.Models.VmCategory other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.ComputeFleet.Models.VmCategory left, Azure.ResourceManager.ComputeFleet.Models.VmCategory right) { throw null; } + public static implicit operator Azure.ResourceManager.ComputeFleet.Models.VmCategory (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.ComputeFleet.Models.VmCategory left, Azure.ResourceManager.ComputeFleet.Models.VmCategory right) { throw null; } + public override string ToString() { throw null; } + } public partial class WindowsSetupAdditionalInformation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public WindowsSetupAdditionalInformation() { } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/ArmComputeFleetModelFactory.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/ArmComputeFleetModelFactory.cs index 2ba45ef79c6e..2d31dc7c36c6 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/ArmComputeFleetModelFactory.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/ArmComputeFleetModelFactory.cs @@ -58,7 +58,7 @@ public static ComputeFleetData ComputeFleetData(ResourceIdentifier id = null, st /// Specifies the time at which the Compute Fleet is created. /// Specifies the ID which uniquely identifies a Compute Fleet. /// A new instance for mocking. - public static ComputeFleetProperties ComputeFleetProperties(ComputeFleetProvisioningState? provisioningState = null, SpotPriorityProfile spotPriorityProfile = null, RegularPriorityProfile regularPriorityProfile = null, IEnumerable vmSizesProfile = null, ComputeFleetVmAttributes vmAttributes = null, IEnumerable additionalLocationsLocationProfiles = null, ComputeFleetComputeProfile computeProfile = null, DateTimeOffset? createdOn = null, string uniqueId = null) + public static ComputeFleetProperties ComputeFleetProperties(ComputeFleetProvisioningState? provisioningState = null, SpotPriorityProfile spotPriorityProfile = null, RegularPriorityProfile regularPriorityProfile = null, IEnumerable vmSizesProfile = null, VmAttributes vmAttributes = null, IEnumerable additionalLocationsLocationProfiles = null, ComputeFleetComputeProfile computeProfile = null, DateTimeOffset? createdOn = null, string uniqueId = null) { vmSizesProfile ??= new List(); additionalLocationsLocationProfiles ??= new List(); @@ -289,7 +289,7 @@ public static ComputeFleetVmssExtensionProperties ComputeFleetVmssExtensionPrope /// This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource. /// Error Information when `operationStatus` is `Failed`. /// A new instance for mocking. - public static ComputeFleetVmss ComputeFleetVmss(ResourceIdentifier id = null, string type = null, ComputeFleetProvisioningState operationStatus = default, ComputeFleetApiError error = null) + public static ComputeFleetVmss ComputeFleetVmss(string id = null, string type = null, ComputeFleetProvisioningState operationStatus = default, ComputeFleetApiError error = null) { return new ComputeFleetVmss(id, type, operationStatus, error, serializedAdditionalRawData: null); } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.Serialization.cs index 389daf23d2ab..23c586c07cdc 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.Serialization.cs @@ -34,15 +34,15 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AdditionalCapabilities)} does not support writing '{format}' format."); } - if (Optional.IsDefined(IsUltraSSDEnabled)) + if (Optional.IsDefined(UltraSSDEnabled)) { writer.WritePropertyName("ultraSSDEnabled"u8); - writer.WriteBooleanValue(IsUltraSSDEnabled.Value); + writer.WriteBooleanValue(UltraSSDEnabled.Value); } - if (Optional.IsDefined(IsHibernationEnabled)) + if (Optional.IsDefined(HibernationEnabled)) { writer.WritePropertyName("hibernationEnabled"u8); - writer.WriteBooleanValue(IsHibernationEnabled.Value); + writer.WriteBooleanValue(HibernationEnabled.Value); } if (options.Format != "W" && _serializedAdditionalRawData != null) { diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.cs index b1c6607634d3..612bd43856d4 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/AdditionalCapabilities.cs @@ -51,16 +51,16 @@ public AdditionalCapabilities() } /// Initializes a new instance of . - /// + /// /// The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. /// Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. /// - /// The flag that enables or disables hibernation capability on the VM. + /// The flag that enables or disables hibernation capability on the VM. /// Keeps track of any properties unknown to the library. - internal AdditionalCapabilities(bool? isUltraSSDEnabled, bool? isHibernationEnabled, IDictionary serializedAdditionalRawData) + internal AdditionalCapabilities(bool? ultraSSDEnabled, bool? hibernationEnabled, IDictionary serializedAdditionalRawData) { - IsUltraSSDEnabled = isUltraSSDEnabled; - IsHibernationEnabled = isHibernationEnabled; + UltraSSDEnabled = ultraSSDEnabled; + HibernationEnabled = hibernationEnabled; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -68,8 +68,8 @@ internal AdditionalCapabilities(bool? isUltraSSDEnabled, bool? isHibernationEnab /// The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. /// Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled. /// - public bool? IsUltraSSDEnabled { get; set; } + public bool? UltraSSDEnabled { get; set; } /// The flag that enables or disables hibernation capability on the VM. - public bool? IsHibernationEnabled { get; set; } + public bool? HibernationEnabled { get; set; } } } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.Serialization.cs index e88e59d9158f..9f01cd3a63d1 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.Serialization.cs @@ -119,7 +119,7 @@ internal static ComputeFleetProperties DeserializeComputeFleetProperties(JsonEle SpotPriorityProfile spotPriorityProfile = default; RegularPriorityProfile regularPriorityProfile = default; IList vmSizesProfile = default; - ComputeFleetVmAttributes vmAttributes = default; + VmAttributes vmAttributes = default; AdditionalLocationsProfile additionalLocationsProfile = default; ComputeFleetComputeProfile computeProfile = default; DateTimeOffset? timeCreated = default; @@ -171,7 +171,7 @@ internal static ComputeFleetProperties DeserializeComputeFleetProperties(JsonEle { continue; } - vmAttributes = ComputeFleetVmAttributes.DeserializeComputeFleetVmAttributes(property.Value, options); + vmAttributes = VmAttributes.DeserializeVmAttributes(property.Value, options); continue; } if (property.NameEquals("additionalLocationsProfile"u8)) diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.cs index 14da376694a0..af497325c432 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetProperties.cs @@ -70,7 +70,7 @@ public ComputeFleetProperties(IEnumerable vmSizesProf /// Specifies the time at which the Compute Fleet is created. /// Specifies the ID which uniquely identifies a Compute Fleet. /// Keeps track of any properties unknown to the library. - internal ComputeFleetProperties(ComputeFleetProvisioningState? provisioningState, SpotPriorityProfile spotPriorityProfile, RegularPriorityProfile regularPriorityProfile, IList vmSizesProfile, ComputeFleetVmAttributes vmAttributes, AdditionalLocationsProfile additionalLocationsProfile, ComputeFleetComputeProfile computeProfile, DateTimeOffset? createdOn, string uniqueId, IDictionary serializedAdditionalRawData) + internal ComputeFleetProperties(ComputeFleetProvisioningState? provisioningState, SpotPriorityProfile spotPriorityProfile, RegularPriorityProfile regularPriorityProfile, IList vmSizesProfile, VmAttributes vmAttributes, AdditionalLocationsProfile additionalLocationsProfile, ComputeFleetComputeProfile computeProfile, DateTimeOffset? createdOn, string uniqueId, IDictionary serializedAdditionalRawData) { ProvisioningState = provisioningState; SpotPriorityProfile = spotPriorityProfile; @@ -98,7 +98,7 @@ internal ComputeFleetProperties() /// List of VM sizes supported for Compute Fleet. public IList VmSizesProfile { get; } /// Attribute based Fleet. - public ComputeFleetVmAttributes VmAttributes { get; set; } + public VmAttributes VmAttributes { get; set; } /// Represents the configuration for additional locations where Fleet resources may be deployed. internal AdditionalLocationsProfile AdditionalLocationsProfile { get; set; } /// The list of location profiles. diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeSupport.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeSupport.cs deleted file mode 100644 index 0dbeee6fb1fa..000000000000 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeSupport.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.ComputeFleet.Models -{ - /// VMSizes supported by Azure VMs. Included is a union of Excluded and Required. - public readonly partial struct ComputeFleetVmAttributeSupport : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ComputeFleetVmAttributeSupport(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ExcludedValue = "Excluded"; - private const string IncludedValue = "Included"; - private const string RequiredValue = "Required"; - - /// All VMSizes having the feature support will be excluded. - public static ComputeFleetVmAttributeSupport Excluded { get; } = new ComputeFleetVmAttributeSupport(ExcludedValue); - /// VMSizes that have the feature support and that do not have the feature support will be used. Included is a union of Excluded and Required. - public static ComputeFleetVmAttributeSupport Included { get; } = new ComputeFleetVmAttributeSupport(IncludedValue); - /// Only the VMSizes having the feature support will be used. - public static ComputeFleetVmAttributeSupport Required { get; } = new ComputeFleetVmAttributeSupport(RequiredValue); - /// Determines if two values are the same. - public static bool operator ==(ComputeFleetVmAttributeSupport left, ComputeFleetVmAttributeSupport right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ComputeFleetVmAttributeSupport left, ComputeFleetVmAttributeSupport right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ComputeFleetVmAttributeSupport(string value) => new ComputeFleetVmAttributeSupport(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ComputeFleetVmAttributeSupport other && Equals(other); - /// - public bool Equals(ComputeFleetVmAttributeSupport other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.Serialization.cs index d34a396db9db..4f946ccc687b 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.Serialization.cs @@ -91,7 +91,7 @@ internal static ComputeFleetVmss DeserializeComputeFleetVmss(JsonElement element { return null; } - ResourceIdentifier id = default; + string id = default; string type = default; ComputeFleetProvisioningState operationStatus = default; ComputeFleetApiError error = default; @@ -101,7 +101,7 @@ internal static ComputeFleetVmss DeserializeComputeFleetVmss(JsonElement element { if (property.NameEquals("id"u8)) { - id = new ResourceIdentifier(property.Value.GetString()); + id = property.Value.GetString(); continue; } if (property.NameEquals("type"u8)) diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.cs index 8af98cd80b82..37a95a7c2479 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmss.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.ResourceManager.ComputeFleet.Models { @@ -52,7 +51,7 @@ public partial class ComputeFleetVmss /// "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}" /// /// This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource. - internal ComputeFleetVmss(ResourceIdentifier id, ComputeFleetProvisioningState operationStatus) + internal ComputeFleetVmss(string id, ComputeFleetProvisioningState operationStatus) { Id = id; OperationStatus = operationStatus; @@ -67,7 +66,7 @@ internal ComputeFleetVmss(ResourceIdentifier id, ComputeFleetProvisioningState o /// This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource. /// Error Information when `operationStatus` is `Failed`. /// Keeps track of any properties unknown to the library. - internal ComputeFleetVmss(ResourceIdentifier id, string type, ComputeFleetProvisioningState operationStatus, ComputeFleetApiError error, IDictionary serializedAdditionalRawData) + internal ComputeFleetVmss(string id, string type, ComputeFleetProvisioningState operationStatus, ComputeFleetApiError error, IDictionary serializedAdditionalRawData) { Id = id; Type = type; @@ -85,7 +84,7 @@ internal ComputeFleetVmss() /// The compute RP resource id of the virtualMachineScaleSet /// "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}" /// - public ResourceIdentifier Id { get; } + public string Id { get; } /// Type of the virtualMachineScaleSet. public string Type { get; } /// This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource. diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.Serialization.cs index 792c90531c35..256f1aa42810 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.Serialization.cs @@ -78,7 +78,7 @@ internal static LocationProfile DeserializeLocationProfile(JsonElement element, { return null; } - AzureLocation location = default; + string location = default; ComputeFleetVmProfile virtualMachineProfileOverride = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -86,7 +86,7 @@ internal static LocationProfile DeserializeLocationProfile(JsonElement element, { if (property.NameEquals("location"u8)) { - location = new AzureLocation(property.Value.GetString()); + location = property.Value.GetString(); continue; } if (property.NameEquals("virtualMachineProfileOverride"u8)) diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.cs index 9b40c1a8a09b..28c2bdeaa0d4 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/LocationProfile.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.ResourceManager.ComputeFleet.Models { @@ -48,8 +47,11 @@ public partial class LocationProfile /// Initializes a new instance of . /// The ARM location name of the additional region. If LocationProfile is specified, then location is required. - public LocationProfile(AzureLocation location) + /// is null. + public LocationProfile(string location) { + Argument.AssertNotNull(location, nameof(location)); + Location = location; } @@ -60,7 +62,7 @@ public LocationProfile(AzureLocation location) /// This override is merged with the base virtual machine profile to define the final virtual machine profile for the resources deployed in this location. /// /// Keeps track of any properties unknown to the library. - internal LocationProfile(AzureLocation location, ComputeFleetVmProfile virtualMachineProfileOverride, IDictionary serializedAdditionalRawData) + internal LocationProfile(string location, ComputeFleetVmProfile virtualMachineProfileOverride, IDictionary serializedAdditionalRawData) { Location = location; VirtualMachineProfileOverride = virtualMachineProfileOverride; @@ -73,7 +75,7 @@ internal LocationProfile() } /// The ARM location name of the additional region. If LocationProfile is specified, then location is required. - public AzureLocation Location { get; set; } + public string Location { get; set; } /// /// An override for computeProfile.baseVirtualMachineProfile specific to this region. /// This override is merged with the base virtual machine profile to define the final virtual machine profile for the resources deployed in this location. diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.Serialization.cs similarity index 65% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.Serialization.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.Serialization.cs index d170e5031047..1112b897c834 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.ComputeFleet.Models { - public partial class ComputeFleetVmAttributeMinMaxDouble : IUtf8JsonSerializable, IJsonModel + public partial class VmAttributeMinMaxDouble : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxDouble)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxDouble)} does not support writing '{format}' format."); } if (Optional.IsDefined(Min)) @@ -61,19 +61,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ComputeFleetVmAttributeMinMaxDouble IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + VmAttributeMinMaxDouble IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxDouble)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxDouble)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeComputeFleetVmAttributeMinMaxDouble(document.RootElement, options); + return DeserializeVmAttributeMinMaxDouble(document.RootElement, options); } - internal static ComputeFleetVmAttributeMinMaxDouble DeserializeComputeFleetVmAttributeMinMaxDouble(JsonElement element, ModelReaderWriterOptions options = null) + internal static VmAttributeMinMaxDouble DeserializeVmAttributeMinMaxDouble(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -111,38 +111,38 @@ internal static ComputeFleetVmAttributeMinMaxDouble DeserializeComputeFleetVmAtt } } serializedAdditionalRawData = rawDataDictionary; - return new ComputeFleetVmAttributeMinMaxDouble(min, max, serializedAdditionalRawData); + return new VmAttributeMinMaxDouble(min, max, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxDouble)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxDouble)} does not support writing '{options.Format}' format."); } } - ComputeFleetVmAttributeMinMaxDouble IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + VmAttributeMinMaxDouble IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeComputeFleetVmAttributeMinMaxDouble(document.RootElement, options); + return DeserializeVmAttributeMinMaxDouble(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxDouble)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxDouble)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.cs similarity index 83% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.cs index 58dfab4ed6ff..546f1f452f6f 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxDouble.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxDouble.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.ComputeFleet.Models { /// VMAttributes using double values. - public partial class ComputeFleetVmAttributeMinMaxDouble + public partial class VmAttributeMinMaxDouble { /// /// Keeps track of any properties unknown to the library. @@ -45,16 +45,16 @@ public partial class ComputeFleetVmAttributeMinMaxDouble /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public ComputeFleetVmAttributeMinMaxDouble() + /// Initializes a new instance of . + public VmAttributeMinMaxDouble() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Minimum value. default 0. Double.MinValue(). /// Maximum value. Double.MaxValue(1.7976931348623157E+308). /// Keeps track of any properties unknown to the library. - internal ComputeFleetVmAttributeMinMaxDouble(double? min, double? max, IDictionary serializedAdditionalRawData) + internal VmAttributeMinMaxDouble(double? min, double? max, IDictionary serializedAdditionalRawData) { Min = min; Max = max; diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.Serialization.cs similarity index 65% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.Serialization.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.Serialization.cs index 9176a94dbdfd..5222d1618a45 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.ComputeFleet.Models { - public partial class ComputeFleetVmAttributeMinMaxInteger : IUtf8JsonSerializable, IJsonModel + public partial class VmAttributeMinMaxInteger : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter write /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxInteger)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxInteger)} does not support writing '{format}' format."); } if (Optional.IsDefined(Min)) @@ -61,19 +61,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ComputeFleetVmAttributeMinMaxInteger IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + VmAttributeMinMaxInteger IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxInteger)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxInteger)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeComputeFleetVmAttributeMinMaxInteger(document.RootElement, options); + return DeserializeVmAttributeMinMaxInteger(document.RootElement, options); } - internal static ComputeFleetVmAttributeMinMaxInteger DeserializeComputeFleetVmAttributeMinMaxInteger(JsonElement element, ModelReaderWriterOptions options = null) + internal static VmAttributeMinMaxInteger DeserializeVmAttributeMinMaxInteger(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -111,38 +111,38 @@ internal static ComputeFleetVmAttributeMinMaxInteger DeserializeComputeFleetVmAt } } serializedAdditionalRawData = rawDataDictionary; - return new ComputeFleetVmAttributeMinMaxInteger(min, max, serializedAdditionalRawData); + return new VmAttributeMinMaxInteger(min, max, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxInteger)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxInteger)} does not support writing '{options.Format}' format."); } } - ComputeFleetVmAttributeMinMaxInteger IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + VmAttributeMinMaxInteger IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeComputeFleetVmAttributeMinMaxInteger(document.RootElement, options); + return DeserializeVmAttributeMinMaxInteger(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributeMinMaxInteger)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributeMinMaxInteger)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.cs similarity index 84% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.cs index 32e6699582b9..a5dee794bd70 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributeMinMaxInteger.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeMinMaxInteger.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.ComputeFleet.Models { /// While retrieving VMSizes from CRS, Min = 0 (uint.MinValue) if not specified, Max = 4294967295 (uint.MaxValue) if not specified. This allows to filter VMAttributes on all available VMSizes. - public partial class ComputeFleetVmAttributeMinMaxInteger + public partial class VmAttributeMinMaxInteger { /// /// Keeps track of any properties unknown to the library. @@ -45,16 +45,16 @@ public partial class ComputeFleetVmAttributeMinMaxInteger /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public ComputeFleetVmAttributeMinMaxInteger() + /// Initializes a new instance of . + public VmAttributeMinMaxInteger() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified. /// Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified. /// Keeps track of any properties unknown to the library. - internal ComputeFleetVmAttributeMinMaxInteger(int? min, int? max, IDictionary serializedAdditionalRawData) + internal VmAttributeMinMaxInteger(int? min, int? max, IDictionary serializedAdditionalRawData) { Min = min; Max = max; diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeSupport.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeSupport.cs new file mode 100644 index 000000000000..e841ff15a3e9 --- /dev/null +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributeSupport.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.ComputeFleet.Models +{ + /// VMSizes supported by Azure VMs. Included is a union of Excluded and Required. + public readonly partial struct VmAttributeSupport : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public VmAttributeSupport(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ExcludedValue = "Excluded"; + private const string IncludedValue = "Included"; + private const string RequiredValue = "Required"; + + /// All VMSizes having the feature support will be excluded. + public static VmAttributeSupport Excluded { get; } = new VmAttributeSupport(ExcludedValue); + /// VMSizes that have the feature support and that do not have the feature support will be used. Included is a union of Excluded and Required. + public static VmAttributeSupport Included { get; } = new VmAttributeSupport(IncludedValue); + /// Only the VMSizes having the feature support will be used. + public static VmAttributeSupport Required { get; } = new VmAttributeSupport(RequiredValue); + /// Determines if two values are the same. + public static bool operator ==(VmAttributeSupport left, VmAttributeSupport right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VmAttributeSupport left, VmAttributeSupport right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator VmAttributeSupport(string value) => new VmAttributeSupport(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is VmAttributeSupport other && Equals(other); + /// + public bool Equals(VmAttributeSupport other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.Serialization.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.Serialization.cs similarity index 77% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.Serialization.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.Serialization.cs index a1d820e4b986..1ef358883235 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.Serialization.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.ResourceManager.ComputeFleet.Models { - public partial class ComputeFleetVmAttributes : IUtf8JsonSerializable, IJsonModel + public partial class VmAttributes : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRead /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributes)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributes)} does not support writing '{format}' format."); } writer.WritePropertyName("vCpuCount"u8); @@ -180,19 +180,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ComputeFleetVmAttributes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + VmAttributes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputeFleetVmAttributes)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(VmAttributes)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeComputeFleetVmAttributes(document.RootElement, options); + return DeserializeVmAttributes(document.RootElement, options); } - internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(JsonElement element, ModelReaderWriterOptions options = null) + internal static VmAttributes DeserializeVmAttributes(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -200,25 +200,25 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { return null; } - ComputeFleetVmAttributeMinMaxInteger vCpuCount = default; - ComputeFleetVmAttributeMinMaxDouble memoryInGiB = default; - ComputeFleetVmAttributeMinMaxDouble memoryInGiBPerVCpu = default; - ComputeFleetVmAttributeSupport? localStorageSupport = default; - ComputeFleetVmAttributeMinMaxDouble localStorageInGiB = default; + VmAttributeMinMaxInteger vCpuCount = default; + VmAttributeMinMaxDouble memoryInGiB = default; + VmAttributeMinMaxDouble memoryInGiBPerVCpu = default; + VmAttributeSupport? localStorageSupport = default; + VmAttributeMinMaxDouble localStorageInGiB = default; IList localStorageDiskTypes = default; - ComputeFleetVmAttributeMinMaxInteger dataDiskCount = default; - ComputeFleetVmAttributeMinMaxInteger networkInterfaceCount = default; - ComputeFleetVmAttributeMinMaxDouble networkBandwidthInMbps = default; - ComputeFleetVmAttributeSupport? rdmaSupport = default; - ComputeFleetVmAttributeMinMaxInteger rdmaNetworkInterfaceCount = default; - ComputeFleetVmAttributeSupport? acceleratorSupport = default; + VmAttributeMinMaxInteger dataDiskCount = default; + VmAttributeMinMaxInteger networkInterfaceCount = default; + VmAttributeMinMaxDouble networkBandwidthInMbps = default; + VmAttributeSupport? rdmaSupport = default; + VmAttributeMinMaxInteger rdmaNetworkInterfaceCount = default; + VmAttributeSupport? acceleratorSupport = default; IList acceleratorManufacturers = default; IList acceleratorTypes = default; - ComputeFleetVmAttributeMinMaxInteger acceleratorCount = default; - IList vmCategories = default; + VmAttributeMinMaxInteger acceleratorCount = default; + IList vmCategories = default; IList architectureTypes = default; IList cpuManufacturers = default; - ComputeFleetVmAttributeSupport? burstableSupport = default; + VmAttributeSupport? burstableSupport = default; IList excludedVmSizes = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -226,12 +226,12 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { if (property.NameEquals("vCpuCount"u8)) { - vCpuCount = ComputeFleetVmAttributeMinMaxInteger.DeserializeComputeFleetVmAttributeMinMaxInteger(property.Value, options); + vCpuCount = VmAttributeMinMaxInteger.DeserializeVmAttributeMinMaxInteger(property.Value, options); continue; } if (property.NameEquals("memoryInGiB"u8)) { - memoryInGiB = ComputeFleetVmAttributeMinMaxDouble.DeserializeComputeFleetVmAttributeMinMaxDouble(property.Value, options); + memoryInGiB = VmAttributeMinMaxDouble.DeserializeVmAttributeMinMaxDouble(property.Value, options); continue; } if (property.NameEquals("memoryInGiBPerVCpu"u8)) @@ -240,7 +240,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - memoryInGiBPerVCpu = ComputeFleetVmAttributeMinMaxDouble.DeserializeComputeFleetVmAttributeMinMaxDouble(property.Value, options); + memoryInGiBPerVCpu = VmAttributeMinMaxDouble.DeserializeVmAttributeMinMaxDouble(property.Value, options); continue; } if (property.NameEquals("localStorageSupport"u8)) @@ -249,7 +249,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - localStorageSupport = new ComputeFleetVmAttributeSupport(property.Value.GetString()); + localStorageSupport = new VmAttributeSupport(property.Value.GetString()); continue; } if (property.NameEquals("localStorageInGiB"u8)) @@ -258,7 +258,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - localStorageInGiB = ComputeFleetVmAttributeMinMaxDouble.DeserializeComputeFleetVmAttributeMinMaxDouble(property.Value, options); + localStorageInGiB = VmAttributeMinMaxDouble.DeserializeVmAttributeMinMaxDouble(property.Value, options); continue; } if (property.NameEquals("localStorageDiskTypes"u8)) @@ -281,7 +281,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - dataDiskCount = ComputeFleetVmAttributeMinMaxInteger.DeserializeComputeFleetVmAttributeMinMaxInteger(property.Value, options); + dataDiskCount = VmAttributeMinMaxInteger.DeserializeVmAttributeMinMaxInteger(property.Value, options); continue; } if (property.NameEquals("networkInterfaceCount"u8)) @@ -290,7 +290,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - networkInterfaceCount = ComputeFleetVmAttributeMinMaxInteger.DeserializeComputeFleetVmAttributeMinMaxInteger(property.Value, options); + networkInterfaceCount = VmAttributeMinMaxInteger.DeserializeVmAttributeMinMaxInteger(property.Value, options); continue; } if (property.NameEquals("networkBandwidthInMbps"u8)) @@ -299,7 +299,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - networkBandwidthInMbps = ComputeFleetVmAttributeMinMaxDouble.DeserializeComputeFleetVmAttributeMinMaxDouble(property.Value, options); + networkBandwidthInMbps = VmAttributeMinMaxDouble.DeserializeVmAttributeMinMaxDouble(property.Value, options); continue; } if (property.NameEquals("rdmaSupport"u8)) @@ -308,7 +308,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - rdmaSupport = new ComputeFleetVmAttributeSupport(property.Value.GetString()); + rdmaSupport = new VmAttributeSupport(property.Value.GetString()); continue; } if (property.NameEquals("rdmaNetworkInterfaceCount"u8)) @@ -317,7 +317,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - rdmaNetworkInterfaceCount = ComputeFleetVmAttributeMinMaxInteger.DeserializeComputeFleetVmAttributeMinMaxInteger(property.Value, options); + rdmaNetworkInterfaceCount = VmAttributeMinMaxInteger.DeserializeVmAttributeMinMaxInteger(property.Value, options); continue; } if (property.NameEquals("acceleratorSupport"u8)) @@ -326,7 +326,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - acceleratorSupport = new ComputeFleetVmAttributeSupport(property.Value.GetString()); + acceleratorSupport = new VmAttributeSupport(property.Value.GetString()); continue; } if (property.NameEquals("acceleratorManufacturers"u8)) @@ -363,7 +363,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - acceleratorCount = ComputeFleetVmAttributeMinMaxInteger.DeserializeComputeFleetVmAttributeMinMaxInteger(property.Value, options); + acceleratorCount = VmAttributeMinMaxInteger.DeserializeVmAttributeMinMaxInteger(property.Value, options); continue; } if (property.NameEquals("vmCategories"u8)) @@ -372,10 +372,10 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(new ComputeFleetVmCategory(item.GetString())); + array.Add(new VmCategory(item.GetString())); } vmCategories = array; continue; @@ -414,7 +414,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso { continue; } - burstableSupport = new ComputeFleetVmAttributeSupport(property.Value.GetString()); + burstableSupport = new VmAttributeSupport(property.Value.GetString()); continue; } if (property.NameEquals("excludedVMSizes"u8)) @@ -437,7 +437,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso } } serializedAdditionalRawData = rawDataDictionary; - return new ComputeFleetVmAttributes( + return new VmAttributes( vCpuCount, memoryInGiB, memoryInGiBPerVCpu, @@ -453,7 +453,7 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso acceleratorManufacturers ?? new ChangeTrackingList(), acceleratorTypes ?? new ChangeTrackingList(), acceleratorCount, - vmCategories ?? new ChangeTrackingList(), + vmCategories ?? new ChangeTrackingList(), architectureTypes ?? new ChangeTrackingList(), cpuManufacturers ?? new ChangeTrackingList(), burstableSupport, @@ -461,35 +461,35 @@ internal static ComputeFleetVmAttributes DeserializeComputeFleetVmAttributes(Jso serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributes)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributes)} does not support writing '{options.Format}' format."); } } - ComputeFleetVmAttributes IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + VmAttributes IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeComputeFleetVmAttributes(document.RootElement, options); + return DeserializeVmAttributes(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ComputeFleetVmAttributes)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(VmAttributes)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.cs similarity index 81% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.cs index 1aa7f7b60228..b93ffaae1e6f 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmAttributes.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmAttributes.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.ComputeFleet.Models { /// VMAttributes that will be used to filter VMSizes which will be used to build Fleet. - public partial class ComputeFleetVmAttributes + public partial class VmAttributes { /// /// Keeps track of any properties unknown to the library. @@ -45,11 +45,11 @@ public partial class ComputeFleetVmAttributes /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. /// The range of memory specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. /// or is null. - public ComputeFleetVmAttributes(ComputeFleetVmAttributeMinMaxInteger vCpuCount, ComputeFleetVmAttributeMinMaxDouble memoryInGiB) + public VmAttributes(VmAttributeMinMaxInteger vCpuCount, VmAttributeMinMaxDouble memoryInGiB) { Argument.AssertNotNull(vCpuCount, nameof(vCpuCount)); Argument.AssertNotNull(memoryInGiB, nameof(memoryInGiB)); @@ -59,13 +59,13 @@ public ComputeFleetVmAttributes(ComputeFleetVmAttributeMinMaxInteger vCpuCount, LocalStorageDiskTypes = new ChangeTrackingList(); AcceleratorManufacturers = new ChangeTrackingList(); AcceleratorTypes = new ChangeTrackingList(); - VmCategories = new ChangeTrackingList(); + VmCategories = new ChangeTrackingList(); ArchitectureTypes = new ChangeTrackingList(); CpuManufacturers = new ChangeTrackingList(); ExcludedVmSizes = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. /// The range of memory specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. /// The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min or Max is required if specified. @@ -112,7 +112,7 @@ public ComputeFleetVmAttributes(ComputeFleetVmAttributeMinMaxInteger vCpuCount, /// Specifies whether the VMSize supporting burstable capability should be used to build Fleet or not. /// Specifies which VMSizes should be excluded while building Fleet. Optional parameter. /// Keeps track of any properties unknown to the library. - internal ComputeFleetVmAttributes(ComputeFleetVmAttributeMinMaxInteger vCpuCount, ComputeFleetVmAttributeMinMaxDouble memoryInGiB, ComputeFleetVmAttributeMinMaxDouble memoryInGiBPerVCpu, ComputeFleetVmAttributeSupport? localStorageSupport, ComputeFleetVmAttributeMinMaxDouble localStorageInGiB, IList localStorageDiskTypes, ComputeFleetVmAttributeMinMaxInteger dataDiskCount, ComputeFleetVmAttributeMinMaxInteger networkInterfaceCount, ComputeFleetVmAttributeMinMaxDouble networkBandwidthInMbps, ComputeFleetVmAttributeSupport? rdmaSupport, ComputeFleetVmAttributeMinMaxInteger rdmaNetworkInterfaceCount, ComputeFleetVmAttributeSupport? acceleratorSupport, IList acceleratorManufacturers, IList acceleratorTypes, ComputeFleetVmAttributeMinMaxInteger acceleratorCount, IList vmCategories, IList architectureTypes, IList cpuManufacturers, ComputeFleetVmAttributeSupport? burstableSupport, IList excludedVmSizes, IDictionary serializedAdditionalRawData) + internal VmAttributes(VmAttributeMinMaxInteger vCpuCount, VmAttributeMinMaxDouble memoryInGiB, VmAttributeMinMaxDouble memoryInGiBPerVCpu, VmAttributeSupport? localStorageSupport, VmAttributeMinMaxDouble localStorageInGiB, IList localStorageDiskTypes, VmAttributeMinMaxInteger dataDiskCount, VmAttributeMinMaxInteger networkInterfaceCount, VmAttributeMinMaxDouble networkBandwidthInMbps, VmAttributeSupport? rdmaSupport, VmAttributeMinMaxInteger rdmaNetworkInterfaceCount, VmAttributeSupport? acceleratorSupport, IList acceleratorManufacturers, IList acceleratorTypes, VmAttributeMinMaxInteger acceleratorCount, IList vmCategories, IList architectureTypes, IList cpuManufacturers, VmAttributeSupport? burstableSupport, IList excludedVmSizes, IDictionary serializedAdditionalRawData) { VCpuCount = vCpuCount; MemoryInGiB = memoryInGiB; @@ -137,49 +137,49 @@ internal ComputeFleetVmAttributes(ComputeFleetVmAttributeMinMaxInteger vCpuCount _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal ComputeFleetVmAttributes() + /// Initializes a new instance of for deserialization. + internal VmAttributes() { } /// The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxInteger VCpuCount { get; set; } + public VmAttributeMinMaxInteger VCpuCount { get; set; } /// The range of memory specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxDouble MemoryInGiB { get; set; } + public VmAttributeMinMaxDouble MemoryInGiB { get; set; } /// The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxDouble MemoryInGiBPerVCpu { get; set; } + public VmAttributeMinMaxDouble MemoryInGiBPerVCpu { get; set; } /// Specifies whether the VMSize supporting local storage should be used to build Fleet or not. - public ComputeFleetVmAttributeSupport? LocalStorageSupport { get; set; } + public VmAttributeSupport? LocalStorageSupport { get; set; } /// /// LocalStorageSupport should be set to "Included" or "Required" to use this VMAttribute. /// If localStorageSupport is "Excluded", this VMAttribute can not be used. /// - public ComputeFleetVmAttributeMinMaxDouble LocalStorageInGiB { get; set; } + public VmAttributeMinMaxDouble LocalStorageInGiB { get; set; } /// /// The local storage disk types specified as a list. LocalStorageSupport should be set to "Included" or "Required" to use this VMAttribute. /// If localStorageSupport is "Excluded", this VMAttribute can not be used. /// public IList LocalStorageDiskTypes { get; } /// The range of data disk count specified from Min to Max. Optional parameter. Either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxInteger DataDiskCount { get; set; } + public VmAttributeMinMaxInteger DataDiskCount { get; set; } /// The range of network interface count specified from Min to Max. Optional parameter. Either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxInteger NetworkInterfaceCount { get; set; } + public VmAttributeMinMaxInteger NetworkInterfaceCount { get; set; } /// The range of network bandwidth in Mbps specified from Min to Max. Optional parameter. Either Min or Max is required if specified. - public ComputeFleetVmAttributeMinMaxDouble NetworkBandwidthInMbps { get; set; } + public VmAttributeMinMaxDouble NetworkBandwidthInMbps { get; set; } /// Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should be used to build Fleet or not. - public ComputeFleetVmAttributeSupport? RdmaSupport { get; set; } + public VmAttributeSupport? RdmaSupport { get; set; } /// /// The range of RDMA (Remote Direct Memory Access) network interface count specified from Min to Max. Optional parameter. Either Min or Max is required if specified. /// rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. /// If rdmaSupport is "Excluded", this VMAttribute can not be used. /// - public ComputeFleetVmAttributeMinMaxInteger RdmaNetworkInterfaceCount { get; set; } + public VmAttributeMinMaxInteger RdmaNetworkInterfaceCount { get; set; } /// /// Specifies whether the VMSize supporting accelerator should be used to build Fleet or not. /// acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. /// If acceleratorSupport is "Excluded", this VMAttribute can not be used. /// - public ComputeFleetVmAttributeSupport? AcceleratorSupport { get; set; } + public VmAttributeSupport? AcceleratorSupport { get; set; } /// /// The accelerator manufacturers specified as a list. /// acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. @@ -196,15 +196,15 @@ internal ComputeFleetVmAttributes() /// acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. /// If acceleratorSupport is "Excluded", this VMAttribute can not be used. /// - public ComputeFleetVmAttributeMinMaxInteger AcceleratorCount { get; set; } + public VmAttributeMinMaxInteger AcceleratorCount { get; set; } /// The VM category specified as a list. Optional parameter. - public IList VmCategories { get; } + public IList VmCategories { get; } /// The VM architecture types specified as a list. Optional parameter. public IList ArchitectureTypes { get; } /// The VM CPU manufacturers specified as a list. Optional parameter. public IList CpuManufacturers { get; } /// Specifies whether the VMSize supporting burstable capability should be used to build Fleet or not. - public ComputeFleetVmAttributeSupport? BurstableSupport { get; set; } + public VmAttributeSupport? BurstableSupport { get; set; } /// Specifies which VMSizes should be excluded while building Fleet. Optional parameter. public IList ExcludedVmSizes { get; } } diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmCategory.cs b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmCategory.cs similarity index 65% rename from sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmCategory.cs rename to sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmCategory.cs index 5eee9116a4b9..90fbf2910a33 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/ComputeFleetVmCategory.cs +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/src/Generated/Models/VmCategory.cs @@ -14,13 +14,13 @@ namespace Azure.ResourceManager.ComputeFleet.Models /// VMCategories defined for Azure VMs. /// See: https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/overview?tabs=breakdownseries%2Cgeneralsizelist%2Ccomputesizelist%2Cmemorysizelist%2Cstoragesizelist%2Cgpusizelist%2Cfpgasizelist%2Chpcsizelist#general-purpose /// - public readonly partial struct ComputeFleetVmCategory : IEquatable + public readonly partial struct VmCategory : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public ComputeFleetVmCategory(string value) + public VmCategory(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -34,44 +34,44 @@ public ComputeFleetVmCategory(string value) private const string HighPerformanceComputeValue = "HighPerformanceCompute"; /// General purpose VM sizes provide balanced CPU-to-memory ratio. Ideal for testing and development, small to medium databases, and low to medium traffic web servers. - public static ComputeFleetVmCategory GeneralPurpose { get; } = new ComputeFleetVmCategory(GeneralPurposeValue); + public static VmCategory GeneralPurpose { get; } = new VmCategory(GeneralPurposeValue); /// Compute optimized VM sizes have a high CPU-to-memory ratio. These sizes are good for medium traffic web servers, network appliances, batch processes, and application servers. - public static ComputeFleetVmCategory ComputeOptimized { get; } = new ComputeFleetVmCategory(ComputeOptimizedValue); + public static VmCategory ComputeOptimized { get; } = new VmCategory(ComputeOptimizedValue); /// Memory optimized VM sizes offer a high memory-to-CPU ratio that is great for relational database servers, medium to large caches, and in-memory analytics. - public static ComputeFleetVmCategory MemoryOptimized { get; } = new ComputeFleetVmCategory(MemoryOptimizedValue); + public static VmCategory MemoryOptimized { get; } = new VmCategory(MemoryOptimizedValue); /// /// Storage optimized virtual machine (VM) sizes offer high disk throughput and IO, and are ideal for Big Data, SQL, NoSQL databases, data warehousing, and large transactional databases. /// Examples include Cassandra, MongoDB, Cloudera, and Redis. /// - public static ComputeFleetVmCategory StorageOptimized { get; } = new ComputeFleetVmCategory(StorageOptimizedValue); + public static VmCategory StorageOptimized { get; } = new VmCategory(StorageOptimizedValue); /// /// GPU optimized VM sizes are specialized virtual machines available with single, multiple, or fractional GPUs. /// These sizes are designed for compute-intensive, graphics-intensive, and visualization workloads. /// - public static ComputeFleetVmCategory GpuAccelerated { get; } = new ComputeFleetVmCategory(GpuAcceleratedValue); + public static VmCategory GpuAccelerated { get; } = new VmCategory(GpuAcceleratedValue); /// /// FPGA optimized VM sizes are specialized virtual machines available with single or multiple FPGA. /// These sizes are designed for compute-intensive workloads. This article provides information about the number and type of FPGA, vCPUs, data disks, and NICs. /// Storage throughput and network bandwidth are also included for each size in this grouping. /// - public static ComputeFleetVmCategory FpgaAccelerated { get; } = new ComputeFleetVmCategory(FpgaAcceleratedValue); + public static VmCategory FpgaAccelerated { get; } = new VmCategory(FpgaAcceleratedValue); /// /// Azure High Performance Compute VMs are optimized for various HPC workloads such as computational fluid dynamics, finite element analysis, frontend and backend EDA, /// rendering, molecular dynamics, computational geo science, weather simulation, and financial risk analysis. /// - public static ComputeFleetVmCategory HighPerformanceCompute { get; } = new ComputeFleetVmCategory(HighPerformanceComputeValue); - /// Determines if two values are the same. - public static bool operator ==(ComputeFleetVmCategory left, ComputeFleetVmCategory right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ComputeFleetVmCategory left, ComputeFleetVmCategory right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator ComputeFleetVmCategory(string value) => new ComputeFleetVmCategory(value); + public static VmCategory HighPerformanceCompute { get; } = new VmCategory(HighPerformanceComputeValue); + /// Determines if two values are the same. + public static bool operator ==(VmCategory left, VmCategory right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(VmCategory left, VmCategory right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator VmCategory(string value) => new VmCategory(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ComputeFleetVmCategory other && Equals(other); + public override bool Equals(object obj) => obj is VmCategory other && Equals(other); /// - public bool Equals(ComputeFleetVmCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(VmCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/tsp-location.yaml b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/tsp-location.yaml index 9cb62246a668..76e44aaac48a 100644 --- a/sdk/computefleet/Azure.ResourceManager.ComputeFleet/tsp-location.yaml +++ b/sdk/computefleet/Azure.ResourceManager.ComputeFleet/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/azurefleet/AzureFleet.Management -commit: 8ad58020cfafc5ace71d85b31272acf4d6b694d3 -repo: Azure/azure-rest-api-specs - +commit: a034be5abf91cd32f3b620cd3abcf3d43b6642cc +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/tsp-location.yaml b/sdk/schemaregistry/Azure.Data.SchemaRegistry/tsp-location.yaml index 93dfddce7393..9bc6d3f72263 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/tsp-location.yaml +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/tsp-location.yaml @@ -1,4 +1,4 @@ -repo: Azure/azure-rest-api-specs directory: specification/schemaregistry/SchemaRegistry -additionalDirectories: [] -commit: ab064e0047ec560a700d6b501097d99471ad817b \ No newline at end of file +commit: a034be5abf91cd32f3b620cd3abcf3d43b6642cc +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: