From d95b863528fa7914c9f218112cc9decb96eef575 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 10 Nov 2022 20:56:43 +0000 Subject: [PATCH] CodeGen from PR 21232 in Azure/azure-rest-api-specs Merge 45b6b9e794dcf433e1952aa91bee4aaf516c0422 into 5594dbe2bbc025bb042dee169a7ab3959853dc6d --- ....ResourceManager.Compute.netstandard2.0.cs | 240 +++++++++++++++--- .../src/Generated/CapacityReservationData.cs | 10 +- .../src/Generated/CloudServiceData.cs | 125 +-------- .../src/Generated/CloudServiceOSFamilyData.cs | 20 +- .../Generated/CloudServiceOSVersionData.cs | 31 +-- .../src/Generated/CloudServiceRoleData.cs | 13 +- .../Generated/CloudServiceRoleInstanceData.cs | 21 +- .../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 +- .../Models/CloudServiceData.Serialization.cs | 227 ++++------------- .../CloudServiceExtension.Serialization.cs | 161 +----------- .../Generated/Models/CloudServiceExtension.cs | 121 +-------- ...erviceExtensionProperties.Serialization.cs | 179 +++++++++++++ .../Models/CloudServiceExtensionProperties.cs | 139 ++++++++++ ...LoadBalancerConfiguration.Serialization.cs | 34 +-- .../CloudServiceLoadBalancerConfiguration.cs | 25 +- .../CloudServiceOSFamilyData.Serialization.cs | 54 +--- ...CloudServiceOSVersionData.Serialization.cs | 72 +----- .../CloudServiceProperties.Serialization.cs | 197 ++++++++++++++ .../Models/CloudServiceProperties.cs | 140 ++++++++++ .../CloudServiceRoleData.Serialization.cs | 31 +-- ...udServiceRoleInstanceData.Serialization.cs | 47 +--- ...loudServiceRoleProperties.Serialization.cs | 29 +++ .../Models/CloudServiceRoleProperties.cs | 28 ++ .../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 | 53 ++++ ...tionCustomActionParameter.Serialization.cs | 91 +++++++ ...GalleryApplicationCustomActionParameter.cs | 52 ++++ ...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 +- ...erConfigurationProperties.Serialization.cs | 48 ++++ .../LoadBalancerConfigurationProperties.cs | 38 +++ ...erFrontendIPConfiguration.Serialization.cs | 59 +---- .../LoadBalancerFrontendIPConfiguration.cs | 53 +--- ...IPConfigurationProperties.Serialization.cs | 73 ++++++ ...lancerFrontendIPConfigurationProperties.cs | 63 +++++ .../Models/ManagedDiskData.Serialization.cs | 29 ++- .../Models/ManagedDiskPatch.Serialization.cs | 5 + .../src/Generated/Models/ManagedDiskPatch.cs | 2 + .../OSFamilyProperties.Serialization.cs | 52 ++++ .../Generated/Models/OSFamilyProperties.cs | 40 +++ .../OSVersionProperties.Serialization.cs | 69 +++++ .../Generated/Models/OSVersionProperties.cs | 48 ++++ .../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 +++ .../RoleInstanceProperties.Serialization.cs | 45 ++++ .../Models/RoleInstanceProperties.cs | 41 +++ .../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 +- ...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 +- ...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 +- ...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 +- ...udServiceOperatingSystemsRestOperations.cs | 2 +- ...CloudServiceRoleInstancesRestOperations.cs | 2 +- .../CloudServiceRolesRestOperations.cs | 2 +- .../CloudServicesRestOperations.cs | 2 +- ...CloudServicesUpdateDomainRestOperations.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 | 2 +- .../src/Generated/SharedGalleryImageData.cs | 10 +- .../src/Generated/SnapshotData.cs | 6 +- .../src/Generated/VirtualMachineData.cs | 4 +- .../Generated/VirtualMachineExtensionData.cs | 35 +-- .../Generated/VirtualMachineScaleSetData.cs | 10 +- .../VirtualMachineScaleSetExtensionData.cs | 36 +-- .../VirtualMachineScaleSetVmExtensionData.cs | 35 +-- .../src/autorest.md | 2 +- 190 files changed, 3320 insertions(+), 1362 deletions(-) create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.cs 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/LoadBalancerConfigurationProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.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 create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.Serialization.cs create mode 100644 sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.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 0c927fddfa7d..0de6cb7a0d70 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; } } @@ -158,18 +159,8 @@ protected CloudServiceCollection() { } public partial class CloudServiceData : Azure.ResourceManager.Models.TrackedResourceData { public CloudServiceData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public bool? AllowModelOverride { get { throw null; } set { } } - public string Configuration { get { throw null; } set { } } - public System.Uri ConfigurationUri { get { throw null; } set { } } - public System.Collections.Generic.IList Extensions { get { throw null; } } - public Azure.ResourceManager.Compute.Models.CloudServiceNetworkProfile NetworkProfile { get { throw null; } set { } } - public System.Collections.Generic.IList OSSecrets { get { throw null; } } - public System.Uri PackageUri { get { throw null; } set { } } - public string ProvisioningState { get { throw null; } } - public System.Collections.Generic.IList Roles { get { throw null; } } - public bool? StartCloudService { get { throw null; } set { } } - public string UniqueId { get { throw null; } } - public Azure.ResourceManager.Compute.Models.CloudServiceUpgradeMode? UpgradeMode { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.CloudServiceProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } } public partial class CloudServiceOSFamilyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -187,11 +178,9 @@ protected CloudServiceOSFamilyCollection() { } public partial class CloudServiceOSFamilyData : Azure.ResourceManager.Models.ResourceData { internal CloudServiceOSFamilyData() { } - public string Label { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public string OSFamilyName { get { throw null; } } + public Azure.ResourceManager.Compute.Models.OSFamilyProperties Properties { get { throw null; } } public string ResourceName { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Versions { get { throw null; } } } public partial class CloudServiceOSFamilyResource : Azure.ResourceManager.ArmResource { @@ -219,13 +208,8 @@ protected CloudServiceOSVersionCollection() { } public partial class CloudServiceOSVersionData : Azure.ResourceManager.Models.ResourceData { internal CloudServiceOSVersionData() { } - public string Family { get { throw null; } } - public string FamilyLabel { get { throw null; } } - public bool? IsActive { get { throw null; } } - public bool? IsDefault { get { throw null; } } - public string Label { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public string Version { get { throw null; } } + public Azure.ResourceManager.Compute.Models.OSVersionProperties Properties { get { throw null; } } } public partial class CloudServiceOSVersionResource : Azure.ResourceManager.ArmResource { @@ -299,9 +283,9 @@ protected CloudServiceRoleCollection() { } public partial class CloudServiceRoleData : Azure.ResourceManager.Models.ResourceData { internal CloudServiceRoleData() { } + public string CloudServiceRoleUniqueId { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } public Azure.ResourceManager.Compute.Models.CloudServiceRoleSku Sku { get { throw null; } } - public string UniqueId { get { throw null; } } } public partial class CloudServiceRoleInstanceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -319,9 +303,8 @@ protected CloudServiceRoleInstanceCollection() { } public partial class CloudServiceRoleInstanceData : Azure.ResourceManager.Models.ResourceData { internal CloudServiceRoleInstanceData() { } - public Azure.ResourceManager.Compute.Models.RoleInstanceView InstanceView { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } - public System.Collections.Generic.IReadOnlyList NetworkInterfaces { get { throw null; } } + public Azure.ResourceManager.Compute.Models.RoleInstanceProperties Properties { get { throw null; } } public Azure.ResourceManager.Compute.Models.InstanceSku Sku { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } } @@ -994,6 +977,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 +1026,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 +1154,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 +1224,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 +1244,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 +1451,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 +1551,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 +1705,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 +1924,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 +1962,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 +2151,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 +2438,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 +2466,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,13 +2474,24 @@ 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() { } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.CloudServiceExtensionProperties Properties { get { throw null; } set { } } + } + public partial class CloudServiceExtensionProperties + { + public CloudServiceExtensionProperties() { } public bool? AutoUpgradeMinorVersion { get { throw null; } set { } } public string CloudServiceExtensionPropertiesType { get { throw null; } set { } } public string ForceUpdateTag { get { throw null; } set { } } - public string Name { get { throw null; } set { } } public System.BinaryData ProtectedSettings { get { throw null; } set { } } public Azure.ResourceManager.Compute.Models.CloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } @@ -2506,9 +2510,9 @@ internal CloudServiceInstanceView() { } } public partial class CloudServiceLoadBalancerConfiguration { - public CloudServiceLoadBalancerConfiguration(string name, System.Collections.Generic.IEnumerable frontendIPConfigurations) { } - public System.Collections.Generic.IList FrontendIPConfigurations { get { throw null; } } + public CloudServiceLoadBalancerConfiguration(string name, Azure.ResourceManager.Compute.Models.LoadBalancerConfigurationProperties properties) { } public Azure.Core.ResourceIdentifier Id { get { throw null; } set { } } + public System.Collections.Generic.IList LoadBalancerFrontendIPConfigurations { get { throw null; } set { } } public string Name { get { throw null; } set { } } } public partial class CloudServiceNetworkProfile @@ -2523,6 +2527,22 @@ public partial class CloudServicePatch public CloudServicePatch() { } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } + public partial class CloudServiceProperties + { + public CloudServiceProperties() { } + public bool? AllowModelOverride { get { throw null; } set { } } + public string Configuration { get { throw null; } set { } } + public System.Uri ConfigurationUri { get { throw null; } set { } } + public System.Collections.Generic.IList Extensions { get { throw null; } } + public Azure.ResourceManager.Compute.Models.CloudServiceNetworkProfile NetworkProfile { get { throw null; } set { } } + public System.Collections.Generic.IList OSSecrets { get { throw null; } } + public System.Uri PackageUri { get { throw null; } set { } } + public string ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Roles { get { throw null; } } + public bool? StartCloudService { get { throw null; } set { } } + public string UniqueId { get { throw null; } } + public Azure.ResourceManager.Compute.Models.CloudServiceUpgradeMode? UpgradeMode { get { throw null; } set { } } + } public partial class CloudServiceRoleProfileProperties { public CloudServiceRoleProfileProperties() { } @@ -3091,6 +3111,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 +3180,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 +3444,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 +3482,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 +3492,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 +3510,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 +3535,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 +3623,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 +3631,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 +3932,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; } } @@ -3920,10 +4008,20 @@ public LinuxPatchSettings() { } public static bool operator !=(Azure.ResourceManager.Compute.Models.LinuxVmGuestPatchMode left, Azure.ResourceManager.Compute.Models.LinuxVmGuestPatchMode right) { throw null; } public override string ToString() { throw null; } } + public partial class LoadBalancerConfigurationProperties + { + public LoadBalancerConfigurationProperties(System.Collections.Generic.IEnumerable frontendIPConfigurations) { } + public System.Collections.Generic.IList FrontendIPConfigurations { get { throw null; } } + } public partial class LoadBalancerFrontendIPConfiguration { - public LoadBalancerFrontendIPConfiguration(string name) { } + public LoadBalancerFrontendIPConfiguration(string name, Azure.ResourceManager.Compute.Models.LoadBalancerFrontendIPConfigurationProperties properties) { } public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Compute.Models.LoadBalancerFrontendIPConfigurationProperties Properties { get { throw null; } set { } } + } + public partial class LoadBalancerFrontendIPConfigurationProperties + { + public LoadBalancerFrontendIPConfigurationProperties() { } public string PrivateIPAddress { get { throw null; } set { } } public Azure.Core.ResourceIdentifier PublicIPAddressId { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } @@ -3978,6 +4076,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 +4241,23 @@ public OSDiskImageSecurityProfile() { } public Azure.ResourceManager.Compute.Models.ConfidentialVmEncryptionType? ConfidentialVmEncryptionType { get { throw null; } set { } } public string SecureVmDiskEncryptionSetId { get { throw null; } set { } } } + public partial class OSFamilyProperties + { + internal OSFamilyProperties() { } + public string Label { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Versions { get { throw null; } } + } + public partial class OSVersionProperties + { + internal OSVersionProperties() { } + public string Family { get { throw null; } } + public string FamilyLabel { get { throw null; } } + public bool? IsActive { get { throw null; } } + public bool? IsDefault { get { throw null; } } + public string Label { get { throw null; } } + public string Version { get { throw null; } } + } public partial class OSVersionPropertiesBase { internal OSVersionPropertiesBase() { } @@ -4265,6 +4381,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() { } @@ -4527,6 +4675,12 @@ internal RetrieveBootDiagnosticsDataResult() { } public System.Uri ConsoleScreenshotBlobUri { get { throw null; } } public System.Uri SerialConsoleLogBlobUri { get { throw null; } } } + public partial class RoleInstanceProperties + { + internal RoleInstanceProperties() { } + public Azure.ResourceManager.Compute.Models.RoleInstanceView InstanceView { get { throw null; } } + public System.Collections.Generic.IReadOnlyList NetworkInterfaces { get { throw null; } } + } public partial class RoleInstances { public RoleInstances(System.Collections.Generic.IEnumerable roleInstancesValue) { } @@ -4936,6 +5090,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 +5101,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 +5314,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 +5423,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 { } } @@ -5474,7 +5631,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 +5700,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 +5820,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 +5841,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 +5890,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 +5900,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 +5930,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 +6219,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 +6332,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 60143e3180df..5a0f47fd1dbd 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CapacityReservationData.cs @@ -40,16 +40,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; @@ -63,6 +65,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. @@ -71,7 +75,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/CloudServiceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceData.cs index f15c8bf273f2..178b30111e8c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceData.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -20,6 +19,7 @@ public partial class CloudServiceData : TrackedResourceData /// The location. public CloudServiceData(AzureLocation location) : base(location) { + Zones = new ChangeTrackingList(); } /// Initializes a new instance of CloudServiceData. @@ -29,122 +29,17 @@ public CloudServiceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// - /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. - /// This is a write-only property and is not returned in GET calls. - /// - /// Specifies the XML service configuration (.cscfg) for the cloud service. - /// - /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. - /// This is a write-only property and is not returned in GET calls. - /// - /// - /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. - /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. - /// - /// - /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. - /// The default value is `false`. - /// - /// - /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. - /// Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> - /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. - /// - /// Describes the role profile for the cloud service. - /// Describes the OS profile for the cloud service. - /// Network Profile for the cloud service. - /// Describes a cloud service extension profile. - /// The provisioning state, which only appears in the response. - /// The unique identifier for the cloud service. - internal CloudServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, Uri packageUri, string configuration, Uri configurationUri, bool? startCloudService, bool? allowModelOverride, CloudServiceUpgradeMode? upgradeMode, CloudServiceRoleProfile roleProfile, CloudServiceOSProfile osProfile, CloudServiceNetworkProfile networkProfile, CloudServiceExtensionProfile extensionProfile, string provisioningState, string uniqueId) : base(id, name, resourceType, systemData, tags, location) + /// Cloud service properties. + /// List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional. + internal CloudServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, CloudServiceProperties properties, IList zones) : base(id, name, resourceType, systemData, tags, location) { - PackageUri = packageUri; - Configuration = configuration; - ConfigurationUri = configurationUri; - StartCloudService = startCloudService; - AllowModelOverride = allowModelOverride; - UpgradeMode = upgradeMode; - RoleProfile = roleProfile; - OSProfile = osProfile; - NetworkProfile = networkProfile; - ExtensionProfile = extensionProfile; - ProvisioningState = provisioningState; - UniqueId = uniqueId; + Properties = properties; + Zones = zones; } - /// - /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. - /// This is a write-only property and is not returned in GET calls. - /// - public Uri PackageUri { get; set; } - /// Specifies the XML service configuration (.cscfg) for the cloud service. - public string Configuration { get; set; } - /// - /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. - /// This is a write-only property and is not returned in GET calls. - /// - public Uri ConfigurationUri { get; set; } - /// - /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. - /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. - /// - public bool? StartCloudService { get; set; } - /// - /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. - /// The default value is `false`. - /// - public bool? AllowModelOverride { get; set; } - /// - /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. - /// Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> - /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. - /// - public CloudServiceUpgradeMode? UpgradeMode { get; set; } - /// Describes the role profile for the cloud service. - internal CloudServiceRoleProfile RoleProfile { get; set; } - /// List of roles for the cloud service. - public IList Roles - { - get - { - if (RoleProfile is null) - RoleProfile = new CloudServiceRoleProfile(); - return RoleProfile.Roles; - } - } - - /// Describes the OS profile for the cloud service. - internal CloudServiceOSProfile OSProfile { get; set; } - /// Specifies set of certificates that should be installed onto the role instances. - public IList OSSecrets - { - get - { - if (OSProfile is null) - OSProfile = new CloudServiceOSProfile(); - return OSProfile.Secrets; - } - } - - /// Network Profile for the cloud service. - public CloudServiceNetworkProfile NetworkProfile { get; set; } - /// Describes a cloud service extension profile. - internal CloudServiceExtensionProfile ExtensionProfile { get; set; } - /// List of extensions for the cloud service. - public IList Extensions - { - get - { - if (ExtensionProfile is null) - ExtensionProfile = new CloudServiceExtensionProfile(); - return ExtensionProfile.Extensions; - } - } - - /// The provisioning state, which only appears in the response. - public string ProvisioningState { get; } - /// The unique identifier for the cloud service. - public string UniqueId { get; } + /// Cloud service properties. + public CloudServiceProperties Properties { get; set; } + /// List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional. + public IList Zones { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSFamilyData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSFamilyData.cs index b46874bf3969..074f11cba603 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSFamilyData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSFamilyData.cs @@ -5,7 +5,6 @@ #nullable disable -using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; @@ -18,7 +17,6 @@ public partial class CloudServiceOSFamilyData : ResourceData /// Initializes a new instance of CloudServiceOSFamilyData. internal CloudServiceOSFamilyData() { - Versions = new ChangeTrackingList(); } /// Initializes a new instance of CloudServiceOSFamilyData. @@ -28,27 +26,19 @@ internal CloudServiceOSFamilyData() /// The systemData. /// Resource name. /// Resource location. - /// The OS family name. - /// The OS family label. - /// List of OS versions belonging to this family. - internal CloudServiceOSFamilyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string resourceName, AzureLocation? location, string osFamilyName, string label, IReadOnlyList versions) : base(id, name, resourceType, systemData) + /// OS family properties. + internal CloudServiceOSFamilyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string resourceName, AzureLocation? location, OSFamilyProperties properties) : base(id, name, resourceType, systemData) { ResourceName = resourceName; Location = location; - OSFamilyName = osFamilyName; - Label = label; - Versions = versions; + Properties = properties; } /// Resource name. public string ResourceName { get; } /// Resource location. public AzureLocation? Location { get; } - /// The OS family name. - public string OSFamilyName { get; } - /// The OS family label. - public string Label { get; } - /// List of OS versions belonging to this family. - public IReadOnlyList Versions { get; } + /// OS family properties. + public OSFamilyProperties Properties { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSVersionData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSVersionData.cs index cb41da50fb5e..85a5388ac1d7 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSVersionData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceOSVersionData.cs @@ -6,6 +6,7 @@ #nullable disable using Azure.Core; +using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute @@ -24,36 +25,16 @@ internal CloudServiceOSVersionData() /// The resourceType. /// The systemData. /// Resource location. - /// The family of this OS version. - /// The family label of this OS version. - /// The OS version. - /// The OS version label. - /// Specifies whether this is the default OS version for its family. - /// Specifies whether this OS version is active. - internal CloudServiceOSVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string family, string familyLabel, string version, string label, bool? isDefault, bool? isActive) : base(id, name, resourceType, systemData) + /// OS version properties. + internal CloudServiceOSVersionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, OSVersionProperties properties) : base(id, name, resourceType, systemData) { Location = location; - Family = family; - FamilyLabel = familyLabel; - Version = version; - Label = label; - IsDefault = isDefault; - IsActive = isActive; + Properties = properties; } /// Resource location. public AzureLocation? Location { get; } - /// The family of this OS version. - public string Family { get; } - /// The family label of this OS version. - public string FamilyLabel { get; } - /// The OS version. - public string Version { get; } - /// The OS version label. - public string Label { get; } - /// Specifies whether this is the default OS version for its family. - public bool? IsDefault { get; } - /// Specifies whether this OS version is active. - public bool? IsActive { get; } + /// OS version properties. + public OSVersionProperties Properties { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleData.cs index 0df20a9bfb8a..fded283d9357 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleData.cs @@ -26,19 +26,24 @@ internal CloudServiceRoleData() /// The systemData. /// Resource location. /// Describes the cloud service role sku. - /// Specifies the ID which uniquely identifies a cloud service role. - internal CloudServiceRoleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, CloudServiceRoleSku sku, string uniqueId) : base(id, name, resourceType, systemData) + /// The cloud service role properties. + internal CloudServiceRoleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, CloudServiceRoleSku sku, CloudServiceRoleProperties properties) : base(id, name, resourceType, systemData) { Location = location; Sku = sku; - UniqueId = uniqueId; + Properties = properties; } /// Resource location. public AzureLocation? Location { get; } /// Describes the cloud service role sku. public CloudServiceRoleSku Sku { get; } + /// The cloud service role properties. + internal CloudServiceRoleProperties Properties { get; } /// Specifies the ID which uniquely identifies a cloud service role. - public string UniqueId { get; } + public string CloudServiceRoleUniqueId + { + get => Properties?.UniqueId; + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleInstanceData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleInstanceData.cs index 3d4f4afd4d76..a0e6743f3fbc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleInstanceData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRoleInstanceData.cs @@ -9,7 +9,6 @@ using Azure.Core; using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute { @@ -30,15 +29,13 @@ internal CloudServiceRoleInstanceData() /// Resource Location. /// Resource tags. /// The role instance SKU. - /// Describes the network profile for the role instance. - /// The instance view of the role instance. - internal CloudServiceRoleInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IReadOnlyDictionary tags, InstanceSku sku, RoleInstanceNetworkProfile networkProfile, RoleInstanceView instanceView) : base(id, name, resourceType, systemData) + /// Role instance properties. + internal CloudServiceRoleInstanceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, IReadOnlyDictionary tags, InstanceSku sku, RoleInstanceProperties properties) : base(id, name, resourceType, systemData) { Location = location; Tags = tags; Sku = sku; - NetworkProfile = networkProfile; - InstanceView = instanceView; + Properties = properties; } /// Resource Location. @@ -47,15 +44,7 @@ internal CloudServiceRoleInstanceData(ResourceIdentifier id, string name, Resour public IReadOnlyDictionary Tags { get; } /// The role instance SKU. public InstanceSku Sku { get; } - /// Describes the network profile for the role instance. - internal RoleInstanceNetworkProfile NetworkProfile { get; } - /// Specifies the list of resource Ids for the network interfaces associated with the role instance. - public IReadOnlyList NetworkInterfaces - { - get => NetworkProfile?.NetworkInterfaces; - } - - /// The instance view of the role instance. - public RoleInstanceView InstanceView { get; } + /// Role instance properties. + public RoleInstanceProperties Properties { get; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs index 2bd4273f8bb1..f253ccfa6ae3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostData.cs @@ -45,7 +45,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; @@ -78,7 +78,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 1e2cbf1d3e8a..e4f8c2197cda 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 9906245c31d4..87bb130719c2 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 1c06af7de32d..cb771cd27c15 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 146ac9adef0e..b2301932441d 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 5134679fe5a6..d7bfba175b9d 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 ba821ba6c918..384898d80b99 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 7d849a0afeb3..7ef3278290c8 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 448f793cb23f..b0bbf0fef73b 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 9ffbf64054f5..01135f26ac1f 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/CloudServiceData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceData.Serialization.cs index bd3b804d3e66..17c8828b3002 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceData.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -19,6 +18,21 @@ public partial class CloudServiceData : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"); @@ -32,84 +46,46 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("location"); writer.WriteStringValue(Location); - writer.WritePropertyName("properties"); - writer.WriteStartObject(); - if (Optional.IsDefined(PackageUri)) - { - writer.WritePropertyName("packageUrl"); - writer.WriteStringValue(PackageUri.AbsoluteUri); - } - if (Optional.IsDefined(Configuration)) - { - writer.WritePropertyName("configuration"); - writer.WriteStringValue(Configuration); - } - if (Optional.IsDefined(ConfigurationUri)) - { - writer.WritePropertyName("configurationUrl"); - writer.WriteStringValue(ConfigurationUri.AbsoluteUri); - } - if (Optional.IsDefined(StartCloudService)) - { - writer.WritePropertyName("startCloudService"); - writer.WriteBooleanValue(StartCloudService.Value); - } - if (Optional.IsDefined(AllowModelOverride)) - { - writer.WritePropertyName("allowModelOverride"); - writer.WriteBooleanValue(AllowModelOverride.Value); - } - if (Optional.IsDefined(UpgradeMode)) - { - writer.WritePropertyName("upgradeMode"); - writer.WriteStringValue(UpgradeMode.Value.ToString()); - } - if (Optional.IsDefined(RoleProfile)) - { - writer.WritePropertyName("roleProfile"); - writer.WriteObjectValue(RoleProfile); - } - if (Optional.IsDefined(OSProfile)) - { - writer.WritePropertyName("osProfile"); - writer.WriteObjectValue(OSProfile); - } - if (Optional.IsDefined(NetworkProfile)) - { - writer.WritePropertyName("networkProfile"); - writer.WriteObjectValue(NetworkProfile); - } - if (Optional.IsDefined(ExtensionProfile)) - { - writer.WritePropertyName("extensionProfile"); - writer.WriteObjectValue(ExtensionProfile); - } - writer.WriteEndObject(); writer.WriteEndObject(); } internal static CloudServiceData DeserializeCloudServiceData(JsonElement element) { + Optional properties = default; + Optional> zones = default; Optional> tags = default; AzureLocation location = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional packageUrl = default; - Optional configuration = default; - Optional configurationUrl = default; - Optional startCloudService = default; - Optional allowModelOverride = default; - Optional upgradeMode = default; - Optional roleProfile = default; - Optional osProfile = default; - Optional networkProfile = default; - Optional extensionProfile = default; - Optional provisioningState = default; - Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = CloudServiceProperties.DeserializeCloudServiceProperties(property.Value); + continue; + } + if (property.NameEquals("zones")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } if (property.NameEquals("tags")) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -155,125 +131,8 @@ internal static CloudServiceData DeserializeCloudServiceData(JsonElement element systemData = JsonSerializer.Deserialize(property.Value.ToString()); continue; } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("packageUrl")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - packageUrl = null; - continue; - } - packageUrl = new Uri(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("configuration")) - { - configuration = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("configurationUrl")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - configurationUrl = null; - continue; - } - configurationUrl = new Uri(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("startCloudService")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - startCloudService = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("allowModelOverride")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - allowModelOverride = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("upgradeMode")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - upgradeMode = new CloudServiceUpgradeMode(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("roleProfile")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - roleProfile = CloudServiceRoleProfile.DeserializeCloudServiceRoleProfile(property0.Value); - continue; - } - if (property0.NameEquals("osProfile")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - osProfile = CloudServiceOSProfile.DeserializeCloudServiceOSProfile(property0.Value); - continue; - } - if (property0.NameEquals("networkProfile")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - networkProfile = CloudServiceNetworkProfile.DeserializeCloudServiceNetworkProfile(property0.Value); - continue; - } - if (property0.NameEquals("extensionProfile")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - extensionProfile = CloudServiceExtensionProfile.DeserializeCloudServiceExtensionProfile(property0.Value); - continue; - } - if (property0.NameEquals("provisioningState")) - { - provisioningState = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("uniqueId")) - { - uniqueId = property0.Value.GetString(); - continue; - } - } - continue; - } } - return new CloudServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, packageUrl.Value, configuration.Value, configurationUrl.Value, Optional.ToNullable(startCloudService), Optional.ToNullable(allowModelOverride), Optional.ToNullable(upgradeMode), roleProfile.Value, osProfile.Value, networkProfile.Value, extensionProfile.Value, provisioningState.Value, uniqueId.Value); + return new CloudServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, properties.Value, Optional.ToList(zones)); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.Serialization.cs index 8795d08b2ba0..f883b40a4caf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.Serialization.cs @@ -5,8 +5,6 @@ #nullable disable -using System; -using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -22,83 +20,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("name"); writer.WriteStringValue(Name); } - writer.WritePropertyName("properties"); - writer.WriteStartObject(); - if (Optional.IsDefined(Publisher)) - { - writer.WritePropertyName("publisher"); - writer.WriteStringValue(Publisher); - } - if (Optional.IsDefined(CloudServiceExtensionPropertiesType)) - { - writer.WritePropertyName("type"); - writer.WriteStringValue(CloudServiceExtensionPropertiesType); - } - if (Optional.IsDefined(TypeHandlerVersion)) - { - writer.WritePropertyName("typeHandlerVersion"); - writer.WriteStringValue(TypeHandlerVersion); - } - if (Optional.IsDefined(AutoUpgradeMinorVersion)) - { - writer.WritePropertyName("autoUpgradeMinorVersion"); - writer.WriteBooleanValue(AutoUpgradeMinorVersion.Value); - } - if (Optional.IsDefined(Settings)) - { - writer.WritePropertyName("settings"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(Settings); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(Settings.ToString()).RootElement); -#endif - } - if (Optional.IsDefined(ProtectedSettings)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("protectedSettings"); -#if NET6_0_OR_GREATER - writer.WriteRawValue(ProtectedSettings); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettings.ToString()).RootElement); -#endif + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); } - if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) - { - writer.WritePropertyName("protectedSettingsFromKeyVault"); - writer.WriteObjectValue(ProtectedSettingsFromKeyVault); - } - if (Optional.IsDefined(ForceUpdateTag)) - { - writer.WritePropertyName("forceUpdateTag"); - writer.WriteStringValue(ForceUpdateTag); - } - if (Optional.IsCollectionDefined(RolesAppliedTo)) - { - writer.WritePropertyName("rolesAppliedTo"); - writer.WriteStartArray(); - foreach (var item in RolesAppliedTo) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - writer.WriteEndObject(); writer.WriteEndObject(); } internal static CloudServiceExtension DeserializeCloudServiceExtension(JsonElement element) { Optional name = default; - Optional publisher = default; - Optional type = default; - Optional typeHandlerVersion = default; - Optional autoUpgradeMinorVersion = default; - Optional settings = default; - Optional protectedSettings = default; - Optional protectedSettingsFromKeyVault = default; - Optional forceUpdateTag = default; - Optional provisioningState = default; - Optional> rolesAppliedTo = default; + Optional properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -113,93 +46,11 @@ internal static CloudServiceExtension DeserializeCloudServiceExtension(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("publisher")) - { - publisher = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("type")) - { - type = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("typeHandlerVersion")) - { - typeHandlerVersion = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("autoUpgradeMinorVersion")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - autoUpgradeMinorVersion = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("settings")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - settings = BinaryData.FromString(property0.Value.GetRawText()); - continue; - } - if (property0.NameEquals("protectedSettings")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - protectedSettings = BinaryData.FromString(property0.Value.GetRawText()); - continue; - } - if (property0.NameEquals("protectedSettingsFromKeyVault")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - protectedSettingsFromKeyVault = CloudServiceVaultAndSecretReference.DeserializeCloudServiceVaultAndSecretReference(property0.Value); - continue; - } - if (property0.NameEquals("forceUpdateTag")) - { - forceUpdateTag = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("provisioningState")) - { - provisioningState = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("rolesAppliedTo")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - rolesAppliedTo = array; - continue; - } - } + properties = CloudServiceExtensionProperties.DeserializeCloudServiceExtensionProperties(property.Value); continue; } } - return new CloudServiceExtension(name.Value, publisher.Value, type.Value, typeHandlerVersion.Value, Optional.ToNullable(autoUpgradeMinorVersion), settings.Value, protectedSettings.Value, protectedSettingsFromKeyVault.Value, forceUpdateTag.Value, provisioningState.Value, Optional.ToList(rolesAppliedTo)); + return new CloudServiceExtension(name.Value, properties.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs index b229bd204c2f..4969734ae634 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtension.cs @@ -5,10 +5,6 @@ #nullable disable -using System; -using System.Collections.Generic; -using Azure.Core; - namespace Azure.ResourceManager.Compute.Models { /// Describes a cloud service Extension. @@ -17,127 +13,20 @@ public partial class CloudServiceExtension /// Initializes a new instance of CloudServiceExtension. public CloudServiceExtension() { - RolesAppliedTo = new ChangeTrackingList(); } /// Initializes a new instance of CloudServiceExtension. /// The name of the extension. - /// The name of the extension handler publisher. - /// Specifies the type of the extension. - /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. - /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. - /// Protected settings for the extension which are encrypted before sent to the role instance. - /// Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. - /// - /// Tag to force apply the provided public and protected settings. - /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. - /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. - /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and - /// it is up to handler implementation whether to re-run it or not - /// - /// The provisioning state, which only appears in the response. - /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. - internal CloudServiceExtension(string name, string publisher, string cloudServiceExtensionPropertiesType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, BinaryData settings, BinaryData protectedSettings, CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault, string forceUpdateTag, string provisioningState, IList rolesAppliedTo) + /// Extension Properties. + internal CloudServiceExtension(string name, CloudServiceExtensionProperties properties) { Name = name; - Publisher = publisher; - CloudServiceExtensionPropertiesType = cloudServiceExtensionPropertiesType; - TypeHandlerVersion = typeHandlerVersion; - AutoUpgradeMinorVersion = autoUpgradeMinorVersion; - Settings = settings; - ProtectedSettings = protectedSettings; - ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; - ForceUpdateTag = forceUpdateTag; - ProvisioningState = provisioningState; - RolesAppliedTo = rolesAppliedTo; + Properties = properties; } /// The name of the extension. public string Name { get; set; } - /// The name of the extension handler publisher. - public string Publisher { get; set; } - /// Specifies the type of the extension. - public string CloudServiceExtensionPropertiesType { get; set; } - /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. - public string TypeHandlerVersion { get; set; } - /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. - public bool? AutoUpgradeMinorVersion { get; set; } - /// - /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. - /// - /// 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 Settings { get; set; } - /// - /// Protected settings for the extension which are encrypted before sent to the role instance. - /// - /// 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 ProtectedSettings { get; set; } - /// Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. - public CloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } - /// - /// Tag to force apply the provided public and protected settings. - /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. - /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. - /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and - /// it is up to handler implementation whether to re-run it or not - /// - public string ForceUpdateTag { get; set; } - /// The provisioning state, which only appears in the response. - public string ProvisioningState { get; } - /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. - public IList RolesAppliedTo { get; } + /// Extension Properties. + public CloudServiceExtensionProperties Properties { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.Serialization.cs new file mode 100644 index 000000000000..7ce40add9355 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.Serialization.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class CloudServiceExtensionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Publisher)) + { + writer.WritePropertyName("publisher"); + writer.WriteStringValue(Publisher); + } + if (Optional.IsDefined(CloudServiceExtensionPropertiesType)) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(CloudServiceExtensionPropertiesType); + } + if (Optional.IsDefined(TypeHandlerVersion)) + { + writer.WritePropertyName("typeHandlerVersion"); + writer.WriteStringValue(TypeHandlerVersion); + } + if (Optional.IsDefined(AutoUpgradeMinorVersion)) + { + writer.WritePropertyName("autoUpgradeMinorVersion"); + writer.WriteBooleanValue(AutoUpgradeMinorVersion.Value); + } + if (Optional.IsDefined(Settings)) + { + writer.WritePropertyName("settings"); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Settings); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Settings.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(ProtectedSettings)) + { + writer.WritePropertyName("protectedSettings"); +#if NET6_0_OR_GREATER + writer.WriteRawValue(ProtectedSettings); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(ProtectedSettings.ToString()).RootElement); +#endif + } + if (Optional.IsDefined(ProtectedSettingsFromKeyVault)) + { + writer.WritePropertyName("protectedSettingsFromKeyVault"); + writer.WriteObjectValue(ProtectedSettingsFromKeyVault); + } + if (Optional.IsDefined(ForceUpdateTag)) + { + writer.WritePropertyName("forceUpdateTag"); + writer.WriteStringValue(ForceUpdateTag); + } + if (Optional.IsCollectionDefined(RolesAppliedTo)) + { + writer.WritePropertyName("rolesAppliedTo"); + writer.WriteStartArray(); + foreach (var item in RolesAppliedTo) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static CloudServiceExtensionProperties DeserializeCloudServiceExtensionProperties(JsonElement element) + { + Optional publisher = default; + Optional type = default; + Optional typeHandlerVersion = default; + Optional autoUpgradeMinorVersion = default; + Optional settings = default; + Optional protectedSettings = default; + Optional protectedSettingsFromKeyVault = default; + Optional forceUpdateTag = default; + Optional provisioningState = default; + Optional> rolesAppliedTo = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("publisher")) + { + publisher = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("typeHandlerVersion")) + { + typeHandlerVersion = property.Value.GetString(); + continue; + } + if (property.NameEquals("autoUpgradeMinorVersion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + autoUpgradeMinorVersion = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("settings")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + settings = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("protectedSettings")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectedSettings = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("protectedSettingsFromKeyVault")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + protectedSettingsFromKeyVault = CloudServiceVaultAndSecretReference.DeserializeCloudServiceVaultAndSecretReference(property.Value); + continue; + } + if (property.NameEquals("forceUpdateTag")) + { + forceUpdateTag = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("rolesAppliedTo")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + rolesAppliedTo = array; + continue; + } + } + return new CloudServiceExtensionProperties(publisher.Value, type.Value, typeHandlerVersion.Value, Optional.ToNullable(autoUpgradeMinorVersion), settings.Value, protectedSettings.Value, protectedSettingsFromKeyVault.Value, forceUpdateTag.Value, provisioningState.Value, Optional.ToList(rolesAppliedTo)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.cs new file mode 100644 index 000000000000..85bde1513bd3 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceExtensionProperties.cs @@ -0,0 +1,139 @@ +// 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 +{ + /// Extension Properties. + public partial class CloudServiceExtensionProperties + { + /// Initializes a new instance of CloudServiceExtensionProperties. + public CloudServiceExtensionProperties() + { + RolesAppliedTo = new ChangeTrackingList(); + } + + /// Initializes a new instance of CloudServiceExtensionProperties. + /// The name of the extension handler publisher. + /// Specifies the type of the extension. + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + /// The provisioning state, which only appears in the response. + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + internal CloudServiceExtensionProperties(string publisher, string cloudServiceExtensionPropertiesType, string typeHandlerVersion, bool? autoUpgradeMinorVersion, BinaryData settings, BinaryData protectedSettings, CloudServiceVaultAndSecretReference protectedSettingsFromKeyVault, string forceUpdateTag, string provisioningState, IList rolesAppliedTo) + { + Publisher = publisher; + CloudServiceExtensionPropertiesType = cloudServiceExtensionPropertiesType; + TypeHandlerVersion = typeHandlerVersion; + AutoUpgradeMinorVersion = autoUpgradeMinorVersion; + Settings = settings; + ProtectedSettings = protectedSettings; + ProtectedSettingsFromKeyVault = protectedSettingsFromKeyVault; + ForceUpdateTag = forceUpdateTag; + ProvisioningState = provisioningState; + RolesAppliedTo = rolesAppliedTo; + } + + /// The name of the extension handler publisher. + public string Publisher { get; set; } + /// Specifies the type of the extension. + public string CloudServiceExtensionPropertiesType { get; set; } + /// Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance. + public string TypeHandlerVersion { get; set; } + /// Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available. + public bool? AutoUpgradeMinorVersion { get; set; } + /// + /// Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension. + /// + /// 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 Settings { get; set; } + /// + /// Protected settings for the extension which are encrypted before sent to the role instance. + /// + /// 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 ProtectedSettings { get; set; } + /// Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance. + public CloudServiceVaultAndSecretReference ProtectedSettingsFromKeyVault { get; set; } + /// + /// Tag to force apply the provided public and protected settings. + /// Changing the tag value allows for re-running the extension without changing any of the public or protected settings. + /// If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. + /// If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and + /// it is up to handler implementation whether to re-run it or not + /// + public string ForceUpdateTag { get; set; } + /// The provisioning state, which only appears in the response. + public string ProvisioningState { get; } + /// Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service. + public IList RolesAppliedTo { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.Serialization.cs index 0497e3d8abdd..8891a6c8f2c3 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -24,15 +23,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("name"); writer.WriteStringValue(Name); writer.WritePropertyName("properties"); - writer.WriteStartObject(); - writer.WritePropertyName("frontendIpConfigurations"); - writer.WriteStartArray(); - foreach (var item in FrontendIPConfigurations) - { - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - writer.WriteEndObject(); + writer.WriteObjectValue(Properties); writer.WriteEndObject(); } @@ -40,7 +31,7 @@ internal static CloudServiceLoadBalancerConfiguration DeserializeCloudServiceLoa { Optional id = default; string name = default; - IList frontendIPConfigurations = default; + LoadBalancerConfigurationProperties properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -60,28 +51,11 @@ internal static CloudServiceLoadBalancerConfiguration DeserializeCloudServiceLoa } if (property.NameEquals("properties")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("frontendIpConfigurations")) - { - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(LoadBalancerFrontendIPConfiguration.DeserializeLoadBalancerFrontendIPConfiguration(item)); - } - frontendIPConfigurations = array; - continue; - } - } + properties = LoadBalancerConfigurationProperties.DeserializeLoadBalancerConfigurationProperties(property.Value); continue; } } - return new CloudServiceLoadBalancerConfiguration(id.Value, name, frontendIPConfigurations); + return new CloudServiceLoadBalancerConfiguration(id.Value, name, properties); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.cs index 5efd7d2501f3..7a2fe9310f4c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceLoadBalancerConfiguration.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Azure.Core; namespace Azure.ResourceManager.Compute.Models @@ -17,33 +16,39 @@ public partial class CloudServiceLoadBalancerConfiguration { /// Initializes a new instance of CloudServiceLoadBalancerConfiguration. /// The name of the Load balancer. - /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. - /// or is null. - public CloudServiceLoadBalancerConfiguration(string name, IEnumerable frontendIPConfigurations) + /// Properties of the load balancer configuration. + /// or is null. + public CloudServiceLoadBalancerConfiguration(string name, LoadBalancerConfigurationProperties properties) { Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(frontendIPConfigurations, nameof(frontendIPConfigurations)); + Argument.AssertNotNull(properties, nameof(properties)); Name = name; - FrontendIPConfigurations = frontendIPConfigurations.ToList(); + Properties = properties; } /// Initializes a new instance of CloudServiceLoadBalancerConfiguration. /// Resource Id. /// The name of the Load balancer. - /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. - internal CloudServiceLoadBalancerConfiguration(ResourceIdentifier id, string name, IList frontendIPConfigurations) + /// Properties of the load balancer configuration. + internal CloudServiceLoadBalancerConfiguration(ResourceIdentifier id, string name, LoadBalancerConfigurationProperties properties) { Id = id; Name = name; - FrontendIPConfigurations = frontendIPConfigurations; + Properties = properties; } /// Resource Id. public ResourceIdentifier Id { get; set; } /// The name of the Load balancer. public string Name { get; set; } + /// Properties of the load balancer configuration. + internal LoadBalancerConfigurationProperties Properties { get; set; } /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. - public IList FrontendIPConfigurations { get; } + public IList LoadBalancerFrontendIPConfigurations + { + get => Properties is null ? default : Properties.FrontendIPConfigurations; + set => Properties = new LoadBalancerConfigurationProperties(value); + } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyData.Serialization.cs index c03a688e999f..61a4ee2631a5 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSFamilyData.Serialization.cs @@ -5,7 +5,6 @@ #nullable disable -using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Compute.Models; @@ -19,13 +18,11 @@ internal static CloudServiceOSFamilyData DeserializeCloudServiceOSFamilyData(Jso { Optional name = default; Optional location = default; + Optional properties = default; ResourceIdentifier id = default; string name0 = default; ResourceType type = default; Optional systemData = default; - Optional name1 = default; - Optional label = default; - Optional> versions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -43,6 +40,16 @@ internal static CloudServiceOSFamilyData DeserializeCloudServiceOSFamilyData(Jso location = new AzureLocation(property.Value.GetString()); continue; } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = OSFamilyProperties.DeserializeOSFamilyProperties(property.Value); + continue; + } if (property.NameEquals("id")) { id = new ResourceIdentifier(property.Value.GetString()); @@ -68,45 +75,8 @@ internal static CloudServiceOSFamilyData DeserializeCloudServiceOSFamilyData(Jso systemData = JsonSerializer.Deserialize(property.Value.ToString()); continue; } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("name")) - { - name1 = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("label")) - { - label = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("versions")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property0.Value.EnumerateArray()) - { - array.Add(OSVersionPropertiesBase.DeserializeOSVersionPropertiesBase(item)); - } - versions = array; - continue; - } - } - continue; - } } - return new CloudServiceOSFamilyData(id, name0, type, systemData.Value, name.Value, Optional.ToNullable(location), name1.Value, label.Value, Optional.ToList(versions)); + return new CloudServiceOSFamilyData(id, name0, type, systemData.Value, name.Value, Optional.ToNullable(location), properties.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionData.Serialization.cs index db2ffbd252b5..d1b232f25d2f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceOSVersionData.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Compute.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Compute @@ -16,16 +17,11 @@ public partial class CloudServiceOSVersionData internal static CloudServiceOSVersionData DeserializeCloudServiceOSVersionData(JsonElement element) { Optional location = default; + Optional properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional family = default; - Optional familyLabel = default; - Optional version = default; - Optional label = default; - Optional isDefault = default; - Optional isActive = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location")) @@ -38,6 +34,16 @@ internal static CloudServiceOSVersionData DeserializeCloudServiceOSVersionData(J location = new AzureLocation(property.Value.GetString()); continue; } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = OSVersionProperties.DeserializeOSVersionProperties(property.Value); + continue; + } if (property.NameEquals("id")) { id = new ResourceIdentifier(property.Value.GetString()); @@ -63,60 +69,8 @@ internal static CloudServiceOSVersionData DeserializeCloudServiceOSVersionData(J systemData = JsonSerializer.Deserialize(property.Value.ToString()); continue; } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("family")) - { - family = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("familyLabel")) - { - familyLabel = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("version")) - { - version = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("label")) - { - label = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("isDefault")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - isDefault = property0.Value.GetBoolean(); - continue; - } - if (property0.NameEquals("isActive")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - isActive = property0.Value.GetBoolean(); - continue; - } - } - continue; - } } - return new CloudServiceOSVersionData(id, name, type, systemData.Value, Optional.ToNullable(location), family.Value, familyLabel.Value, version.Value, label.Value, Optional.ToNullable(isDefault), Optional.ToNullable(isActive)); + return new CloudServiceOSVersionData(id, name, type, systemData.Value, Optional.ToNullable(location), properties.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.Serialization.cs new file mode 100644 index 000000000000..e57241796b52 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.Serialization.cs @@ -0,0 +1,197 @@ +// 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 CloudServiceProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PackageUri)) + { + writer.WritePropertyName("packageUrl"); + writer.WriteStringValue(PackageUri.AbsoluteUri); + } + if (Optional.IsDefined(Configuration)) + { + writer.WritePropertyName("configuration"); + writer.WriteStringValue(Configuration); + } + if (Optional.IsDefined(ConfigurationUri)) + { + writer.WritePropertyName("configurationUrl"); + writer.WriteStringValue(ConfigurationUri.AbsoluteUri); + } + if (Optional.IsDefined(StartCloudService)) + { + writer.WritePropertyName("startCloudService"); + writer.WriteBooleanValue(StartCloudService.Value); + } + if (Optional.IsDefined(AllowModelOverride)) + { + writer.WritePropertyName("allowModelOverride"); + writer.WriteBooleanValue(AllowModelOverride.Value); + } + if (Optional.IsDefined(UpgradeMode)) + { + writer.WritePropertyName("upgradeMode"); + writer.WriteStringValue(UpgradeMode.Value.ToString()); + } + if (Optional.IsDefined(RoleProfile)) + { + writer.WritePropertyName("roleProfile"); + writer.WriteObjectValue(RoleProfile); + } + if (Optional.IsDefined(OSProfile)) + { + writer.WritePropertyName("osProfile"); + writer.WriteObjectValue(OSProfile); + } + if (Optional.IsDefined(NetworkProfile)) + { + writer.WritePropertyName("networkProfile"); + writer.WriteObjectValue(NetworkProfile); + } + if (Optional.IsDefined(ExtensionProfile)) + { + writer.WritePropertyName("extensionProfile"); + writer.WriteObjectValue(ExtensionProfile); + } + writer.WriteEndObject(); + } + + internal static CloudServiceProperties DeserializeCloudServiceProperties(JsonElement element) + { + Optional packageUrl = default; + Optional configuration = default; + Optional configurationUrl = default; + Optional startCloudService = default; + Optional allowModelOverride = default; + Optional upgradeMode = default; + Optional roleProfile = default; + Optional osProfile = default; + Optional networkProfile = default; + Optional extensionProfile = default; + Optional provisioningState = default; + Optional uniqueId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("packageUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + packageUrl = null; + continue; + } + packageUrl = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("configuration")) + { + configuration = property.Value.GetString(); + continue; + } + if (property.NameEquals("configurationUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + configurationUrl = null; + continue; + } + configurationUrl = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("startCloudService")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + startCloudService = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("allowModelOverride")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + allowModelOverride = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("upgradeMode")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + upgradeMode = new CloudServiceUpgradeMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("roleProfile")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + roleProfile = CloudServiceRoleProfile.DeserializeCloudServiceRoleProfile(property.Value); + continue; + } + if (property.NameEquals("osProfile")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + osProfile = CloudServiceOSProfile.DeserializeCloudServiceOSProfile(property.Value); + continue; + } + if (property.NameEquals("networkProfile")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = CloudServiceNetworkProfile.DeserializeCloudServiceNetworkProfile(property.Value); + continue; + } + if (property.NameEquals("extensionProfile")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + extensionProfile = CloudServiceExtensionProfile.DeserializeCloudServiceExtensionProfile(property.Value); + continue; + } + if (property.NameEquals("provisioningState")) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("uniqueId")) + { + uniqueId = property.Value.GetString(); + continue; + } + } + return new CloudServiceProperties(packageUrl.Value, configuration.Value, configurationUrl.Value, Optional.ToNullable(startCloudService), Optional.ToNullable(allowModelOverride), Optional.ToNullable(upgradeMode), roleProfile.Value, osProfile.Value, networkProfile.Value, extensionProfile.Value, provisioningState.Value, uniqueId.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.cs new file mode 100644 index 000000000000..16d214dab7af --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceProperties.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Cloud service properties. + public partial class CloudServiceProperties + { + /// Initializes a new instance of CloudServiceProperties. + public CloudServiceProperties() + { + } + + /// Initializes a new instance of CloudServiceProperties. + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + /// Specifies the XML service configuration (.cscfg) for the cloud service. + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + /// + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> + /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + /// + /// Describes the role profile for the cloud service. + /// Describes the OS profile for the cloud service. + /// Network Profile for the cloud service. + /// Describes a cloud service extension profile. + /// The provisioning state, which only appears in the response. + /// The unique identifier for the cloud service. + internal CloudServiceProperties(Uri packageUri, string configuration, Uri configurationUri, bool? startCloudService, bool? allowModelOverride, CloudServiceUpgradeMode? upgradeMode, CloudServiceRoleProfile roleProfile, CloudServiceOSProfile osProfile, CloudServiceNetworkProfile networkProfile, CloudServiceExtensionProfile extensionProfile, string provisioningState, string uniqueId) + { + PackageUri = packageUri; + Configuration = configuration; + ConfigurationUri = configurationUri; + StartCloudService = startCloudService; + AllowModelOverride = allowModelOverride; + UpgradeMode = upgradeMode; + RoleProfile = roleProfile; + OSProfile = osProfile; + NetworkProfile = networkProfile; + ExtensionProfile = extensionProfile; + ProvisioningState = provisioningState; + UniqueId = uniqueId; + } + + /// + /// Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + public Uri PackageUri { get; set; } + /// Specifies the XML service configuration (.cscfg) for the cloud service. + public string Configuration { get; set; } + /// + /// Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. + /// This is a write-only property and is not returned in GET calls. + /// + public Uri ConfigurationUri { get; set; } + /// + /// (Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. + /// If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff. + /// + public bool? StartCloudService { get; set; } + /// + /// (Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. + /// The default value is `false`. + /// + public bool? AllowModelOverride { get; set; } + /// + /// Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. + /// Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> + /// If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence. + /// + public CloudServiceUpgradeMode? UpgradeMode { get; set; } + /// Describes the role profile for the cloud service. + internal CloudServiceRoleProfile RoleProfile { get; set; } + /// List of roles for the cloud service. + public IList Roles + { + get + { + if (RoleProfile is null) + RoleProfile = new CloudServiceRoleProfile(); + return RoleProfile.Roles; + } + } + + /// Describes the OS profile for the cloud service. + internal CloudServiceOSProfile OSProfile { get; set; } + /// Specifies set of certificates that should be installed onto the role instances. + public IList OSSecrets + { + get + { + if (OSProfile is null) + OSProfile = new CloudServiceOSProfile(); + return OSProfile.Secrets; + } + } + + /// Network Profile for the cloud service. + public CloudServiceNetworkProfile NetworkProfile { get; set; } + /// Describes a cloud service extension profile. + internal CloudServiceExtensionProfile ExtensionProfile { get; set; } + /// List of extensions for the cloud service. + public IList Extensions + { + get + { + if (ExtensionProfile is null) + ExtensionProfile = new CloudServiceExtensionProfile(); + return ExtensionProfile.Extensions; + } + } + + /// The provisioning state, which only appears in the response. + public string ProvisioningState { get; } + /// The unique identifier for the cloud service. + public string UniqueId { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleData.Serialization.cs index 45eb51fcc1fc..877da0aaa605 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleData.Serialization.cs @@ -18,11 +18,11 @@ internal static CloudServiceRoleData DeserializeCloudServiceRoleData(JsonElement { Optional location = default; Optional sku = default; + Optional properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional uniqueId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location")) @@ -45,6 +45,16 @@ internal static CloudServiceRoleData DeserializeCloudServiceRoleData(JsonElement sku = CloudServiceRoleSku.DeserializeCloudServiceRoleSku(property.Value); continue; } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = CloudServiceRoleProperties.DeserializeCloudServiceRoleProperties(property.Value); + continue; + } if (property.NameEquals("id")) { id = new ResourceIdentifier(property.Value.GetString()); @@ -70,25 +80,8 @@ internal static CloudServiceRoleData DeserializeCloudServiceRoleData(JsonElement systemData = JsonSerializer.Deserialize(property.Value.ToString()); continue; } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("uniqueId")) - { - uniqueId = property0.Value.GetString(); - continue; - } - } - continue; - } } - return new CloudServiceRoleData(id, name, type, systemData.Value, Optional.ToNullable(location), sku.Value, uniqueId.Value); + return new CloudServiceRoleData(id, name, type, systemData.Value, Optional.ToNullable(location), sku.Value, properties.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceData.Serialization.cs index cbcc5dbcb1ff..54308aec3caf 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceData.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleInstanceData.Serialization.cs @@ -20,12 +20,11 @@ internal static CloudServiceRoleInstanceData DeserializeCloudServiceRoleInstance Optional location = default; Optional> tags = default; Optional sku = default; + Optional properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional networkProfile = default; - Optional instanceView = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location")) @@ -63,6 +62,16 @@ internal static CloudServiceRoleInstanceData DeserializeCloudServiceRoleInstance sku = InstanceSku.DeserializeInstanceSku(property.Value); continue; } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + properties = RoleInstanceProperties.DeserializeRoleInstanceProperties(property.Value); + continue; + } if (property.NameEquals("id")) { id = new ResourceIdentifier(property.Value.GetString()); @@ -88,40 +97,8 @@ internal static CloudServiceRoleInstanceData DeserializeCloudServiceRoleInstance systemData = JsonSerializer.Deserialize(property.Value.ToString()); continue; } - if (property.NameEquals("properties")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("networkProfile")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - networkProfile = RoleInstanceNetworkProfile.DeserializeRoleInstanceNetworkProfile(property0.Value); - continue; - } - if (property0.NameEquals("instanceView")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - instanceView = RoleInstanceView.DeserializeRoleInstanceView(property0.Value); - continue; - } - } - continue; - } } - return new CloudServiceRoleInstanceData(id, name, type, systemData.Value, Optional.ToNullable(location), Optional.ToDictionary(tags), sku.Value, networkProfile.Value, instanceView.Value); + return new CloudServiceRoleInstanceData(id, name, type, systemData.Value, Optional.ToNullable(location), Optional.ToDictionary(tags), sku.Value, properties.Value); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.Serialization.cs new file mode 100644 index 000000000000..f046a7d5d0bc --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.Serialization.cs @@ -0,0 +1,29 @@ +// 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 CloudServiceRoleProperties + { + internal static CloudServiceRoleProperties DeserializeCloudServiceRoleProperties(JsonElement element) + { + Optional uniqueId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uniqueId")) + { + uniqueId = property.Value.GetString(); + continue; + } + } + return new CloudServiceRoleProperties(uniqueId.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.cs new file mode 100644 index 000000000000..9128ec1aa30c --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/CloudServiceRoleProperties.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// The cloud service role properties. + internal partial class CloudServiceRoleProperties + { + /// Initializes a new instance of CloudServiceRoleProperties. + internal CloudServiceRoleProperties() + { + } + + /// Initializes a new instance of CloudServiceRoleProperties. + /// Specifies the ID which uniquely identifies a cloud service role. + internal CloudServiceRoleProperties(string uniqueId) + { + UniqueId = uniqueId; + } + + /// Specifies the ID which uniquely identifies a cloud service role. + public string UniqueId { 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 cc60b98124c7..845a45b2c4e7 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 000000000000..540ebf055546 --- /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 ddd5b68f17ee..8ebad9871e2b 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 1ff5a076d5a2..b0cf0b74d7ab 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 000000000000..4beacb3091d6 --- /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 000000000000..2cf9b3991705 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomAction.cs @@ -0,0 +1,53 @@ +// 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) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(script, 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 000000000000..13bdecf2911c --- /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 000000000000..35ee6b4a4d87 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationCustomActionParameter.cs @@ -0,0 +1,52 @@ +// 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 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) + { + Argument.AssertNotNull(name, 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 000000000000..4c9e56ac998f --- /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 000000000000..2693fbe5debe --- /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 30dd06602c01..9f8cb2c28d45 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 13abfc097967..338b09d4c5c6 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 ba26851fbd04..247a5fbae051 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 402ff503ce08..5880b5647ff6 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 97de5354bedb..38981942db7d 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 14667c4fc628..f9c4ed70e71e 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 1690e221cf61..c213a91e877a 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 937d47fba1b3..da3f91113163 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/GalleryApplicationVersionPublishingProfile.cs @@ -23,6 +23,7 @@ public GalleryApplicationVersionPublishingProfile(UserArtifactSource source) Source = source; AdvancedSettings = new ChangeTrackingDictionary(); + CustomActions = new ChangeTrackingList(); } /// Initializes a new instance of GalleryApplicationVersionPublishingProfile. @@ -39,13 +40,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. @@ -58,5 +61,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 000000000000..ac1e0252bce1 --- /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 000000000000..bd37fd829443 --- /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 000000000000..c625c98af1ca --- /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 000000000000..1e30d22fd95b --- /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 000000000000..7323beed30dc --- /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 000000000000..dd5cbf7c898c --- /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 40b90b30de94..3afa34e9e86f 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 dc3cc4b70558..aff7e1d3e7a0 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 588c1e38e018..1e280d5bd9b5 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 066749e254f3..b5b07004e898 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 7fc4dd21c528..93603cd55caa 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 e71333f3fb22..474061d6fb05 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 000000000000..956cf1a83dff --- /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 000000000000..4d0166399f45 --- /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 098abaa5d3d9..b8e9ce0df0d6 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 0255328aecb8..33e3bfbeb890 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 472b6c452ea8..836f8ea9db02 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 000000000000..11f2975623be --- /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 000000000000..67b56b74d38c --- /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 b9c0c91c5610..850a8ffa396c 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 f7783fa0965f..0df1160a5f4f 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 4be8ccc52420..6bf79dc14d04 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 18b0941d8f33..4a75e99d4eb9 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 639aad035c79..4d04ad4530f9 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 465719be25e2..158f9f50fc2f 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/LoadBalancerConfigurationProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.Serialization.cs new file mode 100644 index 000000000000..42bb45f6673c --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.Serialization.cs @@ -0,0 +1,48 @@ +// 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 LoadBalancerConfigurationProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("frontendIpConfigurations"); + writer.WriteStartArray(); + foreach (var item in FrontendIPConfigurations) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + } + + internal static LoadBalancerConfigurationProperties DeserializeLoadBalancerConfigurationProperties(JsonElement element) + { + IList frontendIPConfigurations = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("frontendIpConfigurations")) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(LoadBalancerFrontendIPConfiguration.DeserializeLoadBalancerFrontendIPConfiguration(item)); + } + frontendIPConfigurations = array; + continue; + } + } + return new LoadBalancerConfigurationProperties(frontendIPConfigurations); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.cs new file mode 100644 index 000000000000..d6f243e91451 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerConfigurationProperties.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Describes the properties of the load balancer configuration. + public partial class LoadBalancerConfigurationProperties + { + /// Initializes a new instance of LoadBalancerConfigurationProperties. + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + /// is null. + public LoadBalancerConfigurationProperties(IEnumerable frontendIPConfigurations) + { + Argument.AssertNotNull(frontendIPConfigurations, nameof(frontendIPConfigurations)); + + FrontendIPConfigurations = frontendIPConfigurations.ToList(); + } + + /// Initializes a new instance of LoadBalancerConfigurationProperties. + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + internal LoadBalancerConfigurationProperties(IList frontendIPConfigurations) + { + FrontendIPConfigurations = frontendIPConfigurations; + } + + /// Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration. + public IList FrontendIPConfigurations { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.Serialization.cs index acc8f651f921..986671e1518a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.Serialization.cs @@ -7,7 +7,6 @@ using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models { @@ -19,32 +18,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("name"); writer.WriteStringValue(Name); writer.WritePropertyName("properties"); - writer.WriteStartObject(); - if (Optional.IsDefined(PublicIPAddress)) - { - writer.WritePropertyName("publicIPAddress"); - JsonSerializer.Serialize(writer, PublicIPAddress); - } - if (Optional.IsDefined(Subnet)) - { - writer.WritePropertyName("subnet"); - JsonSerializer.Serialize(writer, Subnet); - } - if (Optional.IsDefined(PrivateIPAddress)) - { - writer.WritePropertyName("privateIPAddress"); - writer.WriteStringValue(PrivateIPAddress); - } - writer.WriteEndObject(); + writer.WriteObjectValue(Properties); writer.WriteEndObject(); } internal static LoadBalancerFrontendIPConfiguration DeserializeLoadBalancerFrontendIPConfiguration(JsonElement element) { string name = default; - Optional publicIPAddress = default; - Optional subnet = default; - Optional privateIPAddress = default; + LoadBalancerFrontendIPConfigurationProperties properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -54,43 +35,11 @@ internal static LoadBalancerFrontendIPConfiguration DeserializeLoadBalancerFront } if (property.NameEquals("properties")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("publicIPAddress")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - publicIPAddress = JsonSerializer.Deserialize(property0.Value.ToString()); - continue; - } - if (property0.NameEquals("subnet")) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - property0.ThrowNonNullablePropertyIsNull(); - continue; - } - subnet = JsonSerializer.Deserialize(property0.Value.ToString()); - continue; - } - if (property0.NameEquals("privateIPAddress")) - { - privateIPAddress = property0.Value.GetString(); - continue; - } - } + properties = LoadBalancerFrontendIPConfigurationProperties.DeserializeLoadBalancerFrontendIPConfigurationProperties(property.Value); continue; } } - return new LoadBalancerFrontendIPConfiguration(name, publicIPAddress, subnet, privateIPAddress.Value); + return new LoadBalancerFrontendIPConfiguration(name, properties); } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.cs index def6d5edaf4c..aec7c1bc12c0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfiguration.cs @@ -7,7 +7,6 @@ using System; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Compute.Models { @@ -16,58 +15,20 @@ public partial class LoadBalancerFrontendIPConfiguration { /// Initializes a new instance of LoadBalancerFrontendIPConfiguration. /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. - /// is null. - public LoadBalancerFrontendIPConfiguration(string name) + /// Properties of load balancer frontend ip configuration. + /// or is null. + public LoadBalancerFrontendIPConfiguration(string name, LoadBalancerFrontendIPConfigurationProperties properties) { Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(properties, nameof(properties)); Name = name; - } - - /// Initializes a new instance of LoadBalancerFrontendIPConfiguration. - /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. - /// The reference to the public ip address resource. - /// The reference to the virtual network subnet resource. - /// The virtual network private IP address of the IP configuration. - internal LoadBalancerFrontendIPConfiguration(string name, WritableSubResource publicIPAddress, WritableSubResource subnet, string privateIPAddress) - { - Name = name; - PublicIPAddress = publicIPAddress; - Subnet = subnet; - PrivateIPAddress = privateIPAddress; + Properties = properties; } /// The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource. public string Name { get; set; } - /// The reference to the public ip address resource. - internal WritableSubResource PublicIPAddress { get; set; } - /// Gets or sets Id. - public ResourceIdentifier PublicIPAddressId - { - get => PublicIPAddress is null ? default : PublicIPAddress.Id; - set - { - if (PublicIPAddress is null) - PublicIPAddress = new WritableSubResource(); - PublicIPAddress.Id = value; - } - } - - /// The reference to the virtual network subnet resource. - internal WritableSubResource Subnet { get; set; } - /// Gets or sets Id. - public ResourceIdentifier SubnetId - { - get => Subnet is null ? default : Subnet.Id; - set - { - if (Subnet is null) - Subnet = new WritableSubResource(); - Subnet.Id = value; - } - } - - /// The virtual network private IP address of the IP configuration. - public string PrivateIPAddress { get; set; } + /// Properties of load balancer frontend ip configuration. + public LoadBalancerFrontendIPConfigurationProperties Properties { get; set; } } } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.Serialization.cs new file mode 100644 index 000000000000..3aa43f3867a5 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.Serialization.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + public partial class LoadBalancerFrontendIPConfigurationProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PublicIPAddress)) + { + writer.WritePropertyName("publicIPAddress"); + JsonSerializer.Serialize(writer, PublicIPAddress); + } + if (Optional.IsDefined(Subnet)) + { + writer.WritePropertyName("subnet"); + JsonSerializer.Serialize(writer, Subnet); + } + if (Optional.IsDefined(PrivateIPAddress)) + { + writer.WritePropertyName("privateIPAddress"); + writer.WriteStringValue(PrivateIPAddress); + } + writer.WriteEndObject(); + } + + internal static LoadBalancerFrontendIPConfigurationProperties DeserializeLoadBalancerFrontendIPConfigurationProperties(JsonElement element) + { + Optional publicIPAddress = default; + Optional subnet = default; + Optional privateIPAddress = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("publicIPAddress")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + publicIPAddress = JsonSerializer.Deserialize(property.Value.ToString()); + continue; + } + if (property.NameEquals("subnet")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + subnet = JsonSerializer.Deserialize(property.Value.ToString()); + continue; + } + if (property.NameEquals("privateIPAddress")) + { + privateIPAddress = property.Value.GetString(); + continue; + } + } + return new LoadBalancerFrontendIPConfigurationProperties(publicIPAddress, subnet, privateIPAddress.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.cs new file mode 100644 index 000000000000..53278a19623f --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/LoadBalancerFrontendIPConfigurationProperties.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Describes a cloud service IP Configuration. + public partial class LoadBalancerFrontendIPConfigurationProperties + { + /// Initializes a new instance of LoadBalancerFrontendIPConfigurationProperties. + public LoadBalancerFrontendIPConfigurationProperties() + { + } + + /// Initializes a new instance of LoadBalancerFrontendIPConfigurationProperties. + /// The reference to the public ip address resource. + /// The reference to the virtual network subnet resource. + /// The virtual network private IP address of the IP configuration. + internal LoadBalancerFrontendIPConfigurationProperties(WritableSubResource publicIPAddress, WritableSubResource subnet, string privateIPAddress) + { + PublicIPAddress = publicIPAddress; + Subnet = subnet; + PrivateIPAddress = privateIPAddress; + } + + /// The reference to the public ip address resource. + internal WritableSubResource PublicIPAddress { get; set; } + /// Gets or sets Id. + public ResourceIdentifier PublicIPAddressId + { + get => PublicIPAddress is null ? default : PublicIPAddress.Id; + set + { + if (PublicIPAddress is null) + PublicIPAddress = new WritableSubResource(); + PublicIPAddress.Id = value; + } + } + + /// The reference to the virtual network subnet resource. + internal WritableSubResource Subnet { get; set; } + /// Gets or sets Id. + public ResourceIdentifier SubnetId + { + get => Subnet is null ? default : Subnet.Id; + set + { + if (Subnet is null) + Subnet = new WritableSubResource(); + Subnet.Id = value; + } + } + + /// The virtual network private IP address of the IP configuration. + public string PrivateIPAddress { 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 b3763725911c..10c4abaf454c 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 89d0028da651..eb922a4560f6 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 708bcf1ba22e..160c0c170b82 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/OSFamilyProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.Serialization.cs new file mode 100644 index 000000000000..c82a29bbcef9 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.Serialization.cs @@ -0,0 +1,52 @@ +// 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 OSFamilyProperties + { + internal static OSFamilyProperties DeserializeOSFamilyProperties(JsonElement element) + { + Optional name = default; + Optional label = default; + Optional> versions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("label")) + { + label = property.Value.GetString(); + continue; + } + if (property.NameEquals("versions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(OSVersionPropertiesBase.DeserializeOSVersionPropertiesBase(item)); + } + versions = array; + continue; + } + } + return new OSFamilyProperties(name.Value, label.Value, Optional.ToList(versions)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.cs new file mode 100644 index 000000000000..86b60da97cf5 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSFamilyProperties.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Compute.Models +{ + /// OS family properties. + public partial class OSFamilyProperties + { + /// Initializes a new instance of OSFamilyProperties. + internal OSFamilyProperties() + { + Versions = new ChangeTrackingList(); + } + + /// Initializes a new instance of OSFamilyProperties. + /// The OS family name. + /// The OS family label. + /// List of OS versions belonging to this family. + internal OSFamilyProperties(string name, string label, IReadOnlyList versions) + { + Name = name; + Label = label; + Versions = versions; + } + + /// The OS family name. + public string Name { get; } + /// The OS family label. + public string Label { get; } + /// List of OS versions belonging to this family. + public IReadOnlyList Versions { get; } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.Serialization.cs new file mode 100644 index 000000000000..be099dc7fc6d --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.Serialization.cs @@ -0,0 +1,69 @@ +// 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 OSVersionProperties + { + internal static OSVersionProperties DeserializeOSVersionProperties(JsonElement element) + { + Optional family = default; + Optional familyLabel = default; + Optional version = default; + Optional label = default; + Optional isDefault = default; + Optional isActive = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("family")) + { + family = property.Value.GetString(); + continue; + } + if (property.NameEquals("familyLabel")) + { + familyLabel = property.Value.GetString(); + continue; + } + if (property.NameEquals("version")) + { + version = property.Value.GetString(); + continue; + } + if (property.NameEquals("label")) + { + label = property.Value.GetString(); + continue; + } + if (property.NameEquals("isDefault")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isDefault = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isActive")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + isActive = property.Value.GetBoolean(); + continue; + } + } + return new OSVersionProperties(family.Value, familyLabel.Value, version.Value, label.Value, Optional.ToNullable(isDefault), Optional.ToNullable(isActive)); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.cs new file mode 100644 index 000000000000..5ac7519e8329 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/OSVersionProperties.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Compute.Models +{ + /// OS version properties. + public partial class OSVersionProperties + { + /// Initializes a new instance of OSVersionProperties. + internal OSVersionProperties() + { + } + + /// Initializes a new instance of OSVersionProperties. + /// The family of this OS version. + /// The family label of this OS version. + /// The OS version. + /// The OS version label. + /// Specifies whether this is the default OS version for its family. + /// Specifies whether this OS version is active. + internal OSVersionProperties(string family, string familyLabel, string version, string label, bool? isDefault, bool? isActive) + { + Family = family; + FamilyLabel = familyLabel; + Version = version; + Label = label; + IsDefault = isDefault; + IsActive = isActive; + } + + /// The family of this OS version. + public string Family { get; } + /// The family label of this OS version. + public string FamilyLabel { get; } + /// The OS version. + public string Version { get; } + /// The OS version label. + public string Label { get; } + /// Specifies whether this is the default OS version for its family. + public bool? IsDefault { get; } + /// Specifies whether this OS version is active. + public bool? IsActive { get; } + } +} 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 000000000000..c405ea01388d --- /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 000000000000..2bb583658885 --- /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 000000000000..1e422975c5dc --- /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 000000000000..a7c7bf343b56 --- /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 000000000000..989776200375 --- /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/RoleInstanceProperties.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.Serialization.cs new file mode 100644 index 000000000000..eb9dae0a04f6 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.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 RoleInstanceProperties + { + internal static RoleInstanceProperties DeserializeRoleInstanceProperties(JsonElement element) + { + Optional networkProfile = default; + Optional instanceView = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("networkProfile")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + networkProfile = RoleInstanceNetworkProfile.DeserializeRoleInstanceNetworkProfile(property.Value); + continue; + } + if (property.NameEquals("instanceView")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + instanceView = RoleInstanceView.DeserializeRoleInstanceView(property.Value); + continue; + } + } + return new RoleInstanceProperties(networkProfile.Value, instanceView.Value); + } + } +} diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.cs new file mode 100644 index 000000000000..4ff940085eb2 --- /dev/null +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/RoleInstanceProperties.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.Compute.Models +{ + /// Role instance properties. + public partial class RoleInstanceProperties + { + /// Initializes a new instance of RoleInstanceProperties. + internal RoleInstanceProperties() + { + } + + /// Initializes a new instance of RoleInstanceProperties. + /// Describes the network profile for the role instance. + /// The instance view of the role instance. + internal RoleInstanceProperties(RoleInstanceNetworkProfile networkProfile, RoleInstanceView instanceView) + { + NetworkProfile = networkProfile; + InstanceView = instanceView; + } + + /// Describes the network profile for the role instance. + internal RoleInstanceNetworkProfile NetworkProfile { get; } + /// Specifies the list of resource Ids for the network interfaces associated with the role instance. + public IReadOnlyList NetworkInterfaces + { + get => NetworkProfile?.NetworkInterfaces; + } + + /// The instance view of the role instance. + public RoleInstanceView InstanceView { get; } + } +} 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 6631aad87300..165d503a7f02 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 fffced59871d..680e2fa2ce9d 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 1ebc1c827e35..18cdeb23603f 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 8438d08fabc8..94ae5e0c9e93 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 4bd99c7e5cbb..557cdf05351b 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 c59fb322cbf0..6eaf8dc84ff0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/TargetRegion.cs @@ -28,12 +28,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. @@ -44,5 +46,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 37ada260517e..51b001bb7f31 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 f6664a1a5207..3eac4badc2a7 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 252cab814e5d..94c3061b0b54 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 44837b24793b..71045f0146f2 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 23584587c73b..e128fa1d4c48 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 4d1c721c7d1d..9ea15019a473 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs @@ -31,18 +31,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; @@ -59,6 +61,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 bebf573bc2d0..30ed75635fa8 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 cfb667a72a5f..3146daffd977 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/VirtualMachineScaleSetData.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetData.Serialization.cs index aad29e05d637..2fada8262456 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 69f883738a7a..7100a8103cd1 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 9317e8568cbd..a1d645d68b21 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 de3ebf3c6455..73de1318d79c 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 bca00166ff26..255edadd8b7b 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 787eeaec3f02..791edc21bc53 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 c26eb47e0b10..d791f23cda89 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 c0316459732c..8dec8f1644ac 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs @@ -31,17 +31,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; @@ -56,6 +58,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 f6252d7ee61c..f766253269a3 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/VirtualMachineScaleSetStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.Serialization.cs index 6683dfe8bfb0..70a41ae4d05e 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 07d3f8561aef..6395aad16fe2 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 e5b74e33eb0d..4f265209d628 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 891503c6af3f..31cb23e19acb 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 a724b2967d10..4acee120c8ce 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 002766aa66e6..9fba74be58b8 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 910fcf3cd149..156afe528051 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 e944f7a25dd1..5253a7ce1407 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 3bc8841f36db..c0b853af5092 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 c9f43992dbc7..29ac4194f4d7 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 68a711adc572..808790801830 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 63289d86dad2..56c4d1464c99 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 0a09153f26a2..eab60aa0fa4a 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/VirtualMachineStorageProfile.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/VirtualMachineStorageProfile.Serialization.cs index fa90836ca0ff..f4988854eb08 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 ea9814fb2e4b..3e9434290f39 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 37251e2e45c0..c42e388aa713 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 aec43eeb1a52..c2c7ed29d9b2 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 e213a2951b85..43c96c4d7e8d 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-08-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 66f5c9c69d7f..774398c5ae6e 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-08-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 0d1727cdbefc..101f9e62237e 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-08-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs index 48e6437d5ddb..d3ac6ed9e537 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceOperatingSystemsRestOperations.cs @@ -33,7 +33,7 @@ public CloudServiceOperatingSystemsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-04-04"; + _apiVersion = apiVersion ?? "2022-09-04"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs index 5ddf0df44357..30e4063d0848 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRoleInstancesRestOperations.cs @@ -34,7 +34,7 @@ public CloudServiceRoleInstancesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-04-04"; + _apiVersion = apiVersion ?? "2022-09-04"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs index 9ffe7867cdb9..8dac56731fcc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServiceRolesRestOperations.cs @@ -33,7 +33,7 @@ public CloudServiceRolesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-04-04"; + _apiVersion = apiVersion ?? "2022-09-04"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs index 27e32347a932..b0f762775832 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesRestOperations.cs @@ -33,7 +33,7 @@ public CloudServicesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-04-04"; + _apiVersion = apiVersion ?? "2022-09-04"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs index 8ddd43621555..41c08e580f8f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestOperations/CloudServicesUpdateDomainRestOperations.cs @@ -33,7 +33,7 @@ public CloudServicesUpdateDomainRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-04-04"; + _apiVersion = apiVersion ?? "2022-09-04"; _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 502ee72ba3d2..a0c5e45f0f72 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 c723cb1dc168..546add324c4b 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 1ecc9ab40c74..65b4b911949b 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 515dddbd1e1e..1625e2602fe5 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-08-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 1567acfee113..16e94e247218 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-08-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 b8649e4dfd89..310fa593bddf 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 30aedf75397c..b4aadb02adf0 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 2b4502d331ed..decffd82aeda 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 6926688bff07..f1701b673255 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 18698ed3dbbd..72e0720cc9c6 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 d9c78751a26a..921a082f3e45 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 dbe6512d372f..f9138010cee5 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 3ef802b14a83..b795a30ec815 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 4ec3e2239189..a925633fbe46 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 e2d42dc52cde..1bf4fcfbabde 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 4a16271b80cb..cd587ef0a442 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-08-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 140bde2df743..ae8be3a8ce91 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-08-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 e5642b53b50e..3ca6d0ded646 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-08-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 3c37efb1d160..cf227baa8262 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-08-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 8151c79a6570..ab16059d3296 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-08-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 3e0f9eb69598..c00c1001b154 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 fe49e121d3d6..18630dfac577 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 ca30478757ae..fa8066f70fd2 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 1defa0a1321c..7b9c11a5a166 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 3eb99e1f7b30..57e9916f5ce7 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-08-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 e08fd35e8fb3..49bd3e713a97 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-08-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 9e44f03efca4..fe64a915b934 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-08-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 b3d9b6c6baa4..8a0373a332fe 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-08-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 c2d5edbe9901..f15c25f7a42f 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-08-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 83d21805dfeb..4037a3d3f5d4 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-08-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 6eb340d0e829..16854961ffc1 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-08-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 d7849b1cf39c..c6e5d6f3c447 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-08-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 73c4aeb26c8e..a28abbcdabb0 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-08-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 0fe43bf129af..ef0797078f9e 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-08-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 9a87adbd2382..d3fdd104494e 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-08-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 d4d3a2fe9d7f..40b28ef5c2f8 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-08-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 848cc824284a..3a32d9ab6356 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-08-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 a6cffc3066cb..fa9aee31ccb1 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-08-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 c1b30a510bae..eb5ccb162879 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-08-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SharedGalleryImageData.cs index fbc4d254ef14..3d89d0c872c6 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 24915f03e429..0756038ca006 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 7199a26f8d95..c6814af4c7d3 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 1d614d96a979..41cc2e8ea6e8 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/VirtualMachineScaleSetData.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetData.cs index 00a359297061..f86eb838a416 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 1b4561829468..cfbe7486fbe5 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 8d62dec4c0d2..be99c4733365 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 f9abee8d32f1..9319f758049a 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