From 444892537e3934a1194a5c92cc0c845e85ea99b8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 21 Oct 2024 07:38:57 +0000 Subject: [PATCH] CodeGen from PR 3539 in test-repo-billy/azure-rest-api-specs Merge dac1004f7947d6e867e28f689160b8c2090172de into 6c6e1713f03acaf37e5c89652b023dd2c9eae16e --- .../CHANGELOG.md | 4 +- .../README.md | 128 ++- .../SAMPLE.md | 1011 +++++++++-------- .../pom.xml | 17 +- .../implementation/AzureFleetClientImpl.java | 2 +- .../models/AcceleratorManufacturer.java | 56 + .../computefleet/models/AcceleratorType.java | 51 + .../models/AdditionalCapabilities.java | 130 +++ .../models/AdditionalLocationsProfile.java | 108 ++ .../computefleet/models/ArchitectureType.java | 51 + .../computefleet/models/ComputeProfile.java | 45 + .../computefleet/models/CpuManufacturer.java | 61 + .../computefleet/models/FleetProperties.java | 65 ++ .../models/LocalStorageDiskType.java | 51 + .../computefleet/models/LocationProfile.java | 144 +++ .../models/NetworkApiVersion.java | 2 +- .../models/VMAttributeMinMaxDouble.java | 121 ++ .../models/VMAttributeMinMaxInteger.java | 122 ++ .../models/VMAttributeSupport.java | 57 + .../computefleet/models/VMAttributes.java | 761 +++++++++++++ .../computefleet/models/VMCategory.java | 89 ++ .../FleetsCreateOrUpdateSamples.java | 452 ++++---- .../generated/FleetsDeleteSamples.java | 2 +- .../FleetsGetByResourceGroupSamples.java | 2 +- .../FleetsListByResourceGroupSamples.java | 2 +- .../generated/FleetsListSamples.java | 2 +- ...etsListVirtualMachineScaleSetsSamples.java | 2 +- .../generated/FleetsUpdateSamples.java | 450 ++++---- .../generated/OperationsListSamples.java | 2 +- .../ComputeFleetManagerTests.java | 169 +-- .../AdditionalCapabilitiesTests.java | 28 + .../AdditionalUnattendContentTests.java | 14 +- .../generated/ApiEntityReferenceTests.java | 9 +- .../generated/ApplicationProfileTests.java | 56 +- .../generated/BootDiagnosticsTests.java | 12 +- .../CapacityReservationProfileTests.java | 11 +- .../generated/DiagnosticsProfileTests.java | 12 +- .../generated/DiffDiskSettingsTests.java | 8 +- .../DiskEncryptionSetParametersTests.java | 8 +- .../generated/EncryptionIdentityTests.java | 8 +- .../generated/ImageReferenceTests.java | 44 +- .../generated/InnerErrorTests.java | 6 +- .../generated/LinuxPatchSettingsTests.java | 14 +- ...PatchAutomaticByPlatformSettingsTests.java | 18 +- .../ManagedServiceIdentityTests.java | 13 +- .../ManagedServiceIdentityUpdateTests.java | 12 +- .../OSImageNotificationProfileTests.java | 12 +- .../generated/OperationsListMockTests.java | 2 +- .../generated/PatchSettingsTests.java | 14 +- .../RegularPriorityProfileTests.java | 20 +- .../ScheduledEventsProfileTests.java | 22 +- .../SecurityPostureReferenceTests.java | 16 +- .../ServiceArtifactReferenceTests.java | 8 +- .../generated/SpotPriorityProfileTests.java | 20 +- .../TerminateNotificationProfileTests.java | 11 +- .../generated/UefiSettingsTests.java | 12 +- .../generated/UserAssignedIdentityTests.java | 5 +- .../VMAttributeMinMaxDoubleTests.java | 28 + .../VMAttributeMinMaxIntegerTests.java | 27 + .../generated/VMAttributesTests.java | 117 ++ .../generated/VMDiskSecurityProfileTests.java | 14 +- .../generated/VMGalleryApplicationTests.java | 32 +- .../generated/VMSizePropertiesTests.java | 12 +- .../generated/VaultCertificateTests.java | 13 +- .../generated/VaultSecretGroupTests.java | 23 +- .../generated/VirtualHardDiskTests.java | 8 +- .../VirtualMachineScaleSetDataDiskTests.java | 75 +- ...alMachineScaleSetHardwareProfileTests.java | 14 +- ...caleSetIPConfigurationPropertiesTests.java | 110 +- ...alMachineScaleSetIPConfigurationTests.java | 131 ++- .../VirtualMachineScaleSetIpTagTests.java | 12 +- ...ineScaleSetManagedDiskParametersTests.java | 28 +- ...tNetworkConfigurationDnsSettingsTests.java | 12 +- ...etNetworkConfigurationPropertiesTests.java | 188 ++- ...hineScaleSetNetworkConfigurationTests.java | 124 +- ...ualMachineScaleSetNetworkProfileTests.java | 150 +-- .../VirtualMachineScaleSetOSDiskTests.java | 90 +- ...PAddressConfigurationDnsSettingsTests.java | 18 +- ...IPAddressConfigurationPropertiesTests.java | 30 +- ...eSetPublicIPAddressConfigurationTests.java | 52 +- ...ualMachineScaleSetStorageProfileTests.java | 176 +-- .../generated/VmSizeProfileTests.java | 12 +- .../generated/WinRMConfigurationTests.java | 12 +- .../generated/WinRMListenerTests.java | 12 +- .../generated/WindowsConfigurationTests.java | 88 +- ...PatchAutomaticByPlatformSettingsTests.java | 18 +- .../tsp-location.yaml | 6 +- 87 files changed, 4154 insertions(+), 2052 deletions(-) create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorManufacturer.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorType.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalCapabilities.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalLocationsProfile.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ArchitectureType.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/CpuManufacturer.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocalStorageDiskType.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocationProfile.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeMinMaxDouble.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeMinMaxInteger.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeSupport.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributes.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMCategory.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalCapabilitiesTests.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxDoubleTests.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxIntegerTests.java create mode 100644 sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributesTests.java diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md b/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md index 52e62f9cdf8d0..d0e9c8606c076 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md +++ b/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2024-10-21) + +- Azure Resource Manager Compute Fleet client library for Java. This package contains Microsoft Azure SDK for Compute Fleet Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/README.md b/sdk/computefleet/azure-resourcemanager-computefleet/README.md index 5f2ce28f9607c..9ef6af15e15d0 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/README.md +++ b/sdk/computefleet/azure-resourcemanager-computefleet/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-computefleet - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) @@ -70,6 +70,132 @@ See [API design][design] for general introduction on design and key concepts on ## Examples +```java +Network network = networkManager.networks() + .define(vnetName) + .withRegion(REGION) + .withExistingResourceGroup(resourceGroupName) + .withAddressSpace("172.16.0.0/16") + .defineSubnet("default") + .withAddressPrefix("172.16.0.0/24") + .attach() + .create(); + +LoadBalancer loadBalancer = networkManager.loadBalancers() + .define(loadBalancerName) + .withRegion(REGION) + .withExistingResourceGroup(resourceGroupName) + .defineLoadBalancingRule(loadBalancerName + "-lbrule") + .withProtocol(TransportProtocol.TCP) + .fromExistingSubnet(network, "default") + .fromFrontendPort(80) + .toBackend(loadBalancerName + "-backend") + .toBackendPort(80) + .attach() + .withSku(LoadBalancerSkuType.STANDARD) + .create(); + +fleet = computeFleetManager.fleets() + .define(fleetName) + .withRegion(REGION) + .withExistingResourceGroup(resourceGroupName) + .withProperties( + new FleetProperties() + .withSpotPriorityProfile( + new SpotPriorityProfile() + .withMaintain(false) + .withCapacity(1) + .withEvictionPolicy(EvictionPolicy.DELETE) + .withAllocationStrategy(SpotAllocationStrategy.LOWEST_PRICE) + ) + .withVmSizesProfile( + Arrays.asList( + new VmSizeProfile().withName("Standard_D4s_v3") + ) + ) + .withComputeProfile( + new ComputeProfile() + .withBaseVirtualMachineProfile( + new BaseVirtualMachineProfile() + .withStorageProfile( + new VirtualMachineScaleSetStorageProfile() + .withImageReference( + new ImageReference() + .withPublisher("canonical") + .withOffer("ubuntu-24_04-lts") + .withSku("server") + .withVersion("latest") + ) + .withOsDisk( + new VirtualMachineScaleSetOSDisk() + .withManagedDisk( + new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) + ) + .withOsType(OperatingSystemTypes.LINUX) + .withDiskSizeGB(30) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDeleteOption(DiskDeleteOptionTypes.DELETE) + .withCaching(CachingTypes.READ_WRITE) + ) + .withDiskControllerType(DiskControllerTypes.SCSI) + ) + .withOsProfile( + new VirtualMachineScaleSetOSProfile() + .withComputerNamePrefix(randomPadding()) + .withAdminUsername(adminUser) + .withAdminPassword(adminPwd) + .withLinuxConfiguration( + new LinuxConfiguration().withDisablePasswordAuthentication(false) + ) + ) + .withNetworkProfile( + new VirtualMachineScaleSetNetworkProfile() + .withNetworkInterfaceConfigurations( + Arrays.asList( + new VirtualMachineScaleSetNetworkConfiguration() + .withName(vmName) + .withProperties( + new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(false) + .withDeleteOption(DeleteOptions.DELETE) + .withIpConfigurations( + Arrays.asList( + new VirtualMachineScaleSetIPConfiguration() + .withName(vmName) + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withPrimary(true) + .withSubnet( + new ApiEntityReference() + .withId(network.subnets().get("default").id()) + ) + .withLoadBalancerBackendAddressPools( + loadBalancer.loadBalancingRules() + .get(loadBalancerName + "-lbrule") + .innerModel().backendAddressPools() + ) + ) + ) + ) + ) + ) + ) + .withNetworkApiVersion(NetworkApiVersion.fromString("2024-03-01")) + ) + ) + .withComputeApiVersion("2024-03-01") + .withPlatformFaultDomainCount(1) + ) + .withRegularPriorityProfile(new RegularPriorityProfile() + .withAllocationStrategy(RegularPriorityAllocationStrategy.LOWEST_PRICE) + .withMinCapacity(1) + .withCapacity(2) + ) + ) + .create(); +``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md) diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md b/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md index a25a21462b328..df5eac7a8d929 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md +++ b/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md @@ -41,8 +41,8 @@ import com.azure.resourcemanager.computefleet.models.DomainNameLabelScopeTypes; import com.azure.resourcemanager.computefleet.models.EncryptionIdentity; import com.azure.resourcemanager.computefleet.models.EvictionPolicy; import com.azure.resourcemanager.computefleet.models.FleetProperties; -import com.azure.resourcemanager.computefleet.models.ImageReference; import com.azure.resourcemanager.computefleet.models.IPVersion; +import com.azure.resourcemanager.computefleet.models.ImageReference; import com.azure.resourcemanager.computefleet.models.KeyVaultSecretReference; import com.azure.resourcemanager.computefleet.models.LinuxConfiguration; import com.azure.resourcemanager.computefleet.models.LinuxPatchAssessmentMode; @@ -56,8 +56,8 @@ import com.azure.resourcemanager.computefleet.models.Mode; import com.azure.resourcemanager.computefleet.models.NetworkApiVersion; import com.azure.resourcemanager.computefleet.models.NetworkInterfaceAuxiliaryMode; import com.azure.resourcemanager.computefleet.models.NetworkInterfaceAuxiliarySku; -import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.OSImageNotificationProfile; +import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.PatchSettings; import com.azure.resourcemanager.computefleet.models.Plan; import com.azure.resourcemanager.computefleet.models.ProtocolTypes; @@ -82,6 +82,9 @@ import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; import com.azure.resourcemanager.computefleet.models.TerminateNotificationProfile; import com.azure.resourcemanager.computefleet.models.UefiSettings; import com.azure.resourcemanager.computefleet.models.UserAssignedIdentity; +import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; +import com.azure.resourcemanager.computefleet.models.VMGalleryApplication; +import com.azure.resourcemanager.computefleet.models.VMSizeProperties; import com.azure.resourcemanager.computefleet.models.VaultCertificate; import com.azure.resourcemanager.computefleet.models.VaultSecretGroup; import com.azure.resourcemanager.computefleet.models.VirtualHardDisk; @@ -104,17 +107,14 @@ import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPubli import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPublicIPAddressConfigurationProperties; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetStorageProfile; -import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; -import com.azure.resourcemanager.computefleet.models.VMGalleryApplication; import com.azure.resourcemanager.computefleet.models.VmSizeProfile; -import com.azure.resourcemanager.computefleet.models.VMSizeProperties; +import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; +import com.azure.resourcemanager.computefleet.models.WinRMListener; import com.azure.resourcemanager.computefleet.models.WindowsConfiguration; import com.azure.resourcemanager.computefleet.models.WindowsPatchAssessmentMode; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformSettings; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchMode; -import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; -import com.azure.resourcemanager.computefleet.models.WinRMListener; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -124,8 +124,7 @@ import java.util.Map; */ public final class FleetsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_CreateOrUpdate.json + * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json */ /** * Sample code: Fleets_CreateOrUpdate. @@ -150,241 +149,231 @@ public final class FleetsCreateOrUpdateSamples { .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_d1_v2").withRank(19225))) .withComputeProfile( new ComputeProfile() - .withBaseVirtualMachineProfile( - new BaseVirtualMachineProfile() - .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") - .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") - .withAdminPassword("fakeTokenPlaceholder") - .withCustomData("xjjib") - .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) - .withEnableAutomaticUpdates(true) - .withTimeZone("hlyjiqcfksgrpjrct") - .withAdditionalUnattendContent(Arrays.asList(new AdditionalUnattendContent() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") + .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") + .withAdminPassword("fakeTokenPlaceholder") + .withCustomData("xjjib") + .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) + .withEnableAutomaticUpdates(true) + .withTimeZone("hlyjiqcfksgrpjrct") + .withAdditionalUnattendContent( + Arrays.asList(new AdditionalUnattendContent() .withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName( AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.AUTO_LOGON) .withContent("bubmqbxjkj"))) - .withPatchSettings( - new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL) - .withEnableHotpatching(true) - .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withWinRM(new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP) - .withCertificateUrl("phwesineizrl")))) - .withEnableVMAgentPlatformUpdates(true)) - .withLinuxConfiguration(new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSsh(new SshConfiguration().withPublicKeys( - Arrays.asList(new SshPublicKey().withPath("kmqz") - .withKeyData("fakeTokenPlaceholder")))) - .withProvisionVMAgent(true) - .withPatchSettings(new LinuxPatchSettings() - .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) - .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new LinuxVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withEnableVMAgentPlatformUpdates(true)) - .withSecrets(Arrays.asList(new VaultSecretGroup() - .withSourceVault(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) - .withVaultCertificates( - Arrays.asList(new VaultCertificate().withCertificateUrl("tyldwkzafmnkvpo") - .withCertificateStore("nlxrwavpzhueffxsshlun"))))) - .withAllowExtensionOperations(true) - .withRequireGuestProvisionSignal(true)) - .withStorageProfile(new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") - .withPublisher("mqxgwbiyjzmxavhbkd") - .withOffer("isxgumkarlkomp") - .withSku("eojmppqcrnpmxirtp") - .withVersion("wvpcqefgtmqdgltiuz") - .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") - .withCommunityGalleryImageId("vlqe")) - .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiffDiskSettings(new DiffDiskSettings() - .withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.CACHE_DISK)) - .withDiskSizeGB(14) - .withOsType(OperatingSystemTypes.WINDOWS) - .withImage(new VirtualHardDisk().withUri("thqceubivdrjs")) - .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDeleteOption(DiskDeleteOptionTypes.DELETE)) - .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() - .withName("eogiykmdmeikswxmigjws") - .withLun(14) - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiskSizeGB(6) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDiskIOPSReadWrite(27L) - .withDiskMBpsReadWrite(2L) - .withDeleteOption(DiskDeleteOptionTypes.DELETE))) - .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) - .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile().withHealthProbe( - new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) - .withNetworkInterfaceConfigurations( - Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(true) - .withDisableTcpStateTracking(true) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) - .withDnsSettings( - new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) - .withIpConfigurations( - Arrays.asList(new VirtualMachineScaleSetIPConfiguration() - .withName("oezqhkidfhyywlfzwuotilrpbqnjg") - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) - .withPrimary(true) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("fvpqf") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(9) - .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel( - "ukrddzvmorpmfsczjwtbvp") - .withDomainNameLabelScope( - DomainNameLabelScopeTypes.TENANT_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag() - .withIpTagType( - "sddgsoemnzgqizale") - .withTag( - "wufmhrjsakbiaetyara"))) - .withPublicIPPrefix( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) - .withPublicIPAddressVersion( - IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku() - .withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV4) - .withApplicationGatewayBackendAddressPools( - Arrays.asList( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) - .withApplicationSecurityGroups(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) - .withLoadBalancerBackendAddressPools(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) - .withEnableIPForwarding(true) - .withDeleteOption(DeleteOptions.DELETE) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) - .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)) - .withSecurityProfile(new SecurityProfile() - .withUefiSettings( - new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) - .withEncryptionAtHost(true) - .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) - .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) - .withProxyAgentSettings(new ProxyAgentSettings() - .withEnabled(true) - .withMode(Mode.AUDIT) - .withKeyIncarnationId(20))) - .withDiagnosticsProfile( - new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() - .withEnabled(true) - .withStorageUri("rzamfwghybpx"))) - .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() - .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension() - .withName("bndxuxx") - .withProperties( - new VirtualMachineScaleSetExtensionProperties().withForceUpdateTag("yhgxw") - .withPublisher("kpxtirxjfprhs") - .withType("pgjilctjjwaa") - .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") - .withAutoUpgradeMinorVersion(true) - .withEnableAutomaticUpgrade(true) - .withSettings(mapOf()) - .withProtectedSettings(mapOf()) - .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) - .withSuppressFailures(true) - .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() - .withSecretUrl("fakeTokenPlaceholder") - .withSourceVault( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) - .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) - .withLicenseType("v") - .withScheduledEventsProfile(new ScheduledEventsProfile() - .withTerminateNotificationProfile( - new TerminateNotificationProfile().withNotBeforeTimeout("iljppmmw") - .withEnable(true)) - .withOsImageNotificationProfile(new OSImageNotificationProfile() - .withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") + .withPatchSettings(new PatchSettings() + .withPatchMode(WindowsVMGuestPatchMode.MANUAL) + .withEnableHotpatching(true) + .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new WindowsVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withWinRM(new WinRMConfiguration().withListeners(Arrays.asList(new WinRMListener() + .withProtocol(ProtocolTypes.HTTPS) + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName")))) + .withEnableVMAgentPlatformUpdates(true)) + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(true) + .withSsh(new SshConfiguration().withPublicKeys(Arrays.asList( + new SshPublicKey().withPath("kmqz").withKeyData("fakeTokenPlaceholder")))) + .withProvisionVMAgent(true) + .withPatchSettings(new LinuxPatchSettings() + .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) + .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new LinuxVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withEnableVMAgentPlatformUpdates(true)) + .withSecrets(Arrays.asList(new VaultSecretGroup() + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) + .withVaultCertificates(Arrays.asList(new VaultCertificate() + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName") + .withCertificateStore("nlxrwavpzhueffxsshlun"))))) + .withAllowExtensionOperations(true) + .withRequireGuestProvisionSignal(true)) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") + .withPublisher("mqxgwbiyjzmxavhbkd") + .withOffer("isxgumkarlkomp") + .withSku("eojmppqcrnpmxirtp") + .withVersion("wvpcqefgtmqdgltiuz") + .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") + .withCommunityGalleryImageId("vlqe")) + .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiffDiskSettings(new DiffDiskSettings() + .withOption(DiffDiskOptions.LOCAL) + .withPlacement(DiffDiskPlacement.CACHE_DISK)) + .withDiskSizeGB(14) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri( + "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd")) + .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDeleteOption(DiskDeleteOptionTypes.DELETE)) + .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() + .withName("eogiykmdmeikswxmigjws") + .withLun(14) + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiskSizeGB(6) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDiskIOPSReadWrite(27L) + .withDiskMBpsReadWrite(2L) + .withDeleteOption(DiskDeleteOptionTypes.DELETE))) + .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withHealthProbe(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) + .withIpConfigurations( + Arrays.asList(new VirtualMachineScaleSetIPConfiguration() + .withName("oezqhkidfhyywlfzwuotilrpbqnjg") + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) + .withPrimary(true) + .withPublicIPAddressConfiguration( + new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("fvpqf") + .withProperties( + new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(9) + .withDnsSettings( + new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel( + "ukrddzvmorpmfsczjwtbvp") + .withDomainNameLabelScope( + DomainNameLabelScopeTypes.TENANT_REUSE)) + .withIpTags(Arrays.asList( + new VirtualMachineScaleSetIpTag() + .withIpTagType("sddgsoemnzgqizale") + .withTag("wufmhrjsakbiaetyara"))) + .withPublicIPPrefix( + new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) + .withPublicIPAddressVersion(IPVersion.IPV4) + .withDeleteOption(DeleteOptions.DELETE)) + .withSku(new PublicIPAddressSku() + .withName(PublicIPAddressSkuName.BASIC) + .withTier(PublicIPAddressSkuTier.REGIONAL))) + .withPrivateIPAddressVersion(IPVersion.IPV4) + .withApplicationGatewayBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) + .withApplicationSecurityGroups(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) + .withLoadBalancerBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) + .withNetworkApiVersion(NetworkApiVersion.V2020_11_01)) + .withSecurityProfile(new SecurityProfile() + .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) + .withEncryptionAtHost(true) + .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) + .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) + .withProxyAgentSettings(new ProxyAgentSettings().withEnabled(true) + .withMode(Mode.AUDIT) + .withKeyIncarnationId(20))) + .withDiagnosticsProfile( + new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() + .withEnabled(true) + .withStorageUri("http://myStorageAccountName.blob.core.windows.net"))) + .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() + .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension().withName("bndxuxx") + .withProperties(new VirtualMachineScaleSetExtensionProperties() + .withForceUpdateTag("yhgxw") + .withPublisher("kpxtirxjfprhs") + .withType("pgjilctjjwaa") + .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") + .withAutoUpgradeMinorVersion(true) + .withEnableAutomaticUpgrade(true) + .withSettings(mapOf()) + .withProtectedSettings(mapOf()) + .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) + .withSuppressFailures(true) + .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() + .withSecretUrl("fakeTokenPlaceholder") + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) + .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) + .withLicenseType("v") + .withScheduledEventsProfile(new ScheduledEventsProfile() + .withTerminateNotificationProfile(new TerminateNotificationProfile() + .withNotBeforeTimeout("iljppmmw") + .withEnable(true)) + .withOsImageNotificationProfile( + new OSImageNotificationProfile().withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") .withEnable(true))) - .withUserData("s") - .withCapacityReservation(new CapacityReservationProfile() - .withCapacityReservationGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) - .withApplicationProfile(new ApplicationProfile().withGalleryApplications(Arrays - .asList(new VMGalleryApplication().withTags("eyrqjbib") - .withOrder(5) - .withPackageReferenceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") - .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") - .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(true)))) - .withHardwareProfile(new VirtualMachineScaleSetHardwareProfile() - .withVmSizeProperties(new VMSizeProperties() - .withVCPUsAvailable(16) - .withVCPUsPerCore(23))) - .withServiceArtifactReference(new ServiceArtifactReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) - .withSecurityPostureReference(new SecurityPostureReference().withId( - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") - .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) - .withIsOverridable(true))) + .withUserData("s") + .withCapacityReservation(new CapacityReservationProfile() + .withCapacityReservationGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) + .withApplicationProfile(new ApplicationProfile().withGalleryApplications( + Arrays.asList(new VMGalleryApplication().withTags("eyrqjbib") + .withOrder(5) + .withPackageReferenceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") + .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") + .withTreatFailureAsDeploymentFailure(true) + .withEnableAutomaticUpgrade(true)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withVmSizeProperties(new VMSizeProperties() + .withVCPUsAvailable(16) + .withVCPUsPerCore(23))) + .withServiceArtifactReference(new ServiceArtifactReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) + .withSecurityPostureReference(new SecurityPostureReference().withId( + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") + .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) + .withIsOverridable(true))) .withComputeApiVersion("2023-07-01") .withPlatformFaultDomainCount(1))) .withZones(Arrays.asList("zone1", "zone2")) @@ -398,6 +387,71 @@ public final class FleetsCreateOrUpdateSamples { .create(); } + /* + * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json + */ + /** + * Sample code: Fleets_CreateOrUpdate_MinimumSet. + * + * @param manager Entry point to ComputeFleetManager. + */ + public static void + fleetsCreateOrUpdateMinimumSet(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) { + manager.fleets() + .define("testFleet") + .withRegion("eastus2euap") + .withExistingResourceGroup("rgazurefleet") + .withTags(mapOf("key", "fakeTokenPlaceholder")) + .withProperties(new FleetProperties() + .withSpotPriorityProfile(new SpotPriorityProfile().withCapacity(2) + .withMinCapacity(1) + .withEvictionPolicy(EvictionPolicy.DELETE) + .withAllocationStrategy(SpotAllocationStrategy.PRICE_CAPACITY_OPTIMIZED) + .withMaintain(true)) + .withRegularPriorityProfile(new RegularPriorityProfile().withCapacity(2) + .withMinCapacity(1) + .withAllocationStrategy(RegularPriorityAllocationStrategy.LOWEST_PRICE)) + .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_D2s_v3"), + new VmSizeProfile().withName("Standard_D4s_v3"), new VmSizeProfile().withName("Standard_E2s_v3"))) + .withComputeProfile(new ComputeProfile() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("prefix") + .withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder") + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(false))) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withPublisher("canonical") + .withOffer("0001-com-ubuntu-server-focal") + .withSku("20_04-lts-gen2") + .withVersion("latest")) + .withOsDisk(new VirtualMachineScaleSetOSDisk() + .withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withOsType(OperatingSystemTypes.LINUX) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("vmNameTest") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(false) + .withIpConfigurations(Arrays.asList(new VirtualMachineScaleSetIPConfiguration() + .withName("vmNameTest") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) + .withPrimary(true) + .withLoadBalancerBackendAddressPools( + Arrays.asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}")))))) + .withEnableIPForwarding(true)))) + .withNetworkApiVersion(NetworkApiVersion.fromString("2022-07-01")))) + .withComputeApiVersion("2023-09-01") + .withPlatformFaultDomainCount(1))) + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -420,7 +474,7 @@ public final class FleetsCreateOrUpdateSamples { */ public final class FleetsDeleteSamples { /* - * x-ms-original-file: specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_Delete.json + * x-ms-original-file: 2024-11-01/Fleets_Delete.json */ /** * Sample code: Fleets_Delete. @@ -441,7 +495,7 @@ public final class FleetsDeleteSamples { */ public final class FleetsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_Get.json + * x-ms-original-file: 2024-11-01/Fleets_Get.json */ /** * Sample code: Fleets_Get. @@ -462,8 +516,7 @@ public final class FleetsGetByResourceGroupSamples { */ public final class FleetsListSamples { /* - * x-ms-original-file: - * specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_ListBySubscription.json + * x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json */ /** * Sample code: Fleets_ListBySubscription. @@ -484,8 +537,7 @@ public final class FleetsListSamples { */ public final class FleetsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_ListByResourceGroup.json + * x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json */ /** * Sample code: Fleets_ListByResourceGroup. @@ -506,9 +558,7 @@ public final class FleetsListByResourceGroupSamples { */ public final class FleetsListVirtualMachineScaleSetsSamples { /* - * x-ms-original-file: - * specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_ListVirtualMachineScaleSets. - * json + * x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json */ /** * Sample code: Fleets_ListVirtualMachineScaleSets. @@ -550,8 +600,8 @@ import com.azure.resourcemanager.computefleet.models.EncryptionIdentity; import com.azure.resourcemanager.computefleet.models.EvictionPolicy; import com.azure.resourcemanager.computefleet.models.Fleet; import com.azure.resourcemanager.computefleet.models.FleetProperties; -import com.azure.resourcemanager.computefleet.models.ImageReference; import com.azure.resourcemanager.computefleet.models.IPVersion; +import com.azure.resourcemanager.computefleet.models.ImageReference; import com.azure.resourcemanager.computefleet.models.KeyVaultSecretReference; import com.azure.resourcemanager.computefleet.models.LinuxConfiguration; import com.azure.resourcemanager.computefleet.models.LinuxPatchAssessmentMode; @@ -565,8 +615,8 @@ import com.azure.resourcemanager.computefleet.models.Mode; import com.azure.resourcemanager.computefleet.models.NetworkApiVersion; import com.azure.resourcemanager.computefleet.models.NetworkInterfaceAuxiliaryMode; import com.azure.resourcemanager.computefleet.models.NetworkInterfaceAuxiliarySku; -import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.OSImageNotificationProfile; +import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.PatchSettings; import com.azure.resourcemanager.computefleet.models.ProtocolTypes; import com.azure.resourcemanager.computefleet.models.ProxyAgentSettings; @@ -590,6 +640,9 @@ import com.azure.resourcemanager.computefleet.models.SshPublicKey; import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; import com.azure.resourcemanager.computefleet.models.TerminateNotificationProfile; import com.azure.resourcemanager.computefleet.models.UefiSettings; +import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; +import com.azure.resourcemanager.computefleet.models.VMGalleryApplication; +import com.azure.resourcemanager.computefleet.models.VMSizeProperties; import com.azure.resourcemanager.computefleet.models.VaultCertificate; import com.azure.resourcemanager.computefleet.models.VaultSecretGroup; import com.azure.resourcemanager.computefleet.models.VirtualHardDisk; @@ -612,17 +665,14 @@ import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPubli import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetPublicIPAddressConfigurationProperties; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetStorageProfile; -import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; -import com.azure.resourcemanager.computefleet.models.VMGalleryApplication; import com.azure.resourcemanager.computefleet.models.VmSizeProfile; -import com.azure.resourcemanager.computefleet.models.VMSizeProperties; +import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; +import com.azure.resourcemanager.computefleet.models.WinRMListener; import com.azure.resourcemanager.computefleet.models.WindowsConfiguration; import com.azure.resourcemanager.computefleet.models.WindowsPatchAssessmentMode; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformSettings; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchMode; -import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; -import com.azure.resourcemanager.computefleet.models.WinRMListener; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -632,7 +682,7 @@ import java.util.Map; */ public final class FleetsUpdateSamples { /* - * x-ms-original-file: specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Fleets_Update.json + * x-ms-original-file: 2024-11-01/Fleets_Update.json */ /** * Sample code: Fleets_Update. @@ -665,241 +715,231 @@ public final class FleetsUpdateSamples { .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_d1_v2").withRank(19225))) .withComputeProfile( new ComputeProfile() - .withBaseVirtualMachineProfile( - new BaseVirtualMachineProfile() - .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") - .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") - .withAdminPassword("fakeTokenPlaceholder") - .withCustomData("xjjib") - .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) - .withEnableAutomaticUpdates(true) - .withTimeZone("hlyjiqcfksgrpjrct") - .withAdditionalUnattendContent(Arrays.asList(new AdditionalUnattendContent() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") + .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") + .withAdminPassword("fakeTokenPlaceholder") + .withCustomData("xjjib") + .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) + .withEnableAutomaticUpdates(true) + .withTimeZone("hlyjiqcfksgrpjrct") + .withAdditionalUnattendContent( + Arrays.asList(new AdditionalUnattendContent() .withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName( AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.AUTO_LOGON) .withContent("bubmqbxjkj"))) - .withPatchSettings( - new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL) - .withEnableHotpatching(true) - .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withWinRM(new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP) - .withCertificateUrl("phwesineizrl")))) - .withEnableVMAgentPlatformUpdates(true)) - .withLinuxConfiguration(new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSsh(new SshConfiguration().withPublicKeys( - Arrays.asList(new SshPublicKey().withPath("kmqz") - .withKeyData("fakeTokenPlaceholder")))) - .withProvisionVMAgent(true) - .withPatchSettings(new LinuxPatchSettings() - .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) - .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new LinuxVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withEnableVMAgentPlatformUpdates(true)) - .withSecrets(Arrays.asList(new VaultSecretGroup() - .withSourceVault(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) - .withVaultCertificates( - Arrays.asList(new VaultCertificate().withCertificateUrl("tyldwkzafmnkvpo") - .withCertificateStore("nlxrwavpzhueffxsshlun"))))) - .withAllowExtensionOperations(true) - .withRequireGuestProvisionSignal(true)) - .withStorageProfile(new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") - .withPublisher("mqxgwbiyjzmxavhbkd") - .withOffer("isxgumkarlkomp") - .withSku("eojmppqcrnpmxirtp") - .withVersion("wvpcqefgtmqdgltiuz") - .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") - .withCommunityGalleryImageId("vlqe")) - .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiffDiskSettings(new DiffDiskSettings() - .withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.CACHE_DISK)) - .withDiskSizeGB(14) - .withOsType(OperatingSystemTypes.WINDOWS) - .withImage(new VirtualHardDisk().withUri("thqceubivdrjs")) - .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDeleteOption(DiskDeleteOptionTypes.DELETE)) - .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() - .withName("eogiykmdmeikswxmigjws") - .withLun(14) - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiskSizeGB(6) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDiskIOPSReadWrite(27L) - .withDiskMBpsReadWrite(2L) - .withDeleteOption(DiskDeleteOptionTypes.DELETE))) - .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) - .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile().withHealthProbe( - new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) - .withNetworkInterfaceConfigurations( - Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(true) - .withDisableTcpStateTracking(true) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) - .withDnsSettings( - new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) - .withIpConfigurations( - Arrays.asList(new VirtualMachineScaleSetIPConfiguration() - .withName("oezqhkidfhyywlfzwuotilrpbqnjg") - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) - .withPrimary(true) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("fvpqf") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(9) - .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel( - "ukrddzvmorpmfsczjwtbvp") - .withDomainNameLabelScope( - DomainNameLabelScopeTypes.TENANT_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag() - .withIpTagType( - "sddgsoemnzgqizale") - .withTag( - "wufmhrjsakbiaetyara"))) - .withPublicIPPrefix( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) - .withPublicIPAddressVersion( - IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku() - .withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV4) - .withApplicationGatewayBackendAddressPools( - Arrays.asList( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) - .withApplicationSecurityGroups(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) - .withLoadBalancerBackendAddressPools(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) - .withEnableIPForwarding(true) - .withDeleteOption(DeleteOptions.DELETE) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) - .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)) - .withSecurityProfile(new SecurityProfile() - .withUefiSettings( - new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) - .withEncryptionAtHost(true) - .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) - .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) - .withProxyAgentSettings(new ProxyAgentSettings() - .withEnabled(true) - .withMode(Mode.AUDIT) - .withKeyIncarnationId(20))) - .withDiagnosticsProfile( - new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() - .withEnabled(true) - .withStorageUri("rzamfwghybpx"))) - .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() - .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension() - .withName("bndxuxx") - .withProperties( - new VirtualMachineScaleSetExtensionProperties().withForceUpdateTag("yhgxw") - .withPublisher("kpxtirxjfprhs") - .withType("pgjilctjjwaa") - .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") - .withAutoUpgradeMinorVersion(true) - .withEnableAutomaticUpgrade(true) - .withSettings(mapOf()) - .withProtectedSettings(mapOf()) - .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) - .withSuppressFailures(true) - .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() - .withSecretUrl("fakeTokenPlaceholder") - .withSourceVault( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) - .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) - .withLicenseType("v") - .withScheduledEventsProfile(new ScheduledEventsProfile() - .withTerminateNotificationProfile( - new TerminateNotificationProfile().withNotBeforeTimeout("iljppmmw") - .withEnable(true)) - .withOsImageNotificationProfile(new OSImageNotificationProfile() - .withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") + .withPatchSettings(new PatchSettings() + .withPatchMode(WindowsVMGuestPatchMode.MANUAL) + .withEnableHotpatching(true) + .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new WindowsVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withWinRM(new WinRMConfiguration().withListeners(Arrays.asList(new WinRMListener() + .withProtocol(ProtocolTypes.HTTP) + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName")))) + .withEnableVMAgentPlatformUpdates(true)) + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(true) + .withSsh(new SshConfiguration().withPublicKeys(Arrays.asList( + new SshPublicKey().withPath("kmqz").withKeyData("fakeTokenPlaceholder")))) + .withProvisionVMAgent(true) + .withPatchSettings(new LinuxPatchSettings() + .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) + .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new LinuxVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withEnableVMAgentPlatformUpdates(true)) + .withSecrets(Arrays.asList(new VaultSecretGroup() + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) + .withVaultCertificates(Arrays.asList(new VaultCertificate() + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName") + .withCertificateStore("nlxrwavpzhueffxsshlun"))))) + .withAllowExtensionOperations(true) + .withRequireGuestProvisionSignal(true)) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") + .withPublisher("mqxgwbiyjzmxavhbkd") + .withOffer("isxgumkarlkomp") + .withSku("eojmppqcrnpmxirtp") + .withVersion("wvpcqefgtmqdgltiuz") + .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") + .withCommunityGalleryImageId("vlqe")) + .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiffDiskSettings(new DiffDiskSettings() + .withOption(DiffDiskOptions.LOCAL) + .withPlacement(DiffDiskPlacement.CACHE_DISK)) + .withDiskSizeGB(14) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri( + "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd")) + .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDeleteOption(DiskDeleteOptionTypes.DELETE)) + .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() + .withName("eogiykmdmeikswxmigjws") + .withLun(14) + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiskSizeGB(6) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDiskIOPSReadWrite(27L) + .withDiskMBpsReadWrite(2L) + .withDeleteOption(DiskDeleteOptionTypes.DELETE))) + .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withHealthProbe(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) + .withIpConfigurations( + Arrays.asList(new VirtualMachineScaleSetIPConfiguration() + .withName("oezqhkidfhyywlfzwuotilrpbqnjg") + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) + .withPrimary(true) + .withPublicIPAddressConfiguration( + new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("fvpqf") + .withProperties( + new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(9) + .withDnsSettings( + new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel( + "ukrddzvmorpmfsczjwtbvp") + .withDomainNameLabelScope( + DomainNameLabelScopeTypes.TENANT_REUSE)) + .withIpTags(Arrays.asList( + new VirtualMachineScaleSetIpTag() + .withIpTagType("sddgsoemnzgqizale") + .withTag("wufmhrjsakbiaetyara"))) + .withPublicIPPrefix( + new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) + .withPublicIPAddressVersion(IPVersion.IPV4) + .withDeleteOption(DeleteOptions.DELETE)) + .withSku(new PublicIPAddressSku() + .withName(PublicIPAddressSkuName.BASIC) + .withTier(PublicIPAddressSkuTier.REGIONAL))) + .withPrivateIPAddressVersion(IPVersion.IPV4) + .withApplicationGatewayBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) + .withApplicationSecurityGroups(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) + .withLoadBalancerBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) + .withNetworkApiVersion(NetworkApiVersion.V2020_11_01)) + .withSecurityProfile(new SecurityProfile() + .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) + .withEncryptionAtHost(true) + .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) + .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) + .withProxyAgentSettings(new ProxyAgentSettings().withEnabled(true) + .withMode(Mode.AUDIT) + .withKeyIncarnationId(20))) + .withDiagnosticsProfile( + new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() + .withEnabled(true) + .withStorageUri("http://myStorageAccountName.blob.core.windows.net"))) + .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() + .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension().withName("bndxuxx") + .withProperties(new VirtualMachineScaleSetExtensionProperties() + .withForceUpdateTag("yhgxw") + .withPublisher("kpxtirxjfprhs") + .withType("pgjilctjjwaa") + .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") + .withAutoUpgradeMinorVersion(true) + .withEnableAutomaticUpgrade(true) + .withSettings(mapOf()) + .withProtectedSettings(mapOf()) + .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) + .withSuppressFailures(true) + .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() + .withSecretUrl("fakeTokenPlaceholder") + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) + .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) + .withLicenseType("v") + .withScheduledEventsProfile(new ScheduledEventsProfile() + .withTerminateNotificationProfile(new TerminateNotificationProfile() + .withNotBeforeTimeout("iljppmmw") + .withEnable(true)) + .withOsImageNotificationProfile( + new OSImageNotificationProfile().withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") .withEnable(true))) - .withUserData("s") - .withCapacityReservation(new CapacityReservationProfile() - .withCapacityReservationGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) - .withApplicationProfile(new ApplicationProfile().withGalleryApplications(Arrays - .asList(new VMGalleryApplication().withTags("eyrqjbib") - .withOrder(5) - .withPackageReferenceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") - .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") - .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(true)))) - .withHardwareProfile(new VirtualMachineScaleSetHardwareProfile() - .withVmSizeProperties(new VMSizeProperties() - .withVCPUsAvailable(16) - .withVCPUsPerCore(23))) - .withServiceArtifactReference(new ServiceArtifactReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) - .withSecurityPostureReference(new SecurityPostureReference().withId( - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") - .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) - .withIsOverridable(true))) + .withUserData("s") + .withCapacityReservation(new CapacityReservationProfile() + .withCapacityReservationGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) + .withApplicationProfile(new ApplicationProfile().withGalleryApplications( + Arrays.asList(new VMGalleryApplication().withTags("eyrqjbib") + .withOrder(5) + .withPackageReferenceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") + .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") + .withTreatFailureAsDeploymentFailure(true) + .withEnableAutomaticUpgrade(true)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withVmSizeProperties(new VMSizeProperties() + .withVCPUsAvailable(16) + .withVCPUsPerCore(23))) + .withServiceArtifactReference(new ServiceArtifactReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) + .withSecurityPostureReference(new SecurityPostureReference().withId( + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") + .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) + .withIsOverridable(true))) .withComputeApiVersion("2023-07-01") .withPlatformFaultDomainCount(1))) .apply(); @@ -927,8 +967,7 @@ public final class FleetsUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/azurefleet/AzureFleet.Management/examples/2024-05-01-preview/Operations_List.json + * x-ms-original-file: 2024-11-01/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/pom.xml b/sdk/computefleet/azure-resourcemanager-computefleet/pom.xml index 04bd3cea2d7b4..d3dcb863db6b5 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/pom.xml +++ b/sdk/computefleet/azure-resourcemanager-computefleet/pom.xml @@ -46,13 +46,9 @@ 0 0 true + false - - com.azure - azure-json - 1.3.0 - com.azure azure-core @@ -68,12 +64,6 @@ azure-core-test 1.27.0-beta.2 test - - - com.azure - azure-core-http-jdk-httpclient - - com.azure @@ -81,6 +71,11 @@ 1.14.0 test + + com.azure + azure-json + 1.3.0 + com.azure.resourcemanager azure-resourcemanager-resources diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/implementation/AzureFleetClientImpl.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/implementation/AzureFleetClientImpl.java index 1b6c3971ca074..28c4e9f64699a 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/implementation/AzureFleetClientImpl.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/implementation/AzureFleetClientImpl.java @@ -169,7 +169,7 @@ public FleetsClient getFleets() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2024-05-01-preview"; + this.apiVersion = "2024-11-01"; this.operations = new OperationsClientImpl(this); this.fleets = new FleetsClientImpl(this); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorManufacturer.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorManufacturer.java new file mode 100644 index 0000000000000..92fd3fbe80d6d --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorManufacturer.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Accelerator manufacturers supported by Azure VMs. + */ +public final class AcceleratorManufacturer extends ExpandableStringEnum { + /** + * AMD GpuType. + */ + public static final AcceleratorManufacturer AMD = fromString("AMD"); + + /** + * Nvidia GpuType. + */ + public static final AcceleratorManufacturer NVIDIA = fromString("Nvidia"); + + /** + * Xilinx GpuType. + */ + public static final AcceleratorManufacturer XILINX = fromString("Xilinx"); + + /** + * Creates a new instance of AcceleratorManufacturer value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AcceleratorManufacturer() { + } + + /** + * Creates or finds a AcceleratorManufacturer from its string representation. + * + * @param name a name to look for. + * @return the corresponding AcceleratorManufacturer. + */ + public static AcceleratorManufacturer fromString(String name) { + return fromString(name, AcceleratorManufacturer.class); + } + + /** + * Gets known AcceleratorManufacturer values. + * + * @return known AcceleratorManufacturer values. + */ + public static Collection values() { + return values(AcceleratorManufacturer.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorType.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorType.java new file mode 100644 index 0000000000000..bd416ee42a2c2 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AcceleratorType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Accelerator types supported by Azure VMs. + */ +public final class AcceleratorType extends ExpandableStringEnum { + /** + * GPU Accelerator. + */ + public static final AcceleratorType GPU = fromString("GPU"); + + /** + * FPGA Accelerator. + */ + public static final AcceleratorType FPGA = fromString("FPGA"); + + /** + * Creates a new instance of AcceleratorType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AcceleratorType() { + } + + /** + * Creates or finds a AcceleratorType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AcceleratorType. + */ + public static AcceleratorType fromString(String name) { + return fromString(name, AcceleratorType.class); + } + + /** + * Gets known AcceleratorType values. + * + * @return known AcceleratorType values. + */ + public static Collection values() { + return values(AcceleratorType.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalCapabilities.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalCapabilities.java new file mode 100644 index 0000000000000..ce0e3a80d275e --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalCapabilities.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * AdditionalCapabilities for VM. + */ +@Fluent +public final class AdditionalCapabilities implements JsonSerializable { + /* + * The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage + * account type on the VM or VMSS. + * Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale + * set only if this property is enabled. + */ + private Boolean ultraSSDEnabled; + + /* + * The flag that enables or disables hibernation capability on the VM. + */ + private Boolean hibernationEnabled; + + /** + * Creates an instance of AdditionalCapabilities class. + */ + public AdditionalCapabilities() { + } + + /** + * Get the ultraSSDEnabled property: The flag that enables or disables a capability to have one or more managed data + * disks with UltraSSD_LRS storage account type on the VM or VMSS. + * Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale + * set only if this property is enabled. + * + * @return the ultraSSDEnabled value. + */ + public Boolean ultraSSDEnabled() { + return this.ultraSSDEnabled; + } + + /** + * Set the ultraSSDEnabled property: The flag that enables or disables a capability to have one or more managed data + * disks with UltraSSD_LRS storage account type on the VM or VMSS. + * Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale + * set only if this property is enabled. + * + * @param ultraSSDEnabled the ultraSSDEnabled value to set. + * @return the AdditionalCapabilities object itself. + */ + public AdditionalCapabilities withUltraSSDEnabled(Boolean ultraSSDEnabled) { + this.ultraSSDEnabled = ultraSSDEnabled; + return this; + } + + /** + * Get the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM. + * + * @return the hibernationEnabled value. + */ + public Boolean hibernationEnabled() { + return this.hibernationEnabled; + } + + /** + * Set the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM. + * + * @param hibernationEnabled the hibernationEnabled value to set. + * @return the AdditionalCapabilities object itself. + */ + public AdditionalCapabilities withHibernationEnabled(Boolean hibernationEnabled) { + this.hibernationEnabled = hibernationEnabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("ultraSSDEnabled", this.ultraSSDEnabled); + jsonWriter.writeBooleanField("hibernationEnabled", this.hibernationEnabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalCapabilities from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalCapabilities if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdditionalCapabilities. + */ + public static AdditionalCapabilities fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalCapabilities deserializedAdditionalCapabilities = new AdditionalCapabilities(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ultraSSDEnabled".equals(fieldName)) { + deserializedAdditionalCapabilities.ultraSSDEnabled = reader.getNullable(JsonReader::getBoolean); + } else if ("hibernationEnabled".equals(fieldName)) { + deserializedAdditionalCapabilities.hibernationEnabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalCapabilities; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalLocationsProfile.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalLocationsProfile.java new file mode 100644 index 0000000000000..d39fe6d2d14d4 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/AdditionalLocationsProfile.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Represents the configuration for additional locations where Fleet resources may be deployed. + */ +@Fluent +public final class AdditionalLocationsProfile implements JsonSerializable { + /* + * The list of location profiles. + */ + private List locationProfiles; + + /** + * Creates an instance of AdditionalLocationsProfile class. + */ + public AdditionalLocationsProfile() { + } + + /** + * Get the locationProfiles property: The list of location profiles. + * + * @return the locationProfiles value. + */ + public List locationProfiles() { + return this.locationProfiles; + } + + /** + * Set the locationProfiles property: The list of location profiles. + * + * @param locationProfiles the locationProfiles value to set. + * @return the AdditionalLocationsProfile object itself. + */ + public AdditionalLocationsProfile withLocationProfiles(List locationProfiles) { + this.locationProfiles = locationProfiles; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (locationProfiles() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property locationProfiles in model AdditionalLocationsProfile")); + } else { + locationProfiles().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AdditionalLocationsProfile.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("locationProfiles", this.locationProfiles, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalLocationsProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalLocationsProfile if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AdditionalLocationsProfile. + */ + public static AdditionalLocationsProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalLocationsProfile deserializedAdditionalLocationsProfile = new AdditionalLocationsProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("locationProfiles".equals(fieldName)) { + List locationProfiles + = reader.readArray(reader1 -> LocationProfile.fromJson(reader1)); + deserializedAdditionalLocationsProfile.locationProfiles = locationProfiles; + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalLocationsProfile; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ArchitectureType.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ArchitectureType.java new file mode 100644 index 0000000000000..b18d8f59d01fc --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ArchitectureType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Architecture types supported by Azure VMs. + */ +public final class ArchitectureType extends ExpandableStringEnum { + /** + * ARM64 Architecture. + */ + public static final ArchitectureType ARM64 = fromString("ARM64"); + + /** + * X64 Architecture. + */ + public static final ArchitectureType X64 = fromString("X64"); + + /** + * Creates a new instance of ArchitectureType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ArchitectureType() { + } + + /** + * Creates or finds a ArchitectureType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ArchitectureType. + */ + public static ArchitectureType fromString(String name) { + return fromString(name, ArchitectureType.class); + } + + /** + * Gets known ArchitectureType values. + * + * @return known ArchitectureType values. + */ + public static Collection values() { + return values(ArchitectureType.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ComputeProfile.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ComputeProfile.java index b087d1632fde5..9941d9e05eb5a 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ComputeProfile.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/ComputeProfile.java @@ -39,6 +39,15 @@ public final class ComputeProfile implements JsonSerializable { */ private Integer platformFaultDomainCount; + /* + * Specifies VMSS and VM API entity models support two additional capabilities as of today: ultraSSDEnabled and + * hibernationEnabled. + * ultraSSDEnabled: Enables UltraSSD_LRS storage account type on the VMSS VMs. + * hibernationEnabled: Enables the hibernation capability on the VMSS VMs. + * Default value is null if not specified. This property cannot be updated once set. + */ + private AdditionalCapabilities additionalVirtualMachineCapabilities; + /** * Creates an instance of ComputeProfile class. */ @@ -121,6 +130,35 @@ public ComputeProfile withPlatformFaultDomainCount(Integer platformFaultDomainCo return this; } + /** + * Get the additionalVirtualMachineCapabilities property: Specifies VMSS and VM API entity models support two + * additional capabilities as of today: ultraSSDEnabled and hibernationEnabled. + * ultraSSDEnabled: Enables UltraSSD_LRS storage account type on the VMSS VMs. + * hibernationEnabled: Enables the hibernation capability on the VMSS VMs. + * Default value is null if not specified. This property cannot be updated once set. + * + * @return the additionalVirtualMachineCapabilities value. + */ + public AdditionalCapabilities additionalVirtualMachineCapabilities() { + return this.additionalVirtualMachineCapabilities; + } + + /** + * Set the additionalVirtualMachineCapabilities property: Specifies VMSS and VM API entity models support two + * additional capabilities as of today: ultraSSDEnabled and hibernationEnabled. + * ultraSSDEnabled: Enables UltraSSD_LRS storage account type on the VMSS VMs. + * hibernationEnabled: Enables the hibernation capability on the VMSS VMs. + * Default value is null if not specified. This property cannot be updated once set. + * + * @param additionalVirtualMachineCapabilities the additionalVirtualMachineCapabilities value to set. + * @return the ComputeProfile object itself. + */ + public ComputeProfile + withAdditionalVirtualMachineCapabilities(AdditionalCapabilities additionalVirtualMachineCapabilities) { + this.additionalVirtualMachineCapabilities = additionalVirtualMachineCapabilities; + return this; + } + /** * Validates the instance. * @@ -134,6 +172,9 @@ public void validate() { } else { baseVirtualMachineProfile().validate(); } + if (additionalVirtualMachineCapabilities() != null) { + additionalVirtualMachineCapabilities().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(ComputeProfile.class); @@ -147,6 +188,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("baseVirtualMachineProfile", this.baseVirtualMachineProfile); jsonWriter.writeStringField("computeApiVersion", this.computeApiVersion); jsonWriter.writeNumberField("platformFaultDomainCount", this.platformFaultDomainCount); + jsonWriter.writeJsonField("additionalVirtualMachineCapabilities", this.additionalVirtualMachineCapabilities); return jsonWriter.writeEndObject(); } @@ -172,6 +214,9 @@ public static ComputeProfile fromJson(JsonReader jsonReader) throws IOException deserializedComputeProfile.computeApiVersion = reader.getString(); } else if ("platformFaultDomainCount".equals(fieldName)) { deserializedComputeProfile.platformFaultDomainCount = reader.getNullable(JsonReader::getInt); + } else if ("additionalVirtualMachineCapabilities".equals(fieldName)) { + deserializedComputeProfile.additionalVirtualMachineCapabilities + = AdditionalCapabilities.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/CpuManufacturer.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/CpuManufacturer.java new file mode 100644 index 0000000000000..044ab0deb8950 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/CpuManufacturer.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cpu Manufacturers supported by Azure VMs. + */ +public final class CpuManufacturer extends ExpandableStringEnum { + /** + * Intel CPU. + */ + public static final CpuManufacturer INTEL = fromString("Intel"); + + /** + * AMD CPU. + */ + public static final CpuManufacturer AMD = fromString("AMD"); + + /** + * Microsoft CPU. + */ + public static final CpuManufacturer MICROSOFT = fromString("Microsoft"); + + /** + * Ampere CPU. + */ + public static final CpuManufacturer AMPERE = fromString("Ampere"); + + /** + * Creates a new instance of CpuManufacturer value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CpuManufacturer() { + } + + /** + * Creates or finds a CpuManufacturer from its string representation. + * + * @param name a name to look for. + * @return the corresponding CpuManufacturer. + */ + public static CpuManufacturer fromString(String name) { + return fromString(name, CpuManufacturer.class); + } + + /** + * Gets known CpuManufacturer values. + * + * @return known CpuManufacturer values. + */ + public static Collection values() { + return values(CpuManufacturer.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/FleetProperties.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/FleetProperties.java index fa782ae90dc4c..9d4be85958111 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/FleetProperties.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/FleetProperties.java @@ -40,6 +40,16 @@ public final class FleetProperties implements JsonSerializable */ private List vmSizesProfile; + /* + * Attribute based Fleet. + */ + private VMAttributes vmAttributes; + + /* + * Represents the configuration for additional locations where Fleet resources may be deployed. + */ + private AdditionalLocationsProfile additionalLocationsProfile; + /* * Compute Profile to use for running user's workloads. */ @@ -130,6 +140,48 @@ public FleetProperties withVmSizesProfile(List vmSizesProfile) { return this; } + /** + * Get the vmAttributes property: Attribute based Fleet. + * + * @return the vmAttributes value. + */ + public VMAttributes vmAttributes() { + return this.vmAttributes; + } + + /** + * Set the vmAttributes property: Attribute based Fleet. + * + * @param vmAttributes the vmAttributes value to set. + * @return the FleetProperties object itself. + */ + public FleetProperties withVmAttributes(VMAttributes vmAttributes) { + this.vmAttributes = vmAttributes; + return this; + } + + /** + * Get the additionalLocationsProfile property: Represents the configuration for additional locations where Fleet + * resources may be deployed. + * + * @return the additionalLocationsProfile value. + */ + public AdditionalLocationsProfile additionalLocationsProfile() { + return this.additionalLocationsProfile; + } + + /** + * Set the additionalLocationsProfile property: Represents the configuration for additional locations where Fleet + * resources may be deployed. + * + * @param additionalLocationsProfile the additionalLocationsProfile value to set. + * @return the FleetProperties object itself. + */ + public FleetProperties withAdditionalLocationsProfile(AdditionalLocationsProfile additionalLocationsProfile) { + this.additionalLocationsProfile = additionalLocationsProfile; + return this; + } + /** * Get the computeProfile property: Compute Profile to use for running user's workloads. * @@ -186,6 +238,12 @@ public void validate() { } else { vmSizesProfile().forEach(e -> e.validate()); } + if (vmAttributes() != null) { + vmAttributes().validate(); + } + if (additionalLocationsProfile() != null) { + additionalLocationsProfile().validate(); + } if (computeProfile() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property computeProfile in model FleetProperties")); @@ -207,6 +265,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("computeProfile", this.computeProfile); jsonWriter.writeJsonField("spotPriorityProfile", this.spotPriorityProfile); jsonWriter.writeJsonField("regularPriorityProfile", this.regularPriorityProfile); + jsonWriter.writeJsonField("vmAttributes", this.vmAttributes); + jsonWriter.writeJsonField("additionalLocationsProfile", this.additionalLocationsProfile); return jsonWriter.writeEndObject(); } @@ -237,6 +297,11 @@ public static FleetProperties fromJson(JsonReader jsonReader) throws IOException deserializedFleetProperties.spotPriorityProfile = SpotPriorityProfile.fromJson(reader); } else if ("regularPriorityProfile".equals(fieldName)) { deserializedFleetProperties.regularPriorityProfile = RegularPriorityProfile.fromJson(reader); + } else if ("vmAttributes".equals(fieldName)) { + deserializedFleetProperties.vmAttributes = VMAttributes.fromJson(reader); + } else if ("additionalLocationsProfile".equals(fieldName)) { + deserializedFleetProperties.additionalLocationsProfile + = AdditionalLocationsProfile.fromJson(reader); } else if ("timeCreated".equals(fieldName)) { deserializedFleetProperties.timeCreated = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocalStorageDiskType.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocalStorageDiskType.java new file mode 100644 index 0000000000000..63c3a3cb5c062 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocalStorageDiskType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Different kind of Local storage disk types supported by Azure VMs. + */ +public final class LocalStorageDiskType extends ExpandableStringEnum { + /** + * HDD DiskType. + */ + public static final LocalStorageDiskType HDD = fromString("HDD"); + + /** + * SDD DiskType. + */ + public static final LocalStorageDiskType SSD = fromString("SSD"); + + /** + * Creates a new instance of LocalStorageDiskType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LocalStorageDiskType() { + } + + /** + * Creates or finds a LocalStorageDiskType from its string representation. + * + * @param name a name to look for. + * @return the corresponding LocalStorageDiskType. + */ + public static LocalStorageDiskType fromString(String name) { + return fromString(name, LocalStorageDiskType.class); + } + + /** + * Gets known LocalStorageDiskType values. + * + * @return known LocalStorageDiskType values. + */ + public static Collection values() { + return values(LocalStorageDiskType.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocationProfile.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocationProfile.java new file mode 100644 index 0000000000000..c127d7172114e --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocationProfile.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Represents the profile for a single additional location in the Fleet. The location and the + * virtualMachineProfileOverride (optional). + */ +@Fluent +public final class LocationProfile implements JsonSerializable { + /* + * The ARM location name of the additional region. If LocationProfile is specified, then location is required. + */ + private String location; + + /* + * An override for computeProfile.baseVirtualMachineProfile specific to this region. + * This override is merged with the base virtual machine profile to define the final virtual machine profile for the + * resources deployed in this location. + */ + private BaseVirtualMachineProfile virtualMachineProfileOverride; + + /** + * Creates an instance of LocationProfile class. + */ + public LocationProfile() { + } + + /** + * Get the location property: The ARM location name of the additional region. If LocationProfile is specified, then + * location is required. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: The ARM location name of the additional region. If LocationProfile is specified, then + * location is required. + * + * @param location the location value to set. + * @return the LocationProfile object itself. + */ + public LocationProfile withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the virtualMachineProfileOverride property: An override for computeProfile.baseVirtualMachineProfile specific + * to this region. + * This override is merged with the base virtual machine profile to define the final virtual machine profile for the + * resources deployed in this location. + * + * @return the virtualMachineProfileOverride value. + */ + public BaseVirtualMachineProfile virtualMachineProfileOverride() { + return this.virtualMachineProfileOverride; + } + + /** + * Set the virtualMachineProfileOverride property: An override for computeProfile.baseVirtualMachineProfile specific + * to this region. + * This override is merged with the base virtual machine profile to define the final virtual machine profile for the + * resources deployed in this location. + * + * @param virtualMachineProfileOverride the virtualMachineProfileOverride value to set. + * @return the LocationProfile object itself. + */ + public LocationProfile withVirtualMachineProfileOverride(BaseVirtualMachineProfile virtualMachineProfileOverride) { + this.virtualMachineProfileOverride = virtualMachineProfileOverride; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (location() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property location in model LocationProfile")); + } + if (virtualMachineProfileOverride() != null) { + virtualMachineProfileOverride().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(LocationProfile.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeJsonField("virtualMachineProfileOverride", this.virtualMachineProfileOverride); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LocationProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LocationProfile if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the LocationProfile. + */ + public static LocationProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LocationProfile deserializedLocationProfile = new LocationProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("location".equals(fieldName)) { + deserializedLocationProfile.location = reader.getString(); + } else if ("virtualMachineProfileOverride".equals(fieldName)) { + deserializedLocationProfile.virtualMachineProfileOverride + = BaseVirtualMachineProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedLocationProfile; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/NetworkApiVersion.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/NetworkApiVersion.java index 072ffe8f1f89b..4a693326102a7 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/NetworkApiVersion.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/NetworkApiVersion.java @@ -16,7 +16,7 @@ public final class NetworkApiVersion extends ExpandableStringEnum { + /* + * Minimum value. default 0. Double.MinValue() + */ + private Double min; + + /* + * Maximum value. Double.MaxValue(1.7976931348623157E+308) + */ + private Double max; + + /** + * Creates an instance of VMAttributeMinMaxDouble class. + */ + public VMAttributeMinMaxDouble() { + } + + /** + * Get the min property: Minimum value. default 0. Double.MinValue(). + * + * @return the min value. + */ + public Double min() { + return this.min; + } + + /** + * Set the min property: Minimum value. default 0. Double.MinValue(). + * + * @param min the min value to set. + * @return the VMAttributeMinMaxDouble object itself. + */ + public VMAttributeMinMaxDouble withMin(Double min) { + this.min = min; + return this; + } + + /** + * Get the max property: Maximum value. Double.MaxValue(1.7976931348623157E+308). + * + * @return the max value. + */ + public Double max() { + return this.max; + } + + /** + * Set the max property: Maximum value. Double.MaxValue(1.7976931348623157E+308). + * + * @param max the max value to set. + * @return the VMAttributeMinMaxDouble object itself. + */ + public VMAttributeMinMaxDouble withMax(Double max) { + this.max = max; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("min", this.min); + jsonWriter.writeNumberField("max", this.max); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VMAttributeMinMaxDouble from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VMAttributeMinMaxDouble if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the VMAttributeMinMaxDouble. + */ + public static VMAttributeMinMaxDouble fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VMAttributeMinMaxDouble deserializedVMAttributeMinMaxDouble = new VMAttributeMinMaxDouble(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("min".equals(fieldName)) { + deserializedVMAttributeMinMaxDouble.min = reader.getNullable(JsonReader::getDouble); + } else if ("max".equals(fieldName)) { + deserializedVMAttributeMinMaxDouble.max = reader.getNullable(JsonReader::getDouble); + } else { + reader.skipChildren(); + } + } + + return deserializedVMAttributeMinMaxDouble; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeMinMaxInteger.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeMinMaxInteger.java new file mode 100644 index 0000000000000..e6a69bd5171ed --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeMinMaxInteger.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * While retrieving VMSizes from CRS, Min = 0 (uint.MinValue) if not specified, Max = 4294967295 (uint.MaxValue) if not + * specified. This allows to filter VMAttributes on all available VMSizes. + */ +@Fluent +public final class VMAttributeMinMaxInteger implements JsonSerializable { + /* + * Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified. + */ + private Integer min; + + /* + * Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified. + */ + private Integer max; + + /** + * Creates an instance of VMAttributeMinMaxInteger class. + */ + public VMAttributeMinMaxInteger() { + } + + /** + * Get the min property: Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified. + * + * @return the min value. + */ + public Integer min() { + return this.min; + } + + /** + * Set the min property: Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified. + * + * @param min the min value to set. + * @return the VMAttributeMinMaxInteger object itself. + */ + public VMAttributeMinMaxInteger withMin(Integer min) { + this.min = min; + return this; + } + + /** + * Get the max property: Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified. + * + * @return the max value. + */ + public Integer max() { + return this.max; + } + + /** + * Set the max property: Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified. + * + * @param max the max value to set. + * @return the VMAttributeMinMaxInteger object itself. + */ + public VMAttributeMinMaxInteger withMax(Integer max) { + this.max = max; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("min", this.min); + jsonWriter.writeNumberField("max", this.max); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VMAttributeMinMaxInteger from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VMAttributeMinMaxInteger if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VMAttributeMinMaxInteger. + */ + public static VMAttributeMinMaxInteger fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VMAttributeMinMaxInteger deserializedVMAttributeMinMaxInteger = new VMAttributeMinMaxInteger(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("min".equals(fieldName)) { + deserializedVMAttributeMinMaxInteger.min = reader.getNullable(JsonReader::getInt); + } else if ("max".equals(fieldName)) { + deserializedVMAttributeMinMaxInteger.max = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedVMAttributeMinMaxInteger; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeSupport.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeSupport.java new file mode 100644 index 0000000000000..119a5228a53c1 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributeSupport.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * VMSizes supported by Azure VMs. Included is a union of Excluded and Required. + */ +public final class VMAttributeSupport extends ExpandableStringEnum { + /** + * All VMSizes having the feature support will be excluded. + */ + public static final VMAttributeSupport EXCLUDED = fromString("Excluded"); + + /** + * VMSizes that have the feature support and that do not have the feature support will be used. Included is a union + * of Excluded and Required. + */ + public static final VMAttributeSupport INCLUDED = fromString("Included"); + + /** + * Only the VMSizes having the feature support will be used. + */ + public static final VMAttributeSupport REQUIRED = fromString("Required"); + + /** + * Creates a new instance of VMAttributeSupport value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VMAttributeSupport() { + } + + /** + * Creates or finds a VMAttributeSupport from its string representation. + * + * @param name a name to look for. + * @return the corresponding VMAttributeSupport. + */ + public static VMAttributeSupport fromString(String name) { + return fromString(name, VMAttributeSupport.class); + } + + /** + * Gets known VMAttributeSupport values. + * + * @return known VMAttributeSupport values. + */ + public static Collection values() { + return values(VMAttributeSupport.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributes.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributes.java new file mode 100644 index 0000000000000..5e9cb8b8d2656 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributes.java @@ -0,0 +1,761 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * VMAttributes that will be used to filter VMSizes which will be used to build Fleet. + */ +@Fluent +public final class VMAttributes implements JsonSerializable { + /* + * The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are specified, either Min or + * Max is required if specified. + */ + private VMAttributeMinMaxInteger vCpuCount; + + /* + * The range of memory specified from Min to Max. Must be specified if VMAttributes are specified, either Min or Max + * is required if specified. + */ + private VMAttributeMinMaxDouble memoryInGiB; + + /* + * The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min or Max is required + * if specified. + */ + private VMAttributeMinMaxDouble memoryInGiBPerVCpu; + + /* + * Specifies whether the VMSize supporting local storage should be used to build Fleet or not. + */ + private VMAttributeSupport localStorageSupport; + + /* + * LocalStorageSupport should be set to "Included" or "Required" to use this VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + */ + private VMAttributeMinMaxDouble localStorageInGiB; + + /* + * The local storage disk types specified as a list. LocalStorageSupport should be set to "Included" or "Required" + * to use this VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + */ + private List localStorageDiskTypes; + + /* + * The range of data disk count specified from Min to Max. Optional parameter. Either Min or Max is required if + * specified. + */ + private VMAttributeMinMaxInteger dataDiskCount; + + /* + * The range of network interface count specified from Min to Max. Optional parameter. Either Min or Max is required + * if specified. + */ + private VMAttributeMinMaxInteger networkInterfaceCount; + + /* + * The range of network bandwidth in Mbps specified from Min to Max. Optional parameter. Either Min or Max is + * required if specified. + */ + private VMAttributeMinMaxDouble networkBandwidthInMbps; + + /* + * Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should be used to build Fleet or not. + */ + private VMAttributeSupport rdmaSupport; + + /* + * The range of RDMA (Remote Direct Memory Access) network interface count specified from Min to Max. Optional + * parameter. Either Min or Max is required if specified. + * rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. + * If rdmaSupport is "Excluded", this VMAttribute can not be used. + */ + private VMAttributeMinMaxInteger rdmaNetworkInterfaceCount; + + /* + * Specifies whether the VMSize supporting accelerator should be used to build Fleet or not. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + */ + private VMAttributeSupport acceleratorSupport; + + /* + * The accelerator manufacturers specified as a list. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + */ + private List acceleratorManufacturers; + + /* + * The accelerator types specified as a list. acceleratorSupport should be set to "Included" or "Required" to use + * this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + */ + private List acceleratorTypes; + + /* + * The range of accelerator count specified from min to max. Optional parameter. Either Min or Max is required if + * specified. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + */ + private VMAttributeMinMaxInteger acceleratorCount; + + /* + * The VM category specified as a list. Optional parameter. + */ + private List vmCategories; + + /* + * The VM architecture types specified as a list. Optional parameter. + */ + private List architectureTypes; + + /* + * The VM CPU manufacturers specified as a list. Optional parameter. + */ + private List cpuManufacturers; + + /* + * Specifies whether the VMSize supporting burstable capability should be used to build Fleet or not. + */ + private VMAttributeSupport burstableSupport; + + /* + * Specifies which VMSizes should be excluded while building Fleet. Optional parameter. + */ + private List excludedVMSizes; + + /** + * Creates an instance of VMAttributes class. + */ + public VMAttributes() { + } + + /** + * Get the vCpuCount property: The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes + * are specified, either Min or Max is required if specified. + * + * @return the vCpuCount value. + */ + public VMAttributeMinMaxInteger vCpuCount() { + return this.vCpuCount; + } + + /** + * Set the vCpuCount property: The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes + * are specified, either Min or Max is required if specified. + * + * @param vCpuCount the vCpuCount value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withVCpuCount(VMAttributeMinMaxInteger vCpuCount) { + this.vCpuCount = vCpuCount; + return this; + } + + /** + * Get the memoryInGiB property: The range of memory specified from Min to Max. Must be specified if VMAttributes + * are specified, either Min or Max is required if specified. + * + * @return the memoryInGiB value. + */ + public VMAttributeMinMaxDouble memoryInGiB() { + return this.memoryInGiB; + } + + /** + * Set the memoryInGiB property: The range of memory specified from Min to Max. Must be specified if VMAttributes + * are specified, either Min or Max is required if specified. + * + * @param memoryInGiB the memoryInGiB value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withMemoryInGiB(VMAttributeMinMaxDouble memoryInGiB) { + this.memoryInGiB = memoryInGiB; + return this; + } + + /** + * Get the memoryInGiBPerVCpu property: The range of memory in GiB per vCPU specified from min to max. Optional + * parameter. Either Min or Max is required if specified. + * + * @return the memoryInGiBPerVCpu value. + */ + public VMAttributeMinMaxDouble memoryInGiBPerVCpu() { + return this.memoryInGiBPerVCpu; + } + + /** + * Set the memoryInGiBPerVCpu property: The range of memory in GiB per vCPU specified from min to max. Optional + * parameter. Either Min or Max is required if specified. + * + * @param memoryInGiBPerVCpu the memoryInGiBPerVCpu value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withMemoryInGiBPerVCpu(VMAttributeMinMaxDouble memoryInGiBPerVCpu) { + this.memoryInGiBPerVCpu = memoryInGiBPerVCpu; + return this; + } + + /** + * Get the localStorageSupport property: Specifies whether the VMSize supporting local storage should be used to + * build Fleet or not. + * + * @return the localStorageSupport value. + */ + public VMAttributeSupport localStorageSupport() { + return this.localStorageSupport; + } + + /** + * Set the localStorageSupport property: Specifies whether the VMSize supporting local storage should be used to + * build Fleet or not. + * + * @param localStorageSupport the localStorageSupport value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withLocalStorageSupport(VMAttributeSupport localStorageSupport) { + this.localStorageSupport = localStorageSupport; + return this; + } + + /** + * Get the localStorageInGiB property: LocalStorageSupport should be set to "Included" or "Required" to use this + * VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + * + * @return the localStorageInGiB value. + */ + public VMAttributeMinMaxDouble localStorageInGiB() { + return this.localStorageInGiB; + } + + /** + * Set the localStorageInGiB property: LocalStorageSupport should be set to "Included" or "Required" to use this + * VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + * + * @param localStorageInGiB the localStorageInGiB value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withLocalStorageInGiB(VMAttributeMinMaxDouble localStorageInGiB) { + this.localStorageInGiB = localStorageInGiB; + return this; + } + + /** + * Get the localStorageDiskTypes property: The local storage disk types specified as a list. LocalStorageSupport + * should be set to "Included" or "Required" to use this VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + * + * @return the localStorageDiskTypes value. + */ + public List localStorageDiskTypes() { + return this.localStorageDiskTypes; + } + + /** + * Set the localStorageDiskTypes property: The local storage disk types specified as a list. LocalStorageSupport + * should be set to "Included" or "Required" to use this VMAttribute. + * If localStorageSupport is "Excluded", this VMAttribute can not be used. + * + * @param localStorageDiskTypes the localStorageDiskTypes value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withLocalStorageDiskTypes(List localStorageDiskTypes) { + this.localStorageDiskTypes = localStorageDiskTypes; + return this; + } + + /** + * Get the dataDiskCount property: The range of data disk count specified from Min to Max. Optional parameter. + * Either Min or Max is required if specified. + * + * @return the dataDiskCount value. + */ + public VMAttributeMinMaxInteger dataDiskCount() { + return this.dataDiskCount; + } + + /** + * Set the dataDiskCount property: The range of data disk count specified from Min to Max. Optional parameter. + * Either Min or Max is required if specified. + * + * @param dataDiskCount the dataDiskCount value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withDataDiskCount(VMAttributeMinMaxInteger dataDiskCount) { + this.dataDiskCount = dataDiskCount; + return this; + } + + /** + * Get the networkInterfaceCount property: The range of network interface count specified from Min to Max. Optional + * parameter. Either Min or Max is required if specified. + * + * @return the networkInterfaceCount value. + */ + public VMAttributeMinMaxInteger networkInterfaceCount() { + return this.networkInterfaceCount; + } + + /** + * Set the networkInterfaceCount property: The range of network interface count specified from Min to Max. Optional + * parameter. Either Min or Max is required if specified. + * + * @param networkInterfaceCount the networkInterfaceCount value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withNetworkInterfaceCount(VMAttributeMinMaxInteger networkInterfaceCount) { + this.networkInterfaceCount = networkInterfaceCount; + return this; + } + + /** + * Get the networkBandwidthInMbps property: The range of network bandwidth in Mbps specified from Min to Max. + * Optional parameter. Either Min or Max is required if specified. + * + * @return the networkBandwidthInMbps value. + */ + public VMAttributeMinMaxDouble networkBandwidthInMbps() { + return this.networkBandwidthInMbps; + } + + /** + * Set the networkBandwidthInMbps property: The range of network bandwidth in Mbps specified from Min to Max. + * Optional parameter. Either Min or Max is required if specified. + * + * @param networkBandwidthInMbps the networkBandwidthInMbps value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withNetworkBandwidthInMbps(VMAttributeMinMaxDouble networkBandwidthInMbps) { + this.networkBandwidthInMbps = networkBandwidthInMbps; + return this; + } + + /** + * Get the rdmaSupport property: Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should + * be used to build Fleet or not. + * + * @return the rdmaSupport value. + */ + public VMAttributeSupport rdmaSupport() { + return this.rdmaSupport; + } + + /** + * Set the rdmaSupport property: Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should + * be used to build Fleet or not. + * + * @param rdmaSupport the rdmaSupport value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withRdmaSupport(VMAttributeSupport rdmaSupport) { + this.rdmaSupport = rdmaSupport; + return this; + } + + /** + * Get the rdmaNetworkInterfaceCount property: The range of RDMA (Remote Direct Memory Access) network interface + * count specified from Min to Max. Optional parameter. Either Min or Max is required if specified. + * rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. + * If rdmaSupport is "Excluded", this VMAttribute can not be used. + * + * @return the rdmaNetworkInterfaceCount value. + */ + public VMAttributeMinMaxInteger rdmaNetworkInterfaceCount() { + return this.rdmaNetworkInterfaceCount; + } + + /** + * Set the rdmaNetworkInterfaceCount property: The range of RDMA (Remote Direct Memory Access) network interface + * count specified from Min to Max. Optional parameter. Either Min or Max is required if specified. + * rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. + * If rdmaSupport is "Excluded", this VMAttribute can not be used. + * + * @param rdmaNetworkInterfaceCount the rdmaNetworkInterfaceCount value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withRdmaNetworkInterfaceCount(VMAttributeMinMaxInteger rdmaNetworkInterfaceCount) { + this.rdmaNetworkInterfaceCount = rdmaNetworkInterfaceCount; + return this; + } + + /** + * Get the acceleratorSupport property: Specifies whether the VMSize supporting accelerator should be used to build + * Fleet or not. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @return the acceleratorSupport value. + */ + public VMAttributeSupport acceleratorSupport() { + return this.acceleratorSupport; + } + + /** + * Set the acceleratorSupport property: Specifies whether the VMSize supporting accelerator should be used to build + * Fleet or not. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @param acceleratorSupport the acceleratorSupport value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withAcceleratorSupport(VMAttributeSupport acceleratorSupport) { + this.acceleratorSupport = acceleratorSupport; + return this; + } + + /** + * Get the acceleratorManufacturers property: The accelerator manufacturers specified as a list. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @return the acceleratorManufacturers value. + */ + public List acceleratorManufacturers() { + return this.acceleratorManufacturers; + } + + /** + * Set the acceleratorManufacturers property: The accelerator manufacturers specified as a list. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @param acceleratorManufacturers the acceleratorManufacturers value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withAcceleratorManufacturers(List acceleratorManufacturers) { + this.acceleratorManufacturers = acceleratorManufacturers; + return this; + } + + /** + * Get the acceleratorTypes property: The accelerator types specified as a list. acceleratorSupport should be set to + * "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @return the acceleratorTypes value. + */ + public List acceleratorTypes() { + return this.acceleratorTypes; + } + + /** + * Set the acceleratorTypes property: The accelerator types specified as a list. acceleratorSupport should be set to + * "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @param acceleratorTypes the acceleratorTypes value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withAcceleratorTypes(List acceleratorTypes) { + this.acceleratorTypes = acceleratorTypes; + return this; + } + + /** + * Get the acceleratorCount property: The range of accelerator count specified from min to max. Optional parameter. + * Either Min or Max is required if specified. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @return the acceleratorCount value. + */ + public VMAttributeMinMaxInteger acceleratorCount() { + return this.acceleratorCount; + } + + /** + * Set the acceleratorCount property: The range of accelerator count specified from min to max. Optional parameter. + * Either Min or Max is required if specified. + * acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. + * If acceleratorSupport is "Excluded", this VMAttribute can not be used. + * + * @param acceleratorCount the acceleratorCount value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withAcceleratorCount(VMAttributeMinMaxInteger acceleratorCount) { + this.acceleratorCount = acceleratorCount; + return this; + } + + /** + * Get the vmCategories property: The VM category specified as a list. Optional parameter. + * + * @return the vmCategories value. + */ + public List vmCategories() { + return this.vmCategories; + } + + /** + * Set the vmCategories property: The VM category specified as a list. Optional parameter. + * + * @param vmCategories the vmCategories value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withVmCategories(List vmCategories) { + this.vmCategories = vmCategories; + return this; + } + + /** + * Get the architectureTypes property: The VM architecture types specified as a list. Optional parameter. + * + * @return the architectureTypes value. + */ + public List architectureTypes() { + return this.architectureTypes; + } + + /** + * Set the architectureTypes property: The VM architecture types specified as a list. Optional parameter. + * + * @param architectureTypes the architectureTypes value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withArchitectureTypes(List architectureTypes) { + this.architectureTypes = architectureTypes; + return this; + } + + /** + * Get the cpuManufacturers property: The VM CPU manufacturers specified as a list. Optional parameter. + * + * @return the cpuManufacturers value. + */ + public List cpuManufacturers() { + return this.cpuManufacturers; + } + + /** + * Set the cpuManufacturers property: The VM CPU manufacturers specified as a list. Optional parameter. + * + * @param cpuManufacturers the cpuManufacturers value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withCpuManufacturers(List cpuManufacturers) { + this.cpuManufacturers = cpuManufacturers; + return this; + } + + /** + * Get the burstableSupport property: Specifies whether the VMSize supporting burstable capability should be used to + * build Fleet or not. + * + * @return the burstableSupport value. + */ + public VMAttributeSupport burstableSupport() { + return this.burstableSupport; + } + + /** + * Set the burstableSupport property: Specifies whether the VMSize supporting burstable capability should be used to + * build Fleet or not. + * + * @param burstableSupport the burstableSupport value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withBurstableSupport(VMAttributeSupport burstableSupport) { + this.burstableSupport = burstableSupport; + return this; + } + + /** + * Get the excludedVMSizes property: Specifies which VMSizes should be excluded while building Fleet. Optional + * parameter. + * + * @return the excludedVMSizes value. + */ + public List excludedVMSizes() { + return this.excludedVMSizes; + } + + /** + * Set the excludedVMSizes property: Specifies which VMSizes should be excluded while building Fleet. Optional + * parameter. + * + * @param excludedVMSizes the excludedVMSizes value to set. + * @return the VMAttributes object itself. + */ + public VMAttributes withExcludedVMSizes(List excludedVMSizes) { + this.excludedVMSizes = excludedVMSizes; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (vCpuCount() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property vCpuCount in model VMAttributes")); + } else { + vCpuCount().validate(); + } + if (memoryInGiB() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property memoryInGiB in model VMAttributes")); + } else { + memoryInGiB().validate(); + } + if (memoryInGiBPerVCpu() != null) { + memoryInGiBPerVCpu().validate(); + } + if (localStorageInGiB() != null) { + localStorageInGiB().validate(); + } + if (dataDiskCount() != null) { + dataDiskCount().validate(); + } + if (networkInterfaceCount() != null) { + networkInterfaceCount().validate(); + } + if (networkBandwidthInMbps() != null) { + networkBandwidthInMbps().validate(); + } + if (rdmaNetworkInterfaceCount() != null) { + rdmaNetworkInterfaceCount().validate(); + } + if (acceleratorCount() != null) { + acceleratorCount().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(VMAttributes.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("vCpuCount", this.vCpuCount); + jsonWriter.writeJsonField("memoryInGiB", this.memoryInGiB); + jsonWriter.writeJsonField("memoryInGiBPerVCpu", this.memoryInGiBPerVCpu); + jsonWriter.writeStringField("localStorageSupport", + this.localStorageSupport == null ? null : this.localStorageSupport.toString()); + jsonWriter.writeJsonField("localStorageInGiB", this.localStorageInGiB); + jsonWriter.writeArrayField("localStorageDiskTypes", this.localStorageDiskTypes, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeJsonField("dataDiskCount", this.dataDiskCount); + jsonWriter.writeJsonField("networkInterfaceCount", this.networkInterfaceCount); + jsonWriter.writeJsonField("networkBandwidthInMbps", this.networkBandwidthInMbps); + jsonWriter.writeStringField("rdmaSupport", this.rdmaSupport == null ? null : this.rdmaSupport.toString()); + jsonWriter.writeJsonField("rdmaNetworkInterfaceCount", this.rdmaNetworkInterfaceCount); + jsonWriter.writeStringField("acceleratorSupport", + this.acceleratorSupport == null ? null : this.acceleratorSupport.toString()); + jsonWriter.writeArrayField("acceleratorManufacturers", this.acceleratorManufacturers, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeArrayField("acceleratorTypes", this.acceleratorTypes, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeJsonField("acceleratorCount", this.acceleratorCount); + jsonWriter.writeArrayField("vmCategories", this.vmCategories, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeArrayField("architectureTypes", this.architectureTypes, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeArrayField("cpuManufacturers", this.cpuManufacturers, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeStringField("burstableSupport", + this.burstableSupport == null ? null : this.burstableSupport.toString()); + jsonWriter.writeArrayField("excludedVMSizes", this.excludedVMSizes, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VMAttributes from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VMAttributes if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VMAttributes. + */ + public static VMAttributes fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VMAttributes deserializedVMAttributes = new VMAttributes(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("vCpuCount".equals(fieldName)) { + deserializedVMAttributes.vCpuCount = VMAttributeMinMaxInteger.fromJson(reader); + } else if ("memoryInGiB".equals(fieldName)) { + deserializedVMAttributes.memoryInGiB = VMAttributeMinMaxDouble.fromJson(reader); + } else if ("memoryInGiBPerVCpu".equals(fieldName)) { + deserializedVMAttributes.memoryInGiBPerVCpu = VMAttributeMinMaxDouble.fromJson(reader); + } else if ("localStorageSupport".equals(fieldName)) { + deserializedVMAttributes.localStorageSupport = VMAttributeSupport.fromString(reader.getString()); + } else if ("localStorageInGiB".equals(fieldName)) { + deserializedVMAttributes.localStorageInGiB = VMAttributeMinMaxDouble.fromJson(reader); + } else if ("localStorageDiskTypes".equals(fieldName)) { + List localStorageDiskTypes + = reader.readArray(reader1 -> LocalStorageDiskType.fromString(reader1.getString())); + deserializedVMAttributes.localStorageDiskTypes = localStorageDiskTypes; + } else if ("dataDiskCount".equals(fieldName)) { + deserializedVMAttributes.dataDiskCount = VMAttributeMinMaxInteger.fromJson(reader); + } else if ("networkInterfaceCount".equals(fieldName)) { + deserializedVMAttributes.networkInterfaceCount = VMAttributeMinMaxInteger.fromJson(reader); + } else if ("networkBandwidthInMbps".equals(fieldName)) { + deserializedVMAttributes.networkBandwidthInMbps = VMAttributeMinMaxDouble.fromJson(reader); + } else if ("rdmaSupport".equals(fieldName)) { + deserializedVMAttributes.rdmaSupport = VMAttributeSupport.fromString(reader.getString()); + } else if ("rdmaNetworkInterfaceCount".equals(fieldName)) { + deserializedVMAttributes.rdmaNetworkInterfaceCount = VMAttributeMinMaxInteger.fromJson(reader); + } else if ("acceleratorSupport".equals(fieldName)) { + deserializedVMAttributes.acceleratorSupport = VMAttributeSupport.fromString(reader.getString()); + } else if ("acceleratorManufacturers".equals(fieldName)) { + List acceleratorManufacturers + = reader.readArray(reader1 -> AcceleratorManufacturer.fromString(reader1.getString())); + deserializedVMAttributes.acceleratorManufacturers = acceleratorManufacturers; + } else if ("acceleratorTypes".equals(fieldName)) { + List acceleratorTypes + = reader.readArray(reader1 -> AcceleratorType.fromString(reader1.getString())); + deserializedVMAttributes.acceleratorTypes = acceleratorTypes; + } else if ("acceleratorCount".equals(fieldName)) { + deserializedVMAttributes.acceleratorCount = VMAttributeMinMaxInteger.fromJson(reader); + } else if ("vmCategories".equals(fieldName)) { + List vmCategories + = reader.readArray(reader1 -> VMCategory.fromString(reader1.getString())); + deserializedVMAttributes.vmCategories = vmCategories; + } else if ("architectureTypes".equals(fieldName)) { + List architectureTypes + = reader.readArray(reader1 -> ArchitectureType.fromString(reader1.getString())); + deserializedVMAttributes.architectureTypes = architectureTypes; + } else if ("cpuManufacturers".equals(fieldName)) { + List cpuManufacturers + = reader.readArray(reader1 -> CpuManufacturer.fromString(reader1.getString())); + deserializedVMAttributes.cpuManufacturers = cpuManufacturers; + } else if ("burstableSupport".equals(fieldName)) { + deserializedVMAttributes.burstableSupport = VMAttributeSupport.fromString(reader.getString()); + } else if ("excludedVMSizes".equals(fieldName)) { + List excludedVMSizes = reader.readArray(reader1 -> reader1.getString()); + deserializedVMAttributes.excludedVMSizes = excludedVMSizes; + } else { + reader.skipChildren(); + } + } + + return deserializedVMAttributes; + }); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMCategory.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMCategory.java new file mode 100644 index 0000000000000..5833fe36906d3 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMCategory.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * VMCategories defined for Azure VMs. + * See: + * https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/overview?tabs=breakdownseries%2Cgeneralsizelist%2Ccomputesizelist%2Cmemorysizelist%2Cstoragesizelist%2Cgpusizelist%2Cfpgasizelist%2Chpcsizelist#general-purpose. + */ +public final class VMCategory extends ExpandableStringEnum { + /** + * General purpose VM sizes provide balanced CPU-to-memory ratio. Ideal for testing and development, small to medium + * databases, and low to medium traffic web servers. + */ + public static final VMCategory GENERAL_PURPOSE = fromString("GeneralPurpose"); + + /** + * Compute optimized VM sizes have a high CPU-to-memory ratio. These sizes are good for medium traffic web servers, + * network appliances, batch processes, and application servers. + */ + public static final VMCategory COMPUTE_OPTIMIZED = fromString("ComputeOptimized"); + + /** + * Memory optimized VM sizes offer a high memory-to-CPU ratio that is great for relational database servers, medium + * to large caches, and in-memory analytics. + */ + public static final VMCategory MEMORY_OPTIMIZED = fromString("MemoryOptimized"); + + /** + * Storage optimized virtual machine (VM) sizes offer high disk throughput and IO, and are ideal for Big Data, SQL, + * NoSQL databases, data warehousing, and large transactional databases. + * Examples include Cassandra, MongoDB, Cloudera, and Redis. + */ + public static final VMCategory STORAGE_OPTIMIZED = fromString("StorageOptimized"); + + /** + * GPU optimized VM sizes are specialized virtual machines available with single, multiple, or fractional GPUs. + * These sizes are designed for compute-intensive, graphics-intensive, and visualization workloads. + */ + public static final VMCategory GPU_ACCELERATED = fromString("GpuAccelerated"); + + /** + * FPGA optimized VM sizes are specialized virtual machines available with single or multiple FPGA. + * These sizes are designed for compute-intensive workloads. This article provides information about the number and + * type of FPGA, vCPUs, data disks, and NICs. + * Storage throughput and network bandwidth are also included for each size in this grouping. + */ + public static final VMCategory FPGA_ACCELERATED = fromString("FpgaAccelerated"); + + /** + * Azure High Performance Compute VMs are optimized for various HPC workloads such as computational fluid dynamics, + * finite element analysis, frontend and backend EDA, + * rendering, molecular dynamics, computational geo science, weather simulation, and financial risk analysis. + */ + public static final VMCategory HIGH_PERFORMANCE_COMPUTE = fromString("HighPerformanceCompute"); + + /** + * Creates a new instance of VMCategory value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VMCategory() { + } + + /** + * Creates or finds a VMCategory from its string representation. + * + * @param name a name to look for. + * @return the corresponding VMCategory. + */ + public static VMCategory fromString(String name) { + return fromString(name, VMCategory.class); + } + + /** + * Gets known VMCategory values. + * + * @return known VMCategory values. + */ + public static Collection values() { + return values(VMCategory.class); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsCreateOrUpdateSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsCreateOrUpdateSamples.java index 94157a69374b6..21d1bce77f94c 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsCreateOrUpdateSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsCreateOrUpdateSamples.java @@ -111,7 +111,7 @@ */ public final class FleetsCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_CreateOrUpdate.json + * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate.json */ /** * Sample code: Fleets_CreateOrUpdate. @@ -136,241 +136,231 @@ public static void fleetsCreateOrUpdate(com.azure.resourcemanager.computefleet.C .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_d1_v2").withRank(19225))) .withComputeProfile( new ComputeProfile() - .withBaseVirtualMachineProfile( - new BaseVirtualMachineProfile() - .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") - .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") - .withAdminPassword("fakeTokenPlaceholder") - .withCustomData("xjjib") - .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) - .withEnableAutomaticUpdates(true) - .withTimeZone("hlyjiqcfksgrpjrct") - .withAdditionalUnattendContent(Arrays.asList(new AdditionalUnattendContent() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") + .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") + .withAdminPassword("fakeTokenPlaceholder") + .withCustomData("xjjib") + .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) + .withEnableAutomaticUpdates(true) + .withTimeZone("hlyjiqcfksgrpjrct") + .withAdditionalUnattendContent( + Arrays.asList(new AdditionalUnattendContent() .withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName( AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.AUTO_LOGON) .withContent("bubmqbxjkj"))) - .withPatchSettings( - new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL) - .withEnableHotpatching(true) - .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withWinRM(new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP) - .withCertificateUrl("phwesineizrl")))) - .withEnableVMAgentPlatformUpdates(true)) - .withLinuxConfiguration(new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSsh(new SshConfiguration().withPublicKeys( - Arrays.asList(new SshPublicKey().withPath("kmqz") - .withKeyData("fakeTokenPlaceholder")))) - .withProvisionVMAgent(true) - .withPatchSettings(new LinuxPatchSettings() - .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) - .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new LinuxVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withEnableVMAgentPlatformUpdates(true)) - .withSecrets(Arrays.asList(new VaultSecretGroup() - .withSourceVault(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) - .withVaultCertificates( - Arrays.asList(new VaultCertificate().withCertificateUrl("tyldwkzafmnkvpo") - .withCertificateStore("nlxrwavpzhueffxsshlun"))))) - .withAllowExtensionOperations(true) - .withRequireGuestProvisionSignal(true)) - .withStorageProfile(new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") - .withPublisher("mqxgwbiyjzmxavhbkd") - .withOffer("isxgumkarlkomp") - .withSku("eojmppqcrnpmxirtp") - .withVersion("wvpcqefgtmqdgltiuz") - .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") - .withCommunityGalleryImageId("vlqe")) - .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiffDiskSettings(new DiffDiskSettings() - .withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.CACHE_DISK)) - .withDiskSizeGB(14) - .withOsType(OperatingSystemTypes.WINDOWS) - .withImage(new VirtualHardDisk().withUri("thqceubivdrjs")) - .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDeleteOption(DiskDeleteOptionTypes.DELETE)) - .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() - .withName("eogiykmdmeikswxmigjws") - .withLun(14) - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiskSizeGB(6) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDiskIOPSReadWrite(27L) - .withDiskMBpsReadWrite(2L) - .withDeleteOption(DiskDeleteOptionTypes.DELETE))) - .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) - .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile().withHealthProbe( - new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) - .withNetworkInterfaceConfigurations( - Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(true) - .withDisableTcpStateTracking(true) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) - .withDnsSettings( - new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) - .withIpConfigurations( - Arrays.asList(new VirtualMachineScaleSetIPConfiguration() - .withName("oezqhkidfhyywlfzwuotilrpbqnjg") - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) - .withPrimary(true) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("fvpqf") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(9) - .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel( - "ukrddzvmorpmfsczjwtbvp") - .withDomainNameLabelScope( - DomainNameLabelScopeTypes.TENANT_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag() - .withIpTagType( - "sddgsoemnzgqizale") - .withTag( - "wufmhrjsakbiaetyara"))) - .withPublicIPPrefix( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) - .withPublicIPAddressVersion( - IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku() - .withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV4) - .withApplicationGatewayBackendAddressPools( - Arrays.asList( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) - .withApplicationSecurityGroups(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) - .withLoadBalancerBackendAddressPools(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) - .withEnableIPForwarding(true) - .withDeleteOption(DeleteOptions.DELETE) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) - .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)) - .withSecurityProfile(new SecurityProfile() - .withUefiSettings( - new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) - .withEncryptionAtHost(true) - .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) - .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) - .withProxyAgentSettings(new ProxyAgentSettings() - .withEnabled(true) - .withMode(Mode.AUDIT) - .withKeyIncarnationId(20))) - .withDiagnosticsProfile( - new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() - .withEnabled(true) - .withStorageUri("rzamfwghybpx"))) - .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() - .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension() - .withName("bndxuxx") - .withProperties( - new VirtualMachineScaleSetExtensionProperties().withForceUpdateTag("yhgxw") - .withPublisher("kpxtirxjfprhs") - .withType("pgjilctjjwaa") - .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") - .withAutoUpgradeMinorVersion(true) - .withEnableAutomaticUpgrade(true) - .withSettings(mapOf()) - .withProtectedSettings(mapOf()) - .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) - .withSuppressFailures(true) - .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() - .withSecretUrl("fakeTokenPlaceholder") - .withSourceVault( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) - .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) - .withLicenseType("v") - .withScheduledEventsProfile(new ScheduledEventsProfile() - .withTerminateNotificationProfile( - new TerminateNotificationProfile().withNotBeforeTimeout("iljppmmw") - .withEnable(true)) - .withOsImageNotificationProfile(new OSImageNotificationProfile() - .withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") + .withPatchSettings(new PatchSettings() + .withPatchMode(WindowsVMGuestPatchMode.MANUAL) + .withEnableHotpatching(true) + .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new WindowsVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withWinRM(new WinRMConfiguration().withListeners(Arrays.asList(new WinRMListener() + .withProtocol(ProtocolTypes.HTTPS) + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName")))) + .withEnableVMAgentPlatformUpdates(true)) + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(true) + .withSsh(new SshConfiguration().withPublicKeys(Arrays.asList( + new SshPublicKey().withPath("kmqz").withKeyData("fakeTokenPlaceholder")))) + .withProvisionVMAgent(true) + .withPatchSettings(new LinuxPatchSettings() + .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) + .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new LinuxVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withEnableVMAgentPlatformUpdates(true)) + .withSecrets(Arrays.asList(new VaultSecretGroup() + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) + .withVaultCertificates(Arrays.asList(new VaultCertificate() + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName") + .withCertificateStore("nlxrwavpzhueffxsshlun"))))) + .withAllowExtensionOperations(true) + .withRequireGuestProvisionSignal(true)) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") + .withPublisher("mqxgwbiyjzmxavhbkd") + .withOffer("isxgumkarlkomp") + .withSku("eojmppqcrnpmxirtp") + .withVersion("wvpcqefgtmqdgltiuz") + .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") + .withCommunityGalleryImageId("vlqe")) + .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiffDiskSettings(new DiffDiskSettings() + .withOption(DiffDiskOptions.LOCAL) + .withPlacement(DiffDiskPlacement.CACHE_DISK)) + .withDiskSizeGB(14) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri( + "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd")) + .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDeleteOption(DiskDeleteOptionTypes.DELETE)) + .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() + .withName("eogiykmdmeikswxmigjws") + .withLun(14) + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiskSizeGB(6) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDiskIOPSReadWrite(27L) + .withDiskMBpsReadWrite(2L) + .withDeleteOption(DiskDeleteOptionTypes.DELETE))) + .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withHealthProbe(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) + .withIpConfigurations( + Arrays.asList(new VirtualMachineScaleSetIPConfiguration() + .withName("oezqhkidfhyywlfzwuotilrpbqnjg") + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) + .withPrimary(true) + .withPublicIPAddressConfiguration( + new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("fvpqf") + .withProperties( + new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(9) + .withDnsSettings( + new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel( + "ukrddzvmorpmfsczjwtbvp") + .withDomainNameLabelScope( + DomainNameLabelScopeTypes.TENANT_REUSE)) + .withIpTags(Arrays.asList( + new VirtualMachineScaleSetIpTag() + .withIpTagType("sddgsoemnzgqizale") + .withTag("wufmhrjsakbiaetyara"))) + .withPublicIPPrefix( + new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) + .withPublicIPAddressVersion(IPVersion.IPV4) + .withDeleteOption(DeleteOptions.DELETE)) + .withSku(new PublicIPAddressSku() + .withName(PublicIPAddressSkuName.BASIC) + .withTier(PublicIPAddressSkuTier.REGIONAL))) + .withPrivateIPAddressVersion(IPVersion.IPV4) + .withApplicationGatewayBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) + .withApplicationSecurityGroups(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) + .withLoadBalancerBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) + .withNetworkApiVersion(NetworkApiVersion.V2020_11_01)) + .withSecurityProfile(new SecurityProfile() + .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) + .withEncryptionAtHost(true) + .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) + .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) + .withProxyAgentSettings(new ProxyAgentSettings().withEnabled(true) + .withMode(Mode.AUDIT) + .withKeyIncarnationId(20))) + .withDiagnosticsProfile( + new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() + .withEnabled(true) + .withStorageUri("http://myStorageAccountName.blob.core.windows.net"))) + .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() + .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension().withName("bndxuxx") + .withProperties(new VirtualMachineScaleSetExtensionProperties() + .withForceUpdateTag("yhgxw") + .withPublisher("kpxtirxjfprhs") + .withType("pgjilctjjwaa") + .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") + .withAutoUpgradeMinorVersion(true) + .withEnableAutomaticUpgrade(true) + .withSettings(mapOf()) + .withProtectedSettings(mapOf()) + .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) + .withSuppressFailures(true) + .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() + .withSecretUrl("fakeTokenPlaceholder") + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) + .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) + .withLicenseType("v") + .withScheduledEventsProfile(new ScheduledEventsProfile() + .withTerminateNotificationProfile(new TerminateNotificationProfile() + .withNotBeforeTimeout("iljppmmw") + .withEnable(true)) + .withOsImageNotificationProfile( + new OSImageNotificationProfile().withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") .withEnable(true))) - .withUserData("s") - .withCapacityReservation(new CapacityReservationProfile() - .withCapacityReservationGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) - .withApplicationProfile(new ApplicationProfile().withGalleryApplications(Arrays - .asList(new VMGalleryApplication().withTags("eyrqjbib") - .withOrder(5) - .withPackageReferenceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") - .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") - .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(true)))) - .withHardwareProfile(new VirtualMachineScaleSetHardwareProfile() - .withVmSizeProperties(new VMSizeProperties() - .withVCPUsAvailable(16) - .withVCPUsPerCore(23))) - .withServiceArtifactReference(new ServiceArtifactReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) - .withSecurityPostureReference(new SecurityPostureReference().withId( - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") - .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) - .withIsOverridable(true))) + .withUserData("s") + .withCapacityReservation(new CapacityReservationProfile() + .withCapacityReservationGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) + .withApplicationProfile(new ApplicationProfile().withGalleryApplications( + Arrays.asList(new VMGalleryApplication().withTags("eyrqjbib") + .withOrder(5) + .withPackageReferenceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") + .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") + .withTreatFailureAsDeploymentFailure(true) + .withEnableAutomaticUpgrade(true)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withVmSizeProperties(new VMSizeProperties() + .withVCPUsAvailable(16) + .withVCPUsPerCore(23))) + .withServiceArtifactReference(new ServiceArtifactReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) + .withSecurityPostureReference(new SecurityPostureReference().withId( + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") + .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) + .withIsOverridable(true))) .withComputeApiVersion("2023-07-01") .withPlatformFaultDomainCount(1))) .withZones(Arrays.asList("zone1", "zone2")) @@ -385,7 +375,7 @@ public static void fleetsCreateOrUpdate(com.azure.resourcemanager.computefleet.C } /* - * x-ms-original-file: 2024-05-01-preview/Fleets_CreateOrUpdate_MinimumSet.json + * x-ms-original-file: 2024-11-01/Fleets_CreateOrUpdate_MinimumSet.json */ /** * Sample code: Fleets_CreateOrUpdate_MinimumSet. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsDeleteSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsDeleteSamples.java index 6fafbb1d706d6..73efc9ffc0b29 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsDeleteSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsDeleteSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_Delete.json + * x-ms-original-file: 2024-11-01/Fleets_Delete.json */ /** * Sample code: Fleets_Delete. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsGetByResourceGroupSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsGetByResourceGroupSamples.java index d645e29c5a203..a4aa2c7df75dc 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsGetByResourceGroupSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_Get.json + * x-ms-original-file: 2024-11-01/Fleets_Get.json */ /** * Sample code: Fleets_Get. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListByResourceGroupSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListByResourceGroupSamples.java index edfb33bf2b246..957a3dd4a0c02 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListByResourceGroupSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListByResourceGroupSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_ListByResourceGroup.json + * x-ms-original-file: 2024-11-01/Fleets_ListByResourceGroup.json */ /** * Sample code: Fleets_ListByResourceGroup. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListSamples.java index 9e7ddd8749f93..a0d76729af939 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_ListBySubscription.json + * x-ms-original-file: 2024-11-01/Fleets_ListBySubscription.json */ /** * Sample code: Fleets_ListBySubscription. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListVirtualMachineScaleSetsSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListVirtualMachineScaleSetsSamples.java index 14218d6e02a4b..5c528de10e58f 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListVirtualMachineScaleSetsSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsListVirtualMachineScaleSetsSamples.java @@ -9,7 +9,7 @@ */ public final class FleetsListVirtualMachineScaleSetsSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_ListVirtualMachineScaleSets.json + * x-ms-original-file: 2024-11-01/Fleets_ListVirtualMachineScaleSets.json */ /** * Sample code: Fleets_ListVirtualMachineScaleSets. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsUpdateSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsUpdateSamples.java index 03d70da14cc9c..16f19869f129a 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsUpdateSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/FleetsUpdateSamples.java @@ -111,7 +111,7 @@ */ public final class FleetsUpdateSamples { /* - * x-ms-original-file: 2024-05-01-preview/Fleets_Update.json + * x-ms-original-file: 2024-11-01/Fleets_Update.json */ /** * Sample code: Fleets_Update. @@ -144,241 +144,231 @@ public static void fleetsUpdate(com.azure.resourcemanager.computefleet.ComputeFl .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_d1_v2").withRank(19225))) .withComputeProfile( new ComputeProfile() - .withBaseVirtualMachineProfile( - new BaseVirtualMachineProfile() - .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") - .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") - .withAdminPassword("fakeTokenPlaceholder") - .withCustomData("xjjib") - .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) - .withEnableAutomaticUpdates(true) - .withTimeZone("hlyjiqcfksgrpjrct") - .withAdditionalUnattendContent(Arrays.asList(new AdditionalUnattendContent() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("o") + .withAdminUsername("nrgzqciiaaxjrqldbmjbqkyhntp") + .withAdminPassword("fakeTokenPlaceholder") + .withCustomData("xjjib") + .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true) + .withEnableAutomaticUpdates(true) + .withTimeZone("hlyjiqcfksgrpjrct") + .withAdditionalUnattendContent( + Arrays.asList(new AdditionalUnattendContent() .withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName( AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.AUTO_LOGON) .withContent("bubmqbxjkj"))) - .withPatchSettings( - new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL) - .withEnableHotpatching(true) - .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withWinRM(new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP) - .withCertificateUrl("phwesineizrl")))) - .withEnableVMAgentPlatformUpdates(true)) - .withLinuxConfiguration(new LinuxConfiguration() - .withDisablePasswordAuthentication(true) - .withSsh(new SshConfiguration().withPublicKeys( - Arrays.asList(new SshPublicKey().withPath("kmqz") - .withKeyData("fakeTokenPlaceholder")))) - .withProvisionVMAgent(true) - .withPatchSettings(new LinuxPatchSettings() - .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) - .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) - .withAutomaticByPlatformSettings( - new LinuxVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting( - LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) - .withBypassPlatformSafetyChecksOnUserSchedule(true))) - .withEnableVMAgentPlatformUpdates(true)) - .withSecrets(Arrays.asList(new VaultSecretGroup() - .withSourceVault(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) - .withVaultCertificates( - Arrays.asList(new VaultCertificate().withCertificateUrl("tyldwkzafmnkvpo") - .withCertificateStore("nlxrwavpzhueffxsshlun"))))) - .withAllowExtensionOperations(true) - .withRequireGuestProvisionSignal(true)) - .withStorageProfile(new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") - .withPublisher("mqxgwbiyjzmxavhbkd") - .withOffer("isxgumkarlkomp") - .withSku("eojmppqcrnpmxirtp") - .withVersion("wvpcqefgtmqdgltiuz") - .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") - .withCommunityGalleryImageId("vlqe")) - .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiffDiskSettings(new DiffDiskSettings() - .withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.CACHE_DISK)) - .withDiskSizeGB(14) - .withOsType(OperatingSystemTypes.WINDOWS) - .withImage(new VirtualHardDisk().withUri("thqceubivdrjs")) - .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDeleteOption(DiskDeleteOptionTypes.DELETE)) - .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() - .withName("eogiykmdmeikswxmigjws") - .withLun(14) - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiskSizeGB(6) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet( - new DiskEncryptionSetParameters().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) - .withDiskIOPSReadWrite(27L) - .withDiskMBpsReadWrite(2L) - .withDeleteOption(DiskDeleteOptionTypes.DELETE))) - .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) - .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile().withHealthProbe( - new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) - .withNetworkInterfaceConfigurations( - Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(true) - .withDisableTcpStateTracking(true) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) - .withDnsSettings( - new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) - .withIpConfigurations( - Arrays.asList(new VirtualMachineScaleSetIPConfiguration() - .withName("oezqhkidfhyywlfzwuotilrpbqnjg") - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) - .withPrimary(true) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("fvpqf") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(9) - .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel( - "ukrddzvmorpmfsczjwtbvp") - .withDomainNameLabelScope( - DomainNameLabelScopeTypes.TENANT_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag() - .withIpTagType( - "sddgsoemnzgqizale") - .withTag( - "wufmhrjsakbiaetyara"))) - .withPublicIPPrefix( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) - .withPublicIPAddressVersion( - IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku() - .withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV4) - .withApplicationGatewayBackendAddressPools( - Arrays.asList( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) - .withApplicationSecurityGroups(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) - .withLoadBalancerBackendAddressPools(Arrays - .asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) - .withEnableIPForwarding(true) - .withDeleteOption(DeleteOptions.DELETE) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) - .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)) - .withSecurityProfile(new SecurityProfile() - .withUefiSettings( - new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) - .withEncryptionAtHost(true) - .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) - .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) - .withProxyAgentSettings(new ProxyAgentSettings() - .withEnabled(true) - .withMode(Mode.AUDIT) - .withKeyIncarnationId(20))) - .withDiagnosticsProfile( - new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() - .withEnabled(true) - .withStorageUri("rzamfwghybpx"))) - .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() - .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension() - .withName("bndxuxx") - .withProperties( - new VirtualMachineScaleSetExtensionProperties().withForceUpdateTag("yhgxw") - .withPublisher("kpxtirxjfprhs") - .withType("pgjilctjjwaa") - .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") - .withAutoUpgradeMinorVersion(true) - .withEnableAutomaticUpgrade(true) - .withSettings(mapOf()) - .withProtectedSettings(mapOf()) - .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) - .withSuppressFailures(true) - .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() - .withSecretUrl("fakeTokenPlaceholder") - .withSourceVault( - new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) - .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) - .withLicenseType("v") - .withScheduledEventsProfile(new ScheduledEventsProfile() - .withTerminateNotificationProfile( - new TerminateNotificationProfile().withNotBeforeTimeout("iljppmmw") - .withEnable(true)) - .withOsImageNotificationProfile(new OSImageNotificationProfile() - .withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") + .withPatchSettings(new PatchSettings() + .withPatchMode(WindowsVMGuestPatchMode.MANUAL) + .withEnableHotpatching(true) + .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new WindowsVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withWinRM(new WinRMConfiguration().withListeners(Arrays.asList(new WinRMListener() + .withProtocol(ProtocolTypes.HTTP) + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName")))) + .withEnableVMAgentPlatformUpdates(true)) + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(true) + .withSsh(new SshConfiguration().withPublicKeys(Arrays.asList( + new SshPublicKey().withPath("kmqz").withKeyData("fakeTokenPlaceholder")))) + .withProvisionVMAgent(true) + .withPatchSettings(new LinuxPatchSettings() + .withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT) + .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) + .withAutomaticByPlatformSettings( + new LinuxVMGuestPatchAutomaticByPlatformSettings() + .withRebootSetting( + LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) + .withBypassPlatformSafetyChecksOnUserSchedule(true))) + .withEnableVMAgentPlatformUpdates(true)) + .withSecrets(Arrays.asList(new VaultSecretGroup() + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")) + .withVaultCertificates(Arrays.asList(new VaultCertificate() + .withCertificateUrl("https://myVaultName.vault.azure.net/secrets/myCertName") + .withCertificateStore("nlxrwavpzhueffxsshlun"))))) + .withAllowExtensionOperations(true) + .withRequireGuestProvisionSignal(true)) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}/versions/{versionName}") + .withPublisher("mqxgwbiyjzmxavhbkd") + .withOffer("isxgumkarlkomp") + .withSku("eojmppqcrnpmxirtp") + .withVersion("wvpcqefgtmqdgltiuz") + .withSharedGalleryImageId("kmkgihoxwlawuuhcinfirktdwkmx") + .withCommunityGalleryImageId("vlqe")) + .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("wfttw") + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiffDiskSettings(new DiffDiskSettings() + .withOption(DiffDiskOptions.LOCAL) + .withPlacement(DiffDiskPlacement.CACHE_DISK)) + .withDiskSizeGB(14) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri( + "https://myStorageAccountName.blob.core.windows.net/myContainerName/myVhdName.vhd")) + .withVhdContainers(Arrays.asList("tkzcwddtinkfpnfklatw")) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDeleteOption(DiskDeleteOptionTypes.DELETE)) + .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk() + .withName("eogiykmdmeikswxmigjws") + .withLun(14) + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDiskSizeGB(6) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet( + new DiskEncryptionSetParameters().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}")))) + .withDiskIOPSReadWrite(27L) + .withDiskMBpsReadWrite(2L) + .withDeleteOption(DiskDeleteOptionTypes.DELETE))) + .withDiskControllerType(DiskControllerTypes.fromString("uzb"))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withHealthProbe(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}")) + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("i") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("nxmmfolhclsesu"))) + .withIpConfigurations( + Arrays.asList(new VirtualMachineScaleSetIPConfiguration() + .withName("oezqhkidfhyywlfzwuotilrpbqnjg") + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}")) + .withPrimary(true) + .withPublicIPAddressConfiguration( + new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("fvpqf") + .withProperties( + new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(9) + .withDnsSettings( + new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel( + "ukrddzvmorpmfsczjwtbvp") + .withDomainNameLabelScope( + DomainNameLabelScopeTypes.TENANT_REUSE)) + .withIpTags(Arrays.asList( + new VirtualMachineScaleSetIpTag() + .withIpTagType("sddgsoemnzgqizale") + .withTag("wufmhrjsakbiaetyara"))) + .withPublicIPPrefix( + new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}")) + .withPublicIPAddressVersion(IPVersion.IPV4) + .withDeleteOption(DeleteOptions.DELETE)) + .withSku(new PublicIPAddressSku() + .withName(PublicIPAddressSkuName.BASIC) + .withTier(PublicIPAddressSkuTier.REGIONAL))) + .withPrivateIPAddressVersion(IPVersion.IPV4) + .withApplicationGatewayBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendAddressPools/{backendAddressPoolName}"))) + .withApplicationSecurityGroups(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"))) + .withLoadBalancerBackendAddressPools(Arrays + .asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatPools/{inboundNatPoolName}")))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) + .withNetworkApiVersion(NetworkApiVersion.V2020_11_01)) + .withSecurityProfile(new SecurityProfile() + .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)) + .withEncryptionAtHost(true) + .withSecurityType(SecurityTypes.TRUSTED_LAUNCH) + .withEncryptionIdentity(new EncryptionIdentity().withUserAssignedIdentityResourceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{userAssignedIdentityName}")) + .withProxyAgentSettings(new ProxyAgentSettings().withEnabled(true) + .withMode(Mode.AUDIT) + .withKeyIncarnationId(20))) + .withDiagnosticsProfile( + new DiagnosticsProfile().withBootDiagnostics(new BootDiagnostics() + .withEnabled(true) + .withStorageUri("http://myStorageAccountName.blob.core.windows.net"))) + .withExtensionProfile(new VirtualMachineScaleSetExtensionProfile() + .withExtensions(Arrays.asList(new VirtualMachineScaleSetExtension().withName("bndxuxx") + .withProperties(new VirtualMachineScaleSetExtensionProperties() + .withForceUpdateTag("yhgxw") + .withPublisher("kpxtirxjfprhs") + .withType("pgjilctjjwaa") + .withTypeHandlerVersion("zevivcoilxmbwlrihhhibq") + .withAutoUpgradeMinorVersion(true) + .withEnableAutomaticUpgrade(true) + .withSettings(mapOf()) + .withProtectedSettings(mapOf()) + .withProvisionAfterExtensions(Arrays.asList("nftzosroolbcwmpupujzqwqe")) + .withSuppressFailures(true) + .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference() + .withSecretUrl("fakeTokenPlaceholder") + .withSourceVault(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}")))))) + .withExtensionsTimeBudget("mbhjahtdygwgyszdwjtvlvtgchdwil")) + .withLicenseType("v") + .withScheduledEventsProfile(new ScheduledEventsProfile() + .withTerminateNotificationProfile(new TerminateNotificationProfile() + .withNotBeforeTimeout("iljppmmw") + .withEnable(true)) + .withOsImageNotificationProfile( + new OSImageNotificationProfile().withNotBeforeTimeout("olbpadmevekyczfokodtfprxti") .withEnable(true))) - .withUserData("s") - .withCapacityReservation(new CapacityReservationProfile() - .withCapacityReservationGroup(new SubResource().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) - .withApplicationProfile(new ApplicationProfile().withGalleryApplications(Arrays - .asList(new VMGalleryApplication().withTags("eyrqjbib") - .withOrder(5) - .withPackageReferenceId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") - .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") - .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(true)))) - .withHardwareProfile(new VirtualMachineScaleSetHardwareProfile() - .withVmSizeProperties(new VMSizeProperties() - .withVCPUsAvailable(16) - .withVCPUsPerCore(23))) - .withServiceArtifactReference(new ServiceArtifactReference().withId( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) - .withSecurityPostureReference(new SecurityPostureReference().withId( - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") - .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) - .withIsOverridable(true))) + .withUserData("s") + .withCapacityReservation(new CapacityReservationProfile() + .withCapacityReservationGroup(new SubResource().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}"))) + .withApplicationProfile(new ApplicationProfile().withGalleryApplications( + Arrays.asList(new VMGalleryApplication().withTags("eyrqjbib") + .withOrder(5) + .withPackageReferenceId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{applicationName}/versions/{versionName}") + .withConfigurationReference("ulztmiavpojpbpbddgnuuiimxcpau") + .withTreatFailureAsDeploymentFailure(true) + .withEnableAutomaticUpgrade(true)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withVmSizeProperties(new VMSizeProperties() + .withVCPUsAvailable(16) + .withVCPUsPerCore(23))) + .withServiceArtifactReference(new ServiceArtifactReference().withId( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactsName}/vmArtifactsProfiles/{vmArtifactsProfileName}")) + .withSecurityPostureReference(new SecurityPostureReference().withId( + "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest") + .withExcludeExtensions(Arrays.asList("{securityPostureVMExtensionName}")) + .withIsOverridable(true))) .withComputeApiVersion("2023-07-01") .withPlatformFaultDomainCount(1))) .apply(); diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/OperationsListSamples.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/OperationsListSamples.java index 1c0dcc08ed488..572367c66ab7a 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/OperationsListSamples.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/samples/java/com/azure/resourcemanager/computefleet/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2024-05-01-preview/Operations_List.json + * x-ms-original-file: 2024-11-01/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/ComputeFleetManagerTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/ComputeFleetManagerTests.java index 649a11863e1b2..a14a2b427aa19 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/ComputeFleetManagerTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/ComputeFleetManagerTests.java @@ -70,16 +70,14 @@ public void beforeTest() { final TokenCredential credential = new AzurePowerShellCredentialBuilder().build(); final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); - networkManager = NetworkManager - .configure() + networkManager = NetworkManager.configure() .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) .authenticate(credential, profile); - computeFleetManager = ComputeFleetManager - .configure() - .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) - .withPolicy(new ProviderRegistrationPolicy(networkManager.resourceManager())) - .authenticate(credential, profile); + computeFleetManager = ComputeFleetManager.configure() + .withLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BASIC)) + .withPolicy(new ProviderRegistrationPolicy(networkManager.resourceManager())) + .authenticate(credential, profile); // use AZURE_RESOURCE_GROUP_NAME if run in LIVE CI String testResourceGroup = Configuration.getGlobalConfiguration().get("AZURE_RESOURCE_GROUP_NAME"); @@ -87,10 +85,7 @@ public void beforeTest() { if (testEnv) { resourceGroupName = testResourceGroup; } else { - networkManager.resourceManager().resourceGroups() - .define(resourceGroupName) - .withRegion(REGION) - .create(); + networkManager.resourceManager().resourceGroups().define(resourceGroupName).withRegion(REGION).create(); } } @@ -141,107 +136,67 @@ public void testCreateComputeFleet() { .define(fleetName) .withRegion(REGION) .withExistingResourceGroup(resourceGroupName) - .withProperties( - new FleetProperties() - .withSpotPriorityProfile( - new SpotPriorityProfile() - .withMaintain(false) - .withCapacity(1) - .withEvictionPolicy(EvictionPolicy.DELETE) - .withAllocationStrategy(SpotAllocationStrategy.LOWEST_PRICE) - ) - .withVmSizesProfile( - Arrays.asList( - new VmSizeProfile().withName("Standard_D4s_v3") - ) - ) - .withComputeProfile( - new ComputeProfile() - .withBaseVirtualMachineProfile( - new BaseVirtualMachineProfile() - .withStorageProfile( - new VirtualMachineScaleSetStorageProfile() - .withImageReference( - new ImageReference() - .withPublisher("canonical") - .withOffer("ubuntu-24_04-lts") - .withSku("server") - .withVersion("latest") - ) - .withOsDisk( - new VirtualMachineScaleSetOSDisk() - .withManagedDisk( - new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) - ) - .withOsType(OperatingSystemTypes.LINUX) - .withDiskSizeGB(30) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDeleteOption(DiskDeleteOptionTypes.DELETE) - .withCaching(CachingTypes.READ_WRITE) - ) - .withDiskControllerType(DiskControllerTypes.SCSI) - ) - .withOsProfile( - new VirtualMachineScaleSetOSProfile() - .withComputerNamePrefix(randomPadding()) - .withAdminUsername(adminUser) - .withAdminPassword(adminPwd) - .withLinuxConfiguration( - new LinuxConfiguration().withDisablePasswordAuthentication(false) - ) - ) - .withNetworkProfile( - new VirtualMachineScaleSetNetworkProfile() - .withNetworkInterfaceConfigurations( - Arrays.asList( - new VirtualMachineScaleSetNetworkConfiguration() - .withName(vmName) - .withProperties( - new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(false) - .withDeleteOption(DeleteOptions.DELETE) - .withIpConfigurations( - Arrays.asList( - new VirtualMachineScaleSetIPConfiguration() - .withName(vmName) - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withPrimary(true) - .withSubnet( - new ApiEntityReference() - .withId(network.subnets().get("default").id()) - ) - .withLoadBalancerBackendAddressPools( - loadBalancer.loadBalancingRules() - .get(loadBalancerName + "-lbrule") - .innerModel().backendAddressPools() - ) - ) - ) - ) - ) - ) - ) - .withNetworkApiVersion(NetworkApiVersion.fromString("2024-03-01")) - ) - ) - .withComputeApiVersion("2024-03-01") - .withPlatformFaultDomainCount(1) - ) - .withRegularPriorityProfile(new RegularPriorityProfile() - .withAllocationStrategy(RegularPriorityAllocationStrategy.LOWEST_PRICE) - .withMinCapacity(1) - .withCapacity(2) - ) - ) + .withProperties(new FleetProperties() + .withSpotPriorityProfile(new SpotPriorityProfile().withMaintain(false) + .withCapacity(1) + .withEvictionPolicy(EvictionPolicy.DELETE) + .withAllocationStrategy(SpotAllocationStrategy.LOWEST_PRICE)) + .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("Standard_D4s_v3"))) + .withComputeProfile(new ComputeProfile() + .withBaseVirtualMachineProfile(new BaseVirtualMachineProfile() + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withPublisher("canonical") + .withOffer("ubuntu-24_04-lts") + .withSku("server") + .withVersion("latest")) + .withOsDisk(new VirtualMachineScaleSetOSDisk() + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS)) + .withOsType(OperatingSystemTypes.LINUX) + .withDiskSizeGB(30) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withDeleteOption(DiskDeleteOptionTypes.DELETE) + .withCaching(CachingTypes.READ_WRITE)) + .withDiskControllerType(DiskControllerTypes.SCSI)) + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix(randomPadding()) + .withAdminUsername(adminUser) + .withAdminPassword(adminPwd) + .withLinuxConfiguration( + new LinuxConfiguration().withDisablePasswordAuthentication(false))) + .withNetworkProfile( + new VirtualMachineScaleSetNetworkProfile() + .withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName(vmName) + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() + .withPrimary(true) + .withEnableAcceleratedNetworking(false) + .withDeleteOption(DeleteOptions.DELETE) + .withIpConfigurations(Arrays + .asList(new VirtualMachineScaleSetIPConfiguration().withName(vmName) + .withProperties( + new VirtualMachineScaleSetIPConfigurationProperties() + .withPrimary(true) + .withSubnet(new ApiEntityReference() + .withId(network.subnets().get("default").id())) + .withLoadBalancerBackendAddressPools( + loadBalancer.loadBalancingRules() + .get(loadBalancerName + "-lbrule") + .innerModel() + .backendAddressPools()))))))) + .withNetworkApiVersion(NetworkApiVersion.fromString("2024-03-01")))) + .withComputeApiVersion("2024-03-01") + .withPlatformFaultDomainCount(1)) + .withRegularPriorityProfile(new RegularPriorityProfile() + .withAllocationStrategy(RegularPriorityAllocationStrategy.LOWEST_PRICE) + .withMinCapacity(1) + .withCapacity(2))) .create(); // @embedmeEnd fleet.refresh(); Assertions.assertEquals(fleetName, fleet.name()); Assertions.assertEquals(fleetName, computeFleetManager.fleets().getById(fleet.id()).name()); - Assertions.assertTrue(computeFleetManager.fleets().listByResourceGroup(resourceGroupName).stream().findAny().isPresent()); + Assertions.assertTrue( + computeFleetManager.fleets().listByResourceGroup(resourceGroupName).stream().findAny().isPresent()); } finally { if (fleet != null) { computeFleetManager.fleets().deleteById(fleet.id()); diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalCapabilitiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalCapabilitiesTests.java new file mode 100644 index 0000000000000..de1956e3b89ad --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalCapabilitiesTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.computefleet.models.AdditionalCapabilities; +import org.junit.jupiter.api.Assertions; + +public final class AdditionalCapabilitiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AdditionalCapabilities model = BinaryData.fromString("{\"ultraSSDEnabled\":true,\"hibernationEnabled\":true}") + .toObject(AdditionalCapabilities.class); + Assertions.assertEquals(true, model.ultraSSDEnabled()); + Assertions.assertEquals(true, model.hibernationEnabled()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + AdditionalCapabilities model + = new AdditionalCapabilities().withUltraSSDEnabled(true).withHibernationEnabled(true); + model = BinaryData.fromObject(model).toObject(AdditionalCapabilities.class); + Assertions.assertEquals(true, model.ultraSSDEnabled()); + Assertions.assertEquals(true, model.hibernationEnabled()); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalUnattendContentTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalUnattendContentTests.java index 66b1d609089d0..806aa7807e147 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalUnattendContentTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalUnattendContentTests.java @@ -15,13 +15,13 @@ public final class AdditionalUnattendContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AdditionalUnattendContent model = BinaryData.fromString( - "{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"jaeq\"}") + "{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"a\"}") .toObject(AdditionalUnattendContent.class); Assertions.assertEquals(AdditionalUnattendContentPassName.OOBE_SYSTEM, model.passName()); Assertions.assertEquals(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP, model.componentName()); - Assertions.assertEquals(SettingNames.FIRST_LOGON_COMMANDS, model.settingName()); - Assertions.assertEquals("jaeq", model.content()); + Assertions.assertEquals(SettingNames.AUTO_LOGON, model.settingName()); + Assertions.assertEquals("a", model.content()); } @org.junit.jupiter.api.Test @@ -29,13 +29,13 @@ public void testSerialize() throws Exception { AdditionalUnattendContent model = new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) - .withSettingName(SettingNames.FIRST_LOGON_COMMANDS) - .withContent("jaeq"); + .withSettingName(SettingNames.AUTO_LOGON) + .withContent("a"); model = BinaryData.fromObject(model).toObject(AdditionalUnattendContent.class); Assertions.assertEquals(AdditionalUnattendContentPassName.OOBE_SYSTEM, model.passName()); Assertions.assertEquals(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP, model.componentName()); - Assertions.assertEquals(SettingNames.FIRST_LOGON_COMMANDS, model.settingName()); - Assertions.assertEquals("jaeq", model.content()); + Assertions.assertEquals(SettingNames.AUTO_LOGON, model.settingName()); + Assertions.assertEquals("a", model.content()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApiEntityReferenceTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApiEntityReferenceTests.java index 55406ccc910ba..e3dccf10d01cb 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApiEntityReferenceTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApiEntityReferenceTests.java @@ -11,14 +11,15 @@ public final class ApiEntityReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApiEntityReference model = BinaryData.fromString("{\"id\":\"f\"}").toObject(ApiEntityReference.class); - Assertions.assertEquals("f", model.id()); + ApiEntityReference model + = BinaryData.fromString("{\"id\":\"moryocfsfksym\"}").toObject(ApiEntityReference.class); + Assertions.assertEquals("moryocfsfksym", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApiEntityReference model = new ApiEntityReference().withId("f"); + ApiEntityReference model = new ApiEntityReference().withId("moryocfsfksym"); model = BinaryData.fromObject(model).toObject(ApiEntityReference.class); - Assertions.assertEquals("f", model.id()); + Assertions.assertEquals("moryocfsfksym", model.id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApplicationProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApplicationProfileTests.java index 14dd378fc90db..910570a71f4c4 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApplicationProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ApplicationProfileTests.java @@ -14,49 +14,31 @@ public final class ApplicationProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationProfile model = BinaryData.fromString( - "{\"galleryApplications\":[{\"tags\":\"xisxyawjoyaqcsl\",\"order\":1050162327,\"packageReferenceId\":\"kiidzyex\",\"configurationReference\":\"eli\",\"treatFailureAsDeploymentFailure\":false,\"enableAutomaticUpgrade\":true},{\"tags\":\"folhbnxknal\",\"order\":338367472,\"packageReferenceId\":\"ppg\",\"configurationReference\":\"tpnapnyiropuhpig\",\"treatFailureAsDeploymentFailure\":true,\"enableAutomaticUpgrade\":false},{\"tags\":\"qgitxmed\",\"order\":119641642,\"packageReferenceId\":\"slynqwwnc\",\"configurationReference\":\"zhxgktrmgucn\",\"treatFailureAsDeploymentFailure\":false,\"enableAutomaticUpgrade\":true},{\"tags\":\"ellwptfdy\",\"order\":622690283,\"packageReferenceId\":\"qbuaceopzfqr\",\"configurationReference\":\"uaopppcqeq\",\"treatFailureAsDeploymentFailure\":true,\"enableAutomaticUpgrade\":true}]}") + "{\"galleryApplications\":[{\"tags\":\"lynqwwncwzzh\",\"order\":953152084,\"packageReferenceId\":\"trmgucnapkte\",\"configurationReference\":\"llwptfdy\",\"treatFailureAsDeploymentFailure\":true,\"enableAutomaticUpgrade\":false}]}") .toObject(ApplicationProfile.class); - Assertions.assertEquals("xisxyawjoyaqcsl", model.galleryApplications().get(0).tags()); - Assertions.assertEquals(1050162327, model.galleryApplications().get(0).order()); - Assertions.assertEquals("kiidzyex", model.galleryApplications().get(0).packageReferenceId()); - Assertions.assertEquals("eli", model.galleryApplications().get(0).configurationReference()); - Assertions.assertEquals(false, model.galleryApplications().get(0).treatFailureAsDeploymentFailure()); - Assertions.assertEquals(true, model.galleryApplications().get(0).enableAutomaticUpgrade()); + Assertions.assertEquals("lynqwwncwzzh", model.galleryApplications().get(0).tags()); + Assertions.assertEquals(953152084, model.galleryApplications().get(0).order()); + Assertions.assertEquals("trmgucnapkte", model.galleryApplications().get(0).packageReferenceId()); + Assertions.assertEquals("llwptfdy", model.galleryApplications().get(0).configurationReference()); + Assertions.assertEquals(true, model.galleryApplications().get(0).treatFailureAsDeploymentFailure()); + Assertions.assertEquals(false, model.galleryApplications().get(0).enableAutomaticUpgrade()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApplicationProfile model = new ApplicationProfile().withGalleryApplications(Arrays.asList( - new VMGalleryApplication().withTags("xisxyawjoyaqcsl") - .withOrder(1050162327) - .withPackageReferenceId("kiidzyex") - .withConfigurationReference("eli") - .withTreatFailureAsDeploymentFailure(false) - .withEnableAutomaticUpgrade(true), - new VMGalleryApplication().withTags("folhbnxknal") - .withOrder(338367472) - .withPackageReferenceId("ppg") - .withConfigurationReference("tpnapnyiropuhpig") + ApplicationProfile model = new ApplicationProfile() + .withGalleryApplications(Arrays.asList(new VMGalleryApplication().withTags("lynqwwncwzzh") + .withOrder(953152084) + .withPackageReferenceId("trmgucnapkte") + .withConfigurationReference("llwptfdy") .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(false), - new VMGalleryApplication().withTags("qgitxmed") - .withOrder(119641642) - .withPackageReferenceId("slynqwwnc") - .withConfigurationReference("zhxgktrmgucn") - .withTreatFailureAsDeploymentFailure(false) - .withEnableAutomaticUpgrade(true), - new VMGalleryApplication().withTags("ellwptfdy") - .withOrder(622690283) - .withPackageReferenceId("qbuaceopzfqr") - .withConfigurationReference("uaopppcqeq") - .withTreatFailureAsDeploymentFailure(true) - .withEnableAutomaticUpgrade(true))); + .withEnableAutomaticUpgrade(false))); model = BinaryData.fromObject(model).toObject(ApplicationProfile.class); - Assertions.assertEquals("xisxyawjoyaqcsl", model.galleryApplications().get(0).tags()); - Assertions.assertEquals(1050162327, model.galleryApplications().get(0).order()); - Assertions.assertEquals("kiidzyex", model.galleryApplications().get(0).packageReferenceId()); - Assertions.assertEquals("eli", model.galleryApplications().get(0).configurationReference()); - Assertions.assertEquals(false, model.galleryApplications().get(0).treatFailureAsDeploymentFailure()); - Assertions.assertEquals(true, model.galleryApplications().get(0).enableAutomaticUpgrade()); + Assertions.assertEquals("lynqwwncwzzh", model.galleryApplications().get(0).tags()); + Assertions.assertEquals(953152084, model.galleryApplications().get(0).order()); + Assertions.assertEquals("trmgucnapkte", model.galleryApplications().get(0).packageReferenceId()); + Assertions.assertEquals("llwptfdy", model.galleryApplications().get(0).configurationReference()); + Assertions.assertEquals(true, model.galleryApplications().get(0).treatFailureAsDeploymentFailure()); + Assertions.assertEquals(false, model.galleryApplications().get(0).enableAutomaticUpgrade()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/BootDiagnosticsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/BootDiagnosticsTests.java index 936af98053811..6eb4c99f925a6 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/BootDiagnosticsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/BootDiagnosticsTests.java @@ -11,17 +11,17 @@ public final class BootDiagnosticsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BootDiagnostics model = BinaryData.fromString("{\"enabled\":true,\"storageUri\":\"tldwkyzxuutk\"}") + BootDiagnostics model = BinaryData.fromString("{\"enabled\":false,\"storageUri\":\"ykvceoveil\"}") .toObject(BootDiagnostics.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("tldwkyzxuutk", model.storageUri()); + Assertions.assertEquals(false, model.enabled()); + Assertions.assertEquals("ykvceoveil", model.storageUri()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BootDiagnostics model = new BootDiagnostics().withEnabled(true).withStorageUri("tldwkyzxuutk"); + BootDiagnostics model = new BootDiagnostics().withEnabled(false).withStorageUri("ykvceoveil"); model = BinaryData.fromObject(model).toObject(BootDiagnostics.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals("tldwkyzxuutk", model.storageUri()); + Assertions.assertEquals(false, model.enabled()); + Assertions.assertEquals("ykvceoveil", model.storageUri()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/CapacityReservationProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/CapacityReservationProfileTests.java index 5f0dad5314e43..549f1d865c88c 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/CapacityReservationProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/CapacityReservationProfileTests.java @@ -12,17 +12,16 @@ public final class CapacityReservationProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CapacityReservationProfile model - = BinaryData.fromString("{\"capacityReservationGroup\":{\"id\":\"bxwyjsflhhcaa\"}}") - .toObject(CapacityReservationProfile.class); - Assertions.assertEquals("bxwyjsflhhcaa", model.capacityReservationGroup().id()); + CapacityReservationProfile model = BinaryData.fromString("{\"capacityReservationGroup\":{\"id\":\"qgitxmed\"}}") + .toObject(CapacityReservationProfile.class); + Assertions.assertEquals("qgitxmed", model.capacityReservationGroup().id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CapacityReservationProfile model - = new CapacityReservationProfile().withCapacityReservationGroup(new SubResource().withId("bxwyjsflhhcaa")); + = new CapacityReservationProfile().withCapacityReservationGroup(new SubResource().withId("qgitxmed")); model = BinaryData.fromObject(model).toObject(CapacityReservationProfile.class); - Assertions.assertEquals("bxwyjsflhhcaa", model.capacityReservationGroup().id()); + Assertions.assertEquals("qgitxmed", model.capacityReservationGroup().id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiagnosticsProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiagnosticsProfileTests.java index 22532ebeba6ad..6a41d3e674f02 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiagnosticsProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiagnosticsProfileTests.java @@ -13,18 +13,18 @@ public final class DiagnosticsProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiagnosticsProfile model - = BinaryData.fromString("{\"bootDiagnostics\":{\"enabled\":false,\"storageUri\":\"krdqmh\"}}") + = BinaryData.fromString("{\"bootDiagnostics\":{\"enabled\":true,\"storageUri\":\"xotogtwrupqsxv\"}}") .toObject(DiagnosticsProfile.class); - Assertions.assertEquals(false, model.bootDiagnostics().enabled()); - Assertions.assertEquals("krdqmh", model.bootDiagnostics().storageUri()); + Assertions.assertEquals(true, model.bootDiagnostics().enabled()); + Assertions.assertEquals("xotogtwrupqsxv", model.bootDiagnostics().storageUri()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DiagnosticsProfile model = new DiagnosticsProfile() - .withBootDiagnostics(new BootDiagnostics().withEnabled(false).withStorageUri("krdqmh")); + .withBootDiagnostics(new BootDiagnostics().withEnabled(true).withStorageUri("xotogtwrupqsxv")); model = BinaryData.fromObject(model).toObject(DiagnosticsProfile.class); - Assertions.assertEquals(false, model.bootDiagnostics().enabled()); - Assertions.assertEquals("krdqmh", model.bootDiagnostics().storageUri()); + Assertions.assertEquals(true, model.bootDiagnostics().enabled()); + Assertions.assertEquals("xotogtwrupqsxv", model.bootDiagnostics().storageUri()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiffDiskSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiffDiskSettingsTests.java index f0a38a83a35a2..50979082ec1ba 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiffDiskSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiffDiskSettingsTests.java @@ -13,18 +13,18 @@ public final class DiffDiskSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DiffDiskSettings model = BinaryData.fromString("{\"option\":\"Local\",\"placement\":\"NvmeDisk\"}") + DiffDiskSettings model = BinaryData.fromString("{\"option\":\"Local\",\"placement\":\"ResourceDisk\"}") .toObject(DiffDiskSettings.class); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.option()); - Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.placement()); + Assertions.assertEquals(DiffDiskPlacement.RESOURCE_DISK, model.placement()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DiffDiskSettings model - = new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.NVME_DISK); + = new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.RESOURCE_DISK); model = BinaryData.fromObject(model).toObject(DiffDiskSettings.class); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.option()); - Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.placement()); + Assertions.assertEquals(DiffDiskPlacement.RESOURCE_DISK, model.placement()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiskEncryptionSetParametersTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiskEncryptionSetParametersTests.java index 00b38e08c2a8a..5899c66c214e3 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiskEncryptionSetParametersTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/DiskEncryptionSetParametersTests.java @@ -12,14 +12,14 @@ public final class DiskEncryptionSetParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiskEncryptionSetParameters model - = BinaryData.fromString("{\"id\":\"kudjkrlkhb\"}").toObject(DiskEncryptionSetParameters.class); - Assertions.assertEquals("kudjkrlkhb", model.id()); + = BinaryData.fromString("{\"id\":\"eallnwsubisnj\"}").toObject(DiskEncryptionSetParameters.class); + Assertions.assertEquals("eallnwsubisnj", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DiskEncryptionSetParameters model = new DiskEncryptionSetParameters().withId("kudjkrlkhb"); + DiskEncryptionSetParameters model = new DiskEncryptionSetParameters().withId("eallnwsubisnj"); model = BinaryData.fromObject(model).toObject(DiskEncryptionSetParameters.class); - Assertions.assertEquals("kudjkrlkhb", model.id()); + Assertions.assertEquals("eallnwsubisnj", model.id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/EncryptionIdentityTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/EncryptionIdentityTests.java index 0f727421223b0..50298610d9d02 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/EncryptionIdentityTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/EncryptionIdentityTests.java @@ -11,15 +11,15 @@ public final class EncryptionIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EncryptionIdentity model = BinaryData.fromString("{\"userAssignedIdentityResourceId\":\"ojnabckhsmtxpsie\"}") + EncryptionIdentity model = BinaryData.fromString("{\"userAssignedIdentityResourceId\":\"dwkyzxuu\"}") .toObject(EncryptionIdentity.class); - Assertions.assertEquals("ojnabckhsmtxpsie", model.userAssignedIdentityResourceId()); + Assertions.assertEquals("dwkyzxuu", model.userAssignedIdentityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentityResourceId("ojnabckhsmtxpsie"); + EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentityResourceId("dwkyzxuu"); model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("ojnabckhsmtxpsie", model.userAssignedIdentityResourceId()); + Assertions.assertEquals("dwkyzxuu", model.userAssignedIdentityResourceId()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ImageReferenceTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ImageReferenceTests.java index 953cd5f972225..71dcbdc9b7e2c 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ImageReferenceTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ImageReferenceTests.java @@ -12,33 +12,33 @@ public final class ImageReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ImageReference model = BinaryData.fromString( - "{\"id\":\"uht\",\"publisher\":\"wisdkft\",\"offer\":\"xmnteiwaop\",\"sku\":\"mijcmmxdcufufs\",\"version\":\"ymzidn\",\"exactVersion\":\"zcxtbzsgfyccsn\",\"sharedGalleryImageId\":\"mdwzjeiachboo\",\"communityGalleryImageId\":\"lnrosfqp\"}") + "{\"id\":\"igdtopbob\",\"publisher\":\"ghmewuam\",\"offer\":\"hrzayvvtpgvdf\",\"sku\":\"otkftutqxlngx\",\"version\":\"fgugnxkrxdqmid\",\"exactVersion\":\"hzrvqd\",\"sharedGalleryImageId\":\"bhj\",\"communityGalleryImageId\":\"igeho\"}") .toObject(ImageReference.class); - Assertions.assertEquals("uht", model.id()); - Assertions.assertEquals("wisdkft", model.publisher()); - Assertions.assertEquals("xmnteiwaop", model.offer()); - Assertions.assertEquals("mijcmmxdcufufs", model.sku()); - Assertions.assertEquals("ymzidn", model.version()); - Assertions.assertEquals("mdwzjeiachboo", model.sharedGalleryImageId()); - Assertions.assertEquals("lnrosfqp", model.communityGalleryImageId()); + Assertions.assertEquals("igdtopbob", model.id()); + Assertions.assertEquals("ghmewuam", model.publisher()); + Assertions.assertEquals("hrzayvvtpgvdf", model.offer()); + Assertions.assertEquals("otkftutqxlngx", model.sku()); + Assertions.assertEquals("fgugnxkrxdqmid", model.version()); + Assertions.assertEquals("bhj", model.sharedGalleryImageId()); + Assertions.assertEquals("igeho", model.communityGalleryImageId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ImageReference model = new ImageReference().withId("uht") - .withPublisher("wisdkft") - .withOffer("xmnteiwaop") - .withSku("mijcmmxdcufufs") - .withVersion("ymzidn") - .withSharedGalleryImageId("mdwzjeiachboo") - .withCommunityGalleryImageId("lnrosfqp"); + ImageReference model = new ImageReference().withId("igdtopbob") + .withPublisher("ghmewuam") + .withOffer("hrzayvvtpgvdf") + .withSku("otkftutqxlngx") + .withVersion("fgugnxkrxdqmid") + .withSharedGalleryImageId("bhj") + .withCommunityGalleryImageId("igeho"); model = BinaryData.fromObject(model).toObject(ImageReference.class); - Assertions.assertEquals("uht", model.id()); - Assertions.assertEquals("wisdkft", model.publisher()); - Assertions.assertEquals("xmnteiwaop", model.offer()); - Assertions.assertEquals("mijcmmxdcufufs", model.sku()); - Assertions.assertEquals("ymzidn", model.version()); - Assertions.assertEquals("mdwzjeiachboo", model.sharedGalleryImageId()); - Assertions.assertEquals("lnrosfqp", model.communityGalleryImageId()); + Assertions.assertEquals("igdtopbob", model.id()); + Assertions.assertEquals("ghmewuam", model.publisher()); + Assertions.assertEquals("hrzayvvtpgvdf", model.offer()); + Assertions.assertEquals("otkftutqxlngx", model.sku()); + Assertions.assertEquals("fgugnxkrxdqmid", model.version()); + Assertions.assertEquals("bhj", model.sharedGalleryImageId()); + Assertions.assertEquals("igeho", model.communityGalleryImageId()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/InnerErrorTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/InnerErrorTests.java index cbcf5f530990a..4f05c624de913 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/InnerErrorTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/InnerErrorTests.java @@ -11,9 +11,9 @@ public final class InnerErrorTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - InnerError model = BinaryData.fromString("{\"exceptionType\":\"vqtmnub\",\"errorDetail\":\"kpzksmondjmq\"}") + InnerError model = BinaryData.fromString("{\"exceptionType\":\"ahwfluszdtmhrk\",\"errorDetail\":\"fyyvoq\"}") .toObject(InnerError.class); - Assertions.assertEquals("vqtmnub", model.exceptionType()); - Assertions.assertEquals("kpzksmondjmq", model.errorDetail()); + Assertions.assertEquals("ahwfluszdtmhrk", model.exceptionType()); + Assertions.assertEquals("fyyvoq", model.errorDetail()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxPatchSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxPatchSettingsTests.java index cb49ef42842f0..89654c30d5860 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxPatchSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxPatchSettingsTests.java @@ -16,27 +16,27 @@ public final class LinuxPatchSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LinuxPatchSettings model = BinaryData.fromString( - "{\"patchMode\":\"AutomaticByPlatform\",\"assessmentMode\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Always\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}}") + "{\"patchMode\":\"AutomaticByPlatform\",\"assessmentMode\":\"AutomaticByPlatform\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Always\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}}") .toObject(LinuxPatchSettings.class); Assertions.assertEquals(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchMode()); - Assertions.assertEquals(LinuxPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode()); + Assertions.assertEquals(LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM, model.assessmentMode()); Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.automaticByPlatformSettings().rebootSetting()); - Assertions.assertEquals(false, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); + Assertions.assertEquals(true, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LinuxPatchSettings model = new LinuxPatchSettings().withPatchMode(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM) - .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT) + .withAssessmentMode(LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM) .withAutomaticByPlatformSettings(new LinuxVMGuestPatchAutomaticByPlatformSettings() .withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS) - .withBypassPlatformSafetyChecksOnUserSchedule(false)); + .withBypassPlatformSafetyChecksOnUserSchedule(true)); model = BinaryData.fromObject(model).toObject(LinuxPatchSettings.class); Assertions.assertEquals(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchMode()); - Assertions.assertEquals(LinuxPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode()); + Assertions.assertEquals(LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM, model.assessmentMode()); Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.automaticByPlatformSettings().rebootSetting()); - Assertions.assertEquals(false, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); + Assertions.assertEquals(true, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java index e5dc79e39520f..93baef0a6058f 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java @@ -12,20 +12,20 @@ public final class LinuxVMGuestPatchAutomaticByPlatformSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - LinuxVMGuestPatchAutomaticByPlatformSettings model = BinaryData - .fromString("{\"rebootSetting\":\"IfRequired\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}") - .toObject(LinuxVMGuestPatchAutomaticByPlatformSettings.class); - Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED, model.rebootSetting()); - Assertions.assertEquals(true, model.bypassPlatformSafetyChecksOnUserSchedule()); + LinuxVMGuestPatchAutomaticByPlatformSettings model + = BinaryData.fromString("{\"rebootSetting\":\"Always\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}") + .toObject(LinuxVMGuestPatchAutomaticByPlatformSettings.class); + Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.rebootSetting()); + Assertions.assertEquals(false, model.bypassPlatformSafetyChecksOnUserSchedule()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LinuxVMGuestPatchAutomaticByPlatformSettings model = new LinuxVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED) - .withBypassPlatformSafetyChecksOnUserSchedule(true); + .withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS) + .withBypassPlatformSafetyChecksOnUserSchedule(false); model = BinaryData.fromObject(model).toObject(LinuxVMGuestPatchAutomaticByPlatformSettings.class); - Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED, model.rebootSetting()); - Assertions.assertEquals(true, model.bypassPlatformSafetyChecksOnUserSchedule()); + Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.rebootSetting()); + Assertions.assertEquals(false, model.bypassPlatformSafetyChecksOnUserSchedule()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityTests.java index 7bd181893e65f..1d22aa613f910 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityTests.java @@ -16,18 +16,19 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"cqaqtdoqmcbx\",\"tenantId\":\"vxysl\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"hqjohxcrsbfova\":{\"principalId\":\"xoblytkbl\",\"clientId\":\"ewwwfbkrvrnsv\"},\"ybsrfbjfdtwss\":{\"principalId\":\"ruvw\",\"clientId\":\"sqfsubcgjbirxb\"}}}") + "{\"principalId\":\"fbkrvrnsvs\",\"tenantId\":\"johxcrsb\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"ybsrfbjfdtwss\":{\"principalId\":\"rruvwbhsq\",\"clientId\":\"ubcgjbirxb\"},\"qtaruoujmkcjhwq\":{\"principalId\":\"ftpvjzbexil\",\"clientId\":\"nfqqnvwp\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("hqjohxcrsbfova", new UserAssignedIdentity(), "ybsrfbjfdtwss", new UserAssignedIdentity())); + ManagedServiceIdentity model + = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities( + mapOf("ybsrfbjfdtwss", new UserAssignedIdentity(), "qtaruoujmkcjhwq", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityUpdateTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityUpdateTests.java index 892cd1cd2ff57..182b2aed1aee7 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityUpdateTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ManagedServiceIdentityUpdateTests.java @@ -16,19 +16,19 @@ public final class ManagedServiceIdentityUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentityUpdate model = BinaryData.fromString( - "{\"type\":\"None\",\"userAssignedIdentities\":{\"ntnev\":{\"principalId\":\"dzu\",\"clientId\":\"rsc\"},\"weriofzpyqsem\":{\"principalId\":\"wjmy\",\"clientId\":\"dsslswt\"},\"d\":{\"principalId\":\"bnetshh\",\"clientId\":\"h\"},\"lcxog\":{\"principalId\":\"vwiwubmwmbesld\",\"clientId\":\"wwtppj\"}}}") + "{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"d\":{\"principalId\":\"abnetshh\",\"clientId\":\"h\"},\"lcxog\":{\"principalId\":\"vwiwubmwmbesld\",\"clientId\":\"wwtppj\"},\"qkdltfz\":{\"principalId\":\"konzmnsik\",\"clientId\":\"kqze\"},\"odkwobd\":{\"principalId\":\"hhvh\",\"clientId\":\"r\"}}}") .toObject(ManagedServiceIdentityUpdate.class); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedServiceIdentityUpdate model - = new ManagedServiceIdentityUpdate().withType(ManagedServiceIdentityType.NONE) - .withUserAssignedIdentities(mapOf("ntnev", new UserAssignedIdentity(), "weriofzpyqsem", - new UserAssignedIdentity(), "d", new UserAssignedIdentity(), "lcxog", new UserAssignedIdentity())); + = new ManagedServiceIdentityUpdate().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("d", new UserAssignedIdentity(), "lcxog", new UserAssignedIdentity(), + "qkdltfz", new UserAssignedIdentity(), "odkwobd", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentityUpdate.class); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.type()); } // Use "Map.of" if available diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OSImageNotificationProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OSImageNotificationProfileTests.java index daf577dcd93d1..6d3da85d7c8df 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OSImageNotificationProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OSImageNotificationProfileTests.java @@ -12,18 +12,18 @@ public final class OSImageNotificationProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OSImageNotificationProfile model - = BinaryData.fromString("{\"notBeforeTimeout\":\"uwaboekqvke\",\"enable\":false}") + = BinaryData.fromString("{\"notBeforeTimeout\":\"napnyiropuhpigv\",\"enable\":true}") .toObject(OSImageNotificationProfile.class); - Assertions.assertEquals("uwaboekqvke", model.notBeforeTimeout()); - Assertions.assertEquals(false, model.enable()); + Assertions.assertEquals("napnyiropuhpigv", model.notBeforeTimeout()); + Assertions.assertEquals(true, model.enable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OSImageNotificationProfile model - = new OSImageNotificationProfile().withNotBeforeTimeout("uwaboekqvke").withEnable(false); + = new OSImageNotificationProfile().withNotBeforeTimeout("napnyiropuhpigv").withEnable(true); model = BinaryData.fromObject(model).toObject(OSImageNotificationProfile.class); - Assertions.assertEquals("uwaboekqvke", model.notBeforeTimeout()); - Assertions.assertEquals(false, model.enable()); + Assertions.assertEquals("napnyiropuhpigv", model.notBeforeTimeout()); + Assertions.assertEquals(true, model.enable()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OperationsListMockTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OperationsListMockTests.java index f825b1438d68e..817232b3f31a3 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OperationsListMockTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/OperationsListMockTests.java @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"vypomgkopkwho\",\"isDataAction\":true,\"display\":{\"provider\":\"qgxy\",\"resource\":\"ocmbqfqvmkcxoza\",\"operation\":\"helxprglya\",\"description\":\"dckcbc\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"piexpbtgiw\",\"isDataAction\":false,\"display\":{\"provider\":\"washr\",\"resource\":\"tkcnqxwb\",\"operation\":\"kulpiujwaasi\",\"description\":\"i\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PatchSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PatchSettingsTests.java index 9a452f4e86232..88026292c746a 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PatchSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PatchSettingsTests.java @@ -16,12 +16,12 @@ public final class PatchSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchSettings model = BinaryData.fromString( - "{\"patchMode\":\"AutomaticByOS\",\"enableHotpatching\":false,\"assessmentMode\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Always\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}}") + "{\"patchMode\":\"AutomaticByOS\",\"enableHotpatching\":true,\"assessmentMode\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Unknown\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}}") .toObject(PatchSettings.class); Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS, model.patchMode()); - Assertions.assertEquals(false, model.enableHotpatching()); + Assertions.assertEquals(true, model.enableHotpatching()); Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode()); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN, model.automaticByPlatformSettings().rebootSetting()); Assertions.assertEquals(false, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); } @@ -29,16 +29,16 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PatchSettings model = new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS) - .withEnableHotpatching(false) + .withEnableHotpatching(true) .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) .withAutomaticByPlatformSettings(new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS) + .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN) .withBypassPlatformSafetyChecksOnUserSchedule(false)); model = BinaryData.fromObject(model).toObject(PatchSettings.class); Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS, model.patchMode()); - Assertions.assertEquals(false, model.enableHotpatching()); + Assertions.assertEquals(true, model.enableHotpatching()); Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode()); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN, model.automaticByPlatformSettings().rebootSetting()); Assertions.assertEquals(false, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/RegularPriorityProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/RegularPriorityProfileTests.java index af44ff65aa967..1857771929ec2 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/RegularPriorityProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/RegularPriorityProfileTests.java @@ -13,21 +13,21 @@ public final class RegularPriorityProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegularPriorityProfile model = BinaryData - .fromString("{\"capacity\":533859005,\"minCapacity\":2053508957,\"allocationStrategy\":\"LowestPrice\"}") + .fromString("{\"capacity\":229383056,\"minCapacity\":1191449994,\"allocationStrategy\":\"Prioritized\"}") .toObject(RegularPriorityProfile.class); - Assertions.assertEquals(533859005, model.capacity()); - Assertions.assertEquals(2053508957, model.minCapacity()); - Assertions.assertEquals(RegularPriorityAllocationStrategy.LOWEST_PRICE, model.allocationStrategy()); + Assertions.assertEquals(229383056, model.capacity()); + Assertions.assertEquals(1191449994, model.minCapacity()); + Assertions.assertEquals(RegularPriorityAllocationStrategy.PRIORITIZED, model.allocationStrategy()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RegularPriorityProfile model = new RegularPriorityProfile().withCapacity(533859005) - .withMinCapacity(2053508957) - .withAllocationStrategy(RegularPriorityAllocationStrategy.LOWEST_PRICE); + RegularPriorityProfile model = new RegularPriorityProfile().withCapacity(229383056) + .withMinCapacity(1191449994) + .withAllocationStrategy(RegularPriorityAllocationStrategy.PRIORITIZED); model = BinaryData.fromObject(model).toObject(RegularPriorityProfile.class); - Assertions.assertEquals(533859005, model.capacity()); - Assertions.assertEquals(2053508957, model.minCapacity()); - Assertions.assertEquals(RegularPriorityAllocationStrategy.LOWEST_PRICE, model.allocationStrategy()); + Assertions.assertEquals(229383056, model.capacity()); + Assertions.assertEquals(1191449994, model.minCapacity()); + Assertions.assertEquals(RegularPriorityAllocationStrategy.PRIORITIZED, model.allocationStrategy()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ScheduledEventsProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ScheduledEventsProfileTests.java index 4e1d391c5604e..0c35022ae0dc2 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ScheduledEventsProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ScheduledEventsProfileTests.java @@ -14,25 +14,25 @@ public final class ScheduledEventsProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduledEventsProfile model = BinaryData.fromString( - "{\"terminateNotificationProfile\":{\"notBeforeTimeout\":\"ozuhkfp\",\"enable\":true},\"osImageNotificationProfile\":{\"notBeforeTimeout\":\"f\",\"enable\":false}}") + "{\"terminateNotificationProfile\":{\"notBeforeTimeout\":\"pkii\",\"enable\":false},\"osImageNotificationProfile\":{\"notBeforeTimeout\":\"znelixhnrztfolh\",\"enable\":true}}") .toObject(ScheduledEventsProfile.class); - Assertions.assertEquals("ozuhkfp", model.terminateNotificationProfile().notBeforeTimeout()); - Assertions.assertEquals(true, model.terminateNotificationProfile().enable()); - Assertions.assertEquals("f", model.osImageNotificationProfile().notBeforeTimeout()); - Assertions.assertEquals(false, model.osImageNotificationProfile().enable()); + Assertions.assertEquals("pkii", model.terminateNotificationProfile().notBeforeTimeout()); + Assertions.assertEquals(false, model.terminateNotificationProfile().enable()); + Assertions.assertEquals("znelixhnrztfolh", model.osImageNotificationProfile().notBeforeTimeout()); + Assertions.assertEquals(true, model.osImageNotificationProfile().enable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ScheduledEventsProfile model = new ScheduledEventsProfile() .withTerminateNotificationProfile( - new TerminateNotificationProfile().withNotBeforeTimeout("ozuhkfp").withEnable(true)) + new TerminateNotificationProfile().withNotBeforeTimeout("pkii").withEnable(false)) .withOsImageNotificationProfile( - new OSImageNotificationProfile().withNotBeforeTimeout("f").withEnable(false)); + new OSImageNotificationProfile().withNotBeforeTimeout("znelixhnrztfolh").withEnable(true)); model = BinaryData.fromObject(model).toObject(ScheduledEventsProfile.class); - Assertions.assertEquals("ozuhkfp", model.terminateNotificationProfile().notBeforeTimeout()); - Assertions.assertEquals(true, model.terminateNotificationProfile().enable()); - Assertions.assertEquals("f", model.osImageNotificationProfile().notBeforeTimeout()); - Assertions.assertEquals(false, model.osImageNotificationProfile().enable()); + Assertions.assertEquals("pkii", model.terminateNotificationProfile().notBeforeTimeout()); + Assertions.assertEquals(false, model.terminateNotificationProfile().enable()); + Assertions.assertEquals("znelixhnrztfolh", model.osImageNotificationProfile().notBeforeTimeout()); + Assertions.assertEquals(true, model.osImageNotificationProfile().enable()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SecurityPostureReferenceTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SecurityPostureReferenceTests.java index da72bfeb7d69c..46d7fab9229ad 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SecurityPostureReferenceTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SecurityPostureReferenceTests.java @@ -12,22 +12,22 @@ public final class SecurityPostureReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SecurityPostureReference model = BinaryData - .fromString("{\"id\":\"qzvszjf\",\"excludeExtensions\":[\"j\",\"dxxiv\"],\"isOverridable\":true}") + SecurityPostureReference model = BinaryData.fromString( + "{\"id\":\"tmgrcfbun\",\"excludeExtensions\":[\"qjhhkxbpv\",\"ymjhxxjyngudivkr\",\"swbxqz\",\"szjfauvjfdxxivet\"],\"isOverridable\":true}") .toObject(SecurityPostureReference.class); - Assertions.assertEquals("qzvszjf", model.id()); - Assertions.assertEquals("j", model.excludeExtensions().get(0)); + Assertions.assertEquals("tmgrcfbun", model.id()); + Assertions.assertEquals("qjhhkxbpv", model.excludeExtensions().get(0)); Assertions.assertEquals(true, model.isOverridable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SecurityPostureReference model = new SecurityPostureReference().withId("qzvszjf") - .withExcludeExtensions(Arrays.asList("j", "dxxiv")) + SecurityPostureReference model = new SecurityPostureReference().withId("tmgrcfbun") + .withExcludeExtensions(Arrays.asList("qjhhkxbpv", "ymjhxxjyngudivkr", "swbxqz", "szjfauvjfdxxivet")) .withIsOverridable(true); model = BinaryData.fromObject(model).toObject(SecurityPostureReference.class); - Assertions.assertEquals("qzvszjf", model.id()); - Assertions.assertEquals("j", model.excludeExtensions().get(0)); + Assertions.assertEquals("tmgrcfbun", model.id()); + Assertions.assertEquals("qjhhkxbpv", model.excludeExtensions().get(0)); Assertions.assertEquals(true, model.isOverridable()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ServiceArtifactReferenceTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ServiceArtifactReferenceTests.java index 20cab7ad25807..2c96232bf36f4 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ServiceArtifactReferenceTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/ServiceArtifactReferenceTests.java @@ -12,14 +12,14 @@ public final class ServiceArtifactReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceArtifactReference model - = BinaryData.fromString("{\"id\":\"xxjyngudivkrtsw\"}").toObject(ServiceArtifactReference.class); - Assertions.assertEquals("xxjyngudivkrtsw", model.id()); + = BinaryData.fromString("{\"id\":\"obgbkdmoizp\"}").toObject(ServiceArtifactReference.class); + Assertions.assertEquals("obgbkdmoizp", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceArtifactReference model = new ServiceArtifactReference().withId("xxjyngudivkrtsw"); + ServiceArtifactReference model = new ServiceArtifactReference().withId("obgbkdmoizp"); model = BinaryData.fromObject(model).toObject(ServiceArtifactReference.class); - Assertions.assertEquals("xxjyngudivkrtsw", model.id()); + Assertions.assertEquals("obgbkdmoizp", model.id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SpotPriorityProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SpotPriorityProfileTests.java index 571a8b4ced017..7ecbcd31d8d63 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SpotPriorityProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/SpotPriorityProfileTests.java @@ -14,11 +14,11 @@ public final class SpotPriorityProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SpotPriorityProfile model = BinaryData.fromString( - "{\"capacity\":1543997460,\"minCapacity\":1345546955,\"maxPricePerVM\":18.15198514165487,\"evictionPolicy\":\"Deallocate\",\"allocationStrategy\":\"LowestPrice\",\"maintain\":true}") + "{\"capacity\":1320429450,\"minCapacity\":703766696,\"maxPricePerVM\":63.71141995389771,\"evictionPolicy\":\"Deallocate\",\"allocationStrategy\":\"LowestPrice\",\"maintain\":true}") .toObject(SpotPriorityProfile.class); - Assertions.assertEquals(1543997460, model.capacity()); - Assertions.assertEquals(1345546955, model.minCapacity()); - Assertions.assertEquals(18.15198514165487D, model.maxPricePerVM()); + Assertions.assertEquals(1320429450, model.capacity()); + Assertions.assertEquals(703766696, model.minCapacity()); + Assertions.assertEquals(63.71141995389771D, model.maxPricePerVM()); Assertions.assertEquals(EvictionPolicy.DEALLOCATE, model.evictionPolicy()); Assertions.assertEquals(SpotAllocationStrategy.LOWEST_PRICE, model.allocationStrategy()); Assertions.assertEquals(true, model.maintain()); @@ -26,16 +26,16 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SpotPriorityProfile model = new SpotPriorityProfile().withCapacity(1543997460) - .withMinCapacity(1345546955) - .withMaxPricePerVM(18.15198514165487D) + SpotPriorityProfile model = new SpotPriorityProfile().withCapacity(1320429450) + .withMinCapacity(703766696) + .withMaxPricePerVM(63.71141995389771D) .withEvictionPolicy(EvictionPolicy.DEALLOCATE) .withAllocationStrategy(SpotAllocationStrategy.LOWEST_PRICE) .withMaintain(true); model = BinaryData.fromObject(model).toObject(SpotPriorityProfile.class); - Assertions.assertEquals(1543997460, model.capacity()); - Assertions.assertEquals(1345546955, model.minCapacity()); - Assertions.assertEquals(18.15198514165487D, model.maxPricePerVM()); + Assertions.assertEquals(1320429450, model.capacity()); + Assertions.assertEquals(703766696, model.minCapacity()); + Assertions.assertEquals(63.71141995389771D, model.maxPricePerVM()); Assertions.assertEquals(EvictionPolicy.DEALLOCATE, model.evictionPolicy()); Assertions.assertEquals(SpotAllocationStrategy.LOWEST_PRICE, model.allocationStrategy()); Assertions.assertEquals(true, model.maintain()); diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/TerminateNotificationProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/TerminateNotificationProfileTests.java index 300217fb4cbcb..a07b0853b3afb 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/TerminateNotificationProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/TerminateNotificationProfileTests.java @@ -11,18 +11,19 @@ public final class TerminateNotificationProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TerminateNotificationProfile model = BinaryData.fromString("{\"notBeforeTimeout\":\"us\",\"enable\":true}") - .toObject(TerminateNotificationProfile.class); - Assertions.assertEquals("us", model.notBeforeTimeout()); + TerminateNotificationProfile model + = BinaryData.fromString("{\"notBeforeTimeout\":\"nalaulppg\",\"enable\":true}") + .toObject(TerminateNotificationProfile.class); + Assertions.assertEquals("nalaulppg", model.notBeforeTimeout()); Assertions.assertEquals(true, model.enable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TerminateNotificationProfile model - = new TerminateNotificationProfile().withNotBeforeTimeout("us").withEnable(true); + = new TerminateNotificationProfile().withNotBeforeTimeout("nalaulppg").withEnable(true); model = BinaryData.fromObject(model).toObject(TerminateNotificationProfile.class); - Assertions.assertEquals("us", model.notBeforeTimeout()); + Assertions.assertEquals("nalaulppg", model.notBeforeTimeout()); Assertions.assertEquals(true, model.enable()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UefiSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UefiSettingsTests.java index f10280e4bc834..4032ab18bb869 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UefiSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UefiSettingsTests.java @@ -12,16 +12,16 @@ public final class UefiSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UefiSettings model - = BinaryData.fromString("{\"secureBootEnabled\":false,\"vTpmEnabled\":false}").toObject(UefiSettings.class); - Assertions.assertEquals(false, model.secureBootEnabled()); - Assertions.assertEquals(false, model.vTpmEnabled()); + = BinaryData.fromString("{\"secureBootEnabled\":true,\"vTpmEnabled\":true}").toObject(UefiSettings.class); + Assertions.assertEquals(true, model.secureBootEnabled()); + Assertions.assertEquals(true, model.vTpmEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UefiSettings model = new UefiSettings().withSecureBootEnabled(false).withVTpmEnabled(false); + UefiSettings model = new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true); model = BinaryData.fromObject(model).toObject(UefiSettings.class); - Assertions.assertEquals(false, model.secureBootEnabled()); - Assertions.assertEquals(false, model.vTpmEnabled()); + Assertions.assertEquals(true, model.secureBootEnabled()); + Assertions.assertEquals(true, model.vTpmEnabled()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UserAssignedIdentityTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UserAssignedIdentityTests.java index 5701244383845..ae1a1fd73bd17 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UserAssignedIdentityTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/UserAssignedIdentityTests.java @@ -10,9 +10,8 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model - = BinaryData.fromString("{\"principalId\":\"ftpvjzbexil\",\"clientId\":\"nfqqnvwp\"}") - .toObject(UserAssignedIdentity.class); + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"jrybnwjewgdrjer\",\"clientId\":\"aen\"}") + .toObject(UserAssignedIdentity.class); } @org.junit.jupiter.api.Test diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxDoubleTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxDoubleTests.java new file mode 100644 index 0000000000000..c4f4d4953d924 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxDoubleTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.computefleet.models.VMAttributeMinMaxDouble; +import org.junit.jupiter.api.Assertions; + +public final class VMAttributeMinMaxDoubleTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + VMAttributeMinMaxDouble model = BinaryData.fromString("{\"min\":45.29645347714083,\"max\":40.293248810005124}") + .toObject(VMAttributeMinMaxDouble.class); + Assertions.assertEquals(45.29645347714083D, model.min()); + Assertions.assertEquals(40.293248810005124D, model.max()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + VMAttributeMinMaxDouble model + = new VMAttributeMinMaxDouble().withMin(45.29645347714083D).withMax(40.293248810005124D); + model = BinaryData.fromObject(model).toObject(VMAttributeMinMaxDouble.class); + Assertions.assertEquals(45.29645347714083D, model.min()); + Assertions.assertEquals(40.293248810005124D, model.max()); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxIntegerTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxIntegerTests.java new file mode 100644 index 0000000000000..da9f499bfd81f --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributeMinMaxIntegerTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.computefleet.models.VMAttributeMinMaxInteger; +import org.junit.jupiter.api.Assertions; + +public final class VMAttributeMinMaxIntegerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + VMAttributeMinMaxInteger model + = BinaryData.fromString("{\"min\":12030769,\"max\":1720882214}").toObject(VMAttributeMinMaxInteger.class); + Assertions.assertEquals(12030769, model.min()); + Assertions.assertEquals(1720882214, model.max()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + VMAttributeMinMaxInteger model = new VMAttributeMinMaxInteger().withMin(12030769).withMax(1720882214); + model = BinaryData.fromObject(model).toObject(VMAttributeMinMaxInteger.class); + Assertions.assertEquals(12030769, model.min()); + Assertions.assertEquals(1720882214, model.max()); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributesTests.java new file mode 100644 index 0000000000000..6898ac6c6eda3 --- /dev/null +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributesTests.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.computefleet.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.computefleet.models.AcceleratorManufacturer; +import com.azure.resourcemanager.computefleet.models.AcceleratorType; +import com.azure.resourcemanager.computefleet.models.ArchitectureType; +import com.azure.resourcemanager.computefleet.models.CpuManufacturer; +import com.azure.resourcemanager.computefleet.models.LocalStorageDiskType; +import com.azure.resourcemanager.computefleet.models.VMAttributeMinMaxDouble; +import com.azure.resourcemanager.computefleet.models.VMAttributeMinMaxInteger; +import com.azure.resourcemanager.computefleet.models.VMAttributeSupport; +import com.azure.resourcemanager.computefleet.models.VMAttributes; +import com.azure.resourcemanager.computefleet.models.VMCategory; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class VMAttributesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + VMAttributes model = BinaryData.fromString( + "{\"vCpuCount\":{\"min\":1969125414,\"max\":1742159588},\"memoryInGiB\":{\"min\":49.296618686162205,\"max\":46.151559748687454},\"memoryInGiBPerVCpu\":{\"min\":15.72140906109526,\"max\":33.70355434967512},\"localStorageSupport\":\"Excluded\",\"localStorageInGiB\":{\"min\":34.26097915956968,\"max\":39.601987566482045},\"localStorageDiskTypes\":[\"HDD\",\"HDD\"],\"dataDiskCount\":{\"min\":681393134,\"max\":264024813},\"networkInterfaceCount\":{\"min\":1130701644,\"max\":1278778169},\"networkBandwidthInMbps\":{\"min\":44.56756335924435,\"max\":21.074497607942167},\"rdmaSupport\":\"Excluded\",\"rdmaNetworkInterfaceCount\":{\"min\":1936335434,\"max\":1618302294},\"acceleratorSupport\":\"Included\",\"acceleratorManufacturers\":[\"Nvidia\",\"Nvidia\",\"Nvidia\",\"Nvidia\"],\"acceleratorTypes\":[\"FPGA\",\"GPU\",\"FPGA\"],\"acceleratorCount\":{\"min\":2125910534,\"max\":1296548216},\"vmCategories\":[\"FpgaAccelerated\",\"GpuAccelerated\",\"GpuAccelerated\",\"GeneralPurpose\"],\"architectureTypes\":[\"X64\"],\"cpuManufacturers\":[\"Ampere\"],\"burstableSupport\":\"Excluded\",\"excludedVMSizes\":[\"kao\",\"wyiftyhxhur\",\"k\",\"tyxolniwpwc\"]}") + .toObject(VMAttributes.class); + Assertions.assertEquals(1969125414, model.vCpuCount().min()); + Assertions.assertEquals(1742159588, model.vCpuCount().max()); + Assertions.assertEquals(49.296618686162205D, model.memoryInGiB().min()); + Assertions.assertEquals(46.151559748687454D, model.memoryInGiB().max()); + Assertions.assertEquals(15.72140906109526D, model.memoryInGiBPerVCpu().min()); + Assertions.assertEquals(33.70355434967512D, model.memoryInGiBPerVCpu().max()); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.localStorageSupport()); + Assertions.assertEquals(34.26097915956968D, model.localStorageInGiB().min()); + Assertions.assertEquals(39.601987566482045D, model.localStorageInGiB().max()); + Assertions.assertEquals(LocalStorageDiskType.HDD, model.localStorageDiskTypes().get(0)); + Assertions.assertEquals(681393134, model.dataDiskCount().min()); + Assertions.assertEquals(264024813, model.dataDiskCount().max()); + Assertions.assertEquals(1130701644, model.networkInterfaceCount().min()); + Assertions.assertEquals(1278778169, model.networkInterfaceCount().max()); + Assertions.assertEquals(44.56756335924435D, model.networkBandwidthInMbps().min()); + Assertions.assertEquals(21.074497607942167D, model.networkBandwidthInMbps().max()); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.rdmaSupport()); + Assertions.assertEquals(1936335434, model.rdmaNetworkInterfaceCount().min()); + Assertions.assertEquals(1618302294, model.rdmaNetworkInterfaceCount().max()); + Assertions.assertEquals(VMAttributeSupport.INCLUDED, model.acceleratorSupport()); + Assertions.assertEquals(AcceleratorManufacturer.NVIDIA, model.acceleratorManufacturers().get(0)); + Assertions.assertEquals(AcceleratorType.FPGA, model.acceleratorTypes().get(0)); + Assertions.assertEquals(2125910534, model.acceleratorCount().min()); + Assertions.assertEquals(1296548216, model.acceleratorCount().max()); + Assertions.assertEquals(VMCategory.FPGA_ACCELERATED, model.vmCategories().get(0)); + Assertions.assertEquals(ArchitectureType.X64, model.architectureTypes().get(0)); + Assertions.assertEquals(CpuManufacturer.AMPERE, model.cpuManufacturers().get(0)); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.burstableSupport()); + Assertions.assertEquals("kao", model.excludedVMSizes().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + VMAttributes model = new VMAttributes() + .withVCpuCount(new VMAttributeMinMaxInteger().withMin(1969125414).withMax(1742159588)) + .withMemoryInGiB(new VMAttributeMinMaxDouble().withMin(49.296618686162205D).withMax(46.151559748687454D)) + .withMemoryInGiBPerVCpu( + new VMAttributeMinMaxDouble().withMin(15.72140906109526D).withMax(33.70355434967512D)) + .withLocalStorageSupport(VMAttributeSupport.EXCLUDED) + .withLocalStorageInGiB( + new VMAttributeMinMaxDouble().withMin(34.26097915956968D).withMax(39.601987566482045D)) + .withLocalStorageDiskTypes(Arrays.asList(LocalStorageDiskType.HDD, LocalStorageDiskType.HDD)) + .withDataDiskCount(new VMAttributeMinMaxInteger().withMin(681393134).withMax(264024813)) + .withNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(1130701644).withMax(1278778169)) + .withNetworkBandwidthInMbps( + new VMAttributeMinMaxDouble().withMin(44.56756335924435D).withMax(21.074497607942167D)) + .withRdmaSupport(VMAttributeSupport.EXCLUDED) + .withRdmaNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(1936335434).withMax(1618302294)) + .withAcceleratorSupport(VMAttributeSupport.INCLUDED) + .withAcceleratorManufacturers(Arrays.asList(AcceleratorManufacturer.NVIDIA, AcceleratorManufacturer.NVIDIA, + AcceleratorManufacturer.NVIDIA, AcceleratorManufacturer.NVIDIA)) + .withAcceleratorTypes(Arrays.asList(AcceleratorType.FPGA, AcceleratorType.GPU, AcceleratorType.FPGA)) + .withAcceleratorCount(new VMAttributeMinMaxInteger().withMin(2125910534).withMax(1296548216)) + .withVmCategories(Arrays.asList(VMCategory.FPGA_ACCELERATED, VMCategory.GPU_ACCELERATED, + VMCategory.GPU_ACCELERATED, VMCategory.GENERAL_PURPOSE)) + .withArchitectureTypes(Arrays.asList(ArchitectureType.X64)) + .withCpuManufacturers(Arrays.asList(CpuManufacturer.AMPERE)) + .withBurstableSupport(VMAttributeSupport.EXCLUDED) + .withExcludedVMSizes(Arrays.asList("kao", "wyiftyhxhur", "k", "tyxolniwpwc")); + model = BinaryData.fromObject(model).toObject(VMAttributes.class); + Assertions.assertEquals(1969125414, model.vCpuCount().min()); + Assertions.assertEquals(1742159588, model.vCpuCount().max()); + Assertions.assertEquals(49.296618686162205D, model.memoryInGiB().min()); + Assertions.assertEquals(46.151559748687454D, model.memoryInGiB().max()); + Assertions.assertEquals(15.72140906109526D, model.memoryInGiBPerVCpu().min()); + Assertions.assertEquals(33.70355434967512D, model.memoryInGiBPerVCpu().max()); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.localStorageSupport()); + Assertions.assertEquals(34.26097915956968D, model.localStorageInGiB().min()); + Assertions.assertEquals(39.601987566482045D, model.localStorageInGiB().max()); + Assertions.assertEquals(LocalStorageDiskType.HDD, model.localStorageDiskTypes().get(0)); + Assertions.assertEquals(681393134, model.dataDiskCount().min()); + Assertions.assertEquals(264024813, model.dataDiskCount().max()); + Assertions.assertEquals(1130701644, model.networkInterfaceCount().min()); + Assertions.assertEquals(1278778169, model.networkInterfaceCount().max()); + Assertions.assertEquals(44.56756335924435D, model.networkBandwidthInMbps().min()); + Assertions.assertEquals(21.074497607942167D, model.networkBandwidthInMbps().max()); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.rdmaSupport()); + Assertions.assertEquals(1936335434, model.rdmaNetworkInterfaceCount().min()); + Assertions.assertEquals(1618302294, model.rdmaNetworkInterfaceCount().max()); + Assertions.assertEquals(VMAttributeSupport.INCLUDED, model.acceleratorSupport()); + Assertions.assertEquals(AcceleratorManufacturer.NVIDIA, model.acceleratorManufacturers().get(0)); + Assertions.assertEquals(AcceleratorType.FPGA, model.acceleratorTypes().get(0)); + Assertions.assertEquals(2125910534, model.acceleratorCount().min()); + Assertions.assertEquals(1296548216, model.acceleratorCount().max()); + Assertions.assertEquals(VMCategory.FPGA_ACCELERATED, model.vmCategories().get(0)); + Assertions.assertEquals(ArchitectureType.X64, model.architectureTypes().get(0)); + Assertions.assertEquals(CpuManufacturer.AMPERE, model.cpuManufacturers().get(0)); + Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.burstableSupport()); + Assertions.assertEquals("kao", model.excludedVMSizes().get(0)); + } +} diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMDiskSecurityProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMDiskSecurityProfileTests.java index 88d219e1e37cd..3155a01e1df34 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMDiskSecurityProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMDiskSecurityProfileTests.java @@ -15,19 +15,19 @@ public final class VMDiskSecurityProfileTests { public void testDeserialize() throws Exception { VMDiskSecurityProfile model = BinaryData .fromString( - "{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"gzgqexzlo\"}}") + "{\"securityEncryptionType\":\"DiskWithVMGuestState\",\"diskEncryptionSet\":{\"id\":\"gnzscxaqwo\"}}") .toObject(VMDiskSecurityProfile.class); - Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityEncryptionType()); - Assertions.assertEquals("gzgqexzlo", model.diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE, model.securityEncryptionType()); + Assertions.assertEquals("gnzscxaqwo", model.diskEncryptionSet().id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VMDiskSecurityProfile model - = new VMDiskSecurityProfile().withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("gzgqexzlo")); + = new VMDiskSecurityProfile().withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("gnzscxaqwo")); model = BinaryData.fromObject(model).toObject(VMDiskSecurityProfile.class); - Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityEncryptionType()); - Assertions.assertEquals("gzgqexzlo", model.diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE, model.securityEncryptionType()); + Assertions.assertEquals("gnzscxaqwo", model.diskEncryptionSet().id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMGalleryApplicationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMGalleryApplicationTests.java index d1a22afae446f..b1d4c46628931 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMGalleryApplicationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMGalleryApplicationTests.java @@ -12,30 +12,30 @@ public final class VMGalleryApplicationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VMGalleryApplication model = BinaryData.fromString( - "{\"tags\":\"hzxct\",\"order\":731571651,\"packageReferenceId\":\"bkdmo\",\"configurationReference\":\"postmgrcfbunrm\",\"treatFailureAsDeploymentFailure\":false,\"enableAutomaticUpgrade\":false}") + "{\"tags\":\"ac\",\"order\":1313957428,\"packageReferenceId\":\"zfq\",\"configurationReference\":\"huaoppp\",\"treatFailureAsDeploymentFailure\":false,\"enableAutomaticUpgrade\":true}") .toObject(VMGalleryApplication.class); - Assertions.assertEquals("hzxct", model.tags()); - Assertions.assertEquals(731571651, model.order()); - Assertions.assertEquals("bkdmo", model.packageReferenceId()); - Assertions.assertEquals("postmgrcfbunrm", model.configurationReference()); + Assertions.assertEquals("ac", model.tags()); + Assertions.assertEquals(1313957428, model.order()); + Assertions.assertEquals("zfq", model.packageReferenceId()); + Assertions.assertEquals("huaoppp", model.configurationReference()); Assertions.assertEquals(false, model.treatFailureAsDeploymentFailure()); - Assertions.assertEquals(false, model.enableAutomaticUpgrade()); + Assertions.assertEquals(true, model.enableAutomaticUpgrade()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VMGalleryApplication model = new VMGalleryApplication().withTags("hzxct") - .withOrder(731571651) - .withPackageReferenceId("bkdmo") - .withConfigurationReference("postmgrcfbunrm") + VMGalleryApplication model = new VMGalleryApplication().withTags("ac") + .withOrder(1313957428) + .withPackageReferenceId("zfq") + .withConfigurationReference("huaoppp") .withTreatFailureAsDeploymentFailure(false) - .withEnableAutomaticUpgrade(false); + .withEnableAutomaticUpgrade(true); model = BinaryData.fromObject(model).toObject(VMGalleryApplication.class); - Assertions.assertEquals("hzxct", model.tags()); - Assertions.assertEquals(731571651, model.order()); - Assertions.assertEquals("bkdmo", model.packageReferenceId()); - Assertions.assertEquals("postmgrcfbunrm", model.configurationReference()); + Assertions.assertEquals("ac", model.tags()); + Assertions.assertEquals(1313957428, model.order()); + Assertions.assertEquals("zfq", model.packageReferenceId()); + Assertions.assertEquals("huaoppp", model.configurationReference()); Assertions.assertEquals(false, model.treatFailureAsDeploymentFailure()); - Assertions.assertEquals(false, model.enableAutomaticUpgrade()); + Assertions.assertEquals(true, model.enableAutomaticUpgrade()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMSizePropertiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMSizePropertiesTests.java index 62208d3fac1f6..1b80f1be7b583 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMSizePropertiesTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMSizePropertiesTests.java @@ -11,17 +11,17 @@ public final class VMSizePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VMSizeProperties model = BinaryData.fromString("{\"vCPUsAvailable\":1880019175,\"vCPUsPerCore\":1776506496}") + VMSizeProperties model = BinaryData.fromString("{\"vCPUsAvailable\":1917663918,\"vCPUsPerCore\":1247520399}") .toObject(VMSizeProperties.class); - Assertions.assertEquals(1880019175, model.vCPUsAvailable()); - Assertions.assertEquals(1776506496, model.vCPUsPerCore()); + Assertions.assertEquals(1917663918, model.vCPUsAvailable()); + Assertions.assertEquals(1247520399, model.vCPUsPerCore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VMSizeProperties model = new VMSizeProperties().withVCPUsAvailable(1880019175).withVCPUsPerCore(1776506496); + VMSizeProperties model = new VMSizeProperties().withVCPUsAvailable(1917663918).withVCPUsPerCore(1247520399); model = BinaryData.fromObject(model).toObject(VMSizeProperties.class); - Assertions.assertEquals(1880019175, model.vCPUsAvailable()); - Assertions.assertEquals(1776506496, model.vCPUsPerCore()); + Assertions.assertEquals(1917663918, model.vCPUsAvailable()); + Assertions.assertEquals(1247520399, model.vCPUsPerCore()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultCertificateTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultCertificateTests.java index 1d287ee0d4f0e..34a121d9ceef1 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultCertificateTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultCertificateTests.java @@ -12,18 +12,17 @@ public final class VaultCertificateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VaultCertificate model - = BinaryData.fromString("{\"certificateUrl\":\"hejkotynqgou\",\"certificateStore\":\"ndlik\"}") + = BinaryData.fromString("{\"certificateUrl\":\"cpc\",\"certificateStore\":\"hurzafblj\"}") .toObject(VaultCertificate.class); - Assertions.assertEquals("hejkotynqgou", model.certificateUrl()); - Assertions.assertEquals("ndlik", model.certificateStore()); + Assertions.assertEquals("cpc", model.certificateUrl()); + Assertions.assertEquals("hurzafblj", model.certificateStore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VaultCertificate model - = new VaultCertificate().withCertificateUrl("hejkotynqgou").withCertificateStore("ndlik"); + VaultCertificate model = new VaultCertificate().withCertificateUrl("cpc").withCertificateStore("hurzafblj"); model = BinaryData.fromObject(model).toObject(VaultCertificate.class); - Assertions.assertEquals("hejkotynqgou", model.certificateUrl()); - Assertions.assertEquals("ndlik", model.certificateStore()); + Assertions.assertEquals("cpc", model.certificateUrl()); + Assertions.assertEquals("hurzafblj", model.certificateStore()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultSecretGroupTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultSecretGroupTests.java index 766a8d5d5dd68..d6651d32c0309 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultSecretGroupTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VaultSecretGroupTests.java @@ -15,26 +15,23 @@ public final class VaultSecretGroupTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VaultSecretGroup model = BinaryData.fromString( - "{\"sourceVault\":{\"id\":\"tjelt\"},\"vaultCertificates\":[{\"certificateUrl\":\"hugjzzdatqxhoc\",\"certificateStore\":\"eablg\"},{\"certificateUrl\":\"uticndvkaozwyif\",\"certificateStore\":\"hxh\"},{\"certificateUrl\":\"okftyxolniwpwcuk\",\"certificateStore\":\"kgiawxklryplwck\"},{\"certificateUrl\":\"syyp\",\"certificateStore\":\"dhsgcba\"}]}") + "{\"sourceVault\":{\"id\":\"xhcr\"},\"vaultCertificates\":[{\"certificateUrl\":\"jtckwhdso\",\"certificateStore\":\"iy\"},{\"certificateUrl\":\"jxsqwpgrjbz\",\"certificateStore\":\"rcjxvsnbyxqabn\"}]}") .toObject(VaultSecretGroup.class); - Assertions.assertEquals("tjelt", model.sourceVault().id()); - Assertions.assertEquals("hugjzzdatqxhoc", model.vaultCertificates().get(0).certificateUrl()); - Assertions.assertEquals("eablg", model.vaultCertificates().get(0).certificateStore()); + Assertions.assertEquals("xhcr", model.sourceVault().id()); + Assertions.assertEquals("jtckwhdso", model.vaultCertificates().get(0).certificateUrl()); + Assertions.assertEquals("iy", model.vaultCertificates().get(0).certificateStore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VaultSecretGroup model - = new VaultSecretGroup().withSourceVault(new SubResource().withId("tjelt")) + = new VaultSecretGroup().withSourceVault(new SubResource().withId("xhcr")) .withVaultCertificates(Arrays.asList( - new VaultCertificate().withCertificateUrl("hugjzzdatqxhoc").withCertificateStore("eablg"), - new VaultCertificate().withCertificateUrl("uticndvkaozwyif").withCertificateStore("hxh"), - new VaultCertificate().withCertificateUrl("okftyxolniwpwcuk") - .withCertificateStore("kgiawxklryplwck"), - new VaultCertificate().withCertificateUrl("syyp").withCertificateStore("dhsgcba"))); + new VaultCertificate().withCertificateUrl("jtckwhdso").withCertificateStore("iy"), + new VaultCertificate().withCertificateUrl("jxsqwpgrjbz").withCertificateStore("rcjxvsnbyxqabn"))); model = BinaryData.fromObject(model).toObject(VaultSecretGroup.class); - Assertions.assertEquals("tjelt", model.sourceVault().id()); - Assertions.assertEquals("hugjzzdatqxhoc", model.vaultCertificates().get(0).certificateUrl()); - Assertions.assertEquals("eablg", model.vaultCertificates().get(0).certificateStore()); + Assertions.assertEquals("xhcr", model.sourceVault().id()); + Assertions.assertEquals("jtckwhdso", model.vaultCertificates().get(0).certificateUrl()); + Assertions.assertEquals("iy", model.vaultCertificates().get(0).certificateStore()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualHardDiskTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualHardDiskTests.java index 9d298a85e28e2..cb33d1cf7f1ff 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualHardDiskTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualHardDiskTests.java @@ -11,14 +11,14 @@ public final class VirtualHardDiskTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VirtualHardDisk model = BinaryData.fromString("{\"uri\":\"j\"}").toObject(VirtualHardDisk.class); - Assertions.assertEquals("j", model.uri()); + VirtualHardDisk model = BinaryData.fromString("{\"uri\":\"uvcc\"}").toObject(VirtualHardDisk.class); + Assertions.assertEquals("uvcc", model.uri()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualHardDisk model = new VirtualHardDisk().withUri("j"); + VirtualHardDisk model = new VirtualHardDisk().withUri("uvcc"); model = BinaryData.fromObject(model).toObject(VirtualHardDisk.class); - Assertions.assertEquals("j", model.uri()); + Assertions.assertEquals("uvcc", model.uri()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetDataDiskTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetDataDiskTests.java index 54f15ccb896e0..dbc7d3084459f 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetDataDiskTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetDataDiskTests.java @@ -11,64 +11,65 @@ import com.azure.resourcemanager.computefleet.models.DiskEncryptionSetParameters; import com.azure.resourcemanager.computefleet.models.SecurityEncryptionTypes; import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; +import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetDataDisk; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetManagedDiskParameters; -import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import org.junit.jupiter.api.Assertions; public final class VirtualMachineScaleSetDataDiskTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetDataDisk model = BinaryData.fromString( - "{\"name\":\"scpai\",\"lun\":1450066184,\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Attach\",\"diskSizeGB\":45768072,\"managedDisk\":{\"storageAccountType\":\"StandardSSD_LRS\",\"diskEncryptionSet\":{\"id\":\"tjaodxobnb\"},\"securityProfile\":{\"securityEncryptionType\":\"DiskWithVMGuestState\",\"diskEncryptionSet\":{\"id\":\"okaj\"}}},\"diskIOPSReadWrite\":4793683131243890643,\"diskMBpsReadWrite\":1589043930460259001,\"deleteOption\":\"Delete\"}") + "{\"name\":\"hcbonqvpkvlr\",\"lun\":1945684802,\"caching\":\"None\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Attach\",\"diskSizeGB\":625674029,\"managedDisk\":{\"storageAccountType\":\"Premium_LRS\",\"diskEncryptionSet\":{\"id\":\"okeyyienj\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"rhpdjpjumas\"}}},\"diskIOPSReadWrite\":1164635978047948118,\"diskMBpsReadWrite\":4118233747929526801,\"deleteOption\":\"Delete\"}") .toObject(VirtualMachineScaleSetDataDisk.class); - Assertions.assertEquals("scpai", model.name()); - Assertions.assertEquals(1450066184, model.lun()); - Assertions.assertEquals(CachingTypes.READ_WRITE, model.caching()); + Assertions.assertEquals("hcbonqvpkvlr", model.name()); + Assertions.assertEquals(1945684802, model.lun()); + Assertions.assertEquals(CachingTypes.NONE, model.caching()); Assertions.assertEquals(false, model.writeAcceleratorEnabled()); Assertions.assertEquals(DiskCreateOptionTypes.ATTACH, model.createOption()); - Assertions.assertEquals(45768072, model.diskSizeGB()); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_LRS, model.managedDisk().storageAccountType()); - Assertions.assertEquals("tjaodxobnb", model.managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE, + Assertions.assertEquals(625674029, model.diskSizeGB()); + Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType()); + Assertions.assertEquals("okeyyienj", model.managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("okaj", model.managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(4793683131243890643L, model.diskIOPSReadWrite()); - Assertions.assertEquals(1589043930460259001L, model.diskMBpsReadWrite()); + Assertions.assertEquals("rhpdjpjumas", model.managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals(1164635978047948118L, model.diskIOPSReadWrite()); + Assertions.assertEquals(4118233747929526801L, model.diskMBpsReadWrite()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualMachineScaleSetDataDisk model = new VirtualMachineScaleSetDataDisk().withName("scpai") - .withLun(1450066184) - .withCaching(CachingTypes.READ_WRITE) - .withWriteAcceleratorEnabled(false) - .withCreateOption(DiskCreateOptionTypes.ATTACH) - .withDiskSizeGB(45768072) - .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("tjaodxobnb")) - .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("okaj")))) - .withDiskIOPSReadWrite(4793683131243890643L) - .withDiskMBpsReadWrite(1589043930460259001L) - .withDeleteOption(DiskDeleteOptionTypes.DELETE); + VirtualMachineScaleSetDataDisk model + = new VirtualMachineScaleSetDataDisk().withName("hcbonqvpkvlr") + .withLun(1945684802) + .withCaching(CachingTypes.NONE) + .withWriteAcceleratorEnabled(false) + .withCreateOption(DiskCreateOptionTypes.ATTACH) + .withDiskSizeGB(625674029) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("okeyyienj")) + .withSecurityProfile(new VMDiskSecurityProfile() + .withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("rhpdjpjumas")))) + .withDiskIOPSReadWrite(1164635978047948118L) + .withDiskMBpsReadWrite(4118233747929526801L) + .withDeleteOption(DiskDeleteOptionTypes.DELETE); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetDataDisk.class); - Assertions.assertEquals("scpai", model.name()); - Assertions.assertEquals(1450066184, model.lun()); - Assertions.assertEquals(CachingTypes.READ_WRITE, model.caching()); + Assertions.assertEquals("hcbonqvpkvlr", model.name()); + Assertions.assertEquals(1945684802, model.lun()); + Assertions.assertEquals(CachingTypes.NONE, model.caching()); Assertions.assertEquals(false, model.writeAcceleratorEnabled()); Assertions.assertEquals(DiskCreateOptionTypes.ATTACH, model.createOption()); - Assertions.assertEquals(45768072, model.diskSizeGB()); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_LRS, model.managedDisk().storageAccountType()); - Assertions.assertEquals("tjaodxobnb", model.managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE, + Assertions.assertEquals(625674029, model.diskSizeGB()); + Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType()); + Assertions.assertEquals("okeyyienj", model.managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("okaj", model.managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(4793683131243890643L, model.diskIOPSReadWrite()); - Assertions.assertEquals(1589043930460259001L, model.diskMBpsReadWrite()); + Assertions.assertEquals("rhpdjpjumas", model.managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals(1164635978047948118L, model.diskIOPSReadWrite()); + Assertions.assertEquals(4118233747929526801L, model.diskMBpsReadWrite()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetHardwareProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetHardwareProfileTests.java index a10ef5999c271..6e0e289e86872 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetHardwareProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetHardwareProfileTests.java @@ -5,26 +5,26 @@ package com.azure.resourcemanager.computefleet.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetHardwareProfile; import com.azure.resourcemanager.computefleet.models.VMSizeProperties; +import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetHardwareProfile; import org.junit.jupiter.api.Assertions; public final class VirtualMachineScaleSetHardwareProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetHardwareProfile model - = BinaryData.fromString("{\"vmSizeProperties\":{\"vCPUsAvailable\":221682106,\"vCPUsPerCore\":1461039431}}") + = BinaryData.fromString("{\"vmSizeProperties\":{\"vCPUsAvailable\":72119187,\"vCPUsPerCore\":681425142}}") .toObject(VirtualMachineScaleSetHardwareProfile.class); - Assertions.assertEquals(221682106, model.vmSizeProperties().vCPUsAvailable()); - Assertions.assertEquals(1461039431, model.vmSizeProperties().vCPUsPerCore()); + Assertions.assertEquals(72119187, model.vmSizeProperties().vCPUsAvailable()); + Assertions.assertEquals(681425142, model.vmSizeProperties().vCPUsPerCore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetHardwareProfile model = new VirtualMachineScaleSetHardwareProfile() - .withVmSizeProperties(new VMSizeProperties().withVCPUsAvailable(221682106).withVCPUsPerCore(1461039431)); + .withVmSizeProperties(new VMSizeProperties().withVCPUsAvailable(72119187).withVCPUsPerCore(681425142)); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetHardwareProfile.class); - Assertions.assertEquals(221682106, model.vmSizeProperties().vCPUsAvailable()); - Assertions.assertEquals(1461039431, model.vmSizeProperties().vCPUsPerCore()); + Assertions.assertEquals(72119187, model.vmSizeProperties().vCPUsAvailable()); + Assertions.assertEquals(681425142, model.vmSizeProperties().vCPUsPerCore()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationPropertiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationPropertiesTests.java index c4faf8cfa4458..f91510c52692e 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationPropertiesTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationPropertiesTests.java @@ -25,83 +25,81 @@ public final class VirtualMachineScaleSetIPConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetIPConfigurationProperties model = BinaryData.fromString( - "{\"subnet\":{\"id\":\"vuujq\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"kgj\",\"properties\":{\"idleTimeoutInMinutes\":1769769453,\"dnsSettings\":{\"domainNameLabel\":\"gvcl\",\"domainNameLabelScope\":\"ResourceGroupReuse\"},\"ipTags\":[{\"ipTagType\":\"ghkjeszzhbi\",\"tag\":\"txfvgx\"},{\"ipTagType\":\"smx\",\"tag\":\"hmpvecx\"}],\"publicIPPrefix\":{\"id\":\"ebfqkkrbm\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"puz\"},{\"id\":\"ispnqzahmgkbrp\"},{\"id\":\"dhibnuq\"}],\"applicationSecurityGroups\":[{\"id\":\"kadrgvt\"},{\"id\":\"gnbuy\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"gg\"},{\"id\":\"bfs\"},{\"id\":\"rbu\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"pnazzm\"},{\"id\":\"runmp\"},{\"id\":\"tdbhrbnla\"},{\"id\":\"xmyskp\"}]}") + "{\"subnet\":{\"id\":\"mpukgriw\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"fbxzpuzycisp\",\"properties\":{\"idleTimeoutInMinutes\":2071345899,\"dnsSettings\":{\"domainNameLabel\":\"mgkbrpyydhibn\",\"domainNameLabelScope\":\"NoReuse\"},\"ipTags\":[{\"ipTagType\":\"kadrgvt\",\"tag\":\"gnbuy\"},{\"ipTagType\":\"ijggmebfsiar\",\"tag\":\"trcvpnazzmh\"}],\"publicIPPrefix\":{\"id\":\"nmpxttdb\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"henbtkcxywnytn\"}],\"applicationSecurityGroups\":[{\"id\":\"lqidyby\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"clha\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"abphlw\"},{\"id\":\"lfktsths\"}]}") .toObject(VirtualMachineScaleSetIPConfigurationProperties.class); - Assertions.assertEquals("vuujq", model.subnet().id()); - Assertions.assertEquals(false, model.primary()); - Assertions.assertEquals("kgj", model.publicIPAddressConfiguration().name()); - Assertions.assertEquals(1769769453, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); - Assertions.assertEquals("gvcl", + Assertions.assertEquals("mpukgriw", model.subnet().id()); + Assertions.assertEquals(true, model.primary()); + Assertions.assertEquals("fbxzpuzycisp", model.publicIPAddressConfiguration().name()); + Assertions.assertEquals(2071345899, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); + Assertions.assertEquals("mgkbrpyydhibn", model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE, + Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("ghkjeszzhbi", + Assertions.assertEquals("kadrgvt", model.publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("txfvgx", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag()); - Assertions.assertEquals("ebfqkkrbm", model.publicIPAddressConfiguration().properties().publicIPPrefix().id()); + Assertions.assertEquals("gnbuy", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag()); + Assertions.assertEquals("nmpxttdb", model.publicIPAddressConfiguration().properties().publicIPPrefix().id()); Assertions.assertEquals(IPVersion.IPV6, model.publicIPAddressConfiguration().properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DETACH, model.publicIPAddressConfiguration().properties().deleteOption()); + Assertions.assertEquals(DeleteOptions.DELETE, model.publicIPAddressConfiguration().properties().deleteOption()); Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.publicIPAddressConfiguration().sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.publicIPAddressConfiguration().sku().tier()); Assertions.assertEquals(IPVersion.IPV6, model.privateIPAddressVersion()); - Assertions.assertEquals("puz", model.applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("kadrgvt", model.applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("gg", model.loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("pnazzm", model.loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("henbtkcxywnytn", model.applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("lqidyby", model.applicationSecurityGroups().get(0).id()); + Assertions.assertEquals("clha", model.loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("abphlw", model.loadBalancerInboundNatPools().get(0).id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualMachineScaleSetIPConfigurationProperties model = new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("vuujq")) - .withPrimary(false) - .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("kgj") - .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(1769769453) - .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("gvcl") - .withDomainNameLabelScope(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE)) - .withIpTags( - Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("ghkjeszzhbi").withTag("txfvgx"), - new VirtualMachineScaleSetIpTag().withIpTagType("smx").withTag("hmpvecx"))) - .withPublicIPPrefix(new SubResource().withId("ebfqkkrbm")) - .withPublicIPAddressVersion(IPVersion.IPV6) - .withDeleteOption(DeleteOptions.DETACH)) - .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.GLOBAL))) - .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("puz"), - new SubResource().withId("ispnqzahmgkbrp"), new SubResource().withId("dhibnuq"))) - .withApplicationSecurityGroups( - Arrays.asList(new SubResource().withId("kadrgvt"), new SubResource().withId("gnbuy"))) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("gg"), - new SubResource().withId("bfs"), new SubResource().withId("rbu"))) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource().withId("pnazzm"), new SubResource().withId("runmp"), - new SubResource().withId("tdbhrbnla"), new SubResource().withId("xmyskp"))); + VirtualMachineScaleSetIPConfigurationProperties model + = new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId("mpukgriw")) + .withPrimary(true) + .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("fbxzpuzycisp") + .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(2071345899) + .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel("mgkbrpyydhibn") + .withDomainNameLabelScope(DomainNameLabelScopeTypes.NO_REUSE)) + .withIpTags( + Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("kadrgvt").withTag("gnbuy"), + new VirtualMachineScaleSetIpTag().withIpTagType("ijggmebfsiar").withTag("trcvpnazzmh"))) + .withPublicIPPrefix(new SubResource().withId("nmpxttdb")) + .withPublicIPAddressVersion(IPVersion.IPV6) + .withDeleteOption(DeleteOptions.DELETE)) + .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) + .withTier(PublicIPAddressSkuTier.GLOBAL))) + .withPrivateIPAddressVersion(IPVersion.IPV6) + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("henbtkcxywnytn"))) + .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("lqidyby"))) + .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("clha"))) + .withLoadBalancerInboundNatPools( + Arrays.asList(new SubResource().withId("abphlw"), new SubResource().withId("lfktsths"))); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetIPConfigurationProperties.class); - Assertions.assertEquals("vuujq", model.subnet().id()); - Assertions.assertEquals(false, model.primary()); - Assertions.assertEquals("kgj", model.publicIPAddressConfiguration().name()); - Assertions.assertEquals(1769769453, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); - Assertions.assertEquals("gvcl", + Assertions.assertEquals("mpukgriw", model.subnet().id()); + Assertions.assertEquals(true, model.primary()); + Assertions.assertEquals("fbxzpuzycisp", model.publicIPAddressConfiguration().name()); + Assertions.assertEquals(2071345899, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); + Assertions.assertEquals("mgkbrpyydhibn", model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE, + Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("ghkjeszzhbi", + Assertions.assertEquals("kadrgvt", model.publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("txfvgx", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag()); - Assertions.assertEquals("ebfqkkrbm", model.publicIPAddressConfiguration().properties().publicIPPrefix().id()); + Assertions.assertEquals("gnbuy", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag()); + Assertions.assertEquals("nmpxttdb", model.publicIPAddressConfiguration().properties().publicIPPrefix().id()); Assertions.assertEquals(IPVersion.IPV6, model.publicIPAddressConfiguration().properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DETACH, model.publicIPAddressConfiguration().properties().deleteOption()); + Assertions.assertEquals(DeleteOptions.DELETE, model.publicIPAddressConfiguration().properties().deleteOption()); Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.publicIPAddressConfiguration().sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.publicIPAddressConfiguration().sku().tier()); Assertions.assertEquals(IPVersion.IPV6, model.privateIPAddressVersion()); - Assertions.assertEquals("puz", model.applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("kadrgvt", model.applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("gg", model.loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("pnazzm", model.loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("henbtkcxywnytn", model.applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("lqidyby", model.applicationSecurityGroups().get(0).id()); + Assertions.assertEquals("clha", model.loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("abphlw", model.loadBalancerInboundNatPools().get(0).id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationTests.java index ee20481c33eda..997d8ea069a6b 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIPConfigurationTests.java @@ -26,101 +26,98 @@ public final class VirtualMachineScaleSetIPConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetIPConfiguration model = BinaryData.fromString( - "{\"name\":\"bkh\",\"properties\":{\"subnet\":{\"id\":\"yeamdphagalpb\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"ipwhonowk\",\"properties\":{\"idleTimeoutInMinutes\":69341003,\"dnsSettings\":{\"domainNameLabel\":\"nkixzbinj\",\"domainNameLabelScope\":\"NoReuse\"},\"ipTags\":[{\"ipTagType\":\"rywn\",\"tag\":\"oqftiyqzrnkcq\"},{\"ipTagType\":\"xlwhzlsicoh\",\"tag\":\"qnwvlrya\"}],\"publicIPPrefix\":{\"id\":\"heun\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Regional\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"oklyaxuconuq\"}],\"applicationSecurityGroups\":[{\"id\":\"beypewrmjmw\"},{\"id\":\"jektcxsenh\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ffrzpwvlqdqgbiqy\"},{\"id\":\"hkaetcktvfc\"},{\"id\":\"fsnkymuctq\"},{\"id\":\"fbebrjcxer\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"tttxfvjrb\"},{\"id\":\"phxepcyvahf\"},{\"id\":\"jky\"}]}}") + "{\"name\":\"hheunmmqhgyx\",\"properties\":{\"subnet\":{\"id\":\"ocukoklyax\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"uqszfk\",\"properties\":{\"idleTimeoutInMinutes\":868316225,\"dnsSettings\":{\"domainNameLabel\":\"wrmjmwvvjektc\",\"domainNameLabelScope\":\"SubscriptionReuse\"},\"ipTags\":[{\"ipTagType\":\"lrsf\",\"tag\":\"zpwv\"},{\"ipTagType\":\"dqgbiqylihkaetc\",\"tag\":\"vfcivfsnkymuc\"}],\"publicIPPrefix\":{\"id\":\"jf\"},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"txfvjrbirph\"},{\"id\":\"pcyvahfnljkyqx\"},{\"id\":\"uujqgidokgjljyo\"}],\"applicationSecurityGroups\":[{\"id\":\"ltbgsncghkj\"},{\"id\":\"zz\"},{\"id\":\"ijhtxf\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"fsm\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"mpvecxgodebfqk\"}]}}") .toObject(VirtualMachineScaleSetIPConfiguration.class); - Assertions.assertEquals("bkh", model.name()); - Assertions.assertEquals("yeamdphagalpb", model.properties().subnet().id()); - Assertions.assertEquals(true, model.properties().primary()); - Assertions.assertEquals("ipwhonowk", model.properties().publicIPAddressConfiguration().name()); - Assertions.assertEquals(69341003, + Assertions.assertEquals("hheunmmqhgyx", model.name()); + Assertions.assertEquals("ocukoklyax", model.properties().subnet().id()); + Assertions.assertEquals(false, model.properties().primary()); + Assertions.assertEquals("uqszfk", model.properties().publicIPAddressConfiguration().name()); + Assertions.assertEquals(868316225, model.properties().publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); - Assertions.assertEquals("nkixzbinj", + Assertions.assertEquals("wrmjmwvvjektc", model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, + Assertions.assertEquals(DomainNameLabelScopeTypes.SUBSCRIPTION_REUSE, model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("rywn", + Assertions.assertEquals("lrsf", model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("oqftiyqzrnkcq", + Assertions.assertEquals("zpwv", model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).tag()); - Assertions.assertEquals("heun", + Assertions.assertEquals("jf", model.properties().publicIPAddressConfiguration().properties().publicIPPrefix().id()); - Assertions.assertEquals(IPVersion.IPV6, + Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressConfiguration().properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DELETE, + Assertions.assertEquals(DeleteOptions.DETACH, model.properties().publicIPAddressConfiguration().properties().deleteOption()); - Assertions.assertEquals(PublicIPAddressSkuName.BASIC, + Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.properties().publicIPAddressConfiguration().sku().name()); - Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, + Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.properties().publicIPAddressConfiguration().sku().tier()); Assertions.assertEquals(IPVersion.IPV6, model.properties().privateIPAddressVersion()); - Assertions.assertEquals("oklyaxuconuq", model.properties().applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("beypewrmjmw", model.properties().applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("ffrzpwvlqdqgbiqy", model.properties().loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("tttxfvjrb", model.properties().loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("txfvjrbirph", model.properties().applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("ltbgsncghkj", model.properties().applicationSecurityGroups().get(0).id()); + Assertions.assertEquals("fsm", model.properties().loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("mpvecxgodebfqk", model.properties().loadBalancerInboundNatPools().get(0).id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetIPConfiguration model - = new VirtualMachineScaleSetIPConfiguration().withName("bkh") - .withProperties( - new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("yeamdphagalpb")) - .withPrimary(true) - .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("ipwhonowk") - .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(69341003) - .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel("nkixzbinj") - .withDomainNameLabelScope(DomainNameLabelScopeTypes.NO_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag().withIpTagType("rywn").withTag("oqftiyqzrnkcq"), - new VirtualMachineScaleSetIpTag().withIpTagType("xlwhzlsicoh").withTag("qnwvlrya"))) - .withPublicIPPrefix(new SubResource().withId("heun")) - .withPublicIPAddressVersion(IPVersion.IPV6) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource().withId("oklyaxuconuq"))) - .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("beypewrmjmw"), - new SubResource().withId("jektcxsenh"))) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("ffrzpwvlqdqgbiqy"), - new SubResource().withId("hkaetcktvfc"), new SubResource().withId("fsnkymuctq"), - new SubResource().withId("fbebrjcxer"))) - .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("tttxfvjrb"), - new SubResource().withId("phxepcyvahf"), new SubResource().withId("jky")))); + = new VirtualMachineScaleSetIPConfiguration().withName("hheunmmqhgyx") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() + .withSubnet(new ApiEntityReference().withId("ocukoklyax")) + .withPrimary(false) + .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() + .withName("uqszfk") + .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() + .withIdleTimeoutInMinutes(868316225) + .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() + .withDomainNameLabel("wrmjmwvvjektc") + .withDomainNameLabelScope(DomainNameLabelScopeTypes.SUBSCRIPTION_REUSE)) + .withIpTags( + Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("lrsf").withTag("zpwv"), + new VirtualMachineScaleSetIpTag().withIpTagType("dqgbiqylihkaetc") + .withTag("vfcivfsnkymuc"))) + .withPublicIPPrefix(new SubResource().withId("jf")) + .withPublicIPAddressVersion(IPVersion.IPV4) + .withDeleteOption(DeleteOptions.DETACH)) + .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD) + .withTier(PublicIPAddressSkuTier.GLOBAL))) + .withPrivateIPAddressVersion(IPVersion.IPV6) + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("txfvjrbirph"), + new SubResource().withId("pcyvahfnljkyqx"), new SubResource().withId("uujqgidokgjljyo"))) + .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("ltbgsncghkj"), + new SubResource().withId("zz"), new SubResource().withId("ijhtxf"))) + .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("fsm"))) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("mpvecxgodebfqk")))); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetIPConfiguration.class); - Assertions.assertEquals("bkh", model.name()); - Assertions.assertEquals("yeamdphagalpb", model.properties().subnet().id()); - Assertions.assertEquals(true, model.properties().primary()); - Assertions.assertEquals("ipwhonowk", model.properties().publicIPAddressConfiguration().name()); - Assertions.assertEquals(69341003, + Assertions.assertEquals("hheunmmqhgyx", model.name()); + Assertions.assertEquals("ocukoklyax", model.properties().subnet().id()); + Assertions.assertEquals(false, model.properties().primary()); + Assertions.assertEquals("uqszfk", model.properties().publicIPAddressConfiguration().name()); + Assertions.assertEquals(868316225, model.properties().publicIPAddressConfiguration().properties().idleTimeoutInMinutes()); - Assertions.assertEquals("nkixzbinj", + Assertions.assertEquals("wrmjmwvvjektc", model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, + Assertions.assertEquals(DomainNameLabelScopeTypes.SUBSCRIPTION_REUSE, model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("rywn", + Assertions.assertEquals("lrsf", model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("oqftiyqzrnkcq", + Assertions.assertEquals("zpwv", model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).tag()); - Assertions.assertEquals("heun", + Assertions.assertEquals("jf", model.properties().publicIPAddressConfiguration().properties().publicIPPrefix().id()); - Assertions.assertEquals(IPVersion.IPV6, + Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressConfiguration().properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DELETE, + Assertions.assertEquals(DeleteOptions.DETACH, model.properties().publicIPAddressConfiguration().properties().deleteOption()); - Assertions.assertEquals(PublicIPAddressSkuName.BASIC, + Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.properties().publicIPAddressConfiguration().sku().name()); - Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, + Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.properties().publicIPAddressConfiguration().sku().tier()); Assertions.assertEquals(IPVersion.IPV6, model.properties().privateIPAddressVersion()); - Assertions.assertEquals("oklyaxuconuq", model.properties().applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("beypewrmjmw", model.properties().applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("ffrzpwvlqdqgbiqy", model.properties().loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("tttxfvjrb", model.properties().loadBalancerInboundNatPools().get(0).id()); + Assertions.assertEquals("txfvjrbirph", model.properties().applicationGatewayBackendAddressPools().get(0).id()); + Assertions.assertEquals("ltbgsncghkj", model.properties().applicationSecurityGroups().get(0).id()); + Assertions.assertEquals("fsm", model.properties().loadBalancerBackendAddressPools().get(0).id()); + Assertions.assertEquals("mpvecxgodebfqk", model.properties().loadBalancerInboundNatPools().get(0).id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIpTagTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIpTagTests.java index 346edcfdc3dd4..7227c1d0383d6 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIpTagTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetIpTagTests.java @@ -12,18 +12,18 @@ public final class VirtualMachineScaleSetIpTagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetIpTag model - = BinaryData.fromString("{\"ipTagType\":\"kfssxqukkf\",\"tag\":\"gmgsxnkjzkde\"}") + = BinaryData.fromString("{\"ipTagType\":\"uebbaumnyqup\",\"tag\":\"eojnabc\"}") .toObject(VirtualMachineScaleSetIpTag.class); - Assertions.assertEquals("kfssxqukkf", model.ipTagType()); - Assertions.assertEquals("gmgsxnkjzkde", model.tag()); + Assertions.assertEquals("uebbaumnyqup", model.ipTagType()); + Assertions.assertEquals("eojnabc", model.tag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetIpTag model - = new VirtualMachineScaleSetIpTag().withIpTagType("kfssxqukkf").withTag("gmgsxnkjzkde"); + = new VirtualMachineScaleSetIpTag().withIpTagType("uebbaumnyqup").withTag("eojnabc"); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetIpTag.class); - Assertions.assertEquals("kfssxqukkf", model.ipTagType()); - Assertions.assertEquals("gmgsxnkjzkde", model.tag()); + Assertions.assertEquals("uebbaumnyqup", model.ipTagType()); + Assertions.assertEquals("eojnabc", model.tag()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetManagedDiskParametersTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetManagedDiskParametersTests.java index bc57f897f50d3..40b7b2fb2adfd 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetManagedDiskParametersTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetManagedDiskParametersTests.java @@ -8,36 +8,36 @@ import com.azure.resourcemanager.computefleet.models.DiskEncryptionSetParameters; import com.azure.resourcemanager.computefleet.models.SecurityEncryptionTypes; import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; -import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetManagedDiskParameters; import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; +import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetManagedDiskParameters; import org.junit.jupiter.api.Assertions; public final class VirtualMachineScaleSetManagedDiskParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetManagedDiskParameters model = BinaryData.fromString( - "{\"storageAccountType\":\"Premium_LRS\",\"diskEncryptionSet\":{\"id\":\"qcjm\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"qidtqajzyu\"}}}") + "{\"storageAccountType\":\"Standard_LRS\",\"diskEncryptionSet\":{\"id\":\"bacfionlebxetq\"},\"securityProfile\":{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"nqbqqwxr\"}}}") .toObject(VirtualMachineScaleSetManagedDiskParameters.class); - Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.storageAccountType()); - Assertions.assertEquals("qcjm", model.diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, + Assertions.assertEquals(StorageAccountTypes.STANDARD_LRS, model.storageAccountType()); + Assertions.assertEquals("bacfionlebxetq", model.diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityProfile().securityEncryptionType()); - Assertions.assertEquals("qidtqajzyu", model.securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals("nqbqqwxr", model.securityProfile().diskEncryptionSet().id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetManagedDiskParameters model - = new VirtualMachineScaleSetManagedDiskParameters().withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("qcjm")) + = new VirtualMachineScaleSetManagedDiskParameters().withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("bacfionlebxetq")) .withSecurityProfile( - new VMDiskSecurityProfile().withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("qidtqajzyu"))); + new VMDiskSecurityProfile().withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("nqbqqwxr"))); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetManagedDiskParameters.class); - Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.storageAccountType()); - Assertions.assertEquals("qcjm", model.diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, + Assertions.assertEquals(StorageAccountTypes.STANDARD_LRS, model.storageAccountType()); + Assertions.assertEquals("bacfionlebxetq", model.diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityProfile().securityEncryptionType()); - Assertions.assertEquals("qidtqajzyu", model.securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals("nqbqqwxr", model.securityProfile().diskEncryptionSet().id()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationDnsSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationDnsSettingsTests.java index fb3e4be628763..1faf8f7a78986 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationDnsSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationDnsSettingsTests.java @@ -12,18 +12,18 @@ public final class VirtualMachineScaleSetNetworkConfigurationDnsSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VirtualMachineScaleSetNetworkConfigurationDnsSettings model = BinaryData - .fromString("{\"dnsServers\":[\"qzntypm\",\"bpizcdrqjsdpydn\",\"yhxdeoejzicwi\",\"sjttgzfbish\"]}") - .toObject(VirtualMachineScaleSetNetworkConfigurationDnsSettings.class); - Assertions.assertEquals("qzntypm", model.dnsServers().get(0)); + VirtualMachineScaleSetNetworkConfigurationDnsSettings model + = BinaryData.fromString("{\"dnsServers\":[\"rnkcqvyxlw\",\"zlsico\",\"oqqnwvlryav\"]}") + .toObject(VirtualMachineScaleSetNetworkConfigurationDnsSettings.class); + Assertions.assertEquals("rnkcqvyxlw", model.dnsServers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetNetworkConfigurationDnsSettings model = new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("qzntypm", "bpizcdrqjsdpydn", "yhxdeoejzicwi", "sjttgzfbish")); + .withDnsServers(Arrays.asList("rnkcqvyxlw", "zlsico", "oqqnwvlryav")); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkConfigurationDnsSettings.class); - Assertions.assertEquals("qzntypm", model.dnsServers().get(0)); + Assertions.assertEquals("rnkcqvyxlw", model.dnsServers().get(0)); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationPropertiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationPropertiesTests.java index 855bbcfbfb800..c405845524394 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationPropertiesTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationPropertiesTests.java @@ -29,27 +29,27 @@ public final class VirtualMachineScaleSetNetworkConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetNetworkConfigurationProperties model = BinaryData.fromString( - "{\"primary\":true,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"alhbx\"},\"dnsSettings\":{\"dnsServers\":[\"jzzvdud\"]},\"ipConfigurations\":[{\"name\":\"dslfhotwmcy\",\"properties\":{\"subnet\":{\"id\":\"bjnpg\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"adehxnltyfsopp\",\"properties\":{\"idleTimeoutInMinutes\":1667329548,\"dnsSettings\":{\"domainNameLabel\":\"nzwdejba\"},\"ipTags\":[{},{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"dndnvow\"},{\"id\":\"jjugwdkcglhslaz\"},{\"id\":\"yggdtjixh\"},{\"id\":\"uofqwe\"}],\"applicationSecurityGroups\":[{\"id\":\"enevfyexfwhybci\"},{\"id\":\"yvdcsitynnaa\"},{\"id\":\"ectehf\"},{\"id\":\"scjeypv\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"kgqhcjrefovg\"},{\"id\":\"qsl\"},{\"id\":\"yvxyqjp\"},{\"id\":\"attpngjcrcczsq\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"mdajv\"},{\"id\":\"sounqecanoaeu\"},{\"id\":\"hy\"},{\"id\":\"trpmo\"}]}},{\"name\":\"jmcmatuokthfu\",\"properties\":{\"subnet\":{\"id\":\"dsfcpkvxodpuoz\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"dagfuaxbezyiuok\",\"properties\":{\"idleTimeoutInMinutes\":1080863753,\"dnsSettings\":{\"domainNameLabel\":\"dxwzywqsmbsurexi\"},\"ipTags\":[{},{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"kiiuxhqyudxor\"},{\"id\":\"nbpoczvyifqrvkdv\"},{\"id\":\"llr\"}],\"applicationSecurityGroups\":[{\"id\":\"f\"},{\"id\":\"t\"},{\"id\":\"n\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"xxbczwtr\"},{\"id\":\"iqzbq\"},{\"id\":\"sovmyokacspkwl\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"bpxjmfl\"},{\"id\":\"vnchrkcci\"},{\"id\":\"zjuqkhrsaj\"},{\"id\":\"ku\"}]}},{\"name\":\"foskghsauuimj\",\"properties\":{\"subnet\":{\"id\":\"eduugi\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"rfbyaosvexcso\",\"properties\":{\"idleTimeoutInMinutes\":699840472,\"dnsSettings\":{\"domainNameLabel\":\"ocohslkevleg\"},\"ipTags\":[{},{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Regional\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"th\"}],\"applicationSecurityGroups\":[{\"id\":\"zy\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"mzsb\"},{\"id\":\"oggigrxwburv\"},{\"id\":\"xjnspy\"},{\"id\":\"tko\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"uknvudwti\"},{\"id\":\"bldngkpoc\"},{\"id\":\"azyxoegukg\"}]}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"A1\"}") + "{\"primary\":false,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"fbuhfmvfaxkffe\"},\"dnsSettings\":{\"dnsServers\":[\"lvmezyvshxmzsbbz\"]},\"ipConfigurations\":[{\"name\":\"gigr\",\"properties\":{\"subnet\":{\"id\":\"rvjx\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"pydptko\",\"properties\":{\"idleTimeoutInMinutes\":368872056,\"dnsSettings\":{\"domainNameLabel\":\"knvudwtiukb\"},\"ipTags\":[{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"kgjn\"},{\"id\":\"ucgygevqz\"},{\"id\":\"yp\"},{\"id\":\"bpizcdrqjsdpydn\"}],\"applicationSecurityGroups\":[{\"id\":\"de\"},{\"id\":\"jzicwifsjt\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"bishcbkhajdeyea\"},{\"id\":\"p\"},{\"id\":\"g\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"uxwgipwho\"},{\"id\":\"wkgshwa\"},{\"id\":\"ixzbinjeputtmryw\"}]}}],\"enableIPForwarding\":true,\"deleteOption\":\"Delete\",\"auxiliaryMode\":\"AcceleratedConnections\",\"auxiliarySku\":\"A8\"}") .toObject(VirtualMachineScaleSetNetworkConfigurationProperties.class); - Assertions.assertEquals(true, model.primary()); + Assertions.assertEquals(false, model.primary()); Assertions.assertEquals(false, model.enableAcceleratedNetworking()); Assertions.assertEquals(false, model.disableTcpStateTracking()); Assertions.assertEquals(false, model.enableFpga()); - Assertions.assertEquals("alhbx", model.networkSecurityGroup().id()); - Assertions.assertEquals("jzzvdud", model.dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("dslfhotwmcy", model.ipConfigurations().get(0).name()); - Assertions.assertEquals("bjnpg", model.ipConfigurations().get(0).properties().subnet().id()); + Assertions.assertEquals("fbuhfmvfaxkffe", model.networkSecurityGroup().id()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.dnsSettings().dnsServers().get(0)); + Assertions.assertEquals("gigr", model.ipConfigurations().get(0).name()); + Assertions.assertEquals("rvjx", model.ipConfigurations().get(0).properties().subnet().id()); Assertions.assertEquals(true, model.ipConfigurations().get(0).properties().primary()); - Assertions.assertEquals("adehxnltyfsopp", + Assertions.assertEquals("pydptko", model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().name()); - Assertions.assertEquals(1667329548, + Assertions.assertEquals(368872056, model.ipConfigurations() .get(0) .properties() .publicIPAddressConfiguration() .properties() .idleTimeoutInMinutes()); - Assertions.assertEquals("nzwdejba", + Assertions.assertEquals("knvudwtiukb", model.ipConfigurations() .get(0) .properties() @@ -57,7 +57,7 @@ public void testDeserialize() throws Exception { .properties() .dnsSettings() .domainNameLabel()); - Assertions.assertEquals(IPVersion.IPV4, + Assertions.assertEquals(IPVersion.IPV6, model.ipConfigurations() .get(0) .properties() @@ -66,146 +66,88 @@ public void testDeserialize() throws Exception { .publicIPAddressVersion()); Assertions.assertEquals(DeleteOptions.DETACH, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().properties().deleteOption()); - Assertions.assertEquals(PublicIPAddressSkuName.BASIC, + Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().sku().tier()); - Assertions.assertEquals(IPVersion.IPV6, model.ipConfigurations().get(0).properties().privateIPAddressVersion()); - Assertions.assertEquals("dndnvow", + Assertions.assertEquals(IPVersion.IPV4, model.ipConfigurations().get(0).properties().privateIPAddressVersion()); + Assertions.assertEquals("kgjn", model.ipConfigurations().get(0).properties().applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("enevfyexfwhybci", + Assertions.assertEquals("de", model.ipConfigurations().get(0).properties().applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("kgqhcjrefovg", + Assertions.assertEquals("bishcbkhajdeyea", model.ipConfigurations().get(0).properties().loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("mdajv", + Assertions.assertEquals("uxwgipwho", model.ipConfigurations().get(0).properties().loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals(false, model.enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DETACH, model.deleteOption()); - Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.auxiliaryMode()); - Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, model.auxiliarySku()); + Assertions.assertEquals(true, model.enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption()); + Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS, model.auxiliaryMode()); + Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.auxiliarySku()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetNetworkConfigurationProperties model - = new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(true) + = new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false) .withEnableAcceleratedNetworking(false) .withDisableTcpStateTracking(false) .withEnableFpga(false) - .withNetworkSecurityGroup(new SubResource().withId("alhbx")) + .withNetworkSecurityGroup(new SubResource().withId("fbuhfmvfaxkffe")) .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("jzzvdud"))) - .withIpConfigurations(Arrays.asList( - new VirtualMachineScaleSetIPConfiguration().withName("dslfhotwmcy") + .withDnsServers(Arrays.asList("lvmezyvshxmzsbbz"))) + .withIpConfigurations( + Arrays.asList(new VirtualMachineScaleSetIPConfiguration().withName("gigr") .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("bjnpg")) + .withSubnet(new ApiEntityReference().withId("rvjx")) .withPrimary(true) .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("adehxnltyfsopp") + .withName("pydptko") .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(1667329548) + .withIdleTimeoutInMinutes(368872056) .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel("nzwdejba")) + .withDomainNameLabel("knvudwtiukb")) .withIpTags(Arrays.asList(new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag(), new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag())) + new VirtualMachineScaleSetIpTag(), new VirtualMachineScaleSetIpTag())) .withPublicIPPrefix(new SubResource()) - .withPublicIPAddressVersion(IPVersion.IPV4) + .withPublicIPAddressVersion(IPVersion.IPV6) .withDeleteOption(DeleteOptions.DETACH)) - .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.GLOBAL))) - .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools(Arrays.asList( - new SubResource().withId("dndnvow"), new SubResource().withId("jjugwdkcglhslaz"), - new SubResource().withId("yggdtjixh"), new SubResource().withId("uofqwe"))) - .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("enevfyexfwhybci"), - new SubResource().withId("yvdcsitynnaa"), new SubResource().withId("ectehf"), - new SubResource().withId("scjeypv"))) - .withLoadBalancerBackendAddressPools( - Arrays.asList(new SubResource().withId("kgqhcjrefovg"), new SubResource().withId("qsl"), - new SubResource().withId("yvxyqjp"), new SubResource().withId("attpngjcrcczsq"))) - .withLoadBalancerInboundNatPools(Arrays.asList( - new SubResource().withId("mdajv"), new SubResource().withId("sounqecanoaeu"), - new SubResource().withId("hy"), new SubResource().withId("trpmo")))), - new VirtualMachineScaleSetIPConfiguration().withName("jmcmatuokthfu") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("dsfcpkvxodpuoz")) - .withPrimary(true) - .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("dagfuaxbezyiuok") - .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(1080863753) - .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel("dxwzywqsmbsurexi")) - .withIpTags(Arrays.asList(new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag(), new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag())) - .withPublicIPPrefix(new SubResource()) - .withPublicIPAddressVersion(IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DELETE)) - .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) + .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD) .withTier(PublicIPAddressSkuTier.GLOBAL))) - .withPrivateIPAddressVersion(IPVersion.IPV6) + .withPrivateIPAddressVersion(IPVersion.IPV4) .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource().withId("kiiuxhqyudxor"), - new SubResource().withId("nbpoczvyifqrvkdv"), new SubResource().withId("llr"))) - .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("f"), - new SubResource().withId("t"), new SubResource().withId("n"))) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("xxbczwtr"), - new SubResource().withId("iqzbq"), new SubResource().withId("sovmyokacspkwl"))) - .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("bpxjmfl"), - new SubResource().withId("vnchrkcci"), new SubResource().withId("zjuqkhrsaj"), - new SubResource().withId("ku")))), - new VirtualMachineScaleSetIPConfiguration().withName("foskghsauuimj") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("eduugi")) - .withPrimary(true) - .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration() - .withName("rfbyaosvexcso") - .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(699840472) - .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel("ocohslkevleg")) - .withIpTags(Arrays.asList(new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag(), new VirtualMachineScaleSetIpTag(), - new VirtualMachineScaleSetIpTag())) - .withPublicIPPrefix(new SubResource()) - .withPublicIPAddressVersion(IPVersion.IPV6) - .withDeleteOption(DeleteOptions.DETACH)) - .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC) - .withTier(PublicIPAddressSkuTier.REGIONAL))) - .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("th"))) - .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("zy"))) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("mzsb"), - new SubResource().withId("oggigrxwburv"), new SubResource().withId("xjnspy"), - new SubResource().withId("tko"))) - .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("uknvudwti"), - new SubResource().withId("bldngkpoc"), new SubResource().withId("azyxoegukg")))))) - .withEnableIPForwarding(false) - .withDeleteOption(DeleteOptions.DETACH) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A1); + Arrays.asList(new SubResource().withId("kgjn"), new SubResource().withId("ucgygevqz"), + new SubResource().withId("yp"), new SubResource().withId("bpizcdrqjsdpydn"))) + .withApplicationSecurityGroups( + Arrays.asList(new SubResource().withId("de"), new SubResource().withId("jzicwifsjt"))) + .withLoadBalancerBackendAddressPools( + Arrays.asList(new SubResource().withId("bishcbkhajdeyea"), + new SubResource().withId("p"), new SubResource().withId("g"))) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("uxwgipwho"), + new SubResource().withId("wkgshwa"), new SubResource().withId("ixzbinjeputtmryw")))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A8); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkConfigurationProperties.class); - Assertions.assertEquals(true, model.primary()); + Assertions.assertEquals(false, model.primary()); Assertions.assertEquals(false, model.enableAcceleratedNetworking()); Assertions.assertEquals(false, model.disableTcpStateTracking()); Assertions.assertEquals(false, model.enableFpga()); - Assertions.assertEquals("alhbx", model.networkSecurityGroup().id()); - Assertions.assertEquals("jzzvdud", model.dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("dslfhotwmcy", model.ipConfigurations().get(0).name()); - Assertions.assertEquals("bjnpg", model.ipConfigurations().get(0).properties().subnet().id()); + Assertions.assertEquals("fbuhfmvfaxkffe", model.networkSecurityGroup().id()); + Assertions.assertEquals("lvmezyvshxmzsbbz", model.dnsSettings().dnsServers().get(0)); + Assertions.assertEquals("gigr", model.ipConfigurations().get(0).name()); + Assertions.assertEquals("rvjx", model.ipConfigurations().get(0).properties().subnet().id()); Assertions.assertEquals(true, model.ipConfigurations().get(0).properties().primary()); - Assertions.assertEquals("adehxnltyfsopp", + Assertions.assertEquals("pydptko", model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().name()); - Assertions.assertEquals(1667329548, + Assertions.assertEquals(368872056, model.ipConfigurations() .get(0) .properties() .publicIPAddressConfiguration() .properties() .idleTimeoutInMinutes()); - Assertions.assertEquals("nzwdejba", + Assertions.assertEquals("knvudwtiukb", model.ipConfigurations() .get(0) .properties() @@ -213,7 +155,7 @@ public void testSerialize() throws Exception { .properties() .dnsSettings() .domainNameLabel()); - Assertions.assertEquals(IPVersion.IPV4, + Assertions.assertEquals(IPVersion.IPV6, model.ipConfigurations() .get(0) .properties() @@ -222,22 +164,22 @@ public void testSerialize() throws Exception { .publicIPAddressVersion()); Assertions.assertEquals(DeleteOptions.DETACH, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().properties().deleteOption()); - Assertions.assertEquals(PublicIPAddressSkuName.BASIC, + Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().sku().tier()); - Assertions.assertEquals(IPVersion.IPV6, model.ipConfigurations().get(0).properties().privateIPAddressVersion()); - Assertions.assertEquals("dndnvow", + Assertions.assertEquals(IPVersion.IPV4, model.ipConfigurations().get(0).properties().privateIPAddressVersion()); + Assertions.assertEquals("kgjn", model.ipConfigurations().get(0).properties().applicationGatewayBackendAddressPools().get(0).id()); - Assertions.assertEquals("enevfyexfwhybci", + Assertions.assertEquals("de", model.ipConfigurations().get(0).properties().applicationSecurityGroups().get(0).id()); - Assertions.assertEquals("kgqhcjrefovg", + Assertions.assertEquals("bishcbkhajdeyea", model.ipConfigurations().get(0).properties().loadBalancerBackendAddressPools().get(0).id()); - Assertions.assertEquals("mdajv", + Assertions.assertEquals("uxwgipwho", model.ipConfigurations().get(0).properties().loadBalancerInboundNatPools().get(0).id()); - Assertions.assertEquals(false, model.enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DETACH, model.deleteOption()); - Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.auxiliaryMode()); - Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, model.auxiliarySku()); + Assertions.assertEquals(true, model.enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption()); + Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS, model.auxiliaryMode()); + Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.auxiliarySku()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationTests.java index 0f142f40befc5..e3da7f4149f89 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkConfigurationTests.java @@ -26,132 +26,94 @@ public final class VirtualMachineScaleSetNetworkConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetNetworkConfiguration model = BinaryData.fromString( - "{\"name\":\"iotkftutqxl\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":true,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"rxdq\"},\"dnsSettings\":{\"dnsServers\":[\"thz\",\"vqdra\"]},\"ipConfigurations\":[{\"name\":\"jybige\",\"properties\":{\"subnet\":{\"id\":\"bowsk\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"tzlcuiywgqywgn\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{},{},{}],\"applicationSecurityGroups\":[{},{},{}],\"loadBalancerBackendAddressPools\":[{}],\"loadBalancerInboundNatPools\":[{},{},{}]}},{\"name\":\"gyncocpecfvmmc\",\"properties\":{\"subnet\":{\"id\":\"xlzevgbmqjqabcy\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"kwlzuvccfwnfn\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{},{},{},{}],\"applicationSecurityGroups\":[{},{},{}],\"loadBalancerBackendAddressPools\":[{}],\"loadBalancerInboundNatPools\":[{},{},{},{}]}},{\"name\":\"qgtz\",\"properties\":{\"subnet\":{\"id\":\"qbqqwxr\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"llnwsubi\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{},{}],\"applicationSecurityGroups\":[{},{},{}],\"loadBalancerBackendAddressPools\":[{},{}],\"loadBalancerInboundNatPools\":[{}]}},{\"name\":\"xaqwoochcbonqv\",\"properties\":{\"subnet\":{\"id\":\"rxnjeaseipheofl\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"y\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{},{}],\"applicationSecurityGroups\":[{},{},{},{}],\"loadBalancerBackendAddressPools\":[{},{},{}],\"loadBalancerInboundNatPools\":[{},{},{},{}]}}],\"enableIPForwarding\":false,\"deleteOption\":\"Delete\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"A8\"}}") + "{\"name\":\"dystkiiuxhqyud\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":true,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"yifqrvkdvjsllrmv\"},\"dnsSettings\":{\"dnsServers\":[\"atkpnp\",\"lexxbczwtru\",\"iqzbq\",\"vsovmyokac\"]},\"ipConfigurations\":[{\"name\":\"kwlhzdo\",\"properties\":{\"subnet\":{\"id\":\"mflbv\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"rkcciwwzjuqk\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{},{},{}],\"applicationSecurityGroups\":[{}],\"loadBalancerBackendAddressPools\":[{},{},{},{}],\"loadBalancerInboundNatPools\":[{},{},{}]}},{\"name\":\"kg\",\"properties\":{\"subnet\":{\"id\":\"uimjmvx\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"ugidyjrr\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{}],\"applicationSecurityGroups\":[{}],\"loadBalancerBackendAddressPools\":[{},{},{}],\"loadBalancerInboundNatPools\":[{}]}}],\"enableIPForwarding\":true,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"A2\"}}") .toObject(VirtualMachineScaleSetNetworkConfiguration.class); - Assertions.assertEquals("iotkftutqxl", model.name()); - Assertions.assertEquals(true, model.properties().primary()); + Assertions.assertEquals("dystkiiuxhqyud", model.name()); + Assertions.assertEquals(false, model.properties().primary()); Assertions.assertEquals(true, model.properties().enableAcceleratedNetworking()); Assertions.assertEquals(true, model.properties().disableTcpStateTracking()); Assertions.assertEquals(false, model.properties().enableFpga()); - Assertions.assertEquals("rxdq", model.properties().networkSecurityGroup().id()); - Assertions.assertEquals("thz", model.properties().dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("jybige", model.properties().ipConfigurations().get(0).name()); - Assertions.assertEquals("bowsk", model.properties().ipConfigurations().get(0).properties().subnet().id()); - Assertions.assertEquals(false, model.properties().ipConfigurations().get(0).properties().primary()); - Assertions.assertEquals("tzlcuiywgqywgn", + Assertions.assertEquals("yifqrvkdvjsllrmv", model.properties().networkSecurityGroup().id()); + Assertions.assertEquals("atkpnp", model.properties().dnsSettings().dnsServers().get(0)); + Assertions.assertEquals("kwlhzdo", model.properties().ipConfigurations().get(0).name()); + Assertions.assertEquals("mflbv", model.properties().ipConfigurations().get(0).properties().subnet().id()); + Assertions.assertEquals(true, model.properties().ipConfigurations().get(0).properties().primary()); + Assertions.assertEquals("rkcciwwzjuqk", model.properties().ipConfigurations().get(0).properties().publicIPAddressConfiguration().name()); Assertions.assertEquals(IPVersion.IPV6, model.properties().ipConfigurations().get(0).properties().privateIPAddressVersion()); - Assertions.assertEquals(false, model.properties().enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption()); + Assertions.assertEquals(true, model.properties().enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption()); Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.properties().auxiliaryMode()); - Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.properties().auxiliarySku()); + Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A2, model.properties().auxiliarySku()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetNetworkConfiguration model - = new VirtualMachineScaleSetNetworkConfiguration().withName("iotkftutqxl") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(true) + = new VirtualMachineScaleSetNetworkConfiguration().withName("dystkiiuxhqyud") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false) .withEnableAcceleratedNetworking(true) .withDisableTcpStateTracking(true) .withEnableFpga(false) - .withNetworkSecurityGroup(new SubResource().withId("rxdq")) + .withNetworkSecurityGroup(new SubResource().withId("yifqrvkdvjsllrmv")) .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("thz", "vqdra"))) + .withDnsServers(Arrays.asList("atkpnp", "lexxbczwtru", "iqzbq", "vsovmyokac"))) .withIpConfigurations(Arrays.asList( - new VirtualMachineScaleSetIPConfiguration().withName("jybige") + new VirtualMachineScaleSetIPConfiguration().withName("kwlhzdo") .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("bowsk")) - .withPrimary(false) + .withSubnet(new ApiEntityReference().withId("mflbv")) + .withPrimary(true) .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("tzlcuiywgqywgn") + new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("rkcciwwzjuqk") .withProperties( new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()) .withSku(new PublicIPAddressSku())) .withPrivateIPAddressVersion(IPVersion.IPV6) .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource(), new SubResource(), new SubResource(), new SubResource())) - .withApplicationSecurityGroups( - Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource())) + .withApplicationSecurityGroups(Arrays.asList(new SubResource())) + .withLoadBalancerBackendAddressPools(Arrays + .asList(new SubResource(), new SubResource(), new SubResource(), new SubResource())) .withLoadBalancerInboundNatPools( Arrays.asList(new SubResource(), new SubResource(), new SubResource()))), - new VirtualMachineScaleSetIPConfiguration().withName("gyncocpecfvmmc") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("xlzevgbmqjqabcy")) - .withPrimary(true) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("kwlzuvccfwnfn") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()) - .withSku(new PublicIPAddressSku())) - .withPrivateIPAddressVersion(IPVersion.IPV4) - .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource(), - new SubResource(), new SubResource(), new SubResource())) - .withApplicationSecurityGroups( - Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource())) - .withLoadBalancerInboundNatPools( - Arrays.asList(new SubResource(), new SubResource(), new SubResource(), - new SubResource()))), - new VirtualMachineScaleSetIPConfiguration().withName("qgtz") + new VirtualMachineScaleSetIPConfiguration().withName("kg") .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("qbqqwxr")) + .withSubnet(new ApiEntityReference().withId("uimjmvx")) .withPrimary(true) .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("llnwsubi") + new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("ugidyjrr") .withProperties( new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()) .withSku(new PublicIPAddressSku())) .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withApplicationSecurityGroups( - Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withLoadBalancerBackendAddressPools( - Arrays.asList(new SubResource(), new SubResource())) - .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource()))), - new VirtualMachineScaleSetIPConfiguration().withName("xaqwoochcbonqv") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties() - .withSubnet(new ApiEntityReference().withId("rxnjeaseipheofl")) - .withPrimary(false) - .withPublicIPAddressConfiguration( - new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("y") - .withProperties( - new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()) - .withSku(new PublicIPAddressSku())) - .withPrivateIPAddressVersion(IPVersion.IPV6) - .withApplicationGatewayBackendAddressPools( - Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withApplicationSecurityGroups(Arrays.asList(new SubResource(), new SubResource(), - new SubResource(), new SubResource())) + .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource())) + .withApplicationSecurityGroups(Arrays.asList(new SubResource())) .withLoadBalancerBackendAddressPools( Arrays.asList(new SubResource(), new SubResource(), new SubResource())) - .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource(), new SubResource(), - new SubResource(), new SubResource()))))) - .withEnableIPForwarding(false) - .withDeleteOption(DeleteOptions.DELETE) + .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource()))))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DETACH) .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A8)); + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A2)); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkConfiguration.class); - Assertions.assertEquals("iotkftutqxl", model.name()); - Assertions.assertEquals(true, model.properties().primary()); + Assertions.assertEquals("dystkiiuxhqyud", model.name()); + Assertions.assertEquals(false, model.properties().primary()); Assertions.assertEquals(true, model.properties().enableAcceleratedNetworking()); Assertions.assertEquals(true, model.properties().disableTcpStateTracking()); Assertions.assertEquals(false, model.properties().enableFpga()); - Assertions.assertEquals("rxdq", model.properties().networkSecurityGroup().id()); - Assertions.assertEquals("thz", model.properties().dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("jybige", model.properties().ipConfigurations().get(0).name()); - Assertions.assertEquals("bowsk", model.properties().ipConfigurations().get(0).properties().subnet().id()); - Assertions.assertEquals(false, model.properties().ipConfigurations().get(0).properties().primary()); - Assertions.assertEquals("tzlcuiywgqywgn", + Assertions.assertEquals("yifqrvkdvjsllrmv", model.properties().networkSecurityGroup().id()); + Assertions.assertEquals("atkpnp", model.properties().dnsSettings().dnsServers().get(0)); + Assertions.assertEquals("kwlhzdo", model.properties().ipConfigurations().get(0).name()); + Assertions.assertEquals("mflbv", model.properties().ipConfigurations().get(0).properties().subnet().id()); + Assertions.assertEquals(true, model.properties().ipConfigurations().get(0).properties().primary()); + Assertions.assertEquals("rkcciwwzjuqk", model.properties().ipConfigurations().get(0).properties().publicIPAddressConfiguration().name()); Assertions.assertEquals(IPVersion.IPV6, model.properties().ipConfigurations().get(0).properties().privateIPAddressVersion()); - Assertions.assertEquals(false, model.properties().enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption()); + Assertions.assertEquals(true, model.properties().enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption()); Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.properties().auxiliaryMode()); - Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.properties().auxiliarySku()); + Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A2, model.properties().auxiliarySku()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkProfileTests.java index ad00570746cc3..1ac2dd948f6a3 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetNetworkProfileTests.java @@ -24,99 +24,117 @@ public final class VirtualMachineScaleSetNetworkProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetNetworkProfile model = BinaryData.fromString( - "{\"healthProbe\":{\"id\":\"xgcp\"},\"networkInterfaceConfigurations\":[{\"name\":\"maajrmvdjwzrlo\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":true,\"networkSecurityGroup\":{\"id\":\"ctbzaq\"},\"dnsSettings\":{\"dnsServers\":[\"cbkbfkg\"]},\"ipConfigurations\":[{\"name\":\"dkexxppofm\",\"properties\":{}},{\"name\":\"x\",\"properties\":{}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"AcceleratedConnections\",\"auxiliarySku\":\"A4\"}},{\"name\":\"jjxhvpmo\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":true,\"networkSecurityGroup\":{\"id\":\"jnxqbzvddntwn\"},\"dnsSettings\":{\"dnsServers\":[\"btwnpzaoqvuhrhcf\",\"cyddglmjthjqk\",\"pyeicxm\",\"ciwqvhk\"]},\"ipConfigurations\":[{\"name\":\"xuigdtopbobj\",\"properties\":{}},{\"name\":\"hm\",\"properties\":{}},{\"name\":\"u\",\"properties\":{}},{\"name\":\"a\",\"properties\":{}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"AcceleratedConnections\",\"auxiliarySku\":\"None\"}}],\"networkApiVersion\":\"2020-11-01\"}") + "{\"healthProbe\":{\"id\":\"lhbxxhejjzzvdud\"},\"networkInterfaceConfigurations\":[{\"name\":\"slfhotwm\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":false,\"enableFpga\":true,\"networkSecurityGroup\":{\"id\":\"cftadeh\"},\"dnsSettings\":{\"dnsServers\":[\"yfsoppu\",\"uesnzwdejbavo\",\"xzdmohctb\",\"vudwx\"]},\"ipConfigurations\":[{\"name\":\"dnvowg\",\"properties\":{}},{\"name\":\"jugwdkcglhsl\",\"properties\":{}}],\"enableIPForwarding\":true,\"deleteOption\":\"Delete\",\"auxiliaryMode\":\"Floating\",\"auxiliarySku\":\"A4\"}},{\"name\":\"ixhbkuofqweykhm\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"bcibvyvdcsitynn\"},\"dnsSettings\":{\"dnsServers\":[\"ectehf\",\"qsc\",\"eypvhezrkg\"]},\"ipConfigurations\":[{\"name\":\"c\",\"properties\":{}},{\"name\":\"efovgmk\",\"properties\":{}},{\"name\":\"leyyvx\",\"properties\":{}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"AcceleratedConnections\",\"auxiliarySku\":\"A8\"}},{\"name\":\"ngj\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":true,\"enableFpga\":true,\"networkSecurityGroup\":{\"id\":\"daj\"},\"dnsSettings\":{\"dnsServers\":[\"ounqecano\",\"eupfhyhltrpm\",\"pjmcmatuokthfuiu\",\"odsfcpkvxodpuozm\"]},\"ipConfigurations\":[{\"name\":\"ydagfuaxbe\",\"properties\":{}},{\"name\":\"iu\",\"properties\":{}},{\"name\":\"ktwh\",\"properties\":{}},{\"name\":\"xw\",\"properties\":{}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"Floating\",\"auxiliarySku\":\"A4\"}}],\"networkApiVersion\":\"2020-11-01\"}") .toObject(VirtualMachineScaleSetNetworkProfile.class); - Assertions.assertEquals("xgcp", model.healthProbe().id()); - Assertions.assertEquals("maajrmvdjwzrlo", model.networkInterfaceConfigurations().get(0).name()); - Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().primary()); - Assertions.assertEquals(false, + Assertions.assertEquals("lhbxxhejjzzvdud", model.healthProbe().id()); + Assertions.assertEquals("slfhotwm", model.networkInterfaceConfigurations().get(0).name()); + Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().primary()); + Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableAcceleratedNetworking()); Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().disableTcpStateTracking()); Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableFpga()); - Assertions.assertEquals("ctbzaq", + Assertions.assertEquals("cftadeh", model.networkInterfaceConfigurations().get(0).properties().networkSecurityGroup().id()); - Assertions.assertEquals("cbkbfkg", + Assertions.assertEquals("yfsoppu", model.networkInterfaceConfigurations().get(0).properties().dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("dkexxppofm", + Assertions.assertEquals("dnvowg", model.networkInterfaceConfigurations().get(0).properties().ipConfigurations().get(0).name()); - Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DETACH, + Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DELETE, model.networkInterfaceConfigurations().get(0).properties().deleteOption()); - Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS, + Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.FLOATING, model.networkInterfaceConfigurations().get(0).properties().auxiliaryMode()); Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A4, model.networkInterfaceConfigurations().get(0).properties().auxiliarySku()); - Assertions.assertEquals(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE, model.networkApiVersion()); + Assertions.assertEquals(NetworkApiVersion.V2020_11_01, model.networkApiVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualMachineScaleSetNetworkProfile model - = new VirtualMachineScaleSetNetworkProfile().withHealthProbe(new ApiEntityReference().withId("xgcp")) - .withNetworkInterfaceConfigurations(Arrays.asList( - new VirtualMachineScaleSetNetworkConfiguration().withName("maajrmvdjwzrlo") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties() - .withPrimary(true) - .withEnableAcceleratedNetworking(false) - .withDisableTcpStateTracking(false) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId("ctbzaq")) - .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() - .withDnsServers(Arrays.asList("cbkbfkg"))) - .withIpConfigurations(Arrays.asList( - new VirtualMachineScaleSetIPConfiguration().withName("dkexxppofm") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), - new VirtualMachineScaleSetIPConfiguration().withName("x") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()))) - .withEnableIPForwarding(false) - .withDeleteOption(DeleteOptions.DETACH) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A4)), - new VirtualMachineScaleSetNetworkConfiguration().withName("jjxhvpmo") - .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false) - .withEnableAcceleratedNetworking(false) - .withDisableTcpStateTracking(false) - .withEnableFpga(true) - .withNetworkSecurityGroup(new SubResource().withId("jnxqbzvddntwn")) - .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings().withDnsServers( - Arrays.asList("btwnpzaoqvuhrhcf", "cyddglmjthjqk", "pyeicxm", "ciwqvhk"))) - .withIpConfigurations(Arrays.asList( - new VirtualMachineScaleSetIPConfiguration().withName("xuigdtopbobj") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), - new VirtualMachineScaleSetIPConfiguration().withName("hm") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), - new VirtualMachineScaleSetIPConfiguration().withName("u") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), - new VirtualMachineScaleSetIPConfiguration().withName("a") - .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()))) - .withEnableIPForwarding(false) - .withDeleteOption(DeleteOptions.DETACH) - .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS) - .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)))) - .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE); + VirtualMachineScaleSetNetworkProfile model = new VirtualMachineScaleSetNetworkProfile() + .withHealthProbe(new ApiEntityReference().withId("lhbxxhejjzzvdud")) + .withNetworkInterfaceConfigurations(Arrays.asList( + new VirtualMachineScaleSetNetworkConfiguration().withName("slfhotwm") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(false) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId("cftadeh")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("yfsoppu", "uesnzwdejbavo", "xzdmohctb", "vudwx"))) + .withIpConfigurations(Arrays.asList( + new VirtualMachineScaleSetIPConfiguration().withName("dnvowg") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("jugwdkcglhsl") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()))) + .withEnableIPForwarding(true) + .withDeleteOption(DeleteOptions.DELETE) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.FLOATING) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A4)), + new VirtualMachineScaleSetNetworkConfiguration().withName("ixhbkuofqweykhm") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false) + .withEnableAcceleratedNetworking(false) + .withDisableTcpStateTracking(false) + .withEnableFpga(false) + .withNetworkSecurityGroup(new SubResource().withId("bcibvyvdcsitynn")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings() + .withDnsServers(Arrays.asList("ectehf", "qsc", "eypvhezrkg"))) + .withIpConfigurations(Arrays.asList( + new VirtualMachineScaleSetIPConfiguration().withName("c") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("efovgmk") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("leyyvx") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()))) + .withEnableIPForwarding(false) + .withDeleteOption(DeleteOptions.DETACH) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A8)), + new VirtualMachineScaleSetNetworkConfiguration().withName("ngj") + .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(true) + .withEnableAcceleratedNetworking(true) + .withDisableTcpStateTracking(true) + .withEnableFpga(true) + .withNetworkSecurityGroup(new SubResource().withId("daj")) + .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings().withDnsServers( + Arrays.asList("ounqecano", "eupfhyhltrpm", "pjmcmatuokthfuiu", "odsfcpkvxodpuozm"))) + .withIpConfigurations(Arrays.asList( + new VirtualMachineScaleSetIPConfiguration().withName("ydagfuaxbe") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("iu") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("ktwh") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()), + new VirtualMachineScaleSetIPConfiguration().withName("xw") + .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()))) + .withEnableIPForwarding(false) + .withDeleteOption(DeleteOptions.DETACH) + .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.FLOATING) + .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A4)))) + .withNetworkApiVersion(NetworkApiVersion.V2020_11_01); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkProfile.class); - Assertions.assertEquals("xgcp", model.healthProbe().id()); - Assertions.assertEquals("maajrmvdjwzrlo", model.networkInterfaceConfigurations().get(0).name()); - Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().primary()); - Assertions.assertEquals(false, + Assertions.assertEquals("lhbxxhejjzzvdud", model.healthProbe().id()); + Assertions.assertEquals("slfhotwm", model.networkInterfaceConfigurations().get(0).name()); + Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().primary()); + Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableAcceleratedNetworking()); Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().disableTcpStateTracking()); Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableFpga()); - Assertions.assertEquals("ctbzaq", + Assertions.assertEquals("cftadeh", model.networkInterfaceConfigurations().get(0).properties().networkSecurityGroup().id()); - Assertions.assertEquals("cbkbfkg", + Assertions.assertEquals("yfsoppu", model.networkInterfaceConfigurations().get(0).properties().dnsSettings().dnsServers().get(0)); - Assertions.assertEquals("dkexxppofm", + Assertions.assertEquals("dnvowg", model.networkInterfaceConfigurations().get(0).properties().ipConfigurations().get(0).name()); - Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding()); - Assertions.assertEquals(DeleteOptions.DETACH, + Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding()); + Assertions.assertEquals(DeleteOptions.DELETE, model.networkInterfaceConfigurations().get(0).properties().deleteOption()); - Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS, + Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.FLOATING, model.networkInterfaceConfigurations().get(0).properties().auxiliaryMode()); Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A4, model.networkInterfaceConfigurations().get(0).properties().auxiliarySku()); - Assertions.assertEquals(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE, model.networkApiVersion()); + Assertions.assertEquals(NetworkApiVersion.V2020_11_01, model.networkApiVersion()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetOSDiskTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetOSDiskTests.java index 45de967495f2b..7171ab7644de2 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetOSDiskTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetOSDiskTests.java @@ -15,10 +15,10 @@ import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.SecurityEncryptionTypes; import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; +import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import com.azure.resourcemanager.computefleet.models.VirtualHardDisk; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetManagedDiskParameters; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetOSDisk; -import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -26,62 +26,62 @@ public final class VirtualMachineScaleSetOSDiskTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetOSDisk model = BinaryData.fromString( - "{\"name\":\"ehzzvypyqrim\",\"caching\":\"None\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Restore\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"CacheDisk\"},\"diskSizeGB\":1230254023,\"osType\":\"Windows\",\"image\":{\"uri\":\"xhcr\"},\"vhdContainers\":[\"hjtckwhd\",\"oifiyipjxsqwpgr\"],\"managedDisk\":{\"storageAccountType\":\"StandardSSD_ZRS\",\"diskEncryptionSet\":{\"id\":\"cjxvsnbyxqab\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"ysh\"}}},\"deleteOption\":\"Delete\"}") + "{\"name\":\"bowsk\",\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Copy\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"NvmeDisk\"},\"diskSizeGB\":88277768,\"osType\":\"Windows\",\"image\":{\"uri\":\"ndrvynhzg\"},\"vhdContainers\":[\"rcgyn\"],\"managedDisk\":{\"storageAccountType\":\"Premium_LRS\",\"diskEncryptionSet\":{\"id\":\"fvm\"},\"securityProfile\":{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"xlzevgbmqjqabcy\"}}},\"deleteOption\":\"Detach\"}") .toObject(VirtualMachineScaleSetOSDisk.class); - Assertions.assertEquals("ehzzvypyqrim", model.name()); - Assertions.assertEquals(CachingTypes.NONE, model.caching()); - Assertions.assertEquals(false, model.writeAcceleratorEnabled()); - Assertions.assertEquals(DiskCreateOptionTypes.RESTORE, model.createOption()); + Assertions.assertEquals("bowsk", model.name()); + Assertions.assertEquals(CachingTypes.READ_WRITE, model.caching()); + Assertions.assertEquals(true, model.writeAcceleratorEnabled()); + Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.createOption()); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.diffDiskSettings().option()); - Assertions.assertEquals(DiffDiskPlacement.CACHE_DISK, model.diffDiskSettings().placement()); - Assertions.assertEquals(1230254023, model.diskSizeGB()); + Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.diffDiskSettings().placement()); + Assertions.assertEquals(88277768, model.diskSizeGB()); Assertions.assertEquals(OperatingSystemTypes.WINDOWS, model.osType()); - Assertions.assertEquals("xhcr", model.image().uri()); - Assertions.assertEquals("hjtckwhd", model.vhdContainers().get(0)); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS, model.managedDisk().storageAccountType()); - Assertions.assertEquals("cjxvsnbyxqab", model.managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, + Assertions.assertEquals("ndrvynhzg", model.image().uri()); + Assertions.assertEquals("rcgyn", model.vhdContainers().get(0)); + Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType()); + Assertions.assertEquals("fvm", model.managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("ysh", model.managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption()); + Assertions.assertEquals("xlzevgbmqjqabcy", model.managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, model.deleteOption()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VirtualMachineScaleSetOSDisk model = new VirtualMachineScaleSetOSDisk().withName("ehzzvypyqrim") - .withCaching(CachingTypes.NONE) - .withWriteAcceleratorEnabled(false) - .withCreateOption(DiskCreateOptionTypes.RESTORE) - .withDiffDiskSettings( - new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.CACHE_DISK)) - .withDiskSizeGB(1230254023) - .withOsType(OperatingSystemTypes.WINDOWS) - .withImage(new VirtualHardDisk().withUri("xhcr")) - .withVhdContainers(Arrays.asList("hjtckwhd", "oifiyipjxsqwpgr")) - .withManagedDisk( - new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_ZRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("cjxvsnbyxqab")) + VirtualMachineScaleSetOSDisk model + = new VirtualMachineScaleSetOSDisk().withName("bowsk") + .withCaching(CachingTypes.READ_WRITE) + .withWriteAcceleratorEnabled(true) + .withCreateOption(DiskCreateOptionTypes.COPY) + .withDiffDiskSettings( + new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.NVME_DISK)) + .withDiskSizeGB(88277768) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri("ndrvynhzg")) + .withVhdContainers(Arrays.asList("rcgyn")) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("fvm")) .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("ysh")))) - .withDeleteOption(DiskDeleteOptionTypes.DELETE); + .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("xlzevgbmqjqabcy")))) + .withDeleteOption(DiskDeleteOptionTypes.DETACH); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetOSDisk.class); - Assertions.assertEquals("ehzzvypyqrim", model.name()); - Assertions.assertEquals(CachingTypes.NONE, model.caching()); - Assertions.assertEquals(false, model.writeAcceleratorEnabled()); - Assertions.assertEquals(DiskCreateOptionTypes.RESTORE, model.createOption()); + Assertions.assertEquals("bowsk", model.name()); + Assertions.assertEquals(CachingTypes.READ_WRITE, model.caching()); + Assertions.assertEquals(true, model.writeAcceleratorEnabled()); + Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.createOption()); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.diffDiskSettings().option()); - Assertions.assertEquals(DiffDiskPlacement.CACHE_DISK, model.diffDiskSettings().placement()); - Assertions.assertEquals(1230254023, model.diskSizeGB()); + Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.diffDiskSettings().placement()); + Assertions.assertEquals(88277768, model.diskSizeGB()); Assertions.assertEquals(OperatingSystemTypes.WINDOWS, model.osType()); - Assertions.assertEquals("xhcr", model.image().uri()); - Assertions.assertEquals("hjtckwhd", model.vhdContainers().get(0)); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS, model.managedDisk().storageAccountType()); - Assertions.assertEquals("cjxvsnbyxqab", model.managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, + Assertions.assertEquals("ndrvynhzg", model.image().uri()); + Assertions.assertEquals("rcgyn", model.vhdContainers().get(0)); + Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType()); + Assertions.assertEquals("fvm", model.managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("ysh", model.managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption()); + Assertions.assertEquals("xlzevgbmqjqabcy", model.managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, model.deleteOption()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsTests.java index 2d29acbfb6796..1f6f4d4e7f357 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsTests.java @@ -12,21 +12,21 @@ public final class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings model = BinaryData - .fromString("{\"domainNameLabel\":\"plwzbhvgyugu\",\"domainNameLabelScope\":\"ResourceGroupReuse\"}") - .toObject(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.class); - Assertions.assertEquals("plwzbhvgyugu", model.domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE, model.domainNameLabelScope()); + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings model + = BinaryData.fromString("{\"domainNameLabel\":\"ghxpkdw\",\"domainNameLabelScope\":\"NoReuse\"}") + .toObject(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.class); + Assertions.assertEquals("ghxpkdw", model.domainNameLabel()); + Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.domainNameLabelScope()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings model - = new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("plwzbhvgyugu") - .withDomainNameLabelScope(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE); + = new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("ghxpkdw") + .withDomainNameLabelScope(DomainNameLabelScopeTypes.NO_REUSE); model = BinaryData.fromObject(model) .toObject(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.class); - Assertions.assertEquals("plwzbhvgyugu", model.domainNameLabel()); - Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE, model.domainNameLabelScope()); + Assertions.assertEquals("ghxpkdw", model.domainNameLabel()); + Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.domainNameLabelScope()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesTests.java index 995a99b08c5f4..df5f58c8b258b 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesTests.java @@ -19,14 +19,14 @@ public final class VirtualMachineScaleSetPublicIPAddressConfigurationPropertiesT @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetPublicIPAddressConfigurationProperties model = BinaryData.fromString( - "{\"idleTimeoutInMinutes\":2022437290,\"dnsSettings\":{\"domainNameLabel\":\"niwdjsw\",\"domainNameLabelScope\":\"TenantReuse\"},\"ipTags\":[{\"ipTagType\":\"gnxytxhpzxbz\",\"tag\":\"zabglcuhxwt\"}],\"publicIPPrefix\":{\"id\":\"qik\"},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Delete\"}") + "{\"idleTimeoutInMinutes\":1074996435,\"dnsSettings\":{\"domainNameLabel\":\"zt\",\"domainNameLabelScope\":\"TenantReuse\"},\"ipTags\":[{\"ipTagType\":\"xytxhpzxbz\",\"tag\":\"zabglcuhxwt\"},{\"ipTagType\":\"yqiklbbovplwzb\",\"tag\":\"gy\"},{\"ipTagType\":\"uosvmkfssxqukk\",\"tag\":\"l\"}],\"publicIPPrefix\":{\"id\":\"sxnkjzkdeslpvlo\"},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Delete\"}") .toObject(VirtualMachineScaleSetPublicIPAddressConfigurationProperties.class); - Assertions.assertEquals(2022437290, model.idleTimeoutInMinutes()); - Assertions.assertEquals("niwdjsw", model.dnsSettings().domainNameLabel()); + Assertions.assertEquals(1074996435, model.idleTimeoutInMinutes()); + Assertions.assertEquals("zt", model.dnsSettings().domainNameLabel()); Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE, model.dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("gnxytxhpzxbz", model.ipTags().get(0).ipTagType()); + Assertions.assertEquals("xytxhpzxbz", model.ipTags().get(0).ipTagType()); Assertions.assertEquals("zabglcuhxwt", model.ipTags().get(0).tag()); - Assertions.assertEquals("qik", model.publicIPPrefix().id()); + Assertions.assertEquals("sxnkjzkdeslpvlo", model.publicIPPrefix().id()); Assertions.assertEquals(IPVersion.IPV4, model.publicIPAddressVersion()); Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption()); } @@ -34,23 +34,25 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetPublicIPAddressConfigurationProperties model - = new VirtualMachineScaleSetPublicIPAddressConfigurationProperties().withIdleTimeoutInMinutes(2022437290) + = new VirtualMachineScaleSetPublicIPAddressConfigurationProperties().withIdleTimeoutInMinutes(1074996435) .withDnsSettings( - new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("niwdjsw") + new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("zt") .withDomainNameLabelScope(DomainNameLabelScopeTypes.TENANT_REUSE)) - .withIpTags(Arrays - .asList(new VirtualMachineScaleSetIpTag().withIpTagType("gnxytxhpzxbz").withTag("zabglcuhxwt"))) - .withPublicIPPrefix(new SubResource().withId("qik")) + .withIpTags( + Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("xytxhpzxbz").withTag("zabglcuhxwt"), + new VirtualMachineScaleSetIpTag().withIpTagType("yqiklbbovplwzb").withTag("gy"), + new VirtualMachineScaleSetIpTag().withIpTagType("uosvmkfssxqukk").withTag("l"))) + .withPublicIPPrefix(new SubResource().withId("sxnkjzkdeslpvlo")) .withPublicIPAddressVersion(IPVersion.IPV4) .withDeleteOption(DeleteOptions.DELETE); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetPublicIPAddressConfigurationProperties.class); - Assertions.assertEquals(2022437290, model.idleTimeoutInMinutes()); - Assertions.assertEquals("niwdjsw", model.dnsSettings().domainNameLabel()); + Assertions.assertEquals(1074996435, model.idleTimeoutInMinutes()); + Assertions.assertEquals("zt", model.dnsSettings().domainNameLabel()); Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE, model.dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("gnxytxhpzxbz", model.ipTags().get(0).ipTagType()); + Assertions.assertEquals("xytxhpzxbz", model.ipTags().get(0).ipTagType()); Assertions.assertEquals("zabglcuhxwt", model.ipTags().get(0).tag()); - Assertions.assertEquals("qik", model.publicIPPrefix().id()); + Assertions.assertEquals("sxnkjzkdeslpvlo", model.publicIPPrefix().id()); Assertions.assertEquals(IPVersion.IPV4, model.publicIPAddressVersion()); Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption()); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationTests.java index d5e0125624edb..fe0639a29c1aa 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetPublicIPAddressConfigurationTests.java @@ -23,18 +23,18 @@ public final class VirtualMachineScaleSetPublicIPAddressConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetPublicIPAddressConfiguration model = BinaryData.fromString( - "{\"name\":\"henbtkcxywnytn\",\"properties\":{\"idleTimeoutInMinutes\":815551540,\"dnsSettings\":{\"domainNameLabel\":\"qidybyx\",\"domainNameLabelScope\":\"NoReuse\"},\"ipTags\":[{\"ipTagType\":\"aaxdbabphlwrq\",\"tag\":\"ktsthsucocmny\"},{\"ipTagType\":\"zt\",\"tag\":\"twwrqp\"},{\"ipTagType\":\"dckzywbiexz\",\"tag\":\"yueaxibxujwb\"}],\"publicIPPrefix\":{\"id\":\"almuzyoxaepdkzja\"},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}}") + "{\"name\":\"cocmnyyaztt\",\"properties\":{\"idleTimeoutInMinutes\":1396816712,\"dnsSettings\":{\"domainNameLabel\":\"qpuedckzywbiex\",\"domainNameLabelScope\":\"NoReuse\"},\"ipTags\":[{\"ipTagType\":\"axibxujw\",\"tag\":\"qwalmuzyoxaepd\"}],\"publicIPPrefix\":{\"id\":\"ancuxrhd\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}}") .toObject(VirtualMachineScaleSetPublicIPAddressConfiguration.class); - Assertions.assertEquals("henbtkcxywnytn", model.name()); - Assertions.assertEquals(815551540, model.properties().idleTimeoutInMinutes()); - Assertions.assertEquals("qidybyx", model.properties().dnsSettings().domainNameLabel()); + Assertions.assertEquals("cocmnyyaztt", model.name()); + Assertions.assertEquals(1396816712, model.properties().idleTimeoutInMinutes()); + Assertions.assertEquals("qpuedckzywbiex", model.properties().dnsSettings().domainNameLabel()); Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("aaxdbabphlwrq", model.properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("ktsthsucocmny", model.properties().ipTags().get(0).tag()); - Assertions.assertEquals("almuzyoxaepdkzja", model.properties().publicIPPrefix().id()); - Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption()); + Assertions.assertEquals("axibxujw", model.properties().ipTags().get(0).ipTagType()); + Assertions.assertEquals("qwalmuzyoxaepd", model.properties().ipTags().get(0).tag()); + Assertions.assertEquals("ancuxrhd", model.properties().publicIPPrefix().id()); + Assertions.assertEquals(IPVersion.IPV6, model.properties().publicIPAddressVersion()); + Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption()); Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.sku().tier()); } @@ -42,32 +42,30 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetPublicIPAddressConfiguration model - = new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("henbtkcxywnytn") + = new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("cocmnyyaztt") .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties() - .withIdleTimeoutInMinutes(815551540) + .withIdleTimeoutInMinutes(1396816712) .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings() - .withDomainNameLabel("qidybyx") + .withDomainNameLabel("qpuedckzywbiex") .withDomainNameLabelScope(DomainNameLabelScopeTypes.NO_REUSE)) - .withIpTags(Arrays.asList( - new VirtualMachineScaleSetIpTag().withIpTagType("aaxdbabphlwrq").withTag("ktsthsucocmny"), - new VirtualMachineScaleSetIpTag().withIpTagType("zt").withTag("twwrqp"), - new VirtualMachineScaleSetIpTag().withIpTagType("dckzywbiexz").withTag("yueaxibxujwb"))) - .withPublicIPPrefix(new SubResource().withId("almuzyoxaepdkzja")) - .withPublicIPAddressVersion(IPVersion.IPV4) - .withDeleteOption(DeleteOptions.DETACH)) + .withIpTags(Arrays + .asList(new VirtualMachineScaleSetIpTag().withIpTagType("axibxujw").withTag("qwalmuzyoxaepd"))) + .withPublicIPPrefix(new SubResource().withId("ancuxrhd")) + .withPublicIPAddressVersion(IPVersion.IPV6) + .withDeleteOption(DeleteOptions.DELETE)) .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD) .withTier(PublicIPAddressSkuTier.GLOBAL)); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetPublicIPAddressConfiguration.class); - Assertions.assertEquals("henbtkcxywnytn", model.name()); - Assertions.assertEquals(815551540, model.properties().idleTimeoutInMinutes()); - Assertions.assertEquals("qidybyx", model.properties().dnsSettings().domainNameLabel()); + Assertions.assertEquals("cocmnyyaztt", model.name()); + Assertions.assertEquals(1396816712, model.properties().idleTimeoutInMinutes()); + Assertions.assertEquals("qpuedckzywbiex", model.properties().dnsSettings().domainNameLabel()); Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE, model.properties().dnsSettings().domainNameLabelScope()); - Assertions.assertEquals("aaxdbabphlwrq", model.properties().ipTags().get(0).ipTagType()); - Assertions.assertEquals("ktsthsucocmny", model.properties().ipTags().get(0).tag()); - Assertions.assertEquals("almuzyoxaepdkzja", model.properties().publicIPPrefix().id()); - Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressVersion()); - Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption()); + Assertions.assertEquals("axibxujw", model.properties().ipTags().get(0).ipTagType()); + Assertions.assertEquals("qwalmuzyoxaepd", model.properties().ipTags().get(0).tag()); + Assertions.assertEquals("ancuxrhd", model.properties().publicIPPrefix().id()); + Assertions.assertEquals(IPVersion.IPV6, model.properties().publicIPAddressVersion()); + Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption()); Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.sku().name()); Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.sku().tier()); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetStorageProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetStorageProfileTests.java index 22901145964f8..8a94b80c1383d 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetStorageProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VirtualMachineScaleSetStorageProfileTests.java @@ -17,12 +17,12 @@ import com.azure.resourcemanager.computefleet.models.OperatingSystemTypes; import com.azure.resourcemanager.computefleet.models.SecurityEncryptionTypes; import com.azure.resourcemanager.computefleet.models.StorageAccountTypes; +import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import com.azure.resourcemanager.computefleet.models.VirtualHardDisk; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetDataDisk; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetManagedDiskParameters; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetOSDisk; import com.azure.resourcemanager.computefleet.models.VirtualMachineScaleSetStorageProfile; -import com.azure.resourcemanager.computefleet.models.VMDiskSecurityProfile; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -30,47 +30,47 @@ public final class VirtualMachineScaleSetStorageProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachineScaleSetStorageProfile model = BinaryData.fromString( - "{\"imageReference\":{\"id\":\"kgfg\",\"publisher\":\"madgakeqsrxyb\",\"offer\":\"qedqytbciqfoufl\",\"sku\":\"nkzsmodmglou\",\"version\":\"b\",\"exactVersion\":\"tmut\",\"sharedGalleryImageId\":\"qktapspwgcuert\",\"communityGalleryImageId\":\"kdosvqw\"},\"osDisk\":{\"name\":\"dgbb\",\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Copy\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"NvmeDisk\"},\"diskSizeGB\":1777353299,\"osType\":\"Linux\",\"image\":{\"uri\":\"qrolfpf\"},\"vhdContainers\":[\"lgbquxig\",\"yjgzjaoyfhrtxiln\",\"rkujy\",\"vlejuvfqa\"],\"managedDisk\":{\"storageAccountType\":\"StandardSSD_ZRS\",\"diskEncryptionSet\":{\"id\":\"jkcpr\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"jvtbvpyss\"}}},\"deleteOption\":\"Delete\"},\"dataDisks\":[{\"name\":\"qguhmuo\",\"lun\":84876236,\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Copy\",\"diskSizeGB\":1207198504,\"managedDisk\":{\"storageAccountType\":\"UltraSSD_LRS\",\"diskEncryptionSet\":{\"id\":\"nwui\"},\"securityProfile\":{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"fizuckyf\"}}},\"diskIOPSReadWrite\":1201040082291654922,\"diskMBpsReadWrite\":3342132991657632527,\"deleteOption\":\"Delete\"}],\"diskControllerType\":\"NVMe\"}") + "{\"imageReference\":{\"id\":\"btoqcjmkljavbqid\",\"publisher\":\"ajzyul\",\"offer\":\"u\",\"sku\":\"krlkhbzhfepg\",\"version\":\"qex\",\"exactVersion\":\"ocxscpaierhhbcs\",\"sharedGalleryImageId\":\"ummajtjaod\",\"communityGalleryImageId\":\"bnbdxkqpxokajion\"},\"osDisk\":{\"name\":\"ex\",\"caching\":\"ReadOnly\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Copy\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"NvmeDisk\"},\"diskSizeGB\":1860899173,\"osType\":\"Windows\",\"image\":{\"uri\":\"djwzrlov\"},\"vhdContainers\":[\"whijcoejctbza\",\"s\",\"sycbkbfk\",\"ukdkexxppofmxa\"],\"managedDisk\":{\"storageAccountType\":\"Standard_LRS\",\"diskEncryptionSet\":{\"id\":\"ddtocjjxhvp\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"dzxibqeojnxqbzvd\"}}},\"deleteOption\":\"Delete\"},\"dataDisks\":[{\"name\":\"eic\",\"lun\":1638817627,\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Restore\",\"diskSizeGB\":2122151049,\"managedDisk\":{\"storageAccountType\":\"StandardSSD_LRS\",\"diskEncryptionSet\":{\"id\":\"cffcyddglmj\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"pyeicxm\"}}},\"diskIOPSReadWrite\":7242144596366132757,\"diskMBpsReadWrite\":6968905495959747775,\"deleteOption\":\"Delete\"}],\"diskControllerType\":\"NVMe\"}") .toObject(VirtualMachineScaleSetStorageProfile.class); - Assertions.assertEquals("kgfg", model.imageReference().id()); - Assertions.assertEquals("madgakeqsrxyb", model.imageReference().publisher()); - Assertions.assertEquals("qedqytbciqfoufl", model.imageReference().offer()); - Assertions.assertEquals("nkzsmodmglou", model.imageReference().sku()); - Assertions.assertEquals("b", model.imageReference().version()); - Assertions.assertEquals("qktapspwgcuert", model.imageReference().sharedGalleryImageId()); - Assertions.assertEquals("kdosvqw", model.imageReference().communityGalleryImageId()); - Assertions.assertEquals("dgbb", model.osDisk().name()); - Assertions.assertEquals(CachingTypes.READ_WRITE, model.osDisk().caching()); - Assertions.assertEquals(true, model.osDisk().writeAcceleratorEnabled()); + Assertions.assertEquals("btoqcjmkljavbqid", model.imageReference().id()); + Assertions.assertEquals("ajzyul", model.imageReference().publisher()); + Assertions.assertEquals("u", model.imageReference().offer()); + Assertions.assertEquals("krlkhbzhfepg", model.imageReference().sku()); + Assertions.assertEquals("qex", model.imageReference().version()); + Assertions.assertEquals("ummajtjaod", model.imageReference().sharedGalleryImageId()); + Assertions.assertEquals("bnbdxkqpxokajion", model.imageReference().communityGalleryImageId()); + Assertions.assertEquals("ex", model.osDisk().name()); + Assertions.assertEquals(CachingTypes.READ_ONLY, model.osDisk().caching()); + Assertions.assertEquals(false, model.osDisk().writeAcceleratorEnabled()); Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.osDisk().createOption()); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.osDisk().diffDiskSettings().option()); Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.osDisk().diffDiskSettings().placement()); - Assertions.assertEquals(1777353299, model.osDisk().diskSizeGB()); - Assertions.assertEquals(OperatingSystemTypes.LINUX, model.osDisk().osType()); - Assertions.assertEquals("qrolfpf", model.osDisk().image().uri()); - Assertions.assertEquals("lgbquxig", model.osDisk().vhdContainers().get(0)); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS, - model.osDisk().managedDisk().storageAccountType()); - Assertions.assertEquals("jkcpr", model.osDisk().managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(1860899173, model.osDisk().diskSizeGB()); + Assertions.assertEquals(OperatingSystemTypes.WINDOWS, model.osDisk().osType()); + Assertions.assertEquals("djwzrlov", model.osDisk().image().uri()); + Assertions.assertEquals("whijcoejctbza", model.osDisk().vhdContainers().get(0)); + Assertions.assertEquals(StorageAccountTypes.STANDARD_LRS, model.osDisk().managedDisk().storageAccountType()); + Assertions.assertEquals("ddtocjjxhvp", model.osDisk().managedDisk().diskEncryptionSet().id()); Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.osDisk().managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("jvtbvpyss", model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals("dzxibqeojnxqbzvd", + model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals("qguhmuo", model.dataDisks().get(0).name()); - Assertions.assertEquals(84876236, model.dataDisks().get(0).lun()); + Assertions.assertEquals("eic", model.dataDisks().get(0).name()); + Assertions.assertEquals(1638817627, model.dataDisks().get(0).lun()); Assertions.assertEquals(CachingTypes.READ_WRITE, model.dataDisks().get(0).caching()); - Assertions.assertEquals(true, model.dataDisks().get(0).writeAcceleratorEnabled()); - Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.dataDisks().get(0).createOption()); - Assertions.assertEquals(1207198504, model.dataDisks().get(0).diskSizeGB()); - Assertions.assertEquals(StorageAccountTypes.ULTRA_SSD_LRS, + Assertions.assertEquals(false, model.dataDisks().get(0).writeAcceleratorEnabled()); + Assertions.assertEquals(DiskCreateOptionTypes.RESTORE, model.dataDisks().get(0).createOption()); + Assertions.assertEquals(2122151049, model.dataDisks().get(0).diskSizeGB()); + Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_LRS, model.dataDisks().get(0).managedDisk().storageAccountType()); - Assertions.assertEquals("nwui", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, + Assertions.assertEquals("cffcyddglmj", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.dataDisks().get(0).managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("fizuckyf", + Assertions.assertEquals("pyeicxm", model.dataDisks().get(0).managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(1201040082291654922L, model.dataDisks().get(0).diskIOPSReadWrite()); - Assertions.assertEquals(3342132991657632527L, model.dataDisks().get(0).diskMBpsReadWrite()); + Assertions.assertEquals(7242144596366132757L, model.dataDisks().get(0).diskIOPSReadWrite()); + Assertions.assertEquals(6968905495959747775L, model.dataDisks().get(0).diskMBpsReadWrite()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.dataDisks().get(0).deleteOption()); Assertions.assertEquals(DiskControllerTypes.NVME, model.diskControllerType()); } @@ -78,86 +78,86 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachineScaleSetStorageProfile model = new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withId("kgfg") - .withPublisher("madgakeqsrxyb") - .withOffer("qedqytbciqfoufl") - .withSku("nkzsmodmglou") - .withVersion("b") - .withSharedGalleryImageId("qktapspwgcuert") - .withCommunityGalleryImageId("kdosvqw")) - .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("dgbb") - .withCaching(CachingTypes.READ_WRITE) - .withWriteAcceleratorEnabled(true) + .withImageReference(new ImageReference().withId("btoqcjmkljavbqid") + .withPublisher("ajzyul") + .withOffer("u") + .withSku("krlkhbzhfepg") + .withVersion("qex") + .withSharedGalleryImageId("ummajtjaod") + .withCommunityGalleryImageId("bnbdxkqpxokajion")) + .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("ex") + .withCaching(CachingTypes.READ_ONLY) + .withWriteAcceleratorEnabled(false) .withCreateOption(DiskCreateOptionTypes.COPY) .withDiffDiskSettings( new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.NVME_DISK)) - .withDiskSizeGB(1777353299) - .withOsType(OperatingSystemTypes.LINUX) - .withImage(new VirtualHardDisk().withUri("qrolfpf")) - .withVhdContainers(Arrays.asList("lgbquxig", "yjgzjaoyfhrtxiln", "rkujy", "vlejuvfqa")) + .withDiskSizeGB(1860899173) + .withOsType(OperatingSystemTypes.WINDOWS) + .withImage(new VirtualHardDisk().withUri("djwzrlov")) + .withVhdContainers(Arrays.asList("whijcoejctbza", "s", "sycbkbfk", "ukdkexxppofmxa")) .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_ZRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("jkcpr")) + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("ddtocjjxhvp")) .withSecurityProfile(new VMDiskSecurityProfile() .withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("jvtbvpyss")))) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("dzxibqeojnxqbzvd")))) .withDeleteOption(DiskDeleteOptionTypes.DELETE)) - .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk().withName("qguhmuo") - .withLun(84876236) + .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk().withName("eic") + .withLun(1638817627) .withCaching(CachingTypes.READ_WRITE) - .withWriteAcceleratorEnabled(true) - .withCreateOption(DiskCreateOptionTypes.COPY) - .withDiskSizeGB(1207198504) + .withWriteAcceleratorEnabled(false) + .withCreateOption(DiskCreateOptionTypes.RESTORE) + .withDiskSizeGB(2122151049) .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.ULTRA_SSD_LRS) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("nwui")) + .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_LRS) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("cffcyddglmj")) .withSecurityProfile(new VMDiskSecurityProfile() - .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY) - .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("fizuckyf")))) - .withDiskIOPSReadWrite(1201040082291654922L) - .withDiskMBpsReadWrite(3342132991657632527L) + .withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM) + .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("pyeicxm")))) + .withDiskIOPSReadWrite(7242144596366132757L) + .withDiskMBpsReadWrite(6968905495959747775L) .withDeleteOption(DiskDeleteOptionTypes.DELETE))) .withDiskControllerType(DiskControllerTypes.NVME); model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetStorageProfile.class); - Assertions.assertEquals("kgfg", model.imageReference().id()); - Assertions.assertEquals("madgakeqsrxyb", model.imageReference().publisher()); - Assertions.assertEquals("qedqytbciqfoufl", model.imageReference().offer()); - Assertions.assertEquals("nkzsmodmglou", model.imageReference().sku()); - Assertions.assertEquals("b", model.imageReference().version()); - Assertions.assertEquals("qktapspwgcuert", model.imageReference().sharedGalleryImageId()); - Assertions.assertEquals("kdosvqw", model.imageReference().communityGalleryImageId()); - Assertions.assertEquals("dgbb", model.osDisk().name()); - Assertions.assertEquals(CachingTypes.READ_WRITE, model.osDisk().caching()); - Assertions.assertEquals(true, model.osDisk().writeAcceleratorEnabled()); + Assertions.assertEquals("btoqcjmkljavbqid", model.imageReference().id()); + Assertions.assertEquals("ajzyul", model.imageReference().publisher()); + Assertions.assertEquals("u", model.imageReference().offer()); + Assertions.assertEquals("krlkhbzhfepg", model.imageReference().sku()); + Assertions.assertEquals("qex", model.imageReference().version()); + Assertions.assertEquals("ummajtjaod", model.imageReference().sharedGalleryImageId()); + Assertions.assertEquals("bnbdxkqpxokajion", model.imageReference().communityGalleryImageId()); + Assertions.assertEquals("ex", model.osDisk().name()); + Assertions.assertEquals(CachingTypes.READ_ONLY, model.osDisk().caching()); + Assertions.assertEquals(false, model.osDisk().writeAcceleratorEnabled()); Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.osDisk().createOption()); Assertions.assertEquals(DiffDiskOptions.LOCAL, model.osDisk().diffDiskSettings().option()); Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.osDisk().diffDiskSettings().placement()); - Assertions.assertEquals(1777353299, model.osDisk().diskSizeGB()); - Assertions.assertEquals(OperatingSystemTypes.LINUX, model.osDisk().osType()); - Assertions.assertEquals("qrolfpf", model.osDisk().image().uri()); - Assertions.assertEquals("lgbquxig", model.osDisk().vhdContainers().get(0)); - Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS, - model.osDisk().managedDisk().storageAccountType()); - Assertions.assertEquals("jkcpr", model.osDisk().managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(1860899173, model.osDisk().diskSizeGB()); + Assertions.assertEquals(OperatingSystemTypes.WINDOWS, model.osDisk().osType()); + Assertions.assertEquals("djwzrlov", model.osDisk().image().uri()); + Assertions.assertEquals("whijcoejctbza", model.osDisk().vhdContainers().get(0)); + Assertions.assertEquals(StorageAccountTypes.STANDARD_LRS, model.osDisk().managedDisk().storageAccountType()); + Assertions.assertEquals("ddtocjjxhvp", model.osDisk().managedDisk().diskEncryptionSet().id()); Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.osDisk().managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("jvtbvpyss", model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id()); + Assertions.assertEquals("dzxibqeojnxqbzvd", + model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals("qguhmuo", model.dataDisks().get(0).name()); - Assertions.assertEquals(84876236, model.dataDisks().get(0).lun()); + Assertions.assertEquals("eic", model.dataDisks().get(0).name()); + Assertions.assertEquals(1638817627, model.dataDisks().get(0).lun()); Assertions.assertEquals(CachingTypes.READ_WRITE, model.dataDisks().get(0).caching()); - Assertions.assertEquals(true, model.dataDisks().get(0).writeAcceleratorEnabled()); - Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.dataDisks().get(0).createOption()); - Assertions.assertEquals(1207198504, model.dataDisks().get(0).diskSizeGB()); - Assertions.assertEquals(StorageAccountTypes.ULTRA_SSD_LRS, + Assertions.assertEquals(false, model.dataDisks().get(0).writeAcceleratorEnabled()); + Assertions.assertEquals(DiskCreateOptionTypes.RESTORE, model.dataDisks().get(0).createOption()); + Assertions.assertEquals(2122151049, model.dataDisks().get(0).diskSizeGB()); + Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_LRS, model.dataDisks().get(0).managedDisk().storageAccountType()); - Assertions.assertEquals("nwui", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id()); - Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, + Assertions.assertEquals("cffcyddglmj", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id()); + Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.dataDisks().get(0).managedDisk().securityProfile().securityEncryptionType()); - Assertions.assertEquals("fizuckyf", + Assertions.assertEquals("pyeicxm", model.dataDisks().get(0).managedDisk().securityProfile().diskEncryptionSet().id()); - Assertions.assertEquals(1201040082291654922L, model.dataDisks().get(0).diskIOPSReadWrite()); - Assertions.assertEquals(3342132991657632527L, model.dataDisks().get(0).diskMBpsReadWrite()); + Assertions.assertEquals(7242144596366132757L, model.dataDisks().get(0).diskIOPSReadWrite()); + Assertions.assertEquals(6968905495959747775L, model.dataDisks().get(0).diskMBpsReadWrite()); Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.dataDisks().get(0).deleteOption()); Assertions.assertEquals(DiskControllerTypes.NVME, model.diskControllerType()); } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VmSizeProfileTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VmSizeProfileTests.java index b63efce9c22e8..1bea6211171ab 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VmSizeProfileTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VmSizeProfileTests.java @@ -12,16 +12,16 @@ public final class VmSizeProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VmSizeProfile model - = BinaryData.fromString("{\"name\":\"qnjaqwix\",\"rank\":2020254457}").toObject(VmSizeProfile.class); - Assertions.assertEquals("qnjaqwix", model.name()); - Assertions.assertEquals(2020254457, model.rank()); + = BinaryData.fromString("{\"name\":\"lljfmppeeb\",\"rank\":2027059656}").toObject(VmSizeProfile.class); + Assertions.assertEquals("lljfmppeeb", model.name()); + Assertions.assertEquals(2027059656, model.rank()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VmSizeProfile model = new VmSizeProfile().withName("qnjaqwix").withRank(2020254457); + VmSizeProfile model = new VmSizeProfile().withName("lljfmppeeb").withRank(2027059656); model = BinaryData.fromObject(model).toObject(VmSizeProfile.class); - Assertions.assertEquals("qnjaqwix", model.name()); - Assertions.assertEquals(2020254457, model.rank()); + Assertions.assertEquals("lljfmppeeb", model.name()); + Assertions.assertEquals(2027059656, model.rank()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMConfigurationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMConfigurationTests.java index f7692958ea794..7927659f936e7 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMConfigurationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMConfigurationTests.java @@ -15,20 +15,20 @@ public final class WinRMConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WinRMConfiguration model = BinaryData.fromString( - "{\"listeners\":[{\"protocol\":\"Http\",\"certificateUrl\":\"bybkzgcwrwclxx\"},{\"protocol\":\"Http\",\"certificateUrl\":\"douskcqvkocrcjdk\"},{\"protocol\":\"Http\",\"certificateUrl\":\"xbnjbiksq\"}]}") + "{\"listeners\":[{\"protocol\":\"Http\",\"certificateUrl\":\"dzuhtymwi\"},{\"protocol\":\"Https\",\"certificateUrl\":\"thwxmnteiwaopvkm\"},{\"protocol\":\"Http\",\"certificateUrl\":\"mxdcufufsrp\"}]}") .toObject(WinRMConfiguration.class); Assertions.assertEquals(ProtocolTypes.HTTP, model.listeners().get(0).protocol()); - Assertions.assertEquals("bybkzgcwrwclxx", model.listeners().get(0).certificateUrl()); + Assertions.assertEquals("dzuhtymwi", model.listeners().get(0).certificateUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WinRMConfiguration model = new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("bybkzgcwrwclxx"), - new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("douskcqvkocrcjdk"), - new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("xbnjbiksq"))); + Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("dzuhtymwi"), + new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("thwxmnteiwaopvkm"), + new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("mxdcufufsrp"))); model = BinaryData.fromObject(model).toObject(WinRMConfiguration.class); Assertions.assertEquals(ProtocolTypes.HTTP, model.listeners().get(0).protocol()); - Assertions.assertEquals("bybkzgcwrwclxx", model.listeners().get(0).certificateUrl()); + Assertions.assertEquals("dzuhtymwi", model.listeners().get(0).certificateUrl()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMListenerTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMListenerTests.java index a7d3050a4a344..8b37357954ed3 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMListenerTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WinRMListenerTests.java @@ -12,17 +12,17 @@ public final class WinRMListenerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WinRMListener model = BinaryData.fromString("{\"protocol\":\"Http\",\"certificateUrl\":\"sainqpjwnzl\"}") + WinRMListener model = BinaryData.fromString("{\"protocol\":\"Https\",\"certificateUrl\":\"dnsezcxtbzs\"}") .toObject(WinRMListener.class); - Assertions.assertEquals(ProtocolTypes.HTTP, model.protocol()); - Assertions.assertEquals("sainqpjwnzl", model.certificateUrl()); + Assertions.assertEquals(ProtocolTypes.HTTPS, model.protocol()); + Assertions.assertEquals("dnsezcxtbzs", model.certificateUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WinRMListener model = new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("sainqpjwnzl"); + WinRMListener model = new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("dnsezcxtbzs"); model = BinaryData.fromObject(model).toObject(WinRMListener.class); - Assertions.assertEquals(ProtocolTypes.HTTP, model.protocol()); - Assertions.assertEquals("sainqpjwnzl", model.certificateUrl()); + Assertions.assertEquals(ProtocolTypes.HTTPS, model.protocol()); + Assertions.assertEquals("dnsezcxtbzs", model.certificateUrl()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsConfigurationTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsConfigurationTests.java index 309c83c65c4e8..ad515ffb6352d 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsConfigurationTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsConfigurationTests.java @@ -11,13 +11,13 @@ import com.azure.resourcemanager.computefleet.models.PatchSettings; import com.azure.resourcemanager.computefleet.models.ProtocolTypes; import com.azure.resourcemanager.computefleet.models.SettingNames; +import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; +import com.azure.resourcemanager.computefleet.models.WinRMListener; import com.azure.resourcemanager.computefleet.models.WindowsConfiguration; import com.azure.resourcemanager.computefleet.models.WindowsPatchAssessmentMode; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchAutomaticByPlatformSettings; import com.azure.resourcemanager.computefleet.models.WindowsVMGuestPatchMode; -import com.azure.resourcemanager.computefleet.models.WinRMConfiguration; -import com.azure.resourcemanager.computefleet.models.WinRMListener; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -25,84 +25,80 @@ public final class WindowsConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WindowsConfiguration model = BinaryData.fromString( - "{\"provisionVMAgent\":false,\"enableAutomaticUpdates\":true,\"timeZone\":\"jbp\",\"additionalUnattendContent\":[{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"cjrwzoxxjtfellu\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"eqfpj\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"vhpfxxypininmay\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"depoog\"}],\"patchSettings\":{\"patchMode\":\"AutomaticByPlatform\",\"enableHotpatching\":false,\"assessmentMode\":\"AutomaticByPlatform\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Never\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}},\"winRM\":{\"listeners\":[{\"protocol\":\"Https\",\"certificateUrl\":\"eotusivyevc\"},{\"protocol\":\"Http\",\"certificateUrl\":\"hn\"},{\"protocol\":\"Http\",\"certificateUrl\":\"bwjzr\"},{\"protocol\":\"Https\",\"certificateUrl\":\"xgispemvtzfkufu\"}]},\"enableVMAgentPlatformUpdates\":false}") + "{\"provisionVMAgent\":false,\"enableAutomaticUpdates\":false,\"timeZone\":\"vqwhbmdgbbjfd\",\"additionalUnattendContent\":[{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"bhtqqrolfpfpsa\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"jyj\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"rtxilner\"}],\"patchSettings\":{\"patchMode\":\"Manual\",\"enableHotpatching\":true,\"assessmentMode\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Always\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}},\"winRM\":{\"listeners\":[{\"protocol\":\"Http\",\"certificateUrl\":\"wjkcp\"},{\"protocol\":\"Https\",\"certificateUrl\":\"b\"},{\"protocol\":\"Https\",\"certificateUrl\":\"tbvpysszdnru\"},{\"protocol\":\"Https\",\"certificateUrl\":\"hmuouqfprwzwbn\"}]},\"enableVMAgentPlatformUpdates\":true}") .toObject(WindowsConfiguration.class); Assertions.assertEquals(false, model.provisionVMAgent()); - Assertions.assertEquals(true, model.enableAutomaticUpdates()); - Assertions.assertEquals("jbp", model.timeZone()); + Assertions.assertEquals(false, model.enableAutomaticUpdates()); + Assertions.assertEquals("vqwhbmdgbbjfd", model.timeZone()); Assertions.assertEquals(AdditionalUnattendContentPassName.OOBE_SYSTEM, model.additionalUnattendContent().get(0).passName()); Assertions.assertEquals(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP, model.additionalUnattendContent().get(0).componentName()); - Assertions.assertEquals(SettingNames.AUTO_LOGON, model.additionalUnattendContent().get(0).settingName()); - Assertions.assertEquals("cjrwzoxxjtfellu", model.additionalUnattendContent().get(0).content()); - Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchSettings().patchMode()); - Assertions.assertEquals(false, model.patchSettings().enableHotpatching()); - Assertions.assertEquals(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM, - model.patchSettings().assessmentMode()); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, + Assertions.assertEquals(SettingNames.FIRST_LOGON_COMMANDS, + model.additionalUnattendContent().get(0).settingName()); + Assertions.assertEquals("bhtqqrolfpfpsa", model.additionalUnattendContent().get(0).content()); + Assertions.assertEquals(WindowsVMGuestPatchMode.MANUAL, model.patchSettings().patchMode()); + Assertions.assertEquals(true, model.patchSettings().enableHotpatching()); + Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.patchSettings().assessmentMode()); + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.patchSettings().automaticByPlatformSettings().rebootSetting()); Assertions.assertEquals(true, model.patchSettings().automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); - Assertions.assertEquals(ProtocolTypes.HTTPS, model.winRM().listeners().get(0).protocol()); - Assertions.assertEquals("eotusivyevc", model.winRM().listeners().get(0).certificateUrl()); - Assertions.assertEquals(false, model.enableVMAgentPlatformUpdates()); + Assertions.assertEquals(ProtocolTypes.HTTP, model.winRM().listeners().get(0).protocol()); + Assertions.assertEquals("wjkcp", model.winRM().listeners().get(0).certificateUrl()); + Assertions.assertEquals(true, model.enableVMAgentPlatformUpdates()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WindowsConfiguration model = new WindowsConfiguration().withProvisionVMAgent(false) - .withEnableAutomaticUpdates(true) - .withTimeZone("jbp") + .withEnableAutomaticUpdates(false) + .withTimeZone("vqwhbmdgbbjfd") .withAdditionalUnattendContent(Arrays.asList( new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) - .withSettingName(SettingNames.AUTO_LOGON) - .withContent("cjrwzoxxjtfellu"), + .withSettingName(SettingNames.FIRST_LOGON_COMMANDS) + .withContent("bhtqqrolfpfpsa"), new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.AUTO_LOGON) - .withContent("eqfpj"), + .withContent("jyj"), new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) .withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) .withSettingName(SettingNames.FIRST_LOGON_COMMANDS) - .withContent("vhpfxxypininmay"), - new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM) - .withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP) - .withSettingName(SettingNames.AUTO_LOGON) - .withContent("depoog"))) - .withPatchSettings(new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM) - .withEnableHotpatching(false) - .withAssessmentMode(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM) + .withContent("rtxilner"))) + .withPatchSettings(new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL) + .withEnableHotpatching(true) + .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT) .withAutomaticByPlatformSettings(new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER) + .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS) .withBypassPlatformSafetyChecksOnUserSchedule(true))) .withWinRM(new WinRMConfiguration().withListeners( - Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("eotusivyevc"), - new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("hn"), - new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("bwjzr"), - new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("xgispemvtzfkufu")))) - .withEnableVMAgentPlatformUpdates(false); + Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("wjkcp"), + new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("b"), + new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("tbvpysszdnru"), + new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("hmuouqfprwzwbn")))) + .withEnableVMAgentPlatformUpdates(true); model = BinaryData.fromObject(model).toObject(WindowsConfiguration.class); Assertions.assertEquals(false, model.provisionVMAgent()); - Assertions.assertEquals(true, model.enableAutomaticUpdates()); - Assertions.assertEquals("jbp", model.timeZone()); + Assertions.assertEquals(false, model.enableAutomaticUpdates()); + Assertions.assertEquals("vqwhbmdgbbjfd", model.timeZone()); Assertions.assertEquals(AdditionalUnattendContentPassName.OOBE_SYSTEM, model.additionalUnattendContent().get(0).passName()); Assertions.assertEquals(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP, model.additionalUnattendContent().get(0).componentName()); - Assertions.assertEquals(SettingNames.AUTO_LOGON, model.additionalUnattendContent().get(0).settingName()); - Assertions.assertEquals("cjrwzoxxjtfellu", model.additionalUnattendContent().get(0).content()); - Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchSettings().patchMode()); - Assertions.assertEquals(false, model.patchSettings().enableHotpatching()); - Assertions.assertEquals(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM, - model.patchSettings().assessmentMode()); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, + Assertions.assertEquals(SettingNames.FIRST_LOGON_COMMANDS, + model.additionalUnattendContent().get(0).settingName()); + Assertions.assertEquals("bhtqqrolfpfpsa", model.additionalUnattendContent().get(0).content()); + Assertions.assertEquals(WindowsVMGuestPatchMode.MANUAL, model.patchSettings().patchMode()); + Assertions.assertEquals(true, model.patchSettings().enableHotpatching()); + Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.patchSettings().assessmentMode()); + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS, model.patchSettings().automaticByPlatformSettings().rebootSetting()); Assertions.assertEquals(true, model.patchSettings().automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule()); - Assertions.assertEquals(ProtocolTypes.HTTPS, model.winRM().listeners().get(0).protocol()); - Assertions.assertEquals("eotusivyevc", model.winRM().listeners().get(0).certificateUrl()); - Assertions.assertEquals(false, model.enableVMAgentPlatformUpdates()); + Assertions.assertEquals(ProtocolTypes.HTTP, model.winRM().listeners().get(0).protocol()); + Assertions.assertEquals("wjkcp", model.winRM().listeners().get(0).certificateUrl()); + Assertions.assertEquals(true, model.enableVMAgentPlatformUpdates()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsVMGuestPatchAutomaticByPlatformSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsVMGuestPatchAutomaticByPlatformSettingsTests.java index a79d7993b1d85..0ad28b092dbd8 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsVMGuestPatchAutomaticByPlatformSettingsTests.java +++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/WindowsVMGuestPatchAutomaticByPlatformSettingsTests.java @@ -12,20 +12,20 @@ public final class WindowsVMGuestPatchAutomaticByPlatformSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WindowsVMGuestPatchAutomaticByPlatformSettings model = BinaryData - .fromString("{\"rebootSetting\":\"IfRequired\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}") - .toObject(WindowsVMGuestPatchAutomaticByPlatformSettings.class); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED, model.rebootSetting()); - Assertions.assertEquals(true, model.bypassPlatformSafetyChecksOnUserSchedule()); + WindowsVMGuestPatchAutomaticByPlatformSettings model + = BinaryData.fromString("{\"rebootSetting\":\"Never\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}") + .toObject(WindowsVMGuestPatchAutomaticByPlatformSettings.class); + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, model.rebootSetting()); + Assertions.assertEquals(false, model.bypassPlatformSafetyChecksOnUserSchedule()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WindowsVMGuestPatchAutomaticByPlatformSettings model = new WindowsVMGuestPatchAutomaticByPlatformSettings() - .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED) - .withBypassPlatformSafetyChecksOnUserSchedule(true); + .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER) + .withBypassPlatformSafetyChecksOnUserSchedule(false); model = BinaryData.fromObject(model).toObject(WindowsVMGuestPatchAutomaticByPlatformSettings.class); - Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED, model.rebootSetting()); - Assertions.assertEquals(true, model.bypassPlatformSafetyChecksOnUserSchedule()); + Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, model.rebootSetting()); + Assertions.assertEquals(false, model.bypassPlatformSafetyChecksOnUserSchedule()); } } diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/tsp-location.yaml b/sdk/computefleet/azure-resourcemanager-computefleet/tsp-location.yaml index 17c1c0f64cb67..56c5c729cc8e6 100644 --- a/sdk/computefleet/azure-resourcemanager-computefleet/tsp-location.yaml +++ b/sdk/computefleet/azure-resourcemanager-computefleet/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/azurefleet/AzureFleet.Management -commit: 7ed015e3dd1b8b1b0e71c9b5e6b6c5ccb8968b3a -repo: Azure/azure-rest-api-specs -additionalDirectories: null +commit: 443ce4770295e585348ab60f60ce36a8b51f8a3c +repo: test-repo-billy/azure-rest-api-specs +additionalDirectories: