From a5e2e93396ace27143f597190cd314bceebd7bff Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 17 Oct 2022 20:15:42 +0000 Subject: [PATCH] CodeGen from PR 21090 in Azure/azure-rest-api-specs Merge adb3c164ba9855112dd3488c76d09f0e91397635 into 41b36c339a4241d66c456bb017fc9584e8409999 --- ....ResourceManager.Compute.netstandard2.0.cs | 156 ++++++++++++++++-- .../src/Generated/CapacityReservationData.cs | 10 +- .../src/Generated/DedicatedHostData.cs | 4 +- .../src/Generated/GalleryApplicationData.cs | 7 +- .../GalleryApplicationVersionData.cs | 18 +- .../src/Generated/GalleryImageVersionData.cs | 6 +- .../src/Generated/ManagedDiskData.cs | 10 +- .../CapacityReservationData.Serialization.cs | 13 +- .../Models/CapacityReservationInstanceView.cs | 9 +- .../Models/CapacityReservationPatch.cs | 4 +- ...ityReservationUtilization.Serialization.cs | 15 +- .../Models/CapacityReservationUtilization.cs | 8 +- .../Generated/Models/DedicatedHostPatch.cs | 2 +- .../Generated/Models/DiskControllerType.cs | 51 ++++++ .../Models/DiskCreationData.Serialization.cs | 18 +- .../src/Generated/Models/DiskCreationData.cs | 6 +- ...ryApplicationCustomAction.Serialization.cs | 83 ++++++++++ .../Models/GalleryApplicationCustomAction.cs | 59 +++++++ ...tionCustomActionParameter.Serialization.cs | 91 ++++++++++ ...GalleryApplicationCustomActionParameter.cs | 54 ++++++ ...CustomActionParameterType.Serialization.cs | 30 ++++ ...eryApplicationCustomActionParameterType.cs | 20 +++ .../GalleryApplicationData.Serialization.cs | 28 +++- .../GalleryApplicationPatch.Serialization.cs | 10 ++ .../Models/GalleryApplicationPatch.cs | 3 + ...eryApplicationVersionData.Serialization.cs | 18 +- ...ryApplicationVersionPatch.Serialization.cs | 5 + .../Models/GalleryApplicationVersionPatch.cs | 14 ++ ...nVersionPublishingProfile.Serialization.cs | 28 +++- ...leryApplicationVersionPublishingProfile.cs | 7 +- ...ationVersionSafetyProfile.Serialization.cs | 45 +++++ .../GalleryApplicationVersionSafetyProfile.cs | 24 +++ ...ArtifactSafetyProfileBase.Serialization.cs | 45 +++++ .../GalleryArtifactSafetyProfileBase.cs | 28 ++++ ...ArtifactVersionFullSource.Serialization.cs | 56 +++++++ .../GalleryArtifactVersionFullSource.cs | 31 ++++ ...leryArtifactVersionSource.Serialization.cs | 19 +-- .../Models/GalleryArtifactVersionSource.cs | 7 +- .../GalleryDataDiskImage.Serialization.cs | 4 +- .../Generated/Models/GalleryDataDiskImage.cs | 4 +- .../Models/GalleryDiskImage.Serialization.cs | 4 +- .../src/Generated/Models/GalleryDiskImage.cs | 8 +- .../GalleryDiskImageSource.Serialization.cs | 73 ++++++++ .../Models/GalleryDiskImageSource.cs | 36 ++++ .../GalleryImageVersionData.Serialization.cs | 18 +- .../GalleryImageVersionPatch.Serialization.cs | 5 + .../Models/GalleryImageVersionPatch.cs | 2 + ...ImageVersionSafetyProfile.Serialization.cs | 73 ++++++++ .../GalleryImageVersionSafetyProfile.cs | 37 +++++ ...mageVersionStorageProfile.Serialization.cs | 4 +- .../GalleryImageVersionStorageProfile.cs | 8 +- .../GalleryOSDiskImage.Serialization.cs | 4 +- .../Generated/Models/GalleryOSDiskImage.cs | 4 +- .../LinuxConfiguration.Serialization.cs | 18 +- .../Generated/Models/LinuxConfiguration.cs | 6 +- .../Models/ManagedDiskData.Serialization.cs | 29 +++- .../Models/ManagedDiskPatch.Serialization.cs | 5 + .../src/Generated/Models/ManagedDiskPatch.cs | 2 + ...OSProfileProvisioningData.Serialization.cs | 31 ++++ .../Models/OSProfileProvisioningData.cs | 23 +++ .../Models/PolicyViolation.Serialization.cs | 40 +++++ .../src/Generated/Models/PolicyViolation.cs | 32 ++++ .../Models/PolicyViolationCategory.cs | 57 +++++++ .../Models/PriorityMixPolicy.Serialization.cs | 61 +++++++ .../src/Generated/Models/PriorityMixPolicy.cs | 32 ++++ .../SharedGalleryImageData.Serialization.cs | 19 ++- .../Models/SnapshotData.Serialization.cs | 8 +- .../SupportedCapabilities.Serialization.cs | 13 +- .../Generated/Models/SupportedCapabilities.cs | 6 +- .../Models/TargetRegion.Serialization.cs | 18 +- .../src/Generated/Models/TargetRegion.cs | 6 +- .../Models/VirtualMachineDataDisk.cs | 4 +- ...rtualMachineExtensionData.Serialization.cs | 10 +- ...tualMachineExtensionPatch.Serialization.cs | 6 +- .../Models/VirtualMachineExtensionPatch.cs | 33 +--- ...orkInterfaceConfiguration.Serialization.cs | 18 +- ...ualMachineNetworkInterfaceConfiguration.cs | 6 +- .../Generated/Models/VirtualMachineOSDisk.cs | 4 +- .../Generated/Models/VirtualMachinePatch.cs | 2 +- ...tualMachineReimageContent.Serialization.cs | 10 ++ .../Models/VirtualMachineReimageContent.cs | 4 + ...irtualMachineScaleSetData.Serialization.cs | 18 +- .../Models/VirtualMachineScaleSetDataDisk.cs | 4 +- ...hineScaleSetExtensionData.Serialization.cs | 11 +- ...ineScaleSetExtensionPatch.Serialization.cs | 10 +- .../VirtualMachineScaleSetExtensionPatch.cs | 35 +--- .../VirtualMachineScaleSetHardwareProfile.cs | 4 +- ...leSetNetworkConfiguration.Serialization.cs | 18 +- ...tualMachineScaleSetNetworkConfiguration.cs | 6 +- .../Models/VirtualMachineScaleSetOSDisk.cs | 4 +- ...ineScaleSetReimageContent.Serialization.cs | 10 ++ ...ineScaleSetStorageProfile.Serialization.cs | 13 +- .../VirtualMachineScaleSetStorageProfile.cs | 6 +- ...pdateNetworkConfiguration.Serialization.cs | 18 +- ...chineScaleSetUpdateNetworkConfiguration.cs | 6 +- .../VirtualMachineScaleSetUpdateOSDisk.cs | 2 +- ...leSetUpdateStorageProfile.Serialization.cs | 5 + ...tualMachineScaleSetUpdateStorageProfile.cs | 2 + ...neScaleSetUpdateVmProfile.Serialization.cs | 5 + .../VirtualMachineScaleSetUpdateVmProfile.cs | 13 ++ ...neScaleSetVmExtensionData.Serialization.cs | 10 +- ...eScaleSetVmExtensionPatch.Serialization.cs | 10 +- .../VirtualMachineScaleSetVmExtensionPatch.cs | 35 +--- .../Models/VirtualMachineScaleSetVmProfile.cs | 6 +- ...eScaleSetVmReimageContent.Serialization.cs | 10 ++ ...tualMachineStorageProfile.Serialization.cs | 18 +- .../Models/VirtualMachineStorageProfile.cs | 6 +- .../WindowsConfiguration.Serialization.cs | 18 +- .../Generated/Models/WindowsConfiguration.cs | 7 +- .../AvailabilitySetsRestOperations.cs | 2 +- ...CapacityReservationGroupsRestOperations.cs | 2 +- .../CapacityReservationsRestOperations.cs | 2 +- .../CommunityGalleriesRestOperations.cs | 2 +- ...unityGalleryImageVersionsRestOperations.cs | 2 +- .../CommunityGalleryImagesRestOperations.cs | 2 +- .../DedicatedHostGroupsRestOperations.cs | 2 +- .../DedicatedHostsRestOperations.cs | 2 +- .../DiskAccessesRestOperations.cs | 2 +- .../DiskEncryptionSetsRestOperations.cs | 2 +- .../DiskRestorePointRestOperations.cs | 2 +- .../RestOperations/DisksRestOperations.cs | 2 +- .../RestOperations/GalleriesRestOperations.cs | 2 +- ...alleryApplicationVersionsRestOperations.cs | 2 +- .../GalleryApplicationsRestOperations.cs | 2 +- .../GalleryImageVersionsRestOperations.cs | 2 +- .../GalleryImagesRestOperations.cs | 2 +- .../GallerySharingProfileRestOperations.cs | 2 +- .../RestOperations/ImagesRestOperations.cs | 2 +- .../LogAnalyticsRestOperations.cs | 2 +- .../ProximityPlacementGroupsRestOperations.cs | 2 +- .../RestorePointCollectionsRestOperations.cs | 2 +- .../RestorePointsRestOperations.cs | 2 +- .../SharedGalleriesRestOperations.cs | 2 +- ...haredGalleryImageVersionsRestOperations.cs | 2 +- .../SharedGalleryImagesRestOperations.cs | 2 +- .../RestOperations/SnapshotsRestOperations.cs | 2 +- .../SshPublicKeysRestOperations.cs | 2 +- .../RestOperations/UsageRestOperations.cs | 2 +- ...ualMachineExtensionImagesRestOperations.cs | 2 +- .../VirtualMachineExtensionsRestOperations.cs | 2 +- ...tualMachineImagesEdgeZoneRestOperations.cs | 2 +- .../VirtualMachineImagesRestOperations.cs | 2 +- ...VirtualMachineRunCommandsRestOperations.cs | 2 +- ...MachineScaleSetExtensionsRestOperations.cs | 2 +- ...neScaleSetRollingUpgradesRestOperations.cs | 2 +- ...chineScaleSetVMExtensionsRestOperations.cs | 2 +- ...hineScaleSetVMRunCommandsRestOperations.cs | 2 +- ...VirtualMachineScaleSetVMsRestOperations.cs | 2 +- .../VirtualMachineScaleSetsRestOperations.cs | 2 +- .../VirtualMachineSizesRestOperations.cs | 2 +- .../VirtualMachinesRestOperations.cs | 6 +- .../src/Generated/SharedGalleryImageData.cs | 10 +- .../src/Generated/SnapshotData.cs | 6 +- .../src/Generated/VirtualMachineData.cs | 4 +- .../Generated/VirtualMachineExtensionData.cs | 35 +--- .../src/Generated/VirtualMachineResource.cs | 4 +- .../Generated/VirtualMachineScaleSetData.cs | 10 +- .../VirtualMachineScaleSetExtensionData.cs | 36 +--- .../VirtualMachineScaleSetVmExtensionData.cs | 35 +--- .../src/autorest.md | 2 +- 160 files changed, 1962 insertions(+), 407 deletions(-) create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskControllerType.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolationCategory.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.cs diff --git a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs index 0c927fddfa7d6..d3a616a81cd24 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs @@ -66,6 +66,7 @@ public partial class CapacityReservationData : Azure.ResourceManager.Models.Trac { public CapacityReservationData(Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.Models.ComputeSku sku) : base (default(Azure.Core.AzureLocation)) { } public Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView InstanceView { get { throw null; } } + public int? PlatformFaultDomainCount { get { throw null; } } public System.DateTimeOffset? ProvisioningOn { get { throw null; } } public string ProvisioningState { get { throw null; } } public string ReservationId { get { throw null; } } @@ -994,6 +995,7 @@ protected GalleryApplicationCollection() { } public partial class GalleryApplicationData : Azure.ResourceManager.Models.TrackedResourceData { public GalleryApplicationData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.Collections.Generic.IList CustomActions { get { throw null; } } public string Description { get { throw null; } set { } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } set { } } public string Eula { get { throw null; } set { } } @@ -1042,6 +1044,7 @@ protected GalleryApplicationVersionCollection() { } public partial class GalleryApplicationVersionData : Azure.ResourceManager.Models.TrackedResourceData { public GalleryApplicationVersionData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public bool? AllowDeletionOfReplicatedLocations { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } @@ -1169,6 +1172,7 @@ public GalleryImageVersionData(Azure.Core.AzureLocation location) : base (defaul public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } } public partial class GalleryImageVersionResource : Azure.ResourceManager.ArmResource @@ -1238,6 +1242,7 @@ public partial class ManagedDiskData : Azure.ResourceManager.Models.TrackedResou { public ManagedDiskData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public bool? BurstingEnabled { get { throw null; } set { } } + public System.DateTimeOffset? BurstingEnabledOn { get { throw null; } } public float? CompletionPercent { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.DiskCreationData CreationData { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.DataAccessAuthMode? DataAccessAuthMode { get { throw null; } set { } } @@ -1257,6 +1262,7 @@ public ManagedDiskData(Azure.Core.AzureLocation location) : base (default(Azure. public System.Collections.Generic.IReadOnlyList ManagedByExtended { get { throw null; } } public int? MaxShares { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? NetworkAccessPolicy { get { throw null; } set { } } + public bool? OptimizedForFrequentAttach { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? OSType { get { throw null; } set { } } public string PropertyUpdatesInProgressTargetTier { get { throw null; } } public string ProvisioningState { get { throw null; } } @@ -1463,12 +1469,14 @@ internal SharedGalleryImageData() { } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } } public System.Collections.Generic.IList DisallowedDiskTypes { get { throw null; } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } } + public string Eula { get { throw null; } } public System.Collections.Generic.IReadOnlyList Features { get { throw null; } } public Azure.ResourceManager.Compute.Models.HyperVGeneration? HyperVGeneration { get { throw null; } } public Azure.Core.ResourceIdentifier Id { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageIdentifier Identifier { get { throw null; } } public Azure.ResourceManager.Compute.Models.OperatingSystemStateType? OSState { get { throw null; } } public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? OSType { get { throw null; } } + public System.Uri PrivacyStatementUri { get { throw null; } } public Azure.ResourceManager.Compute.Models.ImagePurchasePlan PurchasePlan { get { throw null; } } public Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration Recommended { get { throw null; } } } @@ -1561,6 +1569,7 @@ public SnapshotData(Azure.Core.AzureLocation location) : base (default(Azure.Cor public Azure.ResourceManager.Resources.Models.ExtendedLocation ExtendedLocation { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.HyperVGeneration? HyperVGeneration { get { throw null; } set { } } public bool? Incremental { get { throw null; } set { } } + public string IncrementalSnapshotFamilyId { get { throw null; } } public string ManagedBy { get { throw null; } } public Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? NetworkAccessPolicy { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? OSType { get { throw null; } set { } } @@ -1714,7 +1723,7 @@ public VirtualMachineExtensionData(Azure.Core.AzureLocation location) : base (de public string ForceUpdateTag { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineExtensionInstanceView InstanceView { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public string Publisher { get { throw null; } set { } } public System.BinaryData Settings { get { throw null; } set { } } @@ -1933,6 +1942,7 @@ public VirtualMachineScaleSetData(Azure.Core.AzureLocation location) : base (def public bool? Overprovision { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ComputePlan Plan { get { throw null; } set { } } public int? PlatformFaultDomainCount { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.PriorityMixPolicy PriorityMixPolicy { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public Azure.Core.ResourceIdentifier ProximityPlacementGroupId { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ScaleInPolicy ScaleInPolicy { get { throw null; } set { } } @@ -1970,7 +1980,7 @@ public VirtualMachineScaleSetExtensionData(string name) { } public string ExtensionType { get { throw null; } set { } } public string ForceUpdateTag { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public System.Collections.Generic.IList ProvisionAfterExtensions { get { throw null; } } public string ProvisioningState { get { throw null; } } public string Publisher { get { throw null; } set { } } @@ -2159,7 +2169,7 @@ public VirtualMachineScaleSetVmExtensionData() { } public string ForceUpdateTag { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineExtensionInstanceView InstanceView { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public string Publisher { get { throw null; } set { } } public System.BinaryData Settings { get { throw null; } set { } } @@ -2446,7 +2456,7 @@ public partial class CapacityReservationInstanceView { internal CapacityReservationInstanceView() { } public System.Collections.Generic.IReadOnlyList Statuses { get { throw null; } } - public System.Collections.Generic.IReadOnlyList UtilizationInfoVirtualMachinesAllocated { get { throw null; } } + public Azure.ResourceManager.Compute.Models.CapacityReservationUtilization UtilizationInfo { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CapacityReservationInstanceViewType : System.IEquatable @@ -2474,6 +2484,7 @@ public partial class CapacityReservationPatch : Azure.ResourceManager.Compute.Mo { public CapacityReservationPatch() { } public Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView InstanceView { get { throw null; } } + public int? PlatformFaultDomainCount { get { throw null; } } public System.DateTimeOffset? ProvisioningOn { get { throw null; } } public string ProvisioningState { get { throw null; } } public string ReservationId { get { throw null; } } @@ -2481,6 +2492,12 @@ public CapacityReservationPatch() { } public System.DateTimeOffset? TimeCreated { get { throw null; } } public System.Collections.Generic.IReadOnlyList VirtualMachinesAssociated { get { throw null; } } } + public partial class CapacityReservationUtilization + { + internal CapacityReservationUtilization() { } + public int? CurrentCapacity { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VirtualMachinesAllocated { get { throw null; } } + } public partial class CloudServiceExtension { public CloudServiceExtension() { } @@ -3091,6 +3108,24 @@ public DiskAccessPatch() { } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DiskControllerType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DiskControllerType(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.DiskControllerType NVMe { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.DiskControllerType Scsi { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.DiskControllerType 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.Compute.Models.DiskControllerType left, Azure.ResourceManager.Compute.Models.DiskControllerType right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.DiskControllerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.DiskControllerType left, Azure.ResourceManager.Compute.Models.DiskControllerType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct DiskCreateOption : System.IEquatable { private readonly object _dummy; @@ -3142,6 +3177,7 @@ public DiskCreationData(Azure.ResourceManager.Compute.Models.DiskCreateOption cr public Azure.ResourceManager.Compute.Models.ImageDiskReference GalleryImageReference { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageDiskReference ImageReference { get { throw null; } set { } } public int? LogicalSectorSize { get { throw null; } set { } } + public bool? PerformancePlus { get { throw null; } set { } } public System.Uri SecurityDataUri { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } set { } } public string SourceUniqueId { get { throw null; } } @@ -3405,9 +3441,33 @@ public EncryptionSettingsGroup(bool enabled) { } public static bool operator !=(Azure.ResourceManager.Compute.Models.ExecutionState left, Azure.ResourceManager.Compute.Models.ExecutionState right) { throw null; } public override string ToString() { throw null; } } + public partial class GalleryApplicationCustomAction + { + public GalleryApplicationCustomAction(string name, string script) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Parameters { get { throw null; } } + public string Script { get { throw null; } set { } } + } + public partial class GalleryApplicationCustomActionParameter + { + public GalleryApplicationCustomActionParameter(string name) { } + public string DefaultValue { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryApplicationCustomActionParameterType? ParameterType { get { throw null; } set { } } + public bool? Required { get { throw null; } set { } } + } + public enum GalleryApplicationCustomActionParameterType + { + String = 0, + ConfigurationDataBlob = 1, + LogOutputBlob = 2, + } public partial class GalleryApplicationPatch : Azure.ResourceManager.Models.ResourceData { public GalleryApplicationPatch() { } + public System.Collections.Generic.IList CustomActions { get { throw null; } } public string Description { get { throw null; } set { } } public System.DateTimeOffset? EndOfLifeOn { get { throw null; } set { } } public string Eula { get { throw null; } set { } } @@ -3419,6 +3479,7 @@ public GalleryApplicationPatch() { } public partial class GalleryApplicationVersionPatch : Azure.ResourceManager.Models.ResourceData { public GalleryApplicationVersionPatch() { } + public bool? AllowDeletionOfReplicatedLocations { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryApplicationVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } @@ -3428,6 +3489,7 @@ public partial class GalleryApplicationVersionPublishingProfile : Azure.Resource { public GalleryApplicationVersionPublishingProfile(Azure.ResourceManager.Compute.Models.UserArtifactSource source) { } public System.Collections.Generic.IDictionary AdvancedSettings { get { throw null; } } + public System.Collections.Generic.IList CustomActions { get { throw null; } } public bool? EnableHealthCheck { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.UserArtifactManagement ManageActions { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.UserArtifactSettings Settings { get { throw null; } set { } } @@ -3445,11 +3507,20 @@ public GalleryArtifactPublishingProfileBase() { } public System.Collections.Generic.IList TargetExtendedLocations { get { throw null; } } public System.Collections.Generic.IList TargetRegions { get { throw null; } } } + public partial class GalleryArtifactSafetyProfileBase + { + public GalleryArtifactSafetyProfileBase() { } + public bool? AllowDeletionOfReplicatedLocations { get { throw null; } set { } } + } + public partial class GalleryArtifactVersionFullSource : Azure.ResourceManager.Compute.Models.GalleryArtifactVersionSource + { + public GalleryArtifactVersionFullSource() { } + public string CommunityGalleryImageId { get { throw null; } set { } } + } public partial class GalleryArtifactVersionSource { public GalleryArtifactVersionSource() { } public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } } public partial class GalleryDataDiskImage : Azure.ResourceManager.Compute.Models.GalleryDiskImage { @@ -3461,7 +3532,13 @@ public partial class GalleryDiskImage public GalleryDiskImage() { } public Azure.ResourceManager.Compute.Models.HostCaching? HostCaching { get { throw null; } set { } } public int? SizeInGB { get { throw null; } } - public Azure.ResourceManager.Compute.Models.GalleryArtifactVersionSource Source { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryDiskImageSource Source { get { throw null; } set { } } + } + public partial class GalleryDiskImageSource : Azure.ResourceManager.Compute.Models.GalleryArtifactVersionSource + { + public GalleryDiskImageSource() { } + public string StorageAccountId { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GalleryExpand : System.IEquatable @@ -3543,6 +3620,7 @@ public GalleryImageVersionPatch() { } public Azure.ResourceManager.Compute.Models.GalleryProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionPublishingProfile PublishingProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ReplicationStatus ReplicationStatus { get { throw null; } } + public Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile SafetyProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.GalleryImageVersionStorageProfile StorageProfile { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } @@ -3550,12 +3628,18 @@ public partial class GalleryImageVersionPublishingProfile : Azure.ResourceManage { public GalleryImageVersionPublishingProfile() { } } + public partial class GalleryImageVersionSafetyProfile : Azure.ResourceManager.Compute.Models.GalleryArtifactSafetyProfileBase + { + public GalleryImageVersionSafetyProfile() { } + public System.Collections.Generic.IReadOnlyList PolicyViolations { get { throw null; } } + public bool? ReportedForPolicyViolation { get { throw null; } } + } public partial class GalleryImageVersionStorageProfile { public GalleryImageVersionStorageProfile() { } public System.Collections.Generic.IList DataDiskImages { get { throw null; } } public Azure.ResourceManager.Compute.Models.GalleryOSDiskImage OSDiskImage { get { throw null; } set { } } - public Azure.ResourceManager.Compute.Models.GalleryArtifactVersionSource Source { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.GalleryArtifactVersionFullSource Source { get { throw null; } set { } } } public partial class GalleryOSDiskImage : Azure.ResourceManager.Compute.Models.GalleryDiskImage { @@ -3845,6 +3929,7 @@ public partial class LinuxConfiguration { public LinuxConfiguration() { } public bool? DisablePasswordAuthentication { get { throw null; } set { } } + public bool? EnableVmAgentPlatformUpdates { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.LinuxPatchSettings PatchSettings { get { throw null; } set { } } public bool? ProvisionVmAgent { get { throw null; } set { } } public System.Collections.Generic.IList SshPublicKeys { get { throw null; } } @@ -3978,6 +4063,7 @@ public ManagedDiskPatch() { } public Azure.ResourceManager.Compute.Models.EncryptionSettingsGroup EncryptionSettingsGroup { get { throw null; } set { } } public int? MaxShares { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.NetworkAccessPolicy? NetworkAccessPolicy { get { throw null; } set { } } + public bool? OptimizedForFrequentAttach { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? OSType { get { throw null; } set { } } public string PropertyUpdatesInProgressTargetTier { get { throw null; } } public Azure.ResourceManager.Compute.Models.DiskPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } @@ -4142,6 +4228,12 @@ public OSDiskImageSecurityProfile() { } public Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType? ConfidentialVmEncryptionType { get { throw null; } set { } } public string SecureVmDiskEncryptionSetId { get { throw null; } set { } } } + public partial class OSProfileProvisioningData + { + public OSProfileProvisioningData() { } + public string AdminPassword { get { throw null; } set { } } + public string CustomData { get { throw null; } set { } } + } public partial class OSVersionPropertiesBase { internal OSVersionPropertiesBase() { } @@ -4265,6 +4357,38 @@ public partial class PirSharedGalleryResourceData : Azure.ResourceManager.Comput internal PirSharedGalleryResourceData() { } public string UniqueId { get { throw null; } } } + public partial class PolicyViolation + { + internal PolicyViolation() { } + public Azure.ResourceManager.Compute.Models.PolicyViolationCategory? Category { get { throw null; } } + public string Details { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PolicyViolationCategory : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PolicyViolationCategory(string value) { throw null; } + public static Azure.ResourceManager.Compute.Models.PolicyViolationCategory CopyrightValidation { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.PolicyViolationCategory ImageFlaggedUnsafe { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.PolicyViolationCategory IPTheft { get { throw null; } } + public static Azure.ResourceManager.Compute.Models.PolicyViolationCategory Other { get { throw null; } } + public bool Equals(Azure.ResourceManager.Compute.Models.PolicyViolationCategory 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.Compute.Models.PolicyViolationCategory left, Azure.ResourceManager.Compute.Models.PolicyViolationCategory right) { throw null; } + public static implicit operator Azure.ResourceManager.Compute.Models.PolicyViolationCategory (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Compute.Models.PolicyViolationCategory left, Azure.ResourceManager.Compute.Models.PolicyViolationCategory right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PriorityMixPolicy + { + public PriorityMixPolicy() { } + public int? BaseRegularPriorityCount { get { throw null; } set { } } + public int? RegularPriorityPercentageAboveBase { get { throw null; } set { } } + } public partial class ProximityPlacementGroupPatch : Azure.ResourceManager.Compute.Models.ComputeResourcePatch { public ProximityPlacementGroupPatch() { } @@ -4936,6 +5060,7 @@ public partial class SupportedCapabilities public SupportedCapabilities() { } public bool? AcceleratedNetwork { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ArchitectureType? Architecture { get { throw null; } set { } } + public string DiskControllerTypes { get { throw null; } set { } } } public enum SupportedOperatingSystemType { @@ -4946,6 +5071,7 @@ public partial class TargetRegion { public TargetRegion(string name) { } public Azure.ResourceManager.Compute.Models.EncryptionImages Encryption { get { throw null; } set { } } + public bool? ExcludeFromLatest { get { throw null; } set { } } public string Name { get { throw null; } set { } } public int? RegionalReplicaCount { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageStorageAccountType? StorageAccountType { get { throw null; } set { } } @@ -5158,7 +5284,7 @@ public VirtualMachineExtensionPatch() { } public string ExtensionType { get { throw null; } set { } } public string ForceUpdateTag { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public string Publisher { get { throw null; } set { } } public System.BinaryData Settings { get { throw null; } set { } } public bool? SuppressFailures { get { throw null; } set { } } @@ -5267,6 +5393,7 @@ public partial class VirtualMachineNetworkInterfaceConfiguration { public VirtualMachineNetworkInterfaceConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } + public bool? DisableTcpStateTracking { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public Azure.Core.ResourceIdentifier DscpConfigurationId { get { throw null; } set { } } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } @@ -5406,6 +5533,8 @@ public VirtualMachinePublicIPAddressConfiguration(string name) { } public partial class VirtualMachineReimageContent { public VirtualMachineReimageContent() { } + public string ExactVersion { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.OSProfileProvisioningData OSProfile { get { throw null; } set { } } public bool? TempDisk { get { throw null; } set { } } } public partial class VirtualMachineRunCommandInstanceView @@ -5474,7 +5603,7 @@ public VirtualMachineScaleSetExtensionPatch() { } public string ExtensionType { get { throw null; } set { } } public string ForceUpdateTag { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public System.Collections.Generic.IList ProvisionAfterExtensions { get { throw null; } } public string ProvisioningState { get { throw null; } } public string Publisher { get { throw null; } set { } } @@ -5543,6 +5672,7 @@ public partial class VirtualMachineScaleSetNetworkConfiguration : Azure.Resource { public VirtualMachineScaleSetNetworkConfiguration(string name) { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } + public bool? DisableTcpStateTracking { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } public bool? EnableFpga { get { throw null; } set { } } @@ -5662,6 +5792,7 @@ public partial class VirtualMachineScaleSetStorageProfile { public VirtualMachineScaleSetStorageProfile() { } public System.Collections.Generic.IList DataDisks { get { throw null; } } + public string DiskControllerType { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageReference ImageReference { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetOSDisk OSDisk { get { throw null; } set { } } } @@ -5682,6 +5813,7 @@ public partial class VirtualMachineScaleSetUpdateNetworkConfiguration : Azure.Re { public VirtualMachineScaleSetUpdateNetworkConfiguration() { } public Azure.ResourceManager.Compute.Models.ComputeDeleteOption? DeleteOption { get { throw null; } set { } } + public bool? DisableTcpStateTracking { get { throw null; } set { } } public System.Collections.Generic.IList DnsServers { get { throw null; } } public bool? EnableAcceleratedNetworking { get { throw null; } set { } } public bool? EnableFpga { get { throw null; } set { } } @@ -5730,6 +5862,7 @@ public partial class VirtualMachineScaleSetUpdateStorageProfile { public VirtualMachineScaleSetUpdateStorageProfile() { } public System.Collections.Generic.IList DataDisks { get { throw null; } } + public string DiskControllerType { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageReference ImageReference { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateOSDisk OSDisk { get { throw null; } set { } } } @@ -5739,6 +5872,7 @@ public VirtualMachineScaleSetUpdateVmProfile() { } public double? BillingMaxPrice { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.BootDiagnostics BootDiagnostics { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetExtensionProfile ExtensionProfile { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.VirtualMachineSizeProperties HardwareVmSizeProperties { get { throw null; } set { } } public string LicenseType { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateNetworkProfile NetworkProfile { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetUpdateOSProfile OSProfile { get { throw null; } set { } } @@ -5768,7 +5902,7 @@ public VirtualMachineScaleSetVmExtensionPatch() { } public string ExtensionType { get { throw null; } set { } } public string ForceUpdateTag { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } - public System.BinaryData ProtectedSettingsFromKeyVault { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.KeyVaultSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public string Publisher { get { throw null; } set { } } public System.BinaryData Settings { get { throw null; } set { } } public bool? SuppressFailures { get { throw null; } set { } } @@ -6057,6 +6191,7 @@ public partial class VirtualMachineStorageProfile { public VirtualMachineStorageProfile() { } public System.Collections.Generic.IList DataDisks { get { throw null; } } + public Azure.ResourceManager.Compute.Models.DiskControllerType? DiskControllerType { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.ImageReference ImageReference { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.VirtualMachineOSDisk OSDisk { get { throw null; } set { } } } @@ -6169,6 +6304,7 @@ public partial class WindowsConfiguration public WindowsConfiguration() { } public System.Collections.Generic.IList AdditionalUnattendContent { get { throw null; } } public bool? EnableAutomaticUpdates { get { throw null; } set { } } + public bool? EnableVmAgentPlatformUpdates { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.PatchSettings PatchSettings { get { throw null; } set { } } public bool? ProvisionVmAgent { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs index 473c835db874b..eda2a0a18e917 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs @@ -43,16 +43,18 @@ public CapacityReservationData(AzureLocation location, ComputeSku sku) : base(lo /// SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. /// Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone. /// A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. + /// Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.<br>NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.<br><br>Minimum api-version: 2022-08-01. /// A list of all virtual machine resource ids that are associated with the capacity reservation. /// The date time when the capacity reservation was last updated. /// The provisioning state, which only appears in the response. /// The Capacity reservation instance view. - /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2022-03-01. - internal CapacityReservationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputeSku sku, IList zones, string reservationId, IReadOnlyList virtualMachinesAssociated, DateTimeOffset? provisioningOn, string provisioningState, CapacityReservationInstanceView instanceView, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) + /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01. + internal CapacityReservationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputeSku sku, IList zones, string reservationId, int? platformFaultDomainCount, IReadOnlyList virtualMachinesAssociated, DateTimeOffset? provisioningOn, string provisioningState, CapacityReservationInstanceView instanceView, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; ReservationId = reservationId; + PlatformFaultDomainCount = platformFaultDomainCount; VirtualMachinesAssociated = virtualMachinesAssociated; ProvisioningOn = provisioningOn; ProvisioningState = provisioningState; @@ -66,6 +68,8 @@ internal CapacityReservationData(ResourceIdentifier id, string name, ResourceTyp public IList Zones { get; } /// A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. public string ReservationId { get; } + /// Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.<br>NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.<br><br>Minimum api-version: 2022-08-01. + public int? PlatformFaultDomainCount { get; } /// A list of all virtual machine resource ids that are associated with the capacity reservation. public IReadOnlyList VirtualMachinesAssociated { get; } /// The date time when the capacity reservation was last updated. @@ -74,7 +78,7 @@ internal CapacityReservationData(ResourceIdentifier id, string name, ResourceTyp public string ProvisioningState { get; } /// The Capacity reservation instance view. public CapacityReservationInstanceView InstanceView { get; } - /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs index 9a174f14629ee..a4d5926082ef2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs @@ -48,7 +48,7 @@ public DedicatedHostData(AzureLocation location, ComputeSku sku) : base(location /// The date when the host was first provisioned. /// The provisioning state, which only appears in the response. /// The dedicated host instance view. - /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01. internal DedicatedHostData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputeSku sku, int? platformFaultDomain, bool? autoReplaceOnFailure, string hostId, IReadOnlyList virtualMachines, DedicatedHostLicenseType? licenseType, DateTimeOffset? provisioningOn, string provisioningState, DedicatedHostInstanceView instanceView, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; @@ -81,7 +81,7 @@ internal DedicatedHostData(ResourceIdentifier id, string name, ResourceType reso public string ProvisioningState { get; } /// The dedicated host instance view. public DedicatedHostInstanceView InstanceView { get; } - /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs index 1e2cbf1d3e8a1..e4f8c2197cdaa 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationData.cs @@ -20,6 +20,7 @@ public partial class GalleryApplicationData : TrackedResourceData /// The location. public GalleryApplicationData(AzureLocation location) : base(location) { + CustomActions = new ChangeTrackingList(); } /// Initializes a new instance of GalleryApplicationData. @@ -35,7 +36,8 @@ public GalleryApplicationData(AzureLocation location) : base(location) /// The release note uri. /// The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. - internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, DateTimeOffset? endOfLifeOn, SupportedOperatingSystemType? supportedOSType) : base(id, name, resourceType, systemData, tags, location) + /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. + internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string description, string eula, Uri privacyStatementUri, Uri releaseNoteUri, DateTimeOffset? endOfLifeOn, SupportedOperatingSystemType? supportedOSType, IList customActions) : base(id, name, resourceType, systemData, tags, location) { Description = description; Eula = eula; @@ -43,6 +45,7 @@ internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType ReleaseNoteUri = releaseNoteUri; EndOfLifeOn = endOfLifeOn; SupportedOSType = supportedOSType; + CustomActions = customActions; } /// The description of this gallery Application Definition resource. This property is updatable. @@ -57,5 +60,7 @@ internal GalleryApplicationData(ResourceIdentifier id, string name, ResourceType public DateTimeOffset? EndOfLifeOn { get; set; } /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. public SupportedOperatingSystemType? SupportedOSType { get; set; } + /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. + public IList CustomActions { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionData.cs index 9906245c31d45..87bb130719c2f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersionData.cs @@ -29,17 +29,33 @@ public GalleryApplicationVersionData(AzureLocation location) : base(location) /// The tags. /// The location. /// The publishing profile of a gallery image version. + /// The safety profile of the Gallery Application Version. /// The provisioning state, which only appears in the response. /// This is the replication status of the gallery image version. - internal GalleryApplicationVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryApplicationVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, ReplicationStatus replicationStatus) : base(id, name, resourceType, systemData, tags, location) + internal GalleryApplicationVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryApplicationVersionPublishingProfile publishingProfile, GalleryApplicationVersionSafetyProfile safetyProfile, GalleryProvisioningState? provisioningState, ReplicationStatus replicationStatus) : base(id, name, resourceType, systemData, tags, location) { PublishingProfile = publishingProfile; + SafetyProfile = safetyProfile; ProvisioningState = provisioningState; ReplicationStatus = replicationStatus; } /// The publishing profile of a gallery image version. public GalleryApplicationVersionPublishingProfile PublishingProfile { get; set; } + /// The safety profile of the Gallery Application Version. + internal GalleryApplicationVersionSafetyProfile SafetyProfile { get; set; } + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + public bool? AllowDeletionOfReplicatedLocations + { + get => SafetyProfile is null ? default : SafetyProfile.AllowDeletionOfReplicatedLocations; + set + { + if (SafetyProfile is null) + SafetyProfile = new GalleryApplicationVersionSafetyProfile(); + SafetyProfile.AllowDeletionOfReplicatedLocations = value; + } + } + /// The provisioning state, which only appears in the response. public GalleryProvisioningState? ProvisioningState { get; } /// This is the replication status of the gallery image version. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs index 1c06af7de32d8..cb771cd27c152 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersionData.cs @@ -31,12 +31,14 @@ public GalleryImageVersionData(AzureLocation location) : base(location) /// The publishing profile of a gallery image Version. /// The provisioning state, which only appears in the response. /// This is the storage profile of a Gallery Image Version. + /// This is the safety profile of the Gallery Image Version. /// This is the replication status of the gallery image version. - internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, ReplicationStatus replicationStatus) : base(id, name, resourceType, systemData, tags, location) + internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, GalleryImageVersionPublishingProfile publishingProfile, GalleryProvisioningState? provisioningState, GalleryImageVersionStorageProfile storageProfile, GalleryImageVersionSafetyProfile safetyProfile, ReplicationStatus replicationStatus) : base(id, name, resourceType, systemData, tags, location) { PublishingProfile = publishingProfile; ProvisioningState = provisioningState; StorageProfile = storageProfile; + SafetyProfile = safetyProfile; ReplicationStatus = replicationStatus; } @@ -46,6 +48,8 @@ internal GalleryImageVersionData(ResourceIdentifier id, string name, ResourceTyp public GalleryProvisioningState? ProvisioningState { get; } /// This is the storage profile of a Gallery Image Version. public GalleryImageVersionStorageProfile StorageProfile { get; set; } + /// This is the safety profile of the Gallery Image Version. + public GalleryImageVersionSafetyProfile SafetyProfile { get; set; } /// This is the replication status of the gallery image version. public ReplicationStatus ReplicationStatus { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs index 146ac9adef0e6..b2301932441d3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ManagedDiskData.cs @@ -59,6 +59,7 @@ public ManagedDiskData(AzureLocation location) : base(location) /// Details of the list of all VMs that have the disk attached. maxShares should be set to a value greater than one for disks to allow attaching them to multiple VMs. /// Policy for accessing the disk via network. /// ARM id of the DiskAccess resource for using private endpoints on disks. + /// Latest time when bursting was last enabled on a disk. /// Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. /// Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. /// Properties of the disk for which update is pending. @@ -67,7 +68,8 @@ public ManagedDiskData(AzureLocation location) : base(location) /// Percentage complete for the background copy when a resource is created via the CopyStart operation. /// Policy for controlling export on the disk. /// Additional authentication requirements when exporting or uploading to a disk or snapshot. - internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier managedBy, IReadOnlyList managedByExtended, DiskSku sku, IList zones, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, long? diskIopsReadWrite, long? diskMBpsReadWrite, long? diskIopsReadOnly, long? diskMBpsReadOnly, DiskState? diskState, DiskEncryption encryption, int? maxShares, IReadOnlyList shareInfo, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, string tier, bool? burstingEnabled, PropertyUpdatesInProgress propertyUpdatesInProgress, bool? supportsHibernation, DiskSecurityProfile securityProfile, float? completionPercent, DiskPublicNetworkAccess? publicNetworkAccess, DataAccessAuthMode? dataAccessAuthMode) : base(id, name, resourceType, systemData, tags, location) + /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. + internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ResourceIdentifier managedBy, IReadOnlyList managedByExtended, DiskSku sku, IList zones, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, long? diskIopsReadWrite, long? diskMBpsReadWrite, long? diskIopsReadOnly, long? diskMBpsReadOnly, DiskState? diskState, DiskEncryption encryption, int? maxShares, IReadOnlyList shareInfo, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, DateTimeOffset? burstingEnabledOn, string tier, bool? burstingEnabled, PropertyUpdatesInProgress propertyUpdatesInProgress, bool? supportsHibernation, DiskSecurityProfile securityProfile, float? completionPercent, DiskPublicNetworkAccess? publicNetworkAccess, DataAccessAuthMode? dataAccessAuthMode, bool? optimizedForFrequentAttach) : base(id, name, resourceType, systemData, tags, location) { ManagedBy = managedBy; ManagedByExtended = managedByExtended; @@ -95,6 +97,7 @@ internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resour ShareInfo = shareInfo; NetworkAccessPolicy = networkAccessPolicy; DiskAccessId = diskAccessId; + BurstingEnabledOn = burstingEnabledOn; Tier = tier; BurstingEnabled = burstingEnabled; PropertyUpdatesInProgress = propertyUpdatesInProgress; @@ -103,6 +106,7 @@ internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resour CompletionPercent = completionPercent; PublicNetworkAccess = publicNetworkAccess; DataAccessAuthMode = dataAccessAuthMode; + OptimizedForFrequentAttach = optimizedForFrequentAttach; } /// A relative URI containing the ID of the VM that has the disk attached. @@ -157,6 +161,8 @@ internal ManagedDiskData(ResourceIdentifier id, string name, ResourceType resour public NetworkAccessPolicy? NetworkAccessPolicy { get; set; } /// ARM id of the DiskAccess resource for using private endpoints on disks. public ResourceIdentifier DiskAccessId { get; set; } + /// Latest time when bursting was last enabled on a disk. + public DateTimeOffset? BurstingEnabledOn { get; } /// Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. public string Tier { get; set; } /// Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. @@ -179,5 +185,7 @@ public string PropertyUpdatesInProgressTargetTier public DiskPublicNetworkAccess? PublicNetworkAccess { get; set; } /// Additional authentication requirements when exporting or uploading to a disk or snapshot. public DataAccessAuthMode? DataAccessAuthMode { get; set; } + /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. + public bool? OptimizedForFrequentAttach { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationData.Serialization.cs index 5134679fe5a6f..d7bfba175b9d4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationData.Serialization.cs @@ -62,6 +62,7 @@ internal static CapacityReservationData DeserializeCapacityReservationData(JsonE ResourceType type = default; Optional systemData = default; Optional reservationId = default; + Optional platformFaultDomainCount = default; Optional> virtualMachinesAssociated = default; Optional provisioningTime = default; Optional provisioningState = default; @@ -148,6 +149,16 @@ internal static CapacityReservationData DeserializeCapacityReservationData(JsonE reservationId = property0.Value.GetString(); continue; } + if (property0.NameEquals("platformFaultDomainCount")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + platformFaultDomainCount = property0.Value.GetInt32(); + continue; + } if (property0.NameEquals("virtualMachinesAssociated")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -202,7 +213,7 @@ internal static CapacityReservationData DeserializeCapacityReservationData(JsonE continue; } } - return new CapacityReservationData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), reservationId.Value, Optional.ToList(virtualMachinesAssociated), Optional.ToNullable(provisioningTime), provisioningState.Value, instanceView.Value, Optional.ToNullable(timeCreated)); + return new CapacityReservationData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), reservationId.Value, Optional.ToNullable(platformFaultDomainCount), Optional.ToList(virtualMachinesAssociated), Optional.ToNullable(provisioningTime), provisioningState.Value, instanceView.Value, Optional.ToNullable(timeCreated)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs index ba821ba6c918e..384898d80b996 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationInstanceView.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models { @@ -30,13 +29,7 @@ internal CapacityReservationInstanceView(CapacityReservationUtilization utilizat } /// Unutilized capacity of the capacity reservation. - internal CapacityReservationUtilization UtilizationInfo { get; } - /// A list of all virtual machines resource ids allocated against the capacity reservation. - public IReadOnlyList UtilizationInfoVirtualMachinesAllocated - { - get => UtilizationInfo?.VirtualMachinesAllocated; - } - + public CapacityReservationUtilization UtilizationInfo { get; } /// The resource status information. public IReadOnlyList Statuses { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs index 7d849a0afeb3e..7ef3278290c85 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationPatch.cs @@ -25,6 +25,8 @@ public CapacityReservationPatch() public ComputeSku Sku { get; set; } /// A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. public string ReservationId { get; } + /// Specifies the value of fault domain count that Capacity Reservation supports for requested VM size.<br>NOTE: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation.<br><br>Minimum api-version: 2022-08-01. + public int? PlatformFaultDomainCount { get; } /// A list of all virtual machine resource ids that are associated with the capacity reservation. public IReadOnlyList VirtualMachinesAssociated { get; } /// The date time when the capacity reservation was last updated. @@ -33,7 +35,7 @@ public CapacityReservationPatch() public string ProvisioningState { get; } /// The Capacity reservation instance view. public CapacityReservationInstanceView InstanceView { get; } - /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Capacity Reservation resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.Serialization.cs index 448f793cb23ff..b0bbf0fef73b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.Serialization.cs @@ -12,13 +12,24 @@ namespace Azure.ResourceManager.Compute.Models { - internal partial class CapacityReservationUtilization + public partial class CapacityReservationUtilization { internal static CapacityReservationUtilization DeserializeCapacityReservationUtilization(JsonElement element) { + Optional currentCapacity = default; Optional> virtualMachinesAllocated = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("currentCapacity")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + currentCapacity = property.Value.GetInt32(); + continue; + } if (property.NameEquals("virtualMachinesAllocated")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -35,7 +46,7 @@ internal static CapacityReservationUtilization DeserializeCapacityReservationUti continue; } } - return new CapacityReservationUtilization(Optional.ToList(virtualMachinesAllocated)); + return new CapacityReservationUtilization(Optional.ToNullable(currentCapacity), Optional.ToList(virtualMachinesAllocated)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs index 9ffbf64054f5a..01135f26ac1f5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CapacityReservationUtilization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Compute.Models { /// Represents the capacity reservation utilization in terms of resources allocated. - internal partial class CapacityReservationUtilization + public partial class CapacityReservationUtilization { /// Initializes a new instance of CapacityReservationUtilization. internal CapacityReservationUtilization() @@ -21,12 +21,16 @@ internal CapacityReservationUtilization() } /// Initializes a new instance of CapacityReservationUtilization. + /// The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed.<br><br>Minimum api-version: 2022-08-01. /// A list of all virtual machines resource ids allocated against the capacity reservation. - internal CapacityReservationUtilization(IReadOnlyList virtualMachinesAllocated) + internal CapacityReservationUtilization(int? currentCapacity, IReadOnlyList virtualMachinesAllocated) { + CurrentCapacity = currentCapacity; VirtualMachinesAllocated = virtualMachinesAllocated; } + /// The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed.<br><br>Minimum api-version: 2022-08-01. + public int? CurrentCapacity { get; } /// A list of all virtual machines resource ids allocated against the capacity reservation. public IReadOnlyList VirtualMachinesAllocated { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs index cc60b98124c7e..845a45b2c4e70 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DedicatedHostPatch.cs @@ -37,7 +37,7 @@ public DedicatedHostPatch() public string ProvisioningState { get; } /// The dedicated host instance view. public DedicatedHostInstanceView InstanceView { get; } - /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Dedicated Host resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskControllerType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskControllerType.cs new file mode 100644 index 0000000000000..540ebf0555468 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskControllerType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported for virtual machines whose operating system disk and VM sku supports Generation 2 (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability returned as part of VM sku capabilities in the response of Microsoft.Compute SKUs api for the region contains V2 (https://docs.microsoft.com/rest/api/compute/resourceskus/list) . <br> For more information about Disk Controller Types supported please refer to https://aka.ms/azure-diskcontrollertypes. + public readonly partial struct DiskControllerType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DiskControllerType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ScsiValue = "SCSI"; + private const string NVMeValue = "NVMe"; + + /// SCSI. + public static DiskControllerType Scsi { get; } = new DiskControllerType(ScsiValue); + /// NVMe. + public static DiskControllerType NVMe { get; } = new DiskControllerType(NVMeValue); + /// Determines if two values are the same. + public static bool operator ==(DiskControllerType left, DiskControllerType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DiskControllerType left, DiskControllerType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DiskControllerType(string value) => new DiskControllerType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DiskControllerType other && Equals(other); + /// + public bool Equals(DiskControllerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs index ddd5b68f17ee2..8ebad9871e2b2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.Serialization.cs @@ -58,6 +58,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("securityDataUri"); writer.WriteStringValue(SecurityDataUri.AbsoluteUri); } + if (Optional.IsDefined(PerformancePlus)) + { + writer.WritePropertyName("performancePlus"); + writer.WriteBooleanValue(PerformancePlus.Value); + } writer.WriteEndObject(); } @@ -73,6 +78,7 @@ internal static DiskCreationData DeserializeDiskCreationData(JsonElement element Optional uploadSizeBytes = default; Optional logicalSectorSize = default; Optional securityDataUri = default; + Optional performancePlus = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("createOption")) @@ -165,8 +171,18 @@ internal static DiskCreationData DeserializeDiskCreationData(JsonElement element securityDataUri = new Uri(property.Value.GetString()); continue; } + if (property.NameEquals("performancePlus")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + performancePlus = property.Value.GetBoolean(); + continue; + } } - return new DiskCreationData(createOption, storageAccountId.Value, imageReference.Value, galleryImageReference.Value, sourceUri.Value, sourceResourceId.Value, sourceUniqueId.Value, Optional.ToNullable(uploadSizeBytes), Optional.ToNullable(logicalSectorSize), securityDataUri.Value); + return new DiskCreationData(createOption, storageAccountId.Value, imageReference.Value, galleryImageReference.Value, sourceUri.Value, sourceResourceId.Value, sourceUniqueId.Value, Optional.ToNullable(uploadSizeBytes), Optional.ToNullable(logicalSectorSize), securityDataUri.Value, Optional.ToNullable(performancePlus)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs index 1ff5a076d5a2a..b0cf0b74d7ab2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskCreationData.cs @@ -31,7 +31,8 @@ public DiskCreationData(DiskCreateOption createOption) /// If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer). /// Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. /// If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. - internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier storageAccountId, ImageDiskReference imageReference, ImageDiskReference galleryImageReference, Uri sourceUri, ResourceIdentifier sourceResourceId, string sourceUniqueId, long? uploadSizeBytes, int? logicalSectorSize, Uri securityDataUri) + /// Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. + internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier storageAccountId, ImageDiskReference imageReference, ImageDiskReference galleryImageReference, Uri sourceUri, ResourceIdentifier sourceResourceId, string sourceUniqueId, long? uploadSizeBytes, int? logicalSectorSize, Uri securityDataUri, bool? performancePlus) { CreateOption = createOption; StorageAccountId = storageAccountId; @@ -43,6 +44,7 @@ internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier stor UploadSizeBytes = uploadSizeBytes; LogicalSectorSize = logicalSectorSize; SecurityDataUri = securityDataUri; + PerformancePlus = performancePlus; } /// This enumerates the possible sources of a disk's creation. @@ -65,5 +67,7 @@ internal DiskCreationData(DiskCreateOption createOption, ResourceIdentifier stor public int? LogicalSectorSize { get; set; } /// If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. public Uri SecurityDataUri { get; set; } + /// Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. + public bool? PerformancePlus { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.Serialization.cs new file mode 100644 index 0000000000000..4beacb3091d66 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.Serialization.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryApplicationCustomAction : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + writer.WritePropertyName("script"); + writer.WriteStringValue(Script); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Parameters)) + { + writer.WritePropertyName("parameters"); + writer.WriteStartArray(); + foreach (var item in Parameters) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static GalleryApplicationCustomAction DeserializeGalleryApplicationCustomAction(JsonElement element) + { + string name = default; + string script = default; + Optional description = default; + Optional> parameters = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("script")) + { + script = property.Value.GetString(); + continue; + } + if (property.NameEquals("description")) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("parameters")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GalleryApplicationCustomActionParameter.DeserializeGalleryApplicationCustomActionParameter(item)); + } + parameters = array; + continue; + } + } + return new GalleryApplicationCustomAction(name, script, description.Value, Optional.ToList(parameters)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs new file mode 100644 index 0000000000000..373963b6de863 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// A custom action that can be performed with a Gallery Application Version. + public partial class GalleryApplicationCustomAction + { + /// Initializes a new instance of GalleryApplicationCustomAction. + /// The name of the custom action. Must be unique within the Gallery Application Version. + /// The script to run when executing this custom action. + /// or is null. + public GalleryApplicationCustomAction(string name, string script) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (script == null) + { + throw new ArgumentNullException(nameof(script)); + } + + Name = name; + Script = script; + Parameters = new ChangeTrackingList(); + } + + /// Initializes a new instance of GalleryApplicationCustomAction. + /// The name of the custom action. Must be unique within the Gallery Application Version. + /// The script to run when executing this custom action. + /// Description to help the users understand what this custom action does. + /// The parameters that this custom action uses. + internal GalleryApplicationCustomAction(string name, string script, string description, IList parameters) + { + Name = name; + Script = script; + Description = description; + Parameters = parameters; + } + + /// The name of the custom action. Must be unique within the Gallery Application Version. + public string Name { get; set; } + /// The script to run when executing this custom action. + public string Script { get; set; } + /// Description to help the users understand what this custom action does. + public string Description { get; set; } + /// The parameters that this custom action uses. + public IList Parameters { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.Serialization.cs new file mode 100644 index 0000000000000..13bdecf2911cf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.Serialization.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryApplicationCustomActionParameter : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + if (Optional.IsDefined(Required)) + { + writer.WritePropertyName("required"); + writer.WriteBooleanValue(Required.Value); + } + if (Optional.IsDefined(ParameterType)) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(ParameterType.Value.ToSerialString()); + } + if (Optional.IsDefined(DefaultValue)) + { + writer.WritePropertyName("defaultValue"); + writer.WriteStringValue(DefaultValue); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + internal static GalleryApplicationCustomActionParameter DeserializeGalleryApplicationCustomActionParameter(JsonElement element) + { + string name = default; + Optional required = default; + Optional type = default; + Optional defaultValue = default; + Optional description = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("required")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + required = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + type = property.Value.GetString().ToGalleryApplicationCustomActionParameterType(); + continue; + } + if (property.NameEquals("defaultValue")) + { + defaultValue = property.Value.GetString(); + continue; + } + if (property.NameEquals("description")) + { + description = property.Value.GetString(); + continue; + } + } + return new GalleryApplicationCustomActionParameter(name, Optional.ToNullable(required), Optional.ToNullable(type), defaultValue.Value, description.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.cs new file mode 100644 index 0000000000000..5bb72edc637c6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The definition of a parameter that can be passed to a custom action of a Gallery Application Version. + public partial class GalleryApplicationCustomActionParameter + { + /// Initializes a new instance of GalleryApplicationCustomActionParameter. + /// The name of the custom action. Must be unique within the Gallery Application Version. + /// is null. + public GalleryApplicationCustomActionParameter(string name) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + Name = name; + } + + /// Initializes a new instance of GalleryApplicationCustomActionParameter. + /// The name of the custom action. Must be unique within the Gallery Application Version. + /// Indicates whether this parameter must be passed when running the custom action. + /// Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob. + /// The default value of the parameter. Only applies to string types. + /// A description to help users understand what this parameter means. + internal GalleryApplicationCustomActionParameter(string name, bool? required, GalleryApplicationCustomActionParameterType? parameterType, string defaultValue, string description) + { + Name = name; + Required = required; + ParameterType = parameterType; + DefaultValue = defaultValue; + Description = description; + } + + /// The name of the custom action. Must be unique within the Gallery Application Version. + public string Name { get; set; } + /// Indicates whether this parameter must be passed when running the custom action. + public bool? Required { get; set; } + /// Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob. + public GalleryApplicationCustomActionParameterType? ParameterType { get; set; } + /// The default value of the parameter. Only applies to string types. + public string DefaultValue { get; set; } + /// A description to help users understand what this parameter means. + public string Description { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs new file mode 100644 index 0000000000000..4c9e56ac998fd --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Compute.Models +{ + internal static partial class GalleryApplicationCustomActionParameterTypeExtensions + { + public static string ToSerialString(this GalleryApplicationCustomActionParameterType value) => value switch + { + GalleryApplicationCustomActionParameterType.String => "String", + GalleryApplicationCustomActionParameterType.ConfigurationDataBlob => "ConfigurationDataBlob", + GalleryApplicationCustomActionParameterType.LogOutputBlob => "LogOutputBlob", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GalleryApplicationCustomActionParameterType value.") + }; + + public static GalleryApplicationCustomActionParameterType ToGalleryApplicationCustomActionParameterType(this string value) + { + if (string.Equals(value, "String", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.String; + if (string.Equals(value, "ConfigurationDataBlob", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.ConfigurationDataBlob; + if (string.Equals(value, "LogOutputBlob", StringComparison.InvariantCultureIgnoreCase)) return GalleryApplicationCustomActionParameterType.LogOutputBlob; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown GalleryApplicationCustomActionParameterType value."); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.cs new file mode 100644 index 0000000000000..2693fbe5debe9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameterType.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob. + public enum GalleryApplicationCustomActionParameterType + { + /// String. + String, + /// ConfigurationDataBlob. + ConfigurationDataBlob, + /// LogOutputBlob. + LogOutputBlob + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationData.Serialization.cs index 30dd06602c018..9f8cb2c28d452 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationData.Serialization.cs @@ -64,6 +64,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("supportedOSType"); writer.WriteStringValue(SupportedOSType.Value.ToSerialString()); } + if (Optional.IsCollectionDefined(CustomActions)) + { + writer.WritePropertyName("customActions"); + writer.WriteStartArray(); + foreach (var item in CustomActions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -82,6 +92,7 @@ internal static GalleryApplicationData DeserializeGalleryApplicationData(JsonEle Optional releaseNoteUri = default; Optional endOfLifeDate = default; Optional supportedOSType = default; + Optional> customActions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags")) @@ -188,11 +199,26 @@ internal static GalleryApplicationData DeserializeGalleryApplicationData(JsonEle supportedOSType = property0.Value.GetString().ToSupportedOperatingSystemType(); continue; } + if (property0.NameEquals("customActions")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(GalleryApplicationCustomAction.DeserializeGalleryApplicationCustomAction(item)); + } + customActions = array; + continue; + } } continue; } } - return new GalleryApplicationData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, description.Value, eula.Value, privacyStatementUri.Value, releaseNoteUri.Value, Optional.ToNullable(endOfLifeDate), Optional.ToNullable(supportedOSType)); + return new GalleryApplicationData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, description.Value, eula.Value, privacyStatementUri.Value, releaseNoteUri.Value, Optional.ToNullable(endOfLifeDate), Optional.ToNullable(supportedOSType), Optional.ToList(customActions)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.Serialization.cs index 13abfc0979670..338b09d4c5c65 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.Serialization.cs @@ -58,6 +58,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("supportedOSType"); writer.WriteStringValue(SupportedOSType.Value.ToSerialString()); } + if (Optional.IsCollectionDefined(CustomActions)) + { + writer.WritePropertyName("customActions"); + writer.WriteStartArray(); + foreach (var item in CustomActions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs index ba26851fbd04c..247a5fbae0519 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationPatch.cs @@ -18,6 +18,7 @@ public partial class GalleryApplicationPatch : ResourceData /// Initializes a new instance of GalleryApplicationPatch. public GalleryApplicationPatch() { + CustomActions = new ChangeTrackingList(); Tags = new ChangeTrackingDictionary(); } @@ -33,6 +34,8 @@ public GalleryApplicationPatch() public DateTimeOffset? EndOfLifeOn { get; set; } /// This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. public SupportedOperatingSystemType? SupportedOSType { get; set; } + /// A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. + public IList CustomActions { get; } /// Resource tags. public IDictionary Tags { get; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionData.Serialization.cs index 402ff503ce082..5880b5647ff69 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionData.Serialization.cs @@ -38,6 +38,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("publishingProfile"); writer.WriteObjectValue(PublishingProfile); } + if (Optional.IsDefined(SafetyProfile)) + { + writer.WritePropertyName("safetyProfile"); + writer.WriteObjectValue(SafetyProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -51,6 +56,7 @@ internal static GalleryApplicationVersionData DeserializeGalleryApplicationVersi ResourceType type = default; Optional systemData = default; Optional publishingProfile = default; + Optional safetyProfile = default; Optional provisioningState = default; Optional replicationStatus = default; foreach (var property in element.EnumerateObject()) @@ -119,6 +125,16 @@ internal static GalleryApplicationVersionData DeserializeGalleryApplicationVersi publishingProfile = GalleryApplicationVersionPublishingProfile.DeserializeGalleryApplicationVersionPublishingProfile(property0.Value); continue; } + if (property0.NameEquals("safetyProfile")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + safetyProfile = GalleryApplicationVersionSafetyProfile.DeserializeGalleryApplicationVersionSafetyProfile(property0.Value); + continue; + } if (property0.NameEquals("provisioningState")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -143,7 +159,7 @@ internal static GalleryApplicationVersionData DeserializeGalleryApplicationVersi continue; } } - return new GalleryApplicationVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, Optional.ToNullable(provisioningState), replicationStatus.Value); + return new GalleryApplicationVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, safetyProfile.Value, Optional.ToNullable(provisioningState), replicationStatus.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.Serialization.cs index 97de5354bedbb..38981942db7de 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.Serialization.cs @@ -33,6 +33,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("publishingProfile"); writer.WriteObjectValue(PublishingProfile); } + if (Optional.IsDefined(SafetyProfile)) + { + writer.WritePropertyName("safetyProfile"); + writer.WriteObjectValue(SafetyProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.cs index 14667c4fc628a..f9c4ed70e71e6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPatch.cs @@ -22,6 +22,20 @@ public GalleryApplicationVersionPatch() /// The publishing profile of a gallery image version. public GalleryApplicationVersionPublishingProfile PublishingProfile { get; set; } + /// The safety profile of the Gallery Application Version. + internal GalleryApplicationVersionSafetyProfile SafetyProfile { get; set; } + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + public bool? AllowDeletionOfReplicatedLocations + { + get => SafetyProfile is null ? default : SafetyProfile.AllowDeletionOfReplicatedLocations; + set + { + if (SafetyProfile is null) + SafetyProfile = new GalleryApplicationVersionSafetyProfile(); + SafetyProfile.AllowDeletionOfReplicatedLocations = value; + } + } + /// The provisioning state, which only appears in the response. public GalleryProvisioningState? ProvisioningState { get; } /// This is the replication status of the gallery image version. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.Serialization.cs index 1690e221cf61e..c213a91e877ae 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.Serialization.cs @@ -45,6 +45,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableHealthCheck"); writer.WriteBooleanValue(EnableHealthCheck.Value); } + if (Optional.IsCollectionDefined(CustomActions)) + { + writer.WritePropertyName("customActions"); + writer.WriteStartArray(); + foreach (var item in CustomActions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsCollectionDefined(TargetRegions)) { writer.WritePropertyName("targetRegions"); @@ -100,6 +110,7 @@ internal static GalleryApplicationVersionPublishingProfile DeserializeGalleryApp Optional settings = default; Optional> advancedSettings = default; Optional enableHealthCheck = default; + Optional> customActions = default; Optional> targetRegions = default; Optional replicaCount = default; Optional excludeFromLatest = default; @@ -160,6 +171,21 @@ internal static GalleryApplicationVersionPublishingProfile DeserializeGalleryApp enableHealthCheck = property.Value.GetBoolean(); continue; } + if (property.NameEquals("customActions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(GalleryApplicationCustomAction.DeserializeGalleryApplicationCustomAction(item)); + } + customActions = array; + continue; + } if (property.NameEquals("targetRegions")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -251,7 +277,7 @@ internal static GalleryApplicationVersionPublishingProfile DeserializeGalleryApp continue; } } - return new GalleryApplicationVersionPublishingProfile(Optional.ToList(targetRegions), Optional.ToNullable(replicaCount), Optional.ToNullable(excludeFromLatest), Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(storageAccountType), Optional.ToNullable(replicationMode), Optional.ToList(targetExtendedLocations), source, manageActions.Value, settings.Value, Optional.ToDictionary(advancedSettings), Optional.ToNullable(enableHealthCheck)); + return new GalleryApplicationVersionPublishingProfile(Optional.ToList(targetRegions), Optional.ToNullable(replicaCount), Optional.ToNullable(excludeFromLatest), Optional.ToNullable(publishedDate), Optional.ToNullable(endOfLifeDate), Optional.ToNullable(storageAccountType), Optional.ToNullable(replicationMode), Optional.ToList(targetExtendedLocations), source, manageActions.Value, settings.Value, Optional.ToDictionary(advancedSettings), Optional.ToNullable(enableHealthCheck), Optional.ToList(customActions)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs index bf6a096f6c326..e7395b9ffeaac 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs @@ -26,6 +26,7 @@ public GalleryApplicationVersionPublishingProfile(UserArtifactSource source) Source = source; AdvancedSettings = new ChangeTrackingDictionary(); + CustomActions = new ChangeTrackingList(); } /// Initializes a new instance of GalleryApplicationVersionPublishingProfile. @@ -42,13 +43,15 @@ public GalleryApplicationVersionPublishingProfile(UserArtifactSource source) /// Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set. /// Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only. /// Optional. Whether or not this application reports health. - internal GalleryApplicationVersionPublishingProfile(IList targetRegions, int? replicaCount, bool? excludeFromLatest, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, ImageStorageAccountType? storageAccountType, GalleryReplicationMode? replicationMode, IList targetExtendedLocations, UserArtifactSource source, UserArtifactManagement manageActions, UserArtifactSettings settings, IDictionary advancedSettings, bool? enableHealthCheck) : base(targetRegions, replicaCount, excludeFromLatest, publishedOn, endOfLifeOn, storageAccountType, replicationMode, targetExtendedLocations) + /// A list of custom actions that can be performed with this Gallery Application Version. + internal GalleryApplicationVersionPublishingProfile(IList targetRegions, int? replicaCount, bool? excludeFromLatest, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, ImageStorageAccountType? storageAccountType, GalleryReplicationMode? replicationMode, IList targetExtendedLocations, UserArtifactSource source, UserArtifactManagement manageActions, UserArtifactSettings settings, IDictionary advancedSettings, bool? enableHealthCheck, IList customActions) : base(targetRegions, replicaCount, excludeFromLatest, publishedOn, endOfLifeOn, storageAccountType, replicationMode, targetExtendedLocations) { Source = source; ManageActions = manageActions; Settings = settings; AdvancedSettings = advancedSettings; EnableHealthCheck = enableHealthCheck; + CustomActions = customActions; } /// The source image from which the Image Version is going to be created. @@ -61,5 +64,7 @@ internal GalleryApplicationVersionPublishingProfile(IList targetRe public IDictionary AdvancedSettings { get; } /// Optional. Whether or not this application reports health. public bool? EnableHealthCheck { get; set; } + /// A list of custom actions that can be performed with this Gallery Application Version. + public IList CustomActions { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.Serialization.cs new file mode 100644 index 0000000000000..ac1e0252bce1a --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + internal partial class GalleryApplicationVersionSafetyProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AllowDeletionOfReplicatedLocations)) + { + writer.WritePropertyName("allowDeletionOfReplicatedLocations"); + writer.WriteBooleanValue(AllowDeletionOfReplicatedLocations.Value); + } + writer.WriteEndObject(); + } + + internal static GalleryApplicationVersionSafetyProfile DeserializeGalleryApplicationVersionSafetyProfile(JsonElement element) + { + Optional allowDeletionOfReplicatedLocations = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("allowDeletionOfReplicatedLocations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + allowDeletionOfReplicatedLocations = property.Value.GetBoolean(); + continue; + } + } + return new GalleryApplicationVersionSafetyProfile(Optional.ToNullable(allowDeletionOfReplicatedLocations)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.cs new file mode 100644 index 0000000000000..bd37fd8294435 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionSafetyProfile.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// The safety profile of the Gallery Application Version. + internal partial class GalleryApplicationVersionSafetyProfile : GalleryArtifactSafetyProfileBase + { + /// Initializes a new instance of GalleryApplicationVersionSafetyProfile. + public GalleryApplicationVersionSafetyProfile() + { + } + + /// Initializes a new instance of GalleryApplicationVersionSafetyProfile. + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + internal GalleryApplicationVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations) : base(allowDeletionOfReplicatedLocations) + { + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.Serialization.cs new file mode 100644 index 0000000000000..c625c98af1caf --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryArtifactSafetyProfileBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AllowDeletionOfReplicatedLocations)) + { + writer.WritePropertyName("allowDeletionOfReplicatedLocations"); + writer.WriteBooleanValue(AllowDeletionOfReplicatedLocations.Value); + } + writer.WriteEndObject(); + } + + internal static GalleryArtifactSafetyProfileBase DeserializeGalleryArtifactSafetyProfileBase(JsonElement element) + { + Optional allowDeletionOfReplicatedLocations = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("allowDeletionOfReplicatedLocations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + allowDeletionOfReplicatedLocations = property.Value.GetBoolean(); + continue; + } + } + return new GalleryArtifactSafetyProfileBase(Optional.ToNullable(allowDeletionOfReplicatedLocations)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.cs new file mode 100644 index 0000000000000..1e30d22fd95b4 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactSafetyProfileBase.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the safety profile of the Gallery Artifact Version. + public partial class GalleryArtifactSafetyProfileBase + { + /// Initializes a new instance of GalleryArtifactSafetyProfileBase. + public GalleryArtifactSafetyProfileBase() + { + } + + /// Initializes a new instance of GalleryArtifactSafetyProfileBase. + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + internal GalleryArtifactSafetyProfileBase(bool? allowDeletionOfReplicatedLocations) + { + AllowDeletionOfReplicatedLocations = allowDeletionOfReplicatedLocations; + } + + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + public bool? AllowDeletionOfReplicatedLocations { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.Serialization.cs new file mode 100644 index 0000000000000..7323beed30dc6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryArtifactVersionFullSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(CommunityGalleryImageId)) + { + writer.WritePropertyName("communityGalleryImageId"); + writer.WriteStringValue(CommunityGalleryImageId); + } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + } + + internal static GalleryArtifactVersionFullSource DeserializeGalleryArtifactVersionFullSource(JsonElement element) + { + Optional communityGalleryImageId = default; + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("communityGalleryImageId")) + { + communityGalleryImageId = property.Value.GetString(); + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + } + return new GalleryArtifactVersionFullSource(id.Value, communityGalleryImageId.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.cs new file mode 100644 index 0000000000000..dd5cbf7c898c6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionFullSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The source of the gallery artifact version. + public partial class GalleryArtifactVersionFullSource : GalleryArtifactVersionSource + { + /// Initializes a new instance of GalleryArtifactVersionFullSource. + public GalleryArtifactVersionFullSource() + { + } + + /// Initializes a new instance of GalleryArtifactVersionFullSource. + /// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. + /// The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. + internal GalleryArtifactVersionFullSource(ResourceIdentifier id, string communityGalleryImageId) : base(id) + { + CommunityGalleryImageId = communityGalleryImageId; + } + + /// The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. + public string CommunityGalleryImageId { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.Serialization.cs index 40b90b30de942..3afa34e9e86f7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Text.Json; using Azure.Core; @@ -21,18 +20,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("id"); writer.WriteStringValue(Id); } - if (Optional.IsDefined(Uri)) - { - writer.WritePropertyName("uri"); - writer.WriteStringValue(Uri.AbsoluteUri); - } writer.WriteEndObject(); } internal static GalleryArtifactVersionSource DeserializeGalleryArtifactVersionSource(JsonElement element) { Optional id = default; - Optional uri = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -45,18 +38,8 @@ internal static GalleryArtifactVersionSource DeserializeGalleryArtifactVersionSo id = new ResourceIdentifier(property.Value.GetString()); continue; } - if (property.NameEquals("uri")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - uri = null; - continue; - } - uri = new Uri(property.Value.GetString()); - continue; - } } - return new GalleryArtifactVersionSource(id.Value, uri.Value); + return new GalleryArtifactVersionSource(id.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs index dc3cc4b705581..aff7e1d3e7a05 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using Azure.Core; namespace Azure.ResourceManager.Compute.Models @@ -20,16 +19,12 @@ public GalleryArtifactVersionSource() /// Initializes a new instance of GalleryArtifactVersionSource. /// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. - /// The uri of the gallery artifact version source. Currently used to specify vhd/blob source. - internal GalleryArtifactVersionSource(ResourceIdentifier id, Uri uri) + internal GalleryArtifactVersionSource(ResourceIdentifier id) { Id = id; - Uri = uri; } /// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. public ResourceIdentifier Id { get; set; } - /// The uri of the gallery artifact version source. Currently used to specify vhd/blob source. - public Uri Uri { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.Serialization.cs index 588c1e38e0182..1e280d5bd9b5e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.Serialization.cs @@ -35,7 +35,7 @@ internal static GalleryDataDiskImage DeserializeGalleryDataDiskImage(JsonElement int lun = default; Optional sizeInGB = default; Optional hostCaching = default; - Optional source = default; + Optional source = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("lun")) @@ -70,7 +70,7 @@ internal static GalleryDataDiskImage DeserializeGalleryDataDiskImage(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - source = GalleryArtifactVersionSource.DeserializeGalleryArtifactVersionSource(property.Value); + source = GalleryDiskImageSource.DeserializeGalleryDiskImageSource(property.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.cs index 066749e254f3d..b5b07004e898b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDataDiskImage.cs @@ -20,9 +20,9 @@ public GalleryDataDiskImage(int lun) /// Initializes a new instance of GalleryDataDiskImage. /// This property indicates the size of the VHD to be created. /// The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. - /// The gallery artifact version source. + /// The source for the disk image. /// This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. - internal GalleryDataDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryArtifactVersionSource source, int lun) : base(sizeInGB, hostCaching, source) + internal GalleryDataDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryDiskImageSource source, int lun) : base(sizeInGB, hostCaching, source) { Lun = lun; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.Serialization.cs index 7fc4dd21c5282..93603cd55caa9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.Serialization.cs @@ -32,7 +32,7 @@ internal static GalleryDiskImage DeserializeGalleryDiskImage(JsonElement element { Optional sizeInGB = default; Optional hostCaching = default; - Optional source = default; + Optional source = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sizeInGB")) @@ -62,7 +62,7 @@ internal static GalleryDiskImage DeserializeGalleryDiskImage(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - source = GalleryArtifactVersionSource.DeserializeGalleryArtifactVersionSource(property.Value); + source = GalleryDiskImageSource.DeserializeGalleryDiskImageSource(property.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.cs index e71333f3fb22a..474061d6fb051 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImage.cs @@ -18,8 +18,8 @@ public GalleryDiskImage() /// Initializes a new instance of GalleryDiskImage. /// This property indicates the size of the VHD to be created. /// The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. - /// The gallery artifact version source. - internal GalleryDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryArtifactVersionSource source) + /// The source for the disk image. + internal GalleryDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryDiskImageSource source) { SizeInGB = sizeInGB; HostCaching = hostCaching; @@ -30,7 +30,7 @@ internal GalleryDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryArtifa public int? SizeInGB { get; } /// The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. public HostCaching? HostCaching { get; set; } - /// The gallery artifact version source. - public GalleryArtifactVersionSource Source { get; set; } + /// The source for the disk image. + public GalleryDiskImageSource Source { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.Serialization.cs new file mode 100644 index 0000000000000..956cf1a83dff9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.Serialization.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryDiskImageSource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Uri)) + { + writer.WritePropertyName("uri"); + writer.WriteStringValue(Uri.AbsoluteUri); + } + if (Optional.IsDefined(StorageAccountId)) + { + writer.WritePropertyName("storageAccountId"); + writer.WriteStringValue(StorageAccountId); + } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + } + + internal static GalleryDiskImageSource DeserializeGalleryDiskImageSource(JsonElement element) + { + Optional uri = default; + Optional storageAccountId = default; + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + uri = null; + continue; + } + uri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("storageAccountId")) + { + storageAccountId = property.Value.GetString(); + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + } + return new GalleryDiskImageSource(id.Value, uri.Value, storageAccountId.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.cs new file mode 100644 index 0000000000000..4d0166399f45f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryDiskImageSource.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// The source for the disk image. + public partial class GalleryDiskImageSource : GalleryArtifactVersionSource + { + /// Initializes a new instance of GalleryDiskImageSource. + public GalleryDiskImageSource() + { + } + + /// Initializes a new instance of GalleryDiskImageSource. + /// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. + /// The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + /// The Storage Account Id that contains the vhd blob being used as a source for this artifact version. + internal GalleryDiskImageSource(ResourceIdentifier id, Uri uri, string storageAccountId) : base(id) + { + Uri = uri; + StorageAccountId = storageAccountId; + } + + /// The uri of the gallery artifact version source. Currently used to specify vhd/blob source. + public Uri Uri { get; set; } + /// The Storage Account Id that contains the vhd blob being used as a source for this artifact version. + public string StorageAccountId { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs index 098abaa5d3d95..b8e9ce0df0d6d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionData.Serialization.cs @@ -43,6 +43,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("storageProfile"); writer.WriteObjectValue(StorageProfile); } + if (Optional.IsDefined(SafetyProfile)) + { + writer.WritePropertyName("safetyProfile"); + writer.WriteObjectValue(SafetyProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -58,6 +63,7 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE Optional publishingProfile = default; Optional provisioningState = default; Optional storageProfile = default; + Optional safetyProfile = default; Optional replicationStatus = default; foreach (var property in element.EnumerateObject()) { @@ -145,6 +151,16 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE storageProfile = GalleryImageVersionStorageProfile.DeserializeGalleryImageVersionStorageProfile(property0.Value); continue; } + if (property0.NameEquals("safetyProfile")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + safetyProfile = GalleryImageVersionSafetyProfile.DeserializeGalleryImageVersionSafetyProfile(property0.Value); + continue; + } if (property0.NameEquals("replicationStatus")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -159,7 +175,7 @@ internal static GalleryImageVersionData DeserializeGalleryImageVersionData(JsonE continue; } } - return new GalleryImageVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, Optional.ToNullable(provisioningState), storageProfile.Value, replicationStatus.Value); + return new GalleryImageVersionData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, publishingProfile.Value, Optional.ToNullable(provisioningState), storageProfile.Value, safetyProfile.Value, replicationStatus.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs index 0255328aecb82..33e3bfbeb890f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.Serialization.cs @@ -38,6 +38,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("storageProfile"); writer.WriteObjectValue(StorageProfile); } + if (Optional.IsDefined(SafetyProfile)) + { + writer.WritePropertyName("safetyProfile"); + writer.WriteObjectValue(SafetyProfile); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs index 472b6c452ea8d..836f8ea9db023 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionPatch.cs @@ -26,6 +26,8 @@ public GalleryImageVersionPatch() public GalleryProvisioningState? ProvisioningState { get; } /// This is the storage profile of a Gallery Image Version. public GalleryImageVersionStorageProfile StorageProfile { get; set; } + /// This is the safety profile of the Gallery Image Version. + public GalleryImageVersionSafetyProfile SafetyProfile { get; set; } /// This is the replication status of the gallery image version. public ReplicationStatus ReplicationStatus { get; } /// Resource tags. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs new file mode 100644 index 0000000000000..11f2975623be9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.Serialization.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class GalleryImageVersionSafetyProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AllowDeletionOfReplicatedLocations)) + { + writer.WritePropertyName("allowDeletionOfReplicatedLocations"); + writer.WriteBooleanValue(AllowDeletionOfReplicatedLocations.Value); + } + writer.WriteEndObject(); + } + + internal static GalleryImageVersionSafetyProfile DeserializeGalleryImageVersionSafetyProfile(JsonElement element) + { + Optional reportedForPolicyViolation = default; + Optional> policyViolations = default; + Optional allowDeletionOfReplicatedLocations = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("reportedForPolicyViolation")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + reportedForPolicyViolation = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("policyViolations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PolicyViolation.DeserializePolicyViolation(item)); + } + policyViolations = array; + continue; + } + if (property.NameEquals("allowDeletionOfReplicatedLocations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + allowDeletionOfReplicatedLocations = property.Value.GetBoolean(); + continue; + } + } + return new GalleryImageVersionSafetyProfile(Optional.ToNullable(allowDeletionOfReplicatedLocations), Optional.ToNullable(reportedForPolicyViolation), Optional.ToList(policyViolations)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs new file mode 100644 index 0000000000000..67b56b74d38c8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionSafetyProfile.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// This is the safety profile of the Gallery Image Version. + public partial class GalleryImageVersionSafetyProfile : GalleryArtifactSafetyProfileBase + { + /// Initializes a new instance of GalleryImageVersionSafetyProfile. + public GalleryImageVersionSafetyProfile() + { + PolicyViolations = new ChangeTrackingList(); + } + + /// Initializes a new instance of GalleryImageVersionSafetyProfile. + /// Indicates whether or not removing this Gallery Image Version from replicated regions is allowed. + /// Indicates whether this image has been reported as violating Microsoft's policies. + /// A list of Policy Violations that have been reported for this Gallery Image Version. + internal GalleryImageVersionSafetyProfile(bool? allowDeletionOfReplicatedLocations, bool? reportedForPolicyViolation, IReadOnlyList policyViolations) : base(allowDeletionOfReplicatedLocations) + { + ReportedForPolicyViolation = reportedForPolicyViolation; + PolicyViolations = policyViolations; + } + + /// Indicates whether this image has been reported as violating Microsoft's policies. + public bool? ReportedForPolicyViolation { get; } + /// A list of Policy Violations that have been reported for this Gallery Image Version. + public IReadOnlyList PolicyViolations { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.Serialization.cs index b9c0c91c56100..850a8ffa396c6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.Serialization.cs @@ -41,7 +41,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static GalleryImageVersionStorageProfile DeserializeGalleryImageVersionStorageProfile(JsonElement element) { - Optional source = default; + Optional source = default; Optional osDiskImage = default; Optional> dataDiskImages = default; foreach (var property in element.EnumerateObject()) @@ -53,7 +53,7 @@ internal static GalleryImageVersionStorageProfile DeserializeGalleryImageVersion property.ThrowNonNullablePropertyIsNull(); continue; } - source = GalleryArtifactVersionSource.DeserializeGalleryArtifactVersionSource(property.Value); + source = GalleryArtifactVersionFullSource.DeserializeGalleryArtifactVersionFullSource(property.Value); continue; } if (property.NameEquals("osDiskImage")) diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs index f7783fa0965f5..0df1160a5f4f1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs @@ -20,18 +20,18 @@ public GalleryImageVersionStorageProfile() } /// Initializes a new instance of GalleryImageVersionStorageProfile. - /// The gallery artifact version source. + /// The source of the gallery artifact version. /// This is the OS disk image. /// A list of data disk images. - internal GalleryImageVersionStorageProfile(GalleryArtifactVersionSource source, GalleryOSDiskImage osDiskImage, IList dataDiskImages) + internal GalleryImageVersionStorageProfile(GalleryArtifactVersionFullSource source, GalleryOSDiskImage osDiskImage, IList dataDiskImages) { Source = source; OSDiskImage = osDiskImage; DataDiskImages = dataDiskImages; } - /// The gallery artifact version source. - public GalleryArtifactVersionSource Source { get; set; } + /// The source of the gallery artifact version. + public GalleryArtifactVersionFullSource Source { get; set; } /// This is the OS disk image. public GalleryOSDiskImage OSDiskImage { get; set; } /// A list of data disk images. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.Serialization.cs index 4be8ccc524204..6bf79dc14d044 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.Serialization.cs @@ -32,7 +32,7 @@ internal static GalleryOSDiskImage DeserializeGalleryOSDiskImage(JsonElement ele { Optional sizeInGB = default; Optional hostCaching = default; - Optional source = default; + Optional source = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sizeInGB")) @@ -62,7 +62,7 @@ internal static GalleryOSDiskImage DeserializeGalleryOSDiskImage(JsonElement ele property.ThrowNonNullablePropertyIsNull(); continue; } - source = GalleryArtifactVersionSource.DeserializeGalleryArtifactVersionSource(property.Value); + source = GalleryDiskImageSource.DeserializeGalleryDiskImageSource(property.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.cs index 18b0941d8f332..4a75e99d4eb9a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryOSDiskImage.cs @@ -18,8 +18,8 @@ public GalleryOSDiskImage() /// Initializes a new instance of GalleryOSDiskImage. /// This property indicates the size of the VHD to be created. /// The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. - /// The gallery artifact version source. - internal GalleryOSDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryArtifactVersionSource source) : base(sizeInGB, hostCaching, source) + /// The source for the disk image. + internal GalleryOSDiskImage(int? sizeInGB, HostCaching? hostCaching, GalleryDiskImageSource source) : base(sizeInGB, hostCaching, source) { } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.Serialization.cs index 639aad035c796..4d04ad4530f95 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.Serialization.cs @@ -35,6 +35,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("patchSettings"); writer.WriteObjectValue(PatchSettings); } + if (Optional.IsDefined(EnableVmAgentPlatformUpdates)) + { + writer.WritePropertyName("enableVMAgentPlatformUpdates"); + writer.WriteBooleanValue(EnableVmAgentPlatformUpdates.Value); + } writer.WriteEndObject(); } @@ -44,6 +49,7 @@ internal static LinuxConfiguration DeserializeLinuxConfiguration(JsonElement ele Optional ssh = default; Optional provisionVmAgent = default; Optional patchSettings = default; + Optional enableVmAgentPlatformUpdates = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("disablePasswordAuthentication")) @@ -86,8 +92,18 @@ internal static LinuxConfiguration DeserializeLinuxConfiguration(JsonElement ele patchSettings = LinuxPatchSettings.DeserializeLinuxPatchSettings(property.Value); continue; } + if (property.NameEquals("enableVMAgentPlatformUpdates")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableVmAgentPlatformUpdates = property.Value.GetBoolean(); + continue; + } } - return new LinuxConfiguration(Optional.ToNullable(disablePasswordAuthentication), ssh.Value, Optional.ToNullable(provisionVmAgent), patchSettings.Value); + return new LinuxConfiguration(Optional.ToNullable(disablePasswordAuthentication), ssh.Value, Optional.ToNullable(provisionVmAgent), patchSettings.Value, Optional.ToNullable(enableVmAgentPlatformUpdates)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.cs index 465719be25e21..158f9f50fc2f9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LinuxConfiguration.cs @@ -22,12 +22,14 @@ public LinuxConfiguration() /// Specifies the ssh key configuration for a Linux OS. /// Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. /// [Preview Feature] Specifies settings related to VM Guest Patching on Linux. - internal LinuxConfiguration(bool? disablePasswordAuthentication, SshConfiguration ssh, bool? provisionVmAgent, LinuxPatchSettings patchSettings) + /// Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. + internal LinuxConfiguration(bool? disablePasswordAuthentication, SshConfiguration ssh, bool? provisionVmAgent, LinuxPatchSettings patchSettings, bool? enableVmAgentPlatformUpdates) { DisablePasswordAuthentication = disablePasswordAuthentication; Ssh = ssh; ProvisionVmAgent = provisionVmAgent; PatchSettings = patchSettings; + EnableVmAgentPlatformUpdates = enableVmAgentPlatformUpdates; } /// Specifies whether password authentication should be disabled. @@ -49,5 +51,7 @@ public IList SshPublicKeys public bool? ProvisionVmAgent { get; set; } /// [Preview Feature] Specifies settings related to VM Guest Patching on Linux. public LinuxPatchSettings PatchSettings { get; set; } + /// Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. + public bool? EnableVmAgentPlatformUpdates { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs index b3763725911c7..10c4abaf454ce 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskData.Serialization.cs @@ -165,6 +165,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("dataAccessAuthMode"); writer.WriteStringValue(DataAccessAuthMode.Value.ToString()); } + if (Optional.IsDefined(OptimizedForFrequentAttach)) + { + writer.WritePropertyName("optimizedForFrequentAttach"); + writer.WriteBooleanValue(OptimizedForFrequentAttach.Value); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -203,6 +208,7 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) Optional> shareInfo = default; Optional networkAccessPolicy = default; Optional diskAccessId = default; + Optional burstingEnabledTime = default; Optional tier = default; Optional burstingEnabled = default; Optional propertyUpdatesInProgress = default; @@ -211,6 +217,7 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) Optional completionPercent = default; Optional publicNetworkAccess = default; Optional dataAccessAuthMode = default; + Optional optimizedForFrequentAttach = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("managedBy")) @@ -532,6 +539,16 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) diskAccessId = new ResourceIdentifier(property0.Value.GetString()); continue; } + if (property0.NameEquals("burstingEnabledTime")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + burstingEnabledTime = property0.Value.GetDateTimeOffset("O"); + continue; + } if (property0.NameEquals("tier")) { tier = property0.Value.GetString(); @@ -607,11 +624,21 @@ internal static ManagedDiskData DeserializeManagedDiskData(JsonElement element) dataAccessAuthMode = new DataAccessAuthMode(property0.Value.GetString()); continue; } + if (property0.NameEquals("optimizedForFrequentAttach")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + optimizedForFrequentAttach = property0.Value.GetBoolean(); + continue; + } } continue; } } - return new ManagedDiskData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, Optional.ToList(managedByExtended), sku.Value, Optional.ToList(zones), extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(diskIOPSReadWrite), Optional.ToNullable(diskMBpsReadWrite), Optional.ToNullable(diskIOPSReadOnly), Optional.ToNullable(diskMBpsReadOnly), Optional.ToNullable(diskState), encryption.Value, Optional.ToNullable(maxShares), Optional.ToList(shareInfo), Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, tier.Value, Optional.ToNullable(burstingEnabled), propertyUpdatesInProgress.Value, Optional.ToNullable(supportsHibernation), securityProfile.Value, Optional.ToNullable(completionPercent), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(dataAccessAuthMode)); + return new ManagedDiskData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, Optional.ToList(managedByExtended), sku.Value, Optional.ToList(zones), extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(diskIOPSReadWrite), Optional.ToNullable(diskMBpsReadWrite), Optional.ToNullable(diskIOPSReadOnly), Optional.ToNullable(diskMBpsReadOnly), Optional.ToNullable(diskState), encryption.Value, Optional.ToNullable(maxShares), Optional.ToList(shareInfo), Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, Optional.ToNullable(burstingEnabledTime), tier.Value, Optional.ToNullable(burstingEnabled), propertyUpdatesInProgress.Value, Optional.ToNullable(supportsHibernation), securityProfile.Value, Optional.ToNullable(completionPercent), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(dataAccessAuthMode), Optional.ToNullable(optimizedForFrequentAttach)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.Serialization.cs index 89d0028da651d..eb922a4560f65 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.Serialization.cs @@ -123,6 +123,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("dataAccessAuthMode"); writer.WriteStringValue(DataAccessAuthMode.Value.ToString()); } + if (Optional.IsDefined(OptimizedForFrequentAttach)) + { + writer.WritePropertyName("optimizedForFrequentAttach"); + writer.WriteBooleanValue(OptimizedForFrequentAttach.Value); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.cs index 708bcf1ba22ec..160c0c170b82d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/ManagedDiskPatch.cs @@ -67,5 +67,7 @@ public string PropertyUpdatesInProgressTargetTier public DiskPublicNetworkAccess? PublicNetworkAccess { get; set; } /// Additional authentication requirements when exporting or uploading to a disk or snapshot. public DataAccessAuthMode? DataAccessAuthMode { get; set; } + /// Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. + public bool? OptimizedForFrequentAttach { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.Serialization.cs new file mode 100644 index 0000000000000..75290ced63303 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class OSProfileProvisioningData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(AdminPassword)) + { + writer.WritePropertyName("adminPassword"); + writer.WriteStringValue(AdminPassword); + } + if (Optional.IsDefined(CustomData)) + { + writer.WritePropertyName("customData"); + writer.WriteStringValue(CustomData); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.cs new file mode 100644 index 0000000000000..4e877f3338874 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSProfileProvisioningData.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// Additional parameters for Reimaging Non-Ephemeral Virtual Machine. + public partial class OSProfileProvisioningData + { + /// Initializes a new instance of OSProfileProvisioningData. + public OSProfileProvisioningData() + { + } + + /// Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection). + public string AdminPassword { get; set; } + /// Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> **Note: Do not pass any secrets or passwords in customData property** <br><br> This property cannot be updated after the VM is created. <br><br> customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/) <br><br> For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init). + public string CustomData { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.Serialization.cs new file mode 100644 index 0000000000000..c405ea01388d8 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class PolicyViolation + { + internal static PolicyViolation DeserializePolicyViolation(JsonElement element) + { + Optional category = default; + Optional details = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("category")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + category = new PolicyViolationCategory(property.Value.GetString()); + continue; + } + if (property.NameEquals("details")) + { + details = property.Value.GetString(); + continue; + } + } + return new PolicyViolation(Optional.ToNullable(category), details.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.cs new file mode 100644 index 0000000000000..2bb5836588850 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolation.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// A policy violation reported against a gallery artifact. + public partial class PolicyViolation + { + /// Initializes a new instance of PolicyViolation. + internal PolicyViolation() + { + } + + /// Initializes a new instance of PolicyViolation. + /// Describes the nature of the policy violation. + /// Describes specific details about why this policy violation was reported. + internal PolicyViolation(PolicyViolationCategory? category, string details) + { + Category = category; + Details = details; + } + + /// Describes the nature of the policy violation. + public PolicyViolationCategory? Category { get; } + /// Describes specific details about why this policy violation was reported. + public string Details { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolationCategory.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolationCategory.cs new file mode 100644 index 0000000000000..1e422975c5dc9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PolicyViolationCategory.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Describes the nature of the policy violation. + public readonly partial struct PolicyViolationCategory : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PolicyViolationCategory(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OtherValue = "Other"; + private const string ImageFlaggedUnsafeValue = "ImageFlaggedUnsafe"; + private const string CopyrightValidationValue = "CopyrightValidation"; + private const string IPTheftValue = "IpTheft"; + + /// Other. + public static PolicyViolationCategory Other { get; } = new PolicyViolationCategory(OtherValue); + /// ImageFlaggedUnsafe. + public static PolicyViolationCategory ImageFlaggedUnsafe { get; } = new PolicyViolationCategory(ImageFlaggedUnsafeValue); + /// CopyrightValidation. + public static PolicyViolationCategory CopyrightValidation { get; } = new PolicyViolationCategory(CopyrightValidationValue); + /// IpTheft. + public static PolicyViolationCategory IPTheft { get; } = new PolicyViolationCategory(IPTheftValue); + /// Determines if two values are the same. + public static bool operator ==(PolicyViolationCategory left, PolicyViolationCategory right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PolicyViolationCategory left, PolicyViolationCategory right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PolicyViolationCategory(string value) => new PolicyViolationCategory(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PolicyViolationCategory other && Equals(other); + /// + public bool Equals(PolicyViolationCategory other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.Serialization.cs new file mode 100644 index 0000000000000..a7c7bf343b564 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class PriorityMixPolicy : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(BaseRegularPriorityCount)) + { + writer.WritePropertyName("baseRegularPriorityCount"); + writer.WriteNumberValue(BaseRegularPriorityCount.Value); + } + if (Optional.IsDefined(RegularPriorityPercentageAboveBase)) + { + writer.WritePropertyName("regularPriorityPercentageAboveBase"); + writer.WriteNumberValue(RegularPriorityPercentageAboveBase.Value); + } + writer.WriteEndObject(); + } + + internal static PriorityMixPolicy DeserializePriorityMixPolicy(JsonElement element) + { + Optional baseRegularPriorityCount = default; + Optional regularPriorityPercentageAboveBase = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("baseRegularPriorityCount")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + baseRegularPriorityCount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("regularPriorityPercentageAboveBase")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + regularPriorityPercentageAboveBase = property.Value.GetInt32(); + continue; + } + } + return new PriorityMixPolicy(Optional.ToNullable(baseRegularPriorityCount), Optional.ToNullable(regularPriorityPercentageAboveBase)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.cs new file mode 100644 index 0000000000000..9897762003751 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/PriorityMixPolicy.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// Specifies the target splits for Spot and Regular priority VMs within a scale set with flexible orchestration mode. <br><br>With this property the customer is able to specify the base number of regular priority VMs created as the VMSS flex instance scales out and the split between Spot and Regular priority VMs after this base target has been reached. + public partial class PriorityMixPolicy + { + /// Initializes a new instance of PriorityMixPolicy. + public PriorityMixPolicy() + { + } + + /// Initializes a new instance of PriorityMixPolicy. + /// The base number of regular priority VMs that will be created in this scale set as it scales out. + /// The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority. + internal PriorityMixPolicy(int? baseRegularPriorityCount, int? regularPriorityPercentageAboveBase) + { + BaseRegularPriorityCount = baseRegularPriorityCount; + RegularPriorityPercentageAboveBase = regularPriorityPercentageAboveBase; + } + + /// The base number of regular priority VMs that will be created in this scale set as it scales out. + public int? BaseRegularPriorityCount { get; set; } + /// The percentage of VM instances, after the base regular priority count has been reached, that are expected to use regular priority. + public int? RegularPriorityPercentageAboveBase { get; set; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs index 6631aad87300b..165d503a7f026 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SharedGalleryImageData.Serialization.cs @@ -29,6 +29,8 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle Optional> features = default; Optional purchasePlan = default; Optional architecture = default; + Optional privacyStatementUri = default; + Optional eula = default; Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { @@ -161,6 +163,21 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle architecture = new ArchitectureType(property0.Value.GetString()); continue; } + if (property0.NameEquals("privacyStatementUri")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + privacyStatementUri = null; + continue; + } + privacyStatementUri = new Uri(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("eula")) + { + eula = property0.Value.GetString(); + continue; + } } continue; } @@ -182,7 +199,7 @@ internal static SharedGalleryImageData DeserializeSharedGalleryImageData(JsonEle continue; } } - return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture)); + return new SharedGalleryImageData(name.Value, Optional.ToNullable(location), uniqueId.Value, Optional.ToNullable(osType), Optional.ToNullable(osState), Optional.ToNullable(endOfLifeDate), identifier.Value, recommended.Value, disallowed.Value, Optional.ToNullable(hyperVGeneration), Optional.ToList(features), purchasePlan.Value, Optional.ToNullable(architecture), privacyStatementUri.Value, eula.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotData.Serialization.cs index fffced59871d8..680e2fa2ce9d3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SnapshotData.Serialization.cs @@ -158,6 +158,7 @@ internal static SnapshotData DeserializeSnapshotData(JsonElement element) Optional encryptionSettingsGroup = default; Optional provisioningState = default; Optional incremental = default; + Optional incrementalSnapshotFamilyId = default; Optional encryption = default; Optional networkAccessPolicy = default; Optional diskAccessId = default; @@ -368,6 +369,11 @@ internal static SnapshotData DeserializeSnapshotData(JsonElement element) incremental = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("incrementalSnapshotFamilyId")) + { + incrementalSnapshotFamilyId = property0.Value.GetString(); + continue; + } if (property0.NameEquals("encryption")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -462,7 +468,7 @@ internal static SnapshotData DeserializeSnapshotData(JsonElement element) continue; } } - return new SnapshotData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, sku.Value, extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), Optional.ToNullable(diskState), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(incremental), encryption.Value, Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, securityProfile.Value, Optional.ToNullable(supportsHibernation), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(completionPercent), copyCompletionError.Value, Optional.ToNullable(dataAccessAuthMode)); + return new SnapshotData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, managedBy.Value, sku.Value, extendedLocation, Optional.ToNullable(timeCreated), Optional.ToNullable(osType), Optional.ToNullable(hyperVGeneration), purchasePlan.Value, supportedCapabilities.Value, creationData.Value, Optional.ToNullable(diskSizeGB), Optional.ToNullable(diskSizeBytes), Optional.ToNullable(diskState), uniqueId.Value, encryptionSettingsGroup.Value, provisioningState.Value, Optional.ToNullable(incremental), incrementalSnapshotFamilyId.Value, encryption.Value, Optional.ToNullable(networkAccessPolicy), diskAccessId.Value, securityProfile.Value, Optional.ToNullable(supportsHibernation), Optional.ToNullable(publicNetworkAccess), Optional.ToNullable(completionPercent), copyCompletionError.Value, Optional.ToNullable(dataAccessAuthMode)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.Serialization.cs index 1ebc1c827e357..18cdeb23603fd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.Serialization.cs @@ -15,6 +15,11 @@ public partial class SupportedCapabilities : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(DiskControllerTypes)) + { + writer.WritePropertyName("diskControllerTypes"); + writer.WriteStringValue(DiskControllerTypes); + } if (Optional.IsDefined(AcceleratedNetwork)) { writer.WritePropertyName("acceleratedNetwork"); @@ -30,10 +35,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static SupportedCapabilities DeserializeSupportedCapabilities(JsonElement element) { + Optional diskControllerTypes = default; Optional acceleratedNetwork = default; Optional architecture = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("diskControllerTypes")) + { + diskControllerTypes = property.Value.GetString(); + continue; + } if (property.NameEquals("acceleratedNetwork")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -55,7 +66,7 @@ internal static SupportedCapabilities DeserializeSupportedCapabilities(JsonEleme continue; } } - return new SupportedCapabilities(Optional.ToNullable(acceleratedNetwork), Optional.ToNullable(architecture)); + return new SupportedCapabilities(diskControllerTypes.Value, Optional.ToNullable(acceleratedNetwork), Optional.ToNullable(architecture)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.cs index 8438d08fabc89..94ae5e0c9e931 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/SupportedCapabilities.cs @@ -16,14 +16,18 @@ public SupportedCapabilities() } /// Initializes a new instance of SupportedCapabilities. + /// The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI. /// True if the image from which the OS disk is created supports accelerated networking. /// CPU architecture supported by an OS disk. - internal SupportedCapabilities(bool? acceleratedNetwork, ArchitectureType? architecture) + internal SupportedCapabilities(string diskControllerTypes, bool? acceleratedNetwork, ArchitectureType? architecture) { + DiskControllerTypes = diskControllerTypes; AcceleratedNetwork = acceleratedNetwork; Architecture = architecture; } + /// The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI. + public string DiskControllerTypes { get; set; } /// True if the image from which the OS disk is created supports accelerated networking. public bool? AcceleratedNetwork { get; set; } /// CPU architecture supported by an OS disk. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs index 4bd99c7e5cbbd..557cdf05351b9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.Serialization.cs @@ -32,6 +32,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("encryption"); writer.WriteObjectValue(Encryption); } + if (Optional.IsDefined(ExcludeFromLatest)) + { + writer.WritePropertyName("excludeFromLatest"); + writer.WriteBooleanValue(ExcludeFromLatest.Value); + } writer.WriteEndObject(); } @@ -41,6 +46,7 @@ internal static TargetRegion DeserializeTargetRegion(JsonElement element) Optional regionalReplicaCount = default; Optional storageAccountType = default; Optional encryption = default; + Optional excludeFromLatest = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -78,8 +84,18 @@ internal static TargetRegion DeserializeTargetRegion(JsonElement element) encryption = EncryptionImages.DeserializeEncryptionImages(property.Value); continue; } + if (property.NameEquals("excludeFromLatest")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + excludeFromLatest = property.Value.GetBoolean(); + continue; + } } - return new TargetRegion(name, Optional.ToNullable(regionalReplicaCount), Optional.ToNullable(storageAccountType), encryption.Value); + return new TargetRegion(name, Optional.ToNullable(regionalReplicaCount), Optional.ToNullable(storageAccountType), encryption.Value, Optional.ToNullable(excludeFromLatest)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs index 4ff4151681e30..2fbaa783aabe3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs @@ -30,12 +30,14 @@ public TargetRegion(string name) /// The number of replicas of the Image Version to be created per region. This property is updatable. /// Specifies the storage account type to be used to store the image. This property is not updatable. /// Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. - internal TargetRegion(string name, int? regionalReplicaCount, ImageStorageAccountType? storageAccountType, EncryptionImages encryption) + /// Contains the flag setting to hide an image when users specify version='latest'. + internal TargetRegion(string name, int? regionalReplicaCount, ImageStorageAccountType? storageAccountType, EncryptionImages encryption, bool? excludeFromLatest) { Name = name; RegionalReplicaCount = regionalReplicaCount; StorageAccountType = storageAccountType; Encryption = encryption; + ExcludeFromLatest = excludeFromLatest; } /// The name of the region. @@ -46,5 +48,7 @@ internal TargetRegion(string name, int? regionalReplicaCount, ImageStorageAccoun public ImageStorageAccountType? StorageAccountType { get; set; } /// Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. public EncryptionImages Encryption { get; set; } + /// Contains the flag setting to hide an image when users specify version='latest'. + public bool? ExcludeFromLatest { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs index 37ada260517e1..51b001bb7f314 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineDataDisk.cs @@ -29,7 +29,7 @@ public VirtualMachineDataDisk(int lun, DiskCreateOptionType createOption) /// Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. /// Specifies whether writeAccelerator should be enabled or disabled on the disk. /// Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. /// The managed disk parameters. /// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. /// Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set. @@ -92,7 +92,7 @@ public Uri ImageUri public bool? WriteAcceleratorEnabled { get; set; } /// Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. public DiskCreateOptionType CreateOption { get; set; } - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. public int? DiskSizeGB { get; set; } /// The managed disk parameters. public VirtualMachineManagedDisk ManagedDisk { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionData.Serialization.cs index f6664a1a52074..3eac4badc2a7d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionData.Serialization.cs @@ -95,11 +95,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -124,7 +120,7 @@ internal static VirtualMachineExtensionData DeserializeVirtualMachineExtensionDa Optional provisioningState = default; Optional instanceView = default; Optional suppressFailures = default; - Optional protectedSettingsFromKeyVault = default; + Optional protectedSettingsFromKeyVault = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags")) @@ -273,7 +269,7 @@ internal static VirtualMachineExtensionData DeserializeVirtualMachineExtensionDa property0.ThrowNonNullablePropertyIsNull(); continue; } - protectedSettingsFromKeyVault = BinaryData.FromString(property0.Value.GetRawText()); + protectedSettingsFromKeyVault = KeyVaultSecretReference.DeserializeKeyVaultSecretReference(property0.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.Serialization.cs index 252cab814e5d4..94c3061b0b546 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.Serialization.cs @@ -84,11 +84,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.cs index 44837b24793b5..71045f0146f2a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineExtensionPatch.cs @@ -93,36 +93,7 @@ public VirtualMachineExtensionPatch() public BinaryData ProtectedSettings { get; set; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs index 23584587c73b1..e128fa1d4c484 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableAcceleratedNetworking"); writer.WriteBooleanValue(EnableAcceleratedNetworking.Value); } + if (Optional.IsDefined(DisableTcpStateTracking)) + { + writer.WritePropertyName("disableTcpStateTracking"); + writer.WriteBooleanValue(DisableTcpStateTracking.Value); + } if (Optional.IsDefined(EnableFpga)) { writer.WritePropertyName("enableFpga"); @@ -81,6 +86,7 @@ internal static VirtualMachineNetworkInterfaceConfiguration DeserializeVirtualMa Optional primary = default; Optional deleteOption = default; Optional enableAcceleratedNetworking = default; + Optional disableTcpStateTracking = default; Optional enableFpga = default; Optional enableIPForwarding = default; Optional networkSecurityGroup = default; @@ -133,6 +139,16 @@ internal static VirtualMachineNetworkInterfaceConfiguration DeserializeVirtualMa enableAcceleratedNetworking = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("disableTcpStateTracking")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + disableTcpStateTracking = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("enableFpga")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -202,7 +218,7 @@ internal static VirtualMachineNetworkInterfaceConfiguration DeserializeVirtualMa continue; } } - return new VirtualMachineNetworkInterfaceConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(deleteOption), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(enableFpga), Optional.ToNullable(enableIPForwarding), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), dscpConfiguration); + return new VirtualMachineNetworkInterfaceConfiguration(name, Optional.ToNullable(primary), Optional.ToNullable(deleteOption), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), Optional.ToNullable(enableIPForwarding), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), dscpConfiguration); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs index 8c100d37e0bb9..8321fa6afb944 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs @@ -34,18 +34,20 @@ public VirtualMachineNetworkInterfaceConfiguration(string name) /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. /// Specify what happens to the network interface when the VM is deleted. /// Specifies whether the network interface is accelerated networking-enabled. + /// Specifies whether the network interface is disabled for tcp state tracking. /// Specifies whether the network interface is FPGA networking-enabled. /// Whether IP forwarding enabled on this NIC. /// The network security group. /// The dns settings to be applied on the network interfaces. /// Specifies the IP configurations of the network interface. /// Gets or sets the dscp configuration. - internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, ComputeDeleteOption? deleteOption, bool? enableAcceleratedNetworking, bool? enableFpga, bool? enableIPForwarding, WritableSubResource networkSecurityGroup, VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings, IList ipConfigurations, WritableSubResource dscpConfiguration) + internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, ComputeDeleteOption? deleteOption, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableFpga, bool? enableIPForwarding, WritableSubResource networkSecurityGroup, VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings, IList ipConfigurations, WritableSubResource dscpConfiguration) { Name = name; Primary = primary; DeleteOption = deleteOption; EnableAcceleratedNetworking = enableAcceleratedNetworking; + DisableTcpStateTracking = disableTcpStateTracking; EnableFpga = enableFpga; EnableIPForwarding = enableIPForwarding; NetworkSecurityGroup = networkSecurityGroup; @@ -62,6 +64,8 @@ internal VirtualMachineNetworkInterfaceConfiguration(string name, bool? primary, public ComputeDeleteOption? DeleteOption { get; set; } /// Specifies whether the network interface is accelerated networking-enabled. public bool? EnableAcceleratedNetworking { get; set; } + /// Specifies whether the network interface is disabled for tcp state tracking. + public bool? DisableTcpStateTracking { get; set; } /// Specifies whether the network interface is FPGA networking-enabled. public bool? EnableFpga { get; set; } /// Whether IP forwarding enabled on this NIC. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSDisk.cs index bebf573bc2d00..30ed75635fa84 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineOSDisk.cs @@ -29,7 +29,7 @@ public VirtualMachineOSDisk(DiskCreateOptionType createOption) /// Specifies whether writeAccelerator should be enabled or disabled on the disk. /// Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. /// Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. /// The managed disk parameters. /// Specifies whether OS Disk should be deleted or detached upon VM deletion. <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VM is deleted.<br><br> **Detach** If this value is used, the os disk is retained after VM is deleted. <br><br> The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk. internal VirtualMachineOSDisk(SupportedOperatingSystemType? osType, DiskEncryptionSettings encryptionSettings, string name, VirtualHardDisk vhd, VirtualHardDisk image, CachingType? caching, bool? writeAcceleratorEnabled, DiffDiskSettings diffDiskSettings, DiskCreateOptionType createOption, int? diskSizeGB, VirtualMachineManagedDisk managedDisk, DiskDeleteOptionType? deleteOption) @@ -90,7 +90,7 @@ public Uri ImageUri public DiffDiskSettings DiffDiskSettings { get; set; } /// Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. public DiskCreateOptionType CreateOption { get; set; } - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. public int? DiskSizeGB { get; set; } /// The managed disk parameters. public VirtualMachineManagedDisk ManagedDisk { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs index cfb667a72a5f0..3146daffd977c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachinePatch.cs @@ -197,7 +197,7 @@ public IList GalleryApplications } } - /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.Serialization.cs index 36a170282c81e..538b3386ae16c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.Serialization.cs @@ -20,6 +20,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("tempDisk"); writer.WriteBooleanValue(TempDisk.Value); } + if (Optional.IsDefined(ExactVersion)) + { + writer.WritePropertyName("exactVersion"); + writer.WriteStringValue(ExactVersion); + } + if (Optional.IsDefined(OSProfile)) + { + writer.WritePropertyName("osProfile"); + writer.WriteObjectValue(OSProfile); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.cs index 8a6ffc0e657bf..0667dc78689e7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineReimageContent.cs @@ -17,5 +17,9 @@ public VirtualMachineReimageContent() /// Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. public bool? TempDisk { get; set; } + /// Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk. + public string ExactVersion { get; set; } + /// Specifies information required for reimaging the non-ephemeral OS disk. + public OSProfileProvisioningData OSProfile { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetData.Serialization.cs index aad29e05d637e..2fada82624565 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetData.Serialization.cs @@ -135,6 +135,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("spotRestorePolicy"); writer.WriteObjectValue(SpotRestorePolicy); } + if (Optional.IsDefined(PriorityMixPolicy)) + { + writer.WritePropertyName("priorityMixPolicy"); + writer.WriteObjectValue(PriorityMixPolicy); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -168,6 +173,7 @@ internal static VirtualMachineScaleSetData DeserializeVirtualMachineScaleSetData Optional scaleInPolicy = default; Optional orchestrationMode = default; Optional spotRestorePolicy = default; + Optional priorityMixPolicy = default; Optional timeCreated = default; foreach (var property in element.EnumerateObject()) { @@ -430,6 +436,16 @@ internal static VirtualMachineScaleSetData DeserializeVirtualMachineScaleSetData spotRestorePolicy = SpotRestorePolicy.DeserializeSpotRestorePolicy(property0.Value); continue; } + if (property0.NameEquals("priorityMixPolicy")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + priorityMixPolicy = PriorityMixPolicy.DeserializePriorityMixPolicy(property0.Value); + continue; + } if (property0.NameEquals("timeCreated")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -444,7 +460,7 @@ internal static VirtualMachineScaleSetData DeserializeVirtualMachineScaleSetData continue; } } - return new VirtualMachineScaleSetData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, plan.Value, identity, Optional.ToList(zones), extendedLocation, upgradePolicy.Value, automaticRepairsPolicy.Value, virtualMachineProfile.Value, provisioningState.Value, Optional.ToNullable(overprovision), Optional.ToNullable(doNotRunExtensionsOnOverprovisionedVms), uniqueId.Value, Optional.ToNullable(singlePlacementGroup), Optional.ToNullable(zoneBalance), Optional.ToNullable(platformFaultDomainCount), proximityPlacementGroup, hostGroup, additionalCapabilities.Value, scaleInPolicy.Value, Optional.ToNullable(orchestrationMode), spotRestorePolicy.Value, Optional.ToNullable(timeCreated)); + return new VirtualMachineScaleSetData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, plan.Value, identity, Optional.ToList(zones), extendedLocation, upgradePolicy.Value, automaticRepairsPolicy.Value, virtualMachineProfile.Value, provisioningState.Value, Optional.ToNullable(overprovision), Optional.ToNullable(doNotRunExtensionsOnOverprovisionedVms), uniqueId.Value, Optional.ToNullable(singlePlacementGroup), Optional.ToNullable(zoneBalance), Optional.ToNullable(platformFaultDomainCount), proximityPlacementGroup, hostGroup, additionalCapabilities.Value, scaleInPolicy.Value, Optional.ToNullable(orchestrationMode), spotRestorePolicy.Value, priorityMixPolicy.Value, Optional.ToNullable(timeCreated)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetDataDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetDataDisk.cs index 69f883738a7ad..7100a8103cd1b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetDataDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetDataDisk.cs @@ -25,7 +25,7 @@ public VirtualMachineScaleSetDataDisk(int lun, DiskCreateOptionType createOption /// Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. /// Specifies whether writeAccelerator should be enabled or disabled on the disk. /// The create option. - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. /// The managed disk parameters. /// Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. /// Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. @@ -54,7 +54,7 @@ internal VirtualMachineScaleSetDataDisk(string name, int lun, CachingType? cachi public bool? WriteAcceleratorEnabled { get; set; } /// The create option. public DiskCreateOptionType CreateOption { get; set; } - /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. public int? DiskSizeGB { get; set; } /// The managed disk parameters. public VirtualMachineScaleSetManagedDisk ManagedDisk { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionData.Serialization.cs index 9317e8568cbd7..a1d645d68b213 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionData.Serialization.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute @@ -86,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -113,7 +110,7 @@ internal static VirtualMachineScaleSetExtensionData DeserializeVirtualMachineSca Optional provisioningState = default; Optional> provisionAfterExtensions = default; Optional suppressFailures = default; - Optional protectedSettingsFromKeyVault = default; + Optional protectedSettingsFromKeyVault = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -247,7 +244,7 @@ internal static VirtualMachineScaleSetExtensionData DeserializeVirtualMachineSca property0.ThrowNonNullablePropertyIsNull(); continue; } - protectedSettingsFromKeyVault = BinaryData.FromString(property0.Value.GetRawText()); + protectedSettingsFromKeyVault = KeyVaultSecretReference.DeserializeKeyVaultSecretReference(property0.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.Serialization.cs index de3ebf3c6455d..73de1318d79c2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.Serialization.cs @@ -86,11 +86,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -113,7 +109,7 @@ internal static VirtualMachineScaleSetExtensionPatch DeserializeVirtualMachineSc Optional provisioningState = default; Optional> provisionAfterExtensions = default; Optional suppressFailures = default; - Optional protectedSettingsFromKeyVault = default; + Optional protectedSettingsFromKeyVault = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -247,7 +243,7 @@ internal static VirtualMachineScaleSetExtensionPatch DeserializeVirtualMachineSc property0.ThrowNonNullablePropertyIsNull(); continue; } - protectedSettingsFromKeyVault = BinaryData.FromString(property0.Value.GetRawText()); + protectedSettingsFromKeyVault = KeyVaultSecretReference.DeserializeKeyVaultSecretReference(property0.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs index bca00166ff269..255edadd8b7bd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetExtensionPatch.cs @@ -38,7 +38,7 @@ public VirtualMachineScaleSetExtensionPatch() /// Collection of extension names after which this extension needs to be provisioned. /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. /// The extensions protected settings that are passed by reference, and consumed from key vault. - internal VirtualMachineScaleSetExtensionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, IList provisionAfterExtensions, bool? suppressFailures, BinaryData protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) + internal VirtualMachineScaleSetExtensionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, IList provisionAfterExtensions, bool? suppressFailures, KeyVaultSecretReference protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) { ForceUpdateTag = forceUpdateTag; Publisher = publisher; @@ -134,36 +134,7 @@ internal VirtualMachineScaleSetExtensionPatch(ResourceIdentifier id, string name public IList ProvisionAfterExtensions { get; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs index 787eeaec3f028..791edc21bc53c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetHardwareProfile.cs @@ -16,13 +16,13 @@ public VirtualMachineScaleSetHardwareProfile() } /// Initializes a new instance of VirtualMachineScaleSetHardwareProfile. - /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. + /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. internal VirtualMachineScaleSetHardwareProfile(VirtualMachineSizeProperties vmSizeProperties) { VmSizeProperties = vmSizeProperties; } - /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. + /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. public VirtualMachineSizeProperties VmSizeProperties { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs index c26eb47e0b104..d791f23cda89a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableAcceleratedNetworking"); writer.WriteBooleanValue(EnableAcceleratedNetworking.Value); } + if (Optional.IsDefined(DisableTcpStateTracking)) + { + writer.WritePropertyName("disableTcpStateTracking"); + writer.WriteBooleanValue(DisableTcpStateTracking.Value); + } if (Optional.IsDefined(EnableFpga)) { writer.WritePropertyName("enableFpga"); @@ -81,6 +86,7 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac Optional id = default; Optional primary = default; Optional enableAcceleratedNetworking = default; + Optional disableTcpStateTracking = default; Optional enableFpga = default; Optional networkSecurityGroup = default; Optional dnsSettings = default; @@ -133,6 +139,16 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac enableAcceleratedNetworking = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("disableTcpStateTracking")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + disableTcpStateTracking = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("enableFpga")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -202,7 +218,7 @@ internal static VirtualMachineScaleSetNetworkConfiguration DeserializeVirtualMac continue; } } - return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); + return new VirtualMachineScaleSetNetworkConfiguration(id.Value, name, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs index 38d01ec13ceb7..2987d7e3452ad 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -34,17 +34,19 @@ public VirtualMachineScaleSetNetworkConfiguration(string name) /// The network configuration name. /// Specifies the primary network interface in case the virtual machine has more than 1 network interface. /// Specifies whether the network interface is accelerated networking-enabled. + /// Specifies whether the network interface is disabled for tcp state tracking. /// Specifies whether the network interface is FPGA networking-enabled. /// The network security group. /// The dns settings to be applied on the network interfaces. /// Specifies the IP configurations of the network interface. /// Whether IP forwarding enabled on this NIC. /// Specify what happens to the network interface when the VM is deleted. - internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) + internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) { Name = name; Primary = primary; EnableAcceleratedNetworking = enableAcceleratedNetworking; + DisableTcpStateTracking = disableTcpStateTracking; EnableFpga = enableFpga; NetworkSecurityGroup = networkSecurityGroup; DnsSettings = dnsSettings; @@ -59,6 +61,8 @@ internal VirtualMachineScaleSetNetworkConfiguration(ResourceIdentifier id, strin public bool? Primary { get; set; } /// Specifies whether the network interface is accelerated networking-enabled. public bool? EnableAcceleratedNetworking { get; set; } + /// Specifies whether the network interface is disabled for tcp state tracking. + public bool? DisableTcpStateTracking { get; set; } /// Specifies whether the network interface is FPGA networking-enabled. public bool? EnableFpga { get; set; } /// The network security group. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs index f6252d7ee61c7..f766253269a39 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetOSDisk.cs @@ -28,7 +28,7 @@ public VirtualMachineScaleSetOSDisk(DiskCreateOptionType createOption) /// Specifies whether writeAccelerator should be enabled or disabled on the disk. /// Specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. /// Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - /// Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. /// This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. /// Specifies information about the unmanaged user image to base the scale set on. /// Specifies the container urls that are used to store operating system disks for the scale set. @@ -59,7 +59,7 @@ internal VirtualMachineScaleSetOSDisk(string name, CachingType? caching, bool? w public DiskCreateOptionType CreateOption { get; set; } /// Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. public DiffDiskSettings DiffDiskSettings { get; set; } - /// Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. public int? DiskSizeGB { get; set; } /// This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. public SupportedOperatingSystemType? OSType { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.Serialization.cs index c0a3f665939c1..674bf9f8047ab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetReimageContent.Serialization.cs @@ -30,6 +30,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("tempDisk"); writer.WriteBooleanValue(TempDisk.Value); } + if (Optional.IsDefined(ExactVersion)) + { + writer.WritePropertyName("exactVersion"); + writer.WriteStringValue(ExactVersion); + } + if (Optional.IsDefined(OSProfile)) + { + writer.WritePropertyName("osProfile"); + writer.WriteObjectValue(OSProfile); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.Serialization.cs index 6683dfe8bfb06..70a41ae4d05ea 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(DiskControllerType)) + { + writer.WritePropertyName("diskControllerType"); + writer.WriteStringValue(DiskControllerType); + } writer.WriteEndObject(); } @@ -44,6 +49,7 @@ internal static VirtualMachineScaleSetStorageProfile DeserializeVirtualMachineSc Optional imageReference = default; Optional osDisk = default; Optional> dataDisks = default; + Optional diskControllerType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("imageReference")) @@ -81,8 +87,13 @@ internal static VirtualMachineScaleSetStorageProfile DeserializeVirtualMachineSc dataDisks = array; continue; } + if (property.NameEquals("diskControllerType")) + { + diskControllerType = property.Value.GetString(); + continue; + } } - return new VirtualMachineScaleSetStorageProfile(imageReference.Value, osDisk.Value, Optional.ToList(dataDisks)); + return new VirtualMachineScaleSetStorageProfile(imageReference.Value, osDisk.Value, Optional.ToList(dataDisks), diskControllerType.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs index 07d3f8561aef3..6395aad16fe2b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs @@ -23,11 +23,13 @@ public VirtualMachineScaleSetStorageProfile() /// Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. /// Specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). /// Specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). - internal VirtualMachineScaleSetStorageProfile(ImageReference imageReference, VirtualMachineScaleSetOSDisk osDisk, IList dataDisks) + /// + internal VirtualMachineScaleSetStorageProfile(ImageReference imageReference, VirtualMachineScaleSetOSDisk osDisk, IList dataDisks, string diskControllerType) { ImageReference = imageReference; OSDisk = osDisk; DataDisks = dataDisks; + DiskControllerType = diskControllerType; } /// Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. @@ -36,5 +38,7 @@ internal VirtualMachineScaleSetStorageProfile(ImageReference imageReference, Vir public VirtualMachineScaleSetOSDisk OSDisk { get; set; } /// Specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). public IList DataDisks { get; } + /// Gets or sets the disk controller type. + public string DiskControllerType { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs index e5b74e33eb0d9..4f265209d6285 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.Serialization.cs @@ -39,6 +39,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("enableAcceleratedNetworking"); writer.WriteBooleanValue(EnableAcceleratedNetworking.Value); } + if (Optional.IsDefined(DisableTcpStateTracking)) + { + writer.WritePropertyName("disableTcpStateTracking"); + writer.WriteBooleanValue(DisableTcpStateTracking.Value); + } if (Optional.IsDefined(EnableFpga)) { writer.WritePropertyName("enableFpga"); @@ -84,6 +89,7 @@ internal static VirtualMachineScaleSetUpdateNetworkConfiguration DeserializeVirt Optional id = default; Optional primary = default; Optional enableAcceleratedNetworking = default; + Optional disableTcpStateTracking = default; Optional enableFpga = default; Optional networkSecurityGroup = default; Optional dnsSettings = default; @@ -136,6 +142,16 @@ internal static VirtualMachineScaleSetUpdateNetworkConfiguration DeserializeVirt enableAcceleratedNetworking = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("disableTcpStateTracking")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + disableTcpStateTracking = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("enableFpga")) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -205,7 +221,7 @@ internal static VirtualMachineScaleSetUpdateNetworkConfiguration DeserializeVirt continue; } } - return new VirtualMachineScaleSetUpdateNetworkConfiguration(id.Value, name.Value, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); + return new VirtualMachineScaleSetUpdateNetworkConfiguration(id.Value, name.Value, Optional.ToNullable(primary), Optional.ToNullable(enableAcceleratedNetworking), Optional.ToNullable(disableTcpStateTracking), Optional.ToNullable(enableFpga), networkSecurityGroup, dnsSettings.Value, Optional.ToList(ipConfigurations), Optional.ToNullable(enableIPForwarding), Optional.ToNullable(deleteOption)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs index 891503c6af3fb..31cb23e19acb8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs @@ -25,17 +25,19 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration() /// The network configuration name. /// Whether this is a primary NIC on a virtual machine. /// Specifies whether the network interface is accelerated networking-enabled. + /// Specifies whether the network interface is disabled for tcp state tracking. /// Specifies whether the network interface is FPGA networking-enabled. /// The network security group. /// The dns settings to be applied on the network interfaces. /// The virtual machine scale set IP Configuration. /// Whether IP forwarding enabled on this NIC. /// Specify what happens to the network interface when the VM is deleted. - internal VirtualMachineScaleSetUpdateNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) + internal VirtualMachineScaleSetUpdateNetworkConfiguration(ResourceIdentifier id, string name, bool? primary, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableFpga, WritableSubResource networkSecurityGroup, VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings, IList ipConfigurations, bool? enableIPForwarding, ComputeDeleteOption? deleteOption) : base(id) { Name = name; Primary = primary; EnableAcceleratedNetworking = enableAcceleratedNetworking; + DisableTcpStateTracking = disableTcpStateTracking; EnableFpga = enableFpga; NetworkSecurityGroup = networkSecurityGroup; DnsSettings = dnsSettings; @@ -50,6 +52,8 @@ internal VirtualMachineScaleSetUpdateNetworkConfiguration(ResourceIdentifier id, public bool? Primary { get; set; } /// Specifies whether the network interface is accelerated networking-enabled. public bool? EnableAcceleratedNetworking { get; set; } + /// Specifies whether the network interface is disabled for tcp state tracking. + public bool? DisableTcpStateTracking { get; set; } /// Specifies whether the network interface is FPGA networking-enabled. public bool? EnableFpga { get; set; } /// The network security group. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs index a724b2967d104..4acee120c8ce8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateOSDisk.cs @@ -24,7 +24,7 @@ public VirtualMachineScaleSetUpdateOSDisk() public CachingType? Caching { get; set; } /// Specifies whether writeAccelerator should be enabled or disabled on the disk. public bool? WriteAcceleratorEnabled { get; set; } - /// Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB. + /// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. public int? DiskSizeGB { get; set; } /// The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. internal VirtualHardDisk Image { get; set; } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.Serialization.cs index 002766aa66e69..9fba74be58b83 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.Serialization.cs @@ -35,6 +35,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(DiskControllerType)) + { + writer.WritePropertyName("diskControllerType"); + writer.WriteStringValue(DiskControllerType); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs index 910fcf3cd1491..156afe528051c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateStorageProfile.cs @@ -25,5 +25,7 @@ public VirtualMachineScaleSetUpdateStorageProfile() public VirtualMachineScaleSetUpdateOSDisk OSDisk { get; set; } /// The data disks. public IList DataDisks { get; } + /// Gets or sets the disk controller type. + public string DiskControllerType { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.Serialization.cs index e944f7a25dd16..5253a7ce1407e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.Serialization.cs @@ -65,6 +65,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("userData"); writer.WriteStringValue(UserData); } + if (Optional.IsDefined(HardwareProfile)) + { + writer.WritePropertyName("hardwareProfile"); + writer.WriteObjectValue(HardwareProfile); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.cs index 3bc8841f36db5..c0b853af50920 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVmProfile.cs @@ -71,5 +71,18 @@ public TerminateNotificationProfile ScheduledEventsTerminateNotificationProfile /// UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. public string UserData { get; set; } + /// Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2021-11-01. + internal VirtualMachineScaleSetHardwareProfile HardwareProfile { get; set; } + /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. + public VirtualMachineSizeProperties HardwareVmSizeProperties + { + get => HardwareProfile is null ? default : HardwareProfile.VmSizeProperties; + set + { + if (HardwareProfile is null) + HardwareProfile = new VirtualMachineScaleSetHardwareProfile(); + HardwareProfile.VmSizeProperties = value; + } + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionData.Serialization.cs index c9f43992dbc78..29ac4194f4d78 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionData.Serialization.cs @@ -81,11 +81,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -108,7 +104,7 @@ internal static VirtualMachineScaleSetVmExtensionData DeserializeVirtualMachineS Optional provisioningState = default; Optional instanceView = default; Optional suppressFailures = default; - Optional protectedSettingsFromKeyVault = default; + Optional protectedSettingsFromKeyVault = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -237,7 +233,7 @@ internal static VirtualMachineScaleSetVmExtensionData DeserializeVirtualMachineS property0.ThrowNonNullablePropertyIsNull(); continue; } - protectedSettingsFromKeyVault = BinaryData.FromString(property0.Value.GetRawText()); + protectedSettingsFromKeyVault = KeyVaultSecretReference.DeserializeKeyVaultSecretReference(property0.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.Serialization.cs index 68a711adc572e..8087908018309 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) { writer.WritePropertyName("protectedSettingsFromKeyVault"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettingsFromKeyVault); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettingsFromKeyVault.ToString()).RootElement); -#endif + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); } writer.WriteEndObject(); writer.WriteEndObject(); @@ -100,7 +96,7 @@ internal static VirtualMachineScaleSetVmExtensionPatch DeserializeVirtualMachine Optional settings = default; Optional protectedSettings = default; Optional suppressFailures = default; - Optional protectedSettingsFromKeyVault = default; + Optional protectedSettingsFromKeyVault = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -214,7 +210,7 @@ internal static VirtualMachineScaleSetVmExtensionPatch DeserializeVirtualMachine property0.ThrowNonNullablePropertyIsNull(); continue; } - protectedSettingsFromKeyVault = BinaryData.FromString(property0.Value.GetRawText()); + protectedSettingsFromKeyVault = KeyVaultSecretReference.DeserializeKeyVaultSecretReference(property0.Value); continue; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.cs index 63289d86dad2e..56c4d1464c99c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmExtensionPatch.cs @@ -34,7 +34,7 @@ public VirtualMachineScaleSetVmExtensionPatch() /// The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. /// The extensions protected settings that are passed by reference, and consumed from key vault. - internal VirtualMachineScaleSetVmExtensionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, bool? suppressFailures, BinaryData protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) + internal VirtualMachineScaleSetVmExtensionPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, bool? suppressFailures, KeyVaultSecretReference protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) { ForceUpdateTag = forceUpdateTag; Publisher = publisher; @@ -124,36 +124,7 @@ internal VirtualMachineScaleSetVmExtensionPatch(ResourceIdentifier id, string na public BinaryData ProtectedSettings { get; set; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmProfile.cs index 0a09153f26a2c..eab60aa0fa4a7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmProfile.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVmProfile() /// UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. /// Specifies the capacity reservation related details of a scale set. <br><br>Minimum api-version: 2021-04-01. /// Specifies the gallery applications that should be made available to the VM/VMSS. - /// Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2022-03-01. + /// Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2021-11-01. internal VirtualMachineScaleSetVmProfile(VirtualMachineScaleSetOSProfile osProfile, VirtualMachineScaleSetStorageProfile storageProfile, VirtualMachineScaleSetNetworkProfile networkProfile, SecurityProfile securityProfile, DiagnosticsProfile diagnosticsProfile, VirtualMachineScaleSetExtensionProfile extensionProfile, string licenseType, VirtualMachinePriorityType? priority, VirtualMachineEvictionPolicyType? evictionPolicy, BillingProfile billingProfile, ScheduledEventsProfile scheduledEventsProfile, string userData, CapacityReservationProfile capacityReservation, ApplicationProfile applicationProfile, VirtualMachineScaleSetHardwareProfile hardwareProfile) { OSProfile = osProfile; @@ -140,9 +140,9 @@ public IList GalleryApplications } } - /// Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2022-03-01. + /// Specifies the hardware profile related details of a scale set. <br><br>Minimum api-version: 2021-11-01. internal VirtualMachineScaleSetHardwareProfile HardwareProfile { get; set; } - /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2022-03-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. + /// Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. <br><br> Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details. public VirtualMachineSizeProperties HardwareVmSizeProperties { get => HardwareProfile is null ? default : HardwareProfile.VmSizeProperties; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmReimageContent.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmReimageContent.Serialization.cs index 26397d7e2b636..3536994cb17de 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmReimageContent.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetVmReimageContent.Serialization.cs @@ -20,6 +20,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("tempDisk"); writer.WriteBooleanValue(TempDisk.Value); } + if (Optional.IsDefined(ExactVersion)) + { + writer.WritePropertyName("exactVersion"); + writer.WriteStringValue(ExactVersion); + } + if (Optional.IsDefined(OSProfile)) + { + writer.WritePropertyName("osProfile"); + writer.WriteObjectValue(OSProfile); + } writer.WriteEndObject(); } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.Serialization.cs index fa90836ca0ffa..f4988854eb089 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(DiskControllerType)) + { + writer.WritePropertyName("diskControllerType"); + writer.WriteStringValue(DiskControllerType.Value.ToString()); + } writer.WriteEndObject(); } @@ -44,6 +49,7 @@ internal static VirtualMachineStorageProfile DeserializeVirtualMachineStoragePro Optional imageReference = default; Optional osDisk = default; Optional> dataDisks = default; + Optional diskControllerType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("imageReference")) @@ -81,8 +87,18 @@ internal static VirtualMachineStorageProfile DeserializeVirtualMachineStoragePro dataDisks = array; continue; } + if (property.NameEquals("diskControllerType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + diskControllerType = new DiskControllerType(property.Value.GetString()); + continue; + } } - return new VirtualMachineStorageProfile(imageReference.Value, osDisk.Value, Optional.ToList(dataDisks)); + return new VirtualMachineStorageProfile(imageReference.Value, osDisk.Value, Optional.ToList(dataDisks), Optional.ToNullable(diskControllerType)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs index ea9814fb2e4b9..3e9434290f391 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.cs @@ -23,11 +23,13 @@ public VirtualMachineStorageProfile() /// Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. /// Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). /// Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). - internal VirtualMachineStorageProfile(ImageReference imageReference, VirtualMachineOSDisk osDisk, IList dataDisks) + /// Specifies the disk controller type configured for the VM. <br><br>NOTE: This property will be set to the default disk controller type if not specified provided virtual machine is being created as a hyperVGeneration: V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. <br>You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. <br><br> Minimum api-version: 2022-08-01. + internal VirtualMachineStorageProfile(ImageReference imageReference, VirtualMachineOSDisk osDisk, IList dataDisks, DiskControllerType? diskControllerType) { ImageReference = imageReference; OSDisk = osDisk; DataDisks = dataDisks; + DiskControllerType = diskControllerType; } /// Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. @@ -36,5 +38,7 @@ internal VirtualMachineStorageProfile(ImageReference imageReference, VirtualMach public VirtualMachineOSDisk OSDisk { get; set; } /// Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview). public IList DataDisks { get; } + /// Specifies the disk controller type configured for the VM. <br><br>NOTE: This property will be set to the default disk controller type if not specified provided virtual machine is being created as a hyperVGeneration: V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. <br>You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. <br><br> Minimum api-version: 2022-08-01. + public DiskControllerType? DiskControllerType { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.Serialization.cs index 37251e2e45c0b..c42e388aa713a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.Serialization.cs @@ -51,6 +51,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("winRM"); writer.WriteObjectValue(WinRM); } + if (Optional.IsDefined(EnableVmAgentPlatformUpdates)) + { + writer.WritePropertyName("enableVMAgentPlatformUpdates"); + writer.WriteBooleanValue(EnableVmAgentPlatformUpdates.Value); + } writer.WriteEndObject(); } @@ -62,6 +67,7 @@ internal static WindowsConfiguration DeserializeWindowsConfiguration(JsonElement Optional> additionalUnattendContent = default; Optional patchSettings = default; Optional winRM = default; + Optional enableVmAgentPlatformUpdates = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("provisionVMAgent")) @@ -124,8 +130,18 @@ internal static WindowsConfiguration DeserializeWindowsConfiguration(JsonElement winRM = WinRMConfiguration.DeserializeWinRMConfiguration(property.Value); continue; } + if (property.NameEquals("enableVMAgentPlatformUpdates")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + enableVmAgentPlatformUpdates = property.Value.GetBoolean(); + continue; + } } - return new WindowsConfiguration(Optional.ToNullable(provisionVmAgent), Optional.ToNullable(enableAutomaticUpdates), timeZone.Value, Optional.ToList(additionalUnattendContent), patchSettings.Value, winRM.Value); + return new WindowsConfiguration(Optional.ToNullable(provisionVmAgent), Optional.ToNullable(enableAutomaticUpdates), timeZone.Value, Optional.ToList(additionalUnattendContent), patchSettings.Value, winRM.Value, Optional.ToNullable(enableVmAgentPlatformUpdates)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs index aec43eeb1a526..c2c7ed29d9b23 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/WindowsConfiguration.cs @@ -26,7 +26,8 @@ public WindowsConfiguration() /// Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. /// [Preview Feature] Specifies settings related to VM Guest Patching on Windows. /// Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. - internal WindowsConfiguration(bool? provisionVmAgent, bool? enableAutomaticUpdates, string timeZone, IList additionalUnattendContent, PatchSettings patchSettings, WinRMConfiguration winRM) + /// Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false. + internal WindowsConfiguration(bool? provisionVmAgent, bool? enableAutomaticUpdates, string timeZone, IList additionalUnattendContent, PatchSettings patchSettings, WinRMConfiguration winRM, bool? enableVmAgentPlatformUpdates) { ProvisionVmAgent = provisionVmAgent; EnableAutomaticUpdates = enableAutomaticUpdates; @@ -34,6 +35,7 @@ internal WindowsConfiguration(bool? provisionVmAgent, bool? enableAutomaticUpdat AdditionalUnattendContent = additionalUnattendContent; PatchSettings = patchSettings; WinRM = winRM; + EnableVmAgentPlatformUpdates = enableVmAgentPlatformUpdates; } /// Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later. @@ -58,5 +60,8 @@ public IList WinRMListeners return WinRM.Listeners; } } + + /// Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false. + public bool? EnableVmAgentPlatformUpdates { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs index e213a2951b857..a7232bf13e667 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/AvailabilitySetsRestOperations.cs @@ -33,7 +33,7 @@ public AvailabilitySetsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs index 66f5c9c69d7f0..99d58aece4fef 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationGroupsRestOperations.cs @@ -33,7 +33,7 @@ public CapacityReservationGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs index 0d1727cdbefc7..3a6c246ac7725 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CapacityReservationsRestOperations.cs @@ -33,7 +33,7 @@ public CapacityReservationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs index 502ee72ba3d20..a0c5e45f0f72a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleriesRestOperations.cs @@ -32,7 +32,7 @@ public CommunityGalleriesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs index c723cb1dc1680..546add324c4b9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImageVersionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs index 1ecc9ab40c740..65b4b911949bd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CommunityGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public CommunityGalleryImagesRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs index 515dddbd1e1e0..1d7518f9f3911 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostGroupsRestOperations.cs @@ -33,7 +33,7 @@ public DedicatedHostGroupsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs index 1567acfee1139..7b800812ef404 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DedicatedHostsRestOperations.cs @@ -33,7 +33,7 @@ public DedicatedHostsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs index b8649e4dfd897..310fa593bddf0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskAccessesRestOperations.cs @@ -33,7 +33,7 @@ public DiskAccessesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-02"; + _apiVersion = apiVersion ?? "2022-07-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs index 30aedf75397cf..b4aadb02adf00 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskEncryptionSetsRestOperations.cs @@ -33,7 +33,7 @@ public DiskEncryptionSetsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-02"; + _apiVersion = apiVersion ?? "2022-07-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs index 07abfc317db78..a4d0b2a0c57cd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DiskRestorePointRestOperations.cs @@ -33,7 +33,7 @@ public DiskRestorePointRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-02"; + _apiVersion = apiVersion ?? "2022-07-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs index 6926688bff07e..f1701b673255a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/DisksRestOperations.cs @@ -33,7 +33,7 @@ public DisksRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-02"; + _apiVersion = apiVersion ?? "2022-07-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs index 18698ed3dbbd2..72e0720cc9c65 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleriesRestOperations.cs @@ -33,7 +33,7 @@ public GalleriesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs index d9c78751a26a1..921a082f3e458 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs index dbe6512d372f8..f9138010cee58 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryApplicationsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryApplicationsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs index 3ef802b14a836..b795a30ec815a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImageVersionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs index 4ec3e22391890..a925633fbe46c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public GalleryImagesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs index e2d42dc52cde9..1bf4fcfbabde7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/GallerySharingProfileRestOperations.cs @@ -32,7 +32,7 @@ public GallerySharingProfileRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs index 4a16271b80cbb..53954b64f7a1f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ImagesRestOperations.cs @@ -33,7 +33,7 @@ public ImagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs index 140bde2df7436..e5fead7fb0daf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/LogAnalyticsRestOperations.cs @@ -32,7 +32,7 @@ public LogAnalyticsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs index e5642b53b50e4..73529eb91e5e5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/ProximityPlacementGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ProximityPlacementGroupsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs index 71b616f3593fc..374b3a5c1dc68 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointCollectionsRestOperations.cs @@ -33,7 +33,7 @@ public RestorePointCollectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs index 47b087448f556..c0ed338528b56 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/RestorePointsRestOperations.cs @@ -33,7 +33,7 @@ public RestorePointsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs index 3e0f9eb695989..c00c1001b1548 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleriesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleriesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs index fe49e121d3d6d..18630dfac577a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImageVersionsRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImageVersionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs index ca30478757ae3..fa8066f70fd26 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SharedGalleryImagesRestOperations.cs @@ -33,7 +33,7 @@ public SharedGalleryImagesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-03"; + _apiVersion = apiVersion ?? "2022-03-03"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs index 1defa0a1321ca..7b9c11a5a1665 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SnapshotsRestOperations.cs @@ -33,7 +33,7 @@ public SnapshotsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-02"; + _apiVersion = apiVersion ?? "2022-07-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs index 3eb99e1f7b30c..555f1bc4116c2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/SshPublicKeysRestOperations.cs @@ -33,7 +33,7 @@ public SshPublicKeysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs index e08fd35e8fb35..4fe22233e8da0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/UsageRestOperations.cs @@ -33,7 +33,7 @@ public UsageRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs index 9e44f03efca44..768149a1fc290 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionImagesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineExtensionImagesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs index b3d9b6c6baa41..1362ac732f870 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineExtensionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs index c2d5edbe99014..1aa0484fd4ede 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesEdgeZoneRestOperations.cs @@ -34,7 +34,7 @@ public VirtualMachineImagesEdgeZoneRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs index 83d21805dfeb1..c822059c21404 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineImagesRestOperations.cs @@ -34,7 +34,7 @@ public VirtualMachineImagesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs index 6eb340d0e8292..4e8566c0dfaac 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineRunCommandsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineRunCommandsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs index 02e9a439e9a9c..dba5b2679b6d7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetExtensionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs index 9c69c42d89cf1..6efa34967f7b7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetRollingUpgradesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualMachineScaleSetRollingUpgradesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs index 3942b333da937..b11407b08ff2c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMExtensionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMExtensionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs index 86e3c5dc42e89..2e04343b802ca 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMRunCommandsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMRunCommandsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs index 0ab5948883b7b..424d03745461f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetVMsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetVMsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs index 3f23b180e0762..f576ca721d6a6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineScaleSetsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineScaleSetsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs index a6cffc3066cbd..0f7d9ef5f9b32 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachineSizesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachineSizesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index c1b30a510baee..3a34a56cb6c2b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualMachinesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-03-01"; + _apiVersion = apiVersion ?? "2022-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -1429,7 +1429,7 @@ internal HttpMessage CreateReimageRequest(string subscriptionId, string resource return message; } - /// Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + /// Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. /// The name of the virtual machine. @@ -1455,7 +1455,7 @@ public async Task ReimageAsync(string subscriptionId, string resourceG } } - /// Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + /// Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// The name of the resource group. /// The name of the virtual machine. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index fbc4d254ef14a..3d89d0c872c66 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs @@ -35,7 +35,9 @@ internal SharedGalleryImageData() /// A list of gallery image features. /// Describes the gallery image definition purchase plan. This is used by marketplace images. /// The architecture of the image. Applicable to OS disks only. - internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture) : base(name, location, uniqueId) + /// Privacy statement uri for the current community gallery image. + /// End-user license agreement for the current community gallery image. + internal SharedGalleryImageData(string name, AzureLocation? location, string uniqueId, SupportedOperatingSystemType? osType, OperatingSystemStateType? osState, DateTimeOffset? endOfLifeOn, GalleryImageIdentifier identifier, RecommendedMachineConfiguration recommended, Disallowed disallowed, HyperVGeneration? hyperVGeneration, IReadOnlyList features, ImagePurchasePlan purchasePlan, ArchitectureType? architecture, Uri privacyStatementUri, string eula) : base(name, location, uniqueId) { OSType = osType; OSState = osState; @@ -47,6 +49,8 @@ internal SharedGalleryImageData(string name, AzureLocation? location, string uni Features = features; PurchasePlan = purchasePlan; Architecture = architecture; + PrivacyStatementUri = privacyStatementUri; + Eula = eula; } /// This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. @@ -75,6 +79,10 @@ public IList DisallowedDiskTypes public ImagePurchasePlan PurchasePlan { get; } /// The architecture of the image. Applicable to OS disks only. public ArchitectureType? Architecture { get; } + /// Privacy statement uri for the current community gallery image. + public Uri PrivacyStatementUri { get; } + /// End-user license agreement for the current community gallery image. + public string Eula { get; } /// The resource identifier. public ResourceIdentifier Id { get; internal set; } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SnapshotData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SnapshotData.cs index 24915f03e4297..0756038ca0064 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SnapshotData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SnapshotData.cs @@ -46,6 +46,7 @@ public SnapshotData(AzureLocation location) : base(location) /// Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. /// The disk provisioning state. /// Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. + /// Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id. /// Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. /// Policy for accessing the disk via network. /// ARM id of the DiskAccess resource for using private endpoints on disks. @@ -55,7 +56,7 @@ public SnapshotData(AzureLocation location) : base(location) /// Percentage complete for the background copy when a resource is created via the CopyStart operation. /// Indicates the error details if the background copy of a resource created via the CopyStart operation fails. /// Additional authentication requirements when exporting or uploading to a disk or snapshot. - internal SnapshotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, SnapshotSku sku, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, DiskState? diskState, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, bool? incremental, DiskEncryption encryption, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, DiskSecurityProfile securityProfile, bool? supportsHibernation, DiskPublicNetworkAccess? publicNetworkAccess, float? completionPercent, CopyCompletionError copyCompletionError, DataAccessAuthMode? dataAccessAuthMode) : base(id, name, resourceType, systemData, tags, location) + internal SnapshotData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string managedBy, SnapshotSku sku, ExtendedLocation extendedLocation, DateTimeOffset? timeCreated, SupportedOperatingSystemType? osType, HyperVGeneration? hyperVGeneration, DiskPurchasePlan purchasePlan, SupportedCapabilities supportedCapabilities, DiskCreationData creationData, int? diskSizeGB, long? diskSizeBytes, DiskState? diskState, string uniqueId, EncryptionSettingsGroup encryptionSettingsGroup, string provisioningState, bool? incremental, string incrementalSnapshotFamilyId, DiskEncryption encryption, NetworkAccessPolicy? networkAccessPolicy, ResourceIdentifier diskAccessId, DiskSecurityProfile securityProfile, bool? supportsHibernation, DiskPublicNetworkAccess? publicNetworkAccess, float? completionPercent, CopyCompletionError copyCompletionError, DataAccessAuthMode? dataAccessAuthMode) : base(id, name, resourceType, systemData, tags, location) { ManagedBy = managedBy; Sku = sku; @@ -73,6 +74,7 @@ internal SnapshotData(ResourceIdentifier id, string name, ResourceType resourceT EncryptionSettingsGroup = encryptionSettingsGroup; ProvisioningState = provisioningState; Incremental = incremental; + IncrementalSnapshotFamilyId = incrementalSnapshotFamilyId; Encryption = encryption; NetworkAccessPolicy = networkAccessPolicy; DiskAccessId = diskAccessId; @@ -116,6 +118,8 @@ internal SnapshotData(ResourceIdentifier id, string name, ResourceType resourceT public string ProvisioningState { get; } /// Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. public bool? Incremental { get; set; } + /// Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id. + public string IncrementalSnapshotFamilyId { get; } /// Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. public DiskEncryption Encryption { get; set; } /// Policy for accessing the disk via network. diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineData.cs index 7199a26f8d95c..c6814af4c7d34 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineData.cs @@ -62,7 +62,7 @@ public VirtualMachineData(AzureLocation location) : base(location) /// UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01. /// Specifies information about the capacity reservation that is used to allocate virtual machine. <br><br>Minimum api-version: 2021-04-01. /// Specifies the gallery applications that should be made available to the VM/VMSS. - /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. internal VirtualMachineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputePlan plan, IReadOnlyList resources, ManagedServiceIdentity identity, IList zones, ExtendedLocation extendedLocation, VirtualMachineHardwareProfile hardwareProfile, VirtualMachineStorageProfile storageProfile, AdditionalCapabilities additionalCapabilities, VirtualMachineOSProfile osProfile, VirtualMachineNetworkProfile networkProfile, SecurityProfile securityProfile, DiagnosticsProfile diagnosticsProfile, WritableSubResource availabilitySet, WritableSubResource virtualMachineScaleSet, WritableSubResource proximityPlacementGroup, VirtualMachinePriorityType? priority, VirtualMachineEvictionPolicyType? evictionPolicy, BillingProfile billingProfile, WritableSubResource host, WritableSubResource hostGroup, string provisioningState, VirtualMachineInstanceView instanceView, string licenseType, string vmId, string extensionsTimeBudget, int? platformFaultDomain, ScheduledEventsProfile scheduledEventsProfile, string userData, CapacityReservationProfile capacityReservation, ApplicationProfile applicationProfile, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) { Plan = plan; @@ -277,7 +277,7 @@ public IList GalleryApplications } } - /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the time at which the Virtual Machine resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionData.cs index 1d614d96a9790..41cc2e8ea6e87 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionData.cs @@ -41,7 +41,7 @@ public VirtualMachineExtensionData(AzureLocation location) : base(location) /// The virtual machine extension instance view. /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. /// The extensions protected settings that are passed by reference, and consumed from key vault. - internal VirtualMachineExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, VirtualMachineExtensionInstanceView instanceView, bool? suppressFailures, BinaryData protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData, tags, location) + internal VirtualMachineExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, VirtualMachineExtensionInstanceView instanceView, bool? suppressFailures, KeyVaultSecretReference protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData, tags, location) { ForceUpdateTag = forceUpdateTag; Publisher = publisher; @@ -137,36 +137,7 @@ internal VirtualMachineExtensionData(ResourceIdentifier id, string name, Resourc public VirtualMachineExtensionInstanceView InstanceView { get; set; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs index a15e261ce3fdb..78422f23ac59d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineResource.cs @@ -902,7 +902,7 @@ public virtual ArmOperation Redeploy(WaitUntil waitUntil, CancellationToken canc } /// - /// Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + /// Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage /// Operation Id: VirtualMachines_Reimage /// @@ -929,7 +929,7 @@ public virtual async Task ReimageAsync(WaitUntil waitUntil, Virtua } /// - /// Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + /// Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage. /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage /// Operation Id: VirtualMachines_Reimage /// diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetData.cs index 00a359297061c..f86eb838a416a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetData.cs @@ -52,8 +52,9 @@ public VirtualMachineScaleSetData(AzureLocation location) : base(location) /// Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. /// Specifies the orchestration mode for the virtual machine scale set. /// Specifies the Spot Restore properties for the virtual machine scale set. - /// Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2022-03-01. - internal VirtualMachineScaleSetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputeSku sku, ComputePlan plan, ManagedServiceIdentity identity, IList zones, ExtendedLocation extendedLocation, VirtualMachineScaleSetUpgradePolicy upgradePolicy, AutomaticRepairsPolicy automaticRepairsPolicy, VirtualMachineScaleSetVmProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVms, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, WritableSubResource proximityPlacementGroup, WritableSubResource hostGroup, AdditionalCapabilities additionalCapabilities, ScaleInPolicy scaleInPolicy, OrchestrationMode? orchestrationMode, SpotRestorePolicy spotRestorePolicy, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) + /// Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. + /// Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2021-11-01. + internal VirtualMachineScaleSetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ComputeSku sku, ComputePlan plan, ManagedServiceIdentity identity, IList zones, ExtendedLocation extendedLocation, VirtualMachineScaleSetUpgradePolicy upgradePolicy, AutomaticRepairsPolicy automaticRepairsPolicy, VirtualMachineScaleSetVmProfile virtualMachineProfile, string provisioningState, bool? overprovision, bool? doNotRunExtensionsOnOverprovisionedVms, string uniqueId, bool? singlePlacementGroup, bool? zoneBalance, int? platformFaultDomainCount, WritableSubResource proximityPlacementGroup, WritableSubResource hostGroup, AdditionalCapabilities additionalCapabilities, ScaleInPolicy scaleInPolicy, OrchestrationMode? orchestrationMode, SpotRestorePolicy spotRestorePolicy, PriorityMixPolicy priorityMixPolicy, DateTimeOffset? timeCreated) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Plan = plan; @@ -76,6 +77,7 @@ internal VirtualMachineScaleSetData(ResourceIdentifier id, string name, Resource ScaleInPolicy = scaleInPolicy; OrchestrationMode = orchestrationMode; SpotRestorePolicy = spotRestorePolicy; + PriorityMixPolicy = priorityMixPolicy; TimeCreated = timeCreated; } @@ -145,7 +147,9 @@ public ResourceIdentifier HostGroupId public OrchestrationMode? OrchestrationMode { get; set; } /// Specifies the Spot Restore properties for the virtual machine scale set. public SpotRestorePolicy SpotRestorePolicy { get; set; } - /// Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2022-03-01. + /// Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. + public PriorityMixPolicy PriorityMixPolicy { get; set; } + /// Specifies the time at which the Virtual Machine Scale Set resource was created.<br><br>Minimum api-version: 2021-11-01. public DateTimeOffset? TimeCreated { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtensionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtensionData.cs index 1b45618294684..cfbe7486fbe5f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtensionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtensionData.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using Azure.Core; +using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute @@ -38,7 +39,7 @@ public VirtualMachineScaleSetExtensionData() /// Collection of extension names after which this extension needs to be provisioned. /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. /// The extensions protected settings that are passed by reference, and consumed from key vault. - internal VirtualMachineScaleSetExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, IList provisionAfterExtensions, bool? suppressFailures, BinaryData protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) + internal VirtualMachineScaleSetExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, IList provisionAfterExtensions, bool? suppressFailures, KeyVaultSecretReference protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) { ForceUpdateTag = forceUpdateTag; Publisher = publisher; @@ -134,36 +135,7 @@ internal VirtualMachineScaleSetExtensionData(ResourceIdentifier id, string name, public IList ProvisionAfterExtensions { get; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmExtensionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmExtensionData.cs index 8d62dec4c0d26..be99c4733365f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmExtensionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVmExtensionData.cs @@ -37,7 +37,7 @@ public VirtualMachineScaleSetVmExtensionData() /// The virtual machine extension instance view. /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. /// The extensions protected settings that are passed by reference, and consumed from key vault. - internal VirtualMachineScaleSetVmExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, VirtualMachineExtensionInstanceView instanceView, bool? suppressFailures, BinaryData protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) + internal VirtualMachineScaleSetVmExtensionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string forceUpdateTag, string publisher, string extensionType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, bool? enableAutomaticUpgrade, BinaryData settings, BinaryData protectedSettings, string provisioningState, VirtualMachineExtensionInstanceView instanceView, bool? suppressFailures, KeyVaultSecretReference protectedSettingsFromKeyVault) : base(id, name, resourceType, systemData) { ForceUpdateTag = forceUpdateTag; Publisher = publisher; @@ -133,36 +133,7 @@ internal VirtualMachineScaleSetVmExtensionData(ResourceIdentifier id, string nam public VirtualMachineExtensionInstanceView InstanceView { get; set; } /// Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. public bool? SuppressFailures { get; set; } - /// - /// The extensions protected settings that are passed by reference, and consumed from key vault - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData ProtectedSettingsFromKeyVault { get; set; } + /// The extensions protected settings that are passed by reference, and consumed from key vault. + public KeyVaultSecretReference ProtectedSettingsFromKeyVault { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index f9abee8d32f1d..9319f758049a1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -10,7 +10,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Compute namespace: Azure.ResourceManager.Compute -require: https://github.com/Azure/azure-rest-api-specs/blob/261132757bc9806f4aa90bd5b176ecfa6a447726/specification/compute/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/compute/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true