diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md b/sdk/computefleet/azure-resourcemanager-computefleet/CHANGELOG.md
index 52e62f9cdf8d..6a38ceaeeb7f 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-04)
+
+- 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 5f2ce28f9607..a1cb9cc21d2f 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})
diff --git a/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md b/sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md
index a25a21462b32..df5eac7a8d92 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 77c4280e28a1..cb93fc01314d 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,5 +71,10 @@
1.14.0
test
+
+ com.azure
+ azure-json
+ 1.3.0
+
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 1b6c3971ca07..28c4e9f64699 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 000000000000..92fd3fbe80d6
--- /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 000000000000..bd416ee42a2c
--- /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 000000000000..ce0e3a80d275
--- /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 000000000000..d39fe6d2d14d
--- /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 000000000000..6602d2796daf
--- /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");
+
+ /**
+ * X86 Architecture.
+ */
+ public static final ArchitectureType X86 = fromString("X86");
+
+ /**
+ * 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 b087d1632fde..9941d9e05eb5 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 000000000000..044ab0deb895
--- /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 fa782ae90dc4..9d4be8595811 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 000000000000..63c3a3cb5c06
--- /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 000000000000..97aa896c41a5
--- /dev/null
+++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/LocationProfile.java
@@ -0,0 +1,134 @@
+// 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;
+
+/**
+ * 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.
+ */
+ 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.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: The ARM location name of the additional region.
+ *
+ * @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 (virtualMachineProfileOverride() != null) {
+ virtualMachineProfileOverride().validate();
+ }
+ }
+
+ /**
+ * {@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 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 072ffe8f1f89..4a693326102a 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 000000000000..e6a69bd5171e
--- /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 000000000000..119a5228a53c
--- /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 000000000000..af28ebff7554
--- /dev/null
+++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/main/java/com/azure/resourcemanager/computefleet/models/VMAttributes.java
@@ -0,0 +1,698 @@
+// 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;
+
+ /*
+ * Specifies whether the VMSize supporting local storage should be used to build Fleet or not.
+ */
+ private VMAttributeSupport localStorageSupport;
+
+ /*
+ * The range of local storage in GB specified from Min to Max.
+ */
+ 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.
+ */
+ private VMAttributeMinMaxInteger rdmaNetworkInterfaceCount;
+
+ /*
+ * Specifies whether the VMSize supporting accelerator should be used to build Fleet or not.
+ */
+ private VMAttributeSupport acceleratorSupport;
+
+ /*
+ * The accelerator manufacturers specified as a list. acceleratorSupport should be set to Included or Required to
+ * use this VMAttribute.
+ */
+ private List acceleratorManufacturers;
+
+ /*
+ * The accelerator types specified as a list. acceleratorSupport should be set to Included or Required to use this
+ * VMAttribute.
+ */
+ private List acceleratorTypes;
+
+ /*
+ * The range of accelerator count specified from min to max.. Optional parameter. Either Min or Max is required if
+ * specified.
+ */
+ 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 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: The range of local storage in GB specified from Min to Max.
+ *
+ * @return the localStorageInGiB value.
+ */
+ public VMAttributeMinMaxDouble localStorageInGiB() {
+ return this.localStorageInGiB;
+ }
+
+ /**
+ * Set the localStorageInGiB property: The range of local storage in GB specified from Min to Max.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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.
+ *
+ * @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 (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.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 ("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 000000000000..5833fe36906d
--- /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 94157a69374b..21d1bce77f94 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 6fafbb1d706d..73efc9ffc0b2 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 d645e29c5a20..a4aa2c7df75d 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 edfb33bf2b24..957a3dd4a0c0 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 9e7ddd8749f9..a0d76729af93 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 14218d6e02a4..5c528de10e58 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 03d70da14cc9..16f19869f129 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 1c0dcc08ed48..572367c66ab7 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/generated/AdditionalCapabilitiesTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/AdditionalCapabilitiesTests.java
new file mode 100644
index 000000000000..ef0c07e17490
--- /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\":false,\"hibernationEnabled\":false}")
+ .toObject(AdditionalCapabilities.class);
+ Assertions.assertEquals(false, model.ultraSSDEnabled());
+ Assertions.assertEquals(false, model.hibernationEnabled());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ AdditionalCapabilities model
+ = new AdditionalCapabilities().withUltraSSDEnabled(false).withHibernationEnabled(false);
+ model = BinaryData.fromObject(model).toObject(AdditionalCapabilities.class);
+ Assertions.assertEquals(false, model.ultraSSDEnabled());
+ Assertions.assertEquals(false, 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 66b1d609089d..5bd5925edc11 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\":\"FirstLogonCommands\",\"content\":\"km\"}")
.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("km", model.content());
}
@org.junit.jupiter.api.Test
@@ -30,12 +30,12 @@ public void testSerialize() throws Exception {
= new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM)
.withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP)
.withSettingName(SettingNames.FIRST_LOGON_COMMANDS)
- .withContent("jaeq");
+ .withContent("km");
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("km", 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 55406ccc910b..eb69f82b7fa0 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,14 @@
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\":\"d\"}").toObject(ApiEntityReference.class);
+ Assertions.assertEquals("d", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ApiEntityReference model = new ApiEntityReference().withId("f");
+ ApiEntityReference model = new ApiEntityReference().withId("d");
model = BinaryData.fromObject(model).toObject(ApiEntityReference.class);
- Assertions.assertEquals("f", model.id());
+ Assertions.assertEquals("d", 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 14dd378fc90d..da91c7ec3896 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,43 @@ 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\":\"emwabnet\",\"order\":1149443455,\"packageReferenceId\":\"szhedplvw\",\"configurationReference\":\"ubmwmbesld\",\"treatFailureAsDeploymentFailure\":false,\"enableAutomaticUpgrade\":false},{\"tags\":\"pjflcxogao\",\"order\":244687825,\"packageReferenceId\":\"z\",\"configurationReference\":\"sikvmkqzeqqkdlt\",\"treatFailureAsDeploymentFailure\":true,\"enableAutomaticUpgrade\":false},{\"tags\":\"v\",\"order\":316909853,\"packageReferenceId\":\"r\",\"configurationReference\":\"dkwobdagx\",\"treatFailureAsDeploymentFailure\":false,\"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("emwabnet", model.galleryApplications().get(0).tags());
+ Assertions.assertEquals(1149443455, model.galleryApplications().get(0).order());
+ Assertions.assertEquals("szhedplvw", model.galleryApplications().get(0).packageReferenceId());
+ Assertions.assertEquals("ubmwmbesld", model.galleryApplications().get(0).configurationReference());
Assertions.assertEquals(false, model.galleryApplications().get(0).treatFailureAsDeploymentFailure());
- Assertions.assertEquals(true, model.galleryApplications().get(0).enableAutomaticUpgrade());
+ 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")
+ new VMGalleryApplication().withTags("emwabnet")
+ .withOrder(1149443455)
+ .withPackageReferenceId("szhedplvw")
+ .withConfigurationReference("ubmwmbesld")
.withTreatFailureAsDeploymentFailure(false)
- .withEnableAutomaticUpgrade(true),
- new VMGalleryApplication().withTags("folhbnxknal")
- .withOrder(338367472)
- .withPackageReferenceId("ppg")
- .withConfigurationReference("tpnapnyiropuhpig")
+ .withEnableAutomaticUpgrade(false),
+ new VMGalleryApplication().withTags("pjflcxogao")
+ .withOrder(244687825)
+ .withPackageReferenceId("z")
+ .withConfigurationReference("sikvmkqzeqqkdlt")
.withTreatFailureAsDeploymentFailure(true)
.withEnableAutomaticUpgrade(false),
- new VMGalleryApplication().withTags("qgitxmed")
- .withOrder(119641642)
- .withPackageReferenceId("slynqwwnc")
- .withConfigurationReference("zhxgktrmgucn")
+ new VMGalleryApplication().withTags("v")
+ .withOrder(316909853)
+ .withPackageReferenceId("r")
+ .withConfigurationReference("dkwobdagx")
.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("emwabnet", model.galleryApplications().get(0).tags());
+ Assertions.assertEquals(1149443455, model.galleryApplications().get(0).order());
+ Assertions.assertEquals("szhedplvw", model.galleryApplications().get(0).packageReferenceId());
+ Assertions.assertEquals("ubmwmbesld", model.galleryApplications().get(0).configurationReference());
Assertions.assertEquals(false, model.galleryApplications().get(0).treatFailureAsDeploymentFailure());
- Assertions.assertEquals(true, model.galleryApplications().get(0).enableAutomaticUpgrade());
+ 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 936af9805381..5b43049acf57 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\":\"xrmcqibycnojvk\"}")
.toObject(BootDiagnostics.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("tldwkyzxuutk", model.storageUri());
+ Assertions.assertEquals(false, model.enabled());
+ Assertions.assertEquals("xrmcqibycnojvk", 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("xrmcqibycnojvk");
model = BinaryData.fromObject(model).toObject(BootDiagnostics.class);
- Assertions.assertEquals(true, model.enabled());
- Assertions.assertEquals("tldwkyzxuutk", model.storageUri());
+ Assertions.assertEquals(false, model.enabled());
+ Assertions.assertEquals("xrmcqibycnojvk", 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 5f0dad5314e4..1954568ed8e3 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\":\"ofz\"}}")
+ .toObject(CapacityReservationProfile.class);
+ Assertions.assertEquals("ofz", 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("ofz"));
model = BinaryData.fromObject(model).toObject(CapacityReservationProfile.class);
- Assertions.assertEquals("bxwyjsflhhcaa", model.capacityReservationGroup().id());
+ Assertions.assertEquals("ofz", 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 22532ebeba6a..49bea62cc1da 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\":\"xqtayriwwro\"}}")
.toObject(DiagnosticsProfile.class);
- Assertions.assertEquals(false, model.bootDiagnostics().enabled());
- Assertions.assertEquals("krdqmh", model.bootDiagnostics().storageUri());
+ Assertions.assertEquals(true, model.bootDiagnostics().enabled());
+ Assertions.assertEquals("xqtayriwwro", 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("xqtayriwwro"));
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("xqtayriwwro", 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 f0a38a83a35a..5490e09f6353 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\":\"CacheDisk\"}")
.toObject(DiffDiskSettings.class);
Assertions.assertEquals(DiffDiskOptions.LOCAL, model.option());
- Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.placement());
+ Assertions.assertEquals(DiffDiskPlacement.CACHE_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.CACHE_DISK);
model = BinaryData.fromObject(model).toObject(DiffDiskSettings.class);
Assertions.assertEquals(DiffDiskOptions.LOCAL, model.option());
- Assertions.assertEquals(DiffDiskPlacement.NVME_DISK, model.placement());
+ Assertions.assertEquals(DiffDiskPlacement.CACHE_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 00b38e08c2a8..272b3bacf717 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\":\"gwdslfhotwm\"}").toObject(DiskEncryptionSetParameters.class);
+ Assertions.assertEquals("gwdslfhotwm", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- DiskEncryptionSetParameters model = new DiskEncryptionSetParameters().withId("kudjkrlkhb");
+ DiskEncryptionSetParameters model = new DiskEncryptionSetParameters().withId("gwdslfhotwm");
model = BinaryData.fromObject(model).toObject(DiskEncryptionSetParameters.class);
- Assertions.assertEquals("kudjkrlkhb", model.id());
+ Assertions.assertEquals("gwdslfhotwm", 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 0f727421223b..5b0c5cd87f28 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\":\"ftguv\"}")
.toObject(EncryptionIdentity.class);
- Assertions.assertEquals("ojnabckhsmtxpsie", model.userAssignedIdentityResourceId());
+ Assertions.assertEquals("ftguv", model.userAssignedIdentityResourceId());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentityResourceId("ojnabckhsmtxpsie");
+ EncryptionIdentity model = new EncryptionIdentity().withUserAssignedIdentityResourceId("ftguv");
model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class);
- Assertions.assertEquals("ojnabckhsmtxpsie", model.userAssignedIdentityResourceId());
+ Assertions.assertEquals("ftguv", 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 953cd5f97222..b6512ca229c0 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\":\"gehoqfbowskany\",\"publisher\":\"zlcuiywgqywgndrv\",\"offer\":\"hzgpphrcgyncocpe\",\"sku\":\"vmmcoofs\",\"version\":\"zevgb\",\"exactVersion\":\"jqabcypmivkwlzuv\",\"sharedGalleryImageId\":\"fwnfnb\",\"communityGalleryImageId\":\"fionl\"}")
.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("gehoqfbowskany", model.id());
+ Assertions.assertEquals("zlcuiywgqywgndrv", model.publisher());
+ Assertions.assertEquals("hzgpphrcgyncocpe", model.offer());
+ Assertions.assertEquals("vmmcoofs", model.sku());
+ Assertions.assertEquals("zevgb", model.version());
+ Assertions.assertEquals("fwnfnb", model.sharedGalleryImageId());
+ Assertions.assertEquals("fionl", 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("gehoqfbowskany")
+ .withPublisher("zlcuiywgqywgndrv")
+ .withOffer("hzgpphrcgyncocpe")
+ .withSku("vmmcoofs")
+ .withVersion("zevgb")
+ .withSharedGalleryImageId("fwnfnb")
+ .withCommunityGalleryImageId("fionl");
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("gehoqfbowskany", model.id());
+ Assertions.assertEquals("zlcuiywgqywgndrv", model.publisher());
+ Assertions.assertEquals("hzgpphrcgyncocpe", model.offer());
+ Assertions.assertEquals("vmmcoofs", model.sku());
+ Assertions.assertEquals("zevgb", model.version());
+ Assertions.assertEquals("fwnfnb", model.sharedGalleryImageId());
+ Assertions.assertEquals("fionl", 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 cbcf5f530990..be6542fdd3c3 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\":\"agvrvmnpkuk\",\"errorDetail\":\"i\"}")
.toObject(InnerError.class);
- Assertions.assertEquals("vqtmnub", model.exceptionType());
- Assertions.assertEquals("kpzksmondjmq", model.errorDetail());
+ Assertions.assertEquals("agvrvmnpkuk", model.exceptionType());
+ Assertions.assertEquals("i", 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 cb49ef42842f..1551ca8cbb1f 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,11 +16,11 @@ 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\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Never\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}}")
.toObject(LinuxPatchSettings.class);
Assertions.assertEquals(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchMode());
Assertions.assertEquals(LinuxPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode());
- Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS,
+ Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,
model.automaticByPlatformSettings().rebootSetting());
Assertions.assertEquals(false, model.automaticByPlatformSettings().bypassPlatformSafetyChecksOnUserSchedule());
}
@@ -30,12 +30,12 @@ public void testSerialize() throws Exception {
LinuxPatchSettings model = new LinuxPatchSettings().withPatchMode(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM)
.withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT)
.withAutomaticByPlatformSettings(new LinuxVMGuestPatchAutomaticByPlatformSettings()
- .withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS)
+ .withRebootSetting(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER)
.withBypassPlatformSafetyChecksOnUserSchedule(false));
model = BinaryData.fromObject(model).toObject(LinuxPatchSettings.class);
Assertions.assertEquals(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM, model.patchMode());
Assertions.assertEquals(LinuxPatchAssessmentMode.IMAGE_DEFAULT, model.assessmentMode());
- Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS,
+ Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,
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/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/LinuxVMGuestPatchAutomaticByPlatformSettingsTests.java
index e5dc79e39520..e43421ebbaf6 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\":\"Never\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}")
+ .toObject(LinuxVMGuestPatchAutomaticByPlatformSettings.class);
+ Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, 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.NEVER)
+ .withBypassPlatformSafetyChecksOnUserSchedule(false);
model = BinaryData.fromObject(model).toObject(LinuxVMGuestPatchAutomaticByPlatformSettings.class);
- Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.IF_REQUIRED, model.rebootSetting());
- Assertions.assertEquals(true, model.bypassPlatformSafetyChecksOnUserSchedule());
+ Assertions.assertEquals(LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER, 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 7bd181893e65..80d625f28542 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,7 +16,7 @@ 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\":\"zx\",\"tenantId\":\"vithh\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ljuti\":{\"principalId\":\"sg\",\"clientId\":\"hcohfwdsjnk\"},\"pnppfuf\":{\"principalId\":\"wacf\",\"clientId\":\"dkzzewkfvhqcrail\"},\"wqapnedgfbcvk\":{\"principalId\":\"wdmhdlxyjrxs\",\"clientId\":\"afcnih\"}}}")
.toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type());
}
@@ -24,8 +24,8 @@ public void testDeserialize() throws Exception {
@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()));
+ .withUserAssignedIdentities(mapOf("ljuti", new UserAssignedIdentity(), "pnppfuf",
+ new UserAssignedIdentity(), "wqapnedgfbcvk", new UserAssignedIdentity()));
model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type());
}
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 892cd1cd2ff5..70d9428b7f0b 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\":\"SystemAssigned\",\"userAssignedIdentities\":{\"cbcuejrjxgciqi\":{\"principalId\":\"pvhelxprg\",\"clientId\":\"atddc\"},\"rq\":{\"principalId\":\"hos\",\"clientId\":\"dqrhzoymib\"}}}")
.toObject(ManagedServiceIdentityUpdate.class);
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type());
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_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.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf("cbcuejrjxgciqi", new UserAssignedIdentity(), "rq", new UserAssignedIdentity()));
model = BinaryData.fromObject(model).toObject(ManagedServiceIdentityUpdate.class);
- Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type());
+ Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_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 daf577dcd93d..7965565e5040 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\":\"ygtdsslswt\",\"enable\":true}")
.toObject(OSImageNotificationProfile.class);
- Assertions.assertEquals("uwaboekqvke", model.notBeforeTimeout());
- Assertions.assertEquals(false, model.enable());
+ Assertions.assertEquals("ygtdsslswt", 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("ygtdsslswt").withEnable(true);
model = BinaryData.fromObject(model).toObject(OSImageNotificationProfile.class);
- Assertions.assertEquals("uwaboekqvke", model.notBeforeTimeout());
- Assertions.assertEquals(false, model.enable());
+ Assertions.assertEquals("ygtdsslswt", 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 f825b1438d68..481bb27df317 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\":\"blxgwimf\",\"isDataAction\":false,\"display\":{\"provider\":\"xw\",\"resource\":\"zk\",\"operation\":\"oqreyfkzikfjawn\",\"description\":\"ivx\"},\"origin\":\"user,system\",\"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 9a452f4e8623..dd92e81bb790 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,30 +16,30 @@ 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\":\"Never\",\"bypassPlatformSafetyChecksOnUserSchedule\":true}}")
.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.NEVER,
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 {
PatchSettings model = new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS)
- .withEnableHotpatching(false)
+ .withEnableHotpatching(true)
.withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT)
.withAutomaticByPlatformSettings(new WindowsVMGuestPatchAutomaticByPlatformSettings()
- .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.ALWAYS)
- .withBypassPlatformSafetyChecksOnUserSchedule(false));
+ .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER)
+ .withBypassPlatformSafetyChecksOnUserSchedule(true));
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.NEVER,
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/PublicIPAddressSkuTests.java b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PublicIPAddressSkuTests.java
index 7ba37f713966..b93838ab5cc5 100644
--- a/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PublicIPAddressSkuTests.java
+++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/PublicIPAddressSkuTests.java
@@ -14,17 +14,17 @@ public final class PublicIPAddressSkuTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
PublicIPAddressSku model
- = BinaryData.fromString("{\"name\":\"Standard\",\"tier\":\"Regional\"}").toObject(PublicIPAddressSku.class);
- Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.name());
+ = BinaryData.fromString("{\"name\":\"Basic\",\"tier\":\"Regional\"}").toObject(PublicIPAddressSku.class);
+ Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.name());
Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, model.tier());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- PublicIPAddressSku model = new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
- .withTier(PublicIPAddressSkuTier.REGIONAL);
+ PublicIPAddressSku model
+ = new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC).withTier(PublicIPAddressSkuTier.REGIONAL);
model = BinaryData.fromObject(model).toObject(PublicIPAddressSku.class);
- Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.name());
+ Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.name());
Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, model.tier());
}
}
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 af44ff65aa96..c46285e84a29 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\":1862600222,\"minCapacity\":2027059656,\"allocationStrategy\":\"Prioritized\"}")
.toObject(RegularPriorityProfile.class);
- Assertions.assertEquals(533859005, model.capacity());
- Assertions.assertEquals(2053508957, model.minCapacity());
- Assertions.assertEquals(RegularPriorityAllocationStrategy.LOWEST_PRICE, model.allocationStrategy());
+ Assertions.assertEquals(1862600222, model.capacity());
+ Assertions.assertEquals(2027059656, 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(1862600222)
+ .withMinCapacity(2027059656)
+ .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(1862600222, model.capacity());
+ Assertions.assertEquals(2027059656, 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 4e1d391c5604..1bf7a85004eb 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\":\"vdfznudaodvxzb\",\"enable\":true},\"osImageNotificationProfile\":{\"notBeforeTimeout\":\"lpstdbhhxsrzdz\",\"enable\":true}}")
.toObject(ScheduledEventsProfile.class);
- Assertions.assertEquals("ozuhkfp", model.terminateNotificationProfile().notBeforeTimeout());
+ Assertions.assertEquals("vdfznudaodvxzb", model.terminateNotificationProfile().notBeforeTimeout());
Assertions.assertEquals(true, model.terminateNotificationProfile().enable());
- Assertions.assertEquals("f", model.osImageNotificationProfile().notBeforeTimeout());
- Assertions.assertEquals(false, model.osImageNotificationProfile().enable());
+ Assertions.assertEquals("lpstdbhhxsrzdz", 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("vdfznudaodvxzb").withEnable(true))
.withOsImageNotificationProfile(
- new OSImageNotificationProfile().withNotBeforeTimeout("f").withEnable(false));
+ new OSImageNotificationProfile().withNotBeforeTimeout("lpstdbhhxsrzdz").withEnable(true));
model = BinaryData.fromObject(model).toObject(ScheduledEventsProfile.class);
- Assertions.assertEquals("ozuhkfp", model.terminateNotificationProfile().notBeforeTimeout());
+ Assertions.assertEquals("vdfznudaodvxzb", model.terminateNotificationProfile().notBeforeTimeout());
Assertions.assertEquals(true, model.terminateNotificationProfile().enable());
- Assertions.assertEquals("f", model.osImageNotificationProfile().notBeforeTimeout());
- Assertions.assertEquals(false, model.osImageNotificationProfile().enable());
+ Assertions.assertEquals("lpstdbhhxsrzdz", 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 da72bfeb7d69..3eaa7d550404 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\":\"wzizxbmpgcjefuzm\",\"excludeExtensions\":[\"bttdumorppxe\",\"mnzb\"],\"isOverridable\":false}")
.toObject(SecurityPostureReference.class);
- Assertions.assertEquals("qzvszjf", model.id());
- Assertions.assertEquals("j", model.excludeExtensions().get(0));
- Assertions.assertEquals(true, model.isOverridable());
+ Assertions.assertEquals("wzizxbmpgcjefuzm", model.id());
+ Assertions.assertEquals("bttdumorppxe", model.excludeExtensions().get(0));
+ Assertions.assertEquals(false, model.isOverridable());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- SecurityPostureReference model = new SecurityPostureReference().withId("qzvszjf")
- .withExcludeExtensions(Arrays.asList("j", "dxxiv"))
- .withIsOverridable(true);
+ SecurityPostureReference model = new SecurityPostureReference().withId("wzizxbmpgcjefuzm")
+ .withExcludeExtensions(Arrays.asList("bttdumorppxe", "mnzb"))
+ .withIsOverridable(false);
model = BinaryData.fromObject(model).toObject(SecurityPostureReference.class);
- Assertions.assertEquals("qzvszjf", model.id());
- Assertions.assertEquals("j", model.excludeExtensions().get(0));
- Assertions.assertEquals(true, model.isOverridable());
+ Assertions.assertEquals("wzizxbmpgcjefuzm", model.id());
+ Assertions.assertEquals("bttdumorppxe", model.excludeExtensions().get(0));
+ Assertions.assertEquals(false, 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 20cab7ad2580..a7a869a519e8 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\":\"evseotgqrlltmuwl\"}").toObject(ServiceArtifactReference.class);
+ Assertions.assertEquals("evseotgqrlltmuwl", model.id());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- ServiceArtifactReference model = new ServiceArtifactReference().withId("xxjyngudivkrtsw");
+ ServiceArtifactReference model = new ServiceArtifactReference().withId("evseotgqrlltmuwl");
model = BinaryData.fromObject(model).toObject(ServiceArtifactReference.class);
- Assertions.assertEquals("xxjyngudivkrtsw", model.id());
+ Assertions.assertEquals("evseotgqrlltmuwl", 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 571a8b4ced01..48cc1a7019ce 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,30 +14,30 @@ 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\":1191449994,\"minCapacity\":1077635314,\"maxPricePerVM\":49.956874773116176,\"evictionPolicy\":\"Deallocate\",\"allocationStrategy\":\"CapacityOptimized\",\"maintain\":true}")
.toObject(SpotPriorityProfile.class);
- Assertions.assertEquals(1543997460, model.capacity());
- Assertions.assertEquals(1345546955, model.minCapacity());
- Assertions.assertEquals(18.15198514165487D, model.maxPricePerVM());
+ Assertions.assertEquals(1191449994, model.capacity());
+ Assertions.assertEquals(1077635314, model.minCapacity());
+ Assertions.assertEquals(49.956874773116176D, model.maxPricePerVM());
Assertions.assertEquals(EvictionPolicy.DEALLOCATE, model.evictionPolicy());
- Assertions.assertEquals(SpotAllocationStrategy.LOWEST_PRICE, model.allocationStrategy());
+ Assertions.assertEquals(SpotAllocationStrategy.CAPACITY_OPTIMIZED, model.allocationStrategy());
Assertions.assertEquals(true, model.maintain());
}
@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(1191449994)
+ .withMinCapacity(1077635314)
+ .withMaxPricePerVM(49.956874773116176D)
.withEvictionPolicy(EvictionPolicy.DEALLOCATE)
- .withAllocationStrategy(SpotAllocationStrategy.LOWEST_PRICE)
+ .withAllocationStrategy(SpotAllocationStrategy.CAPACITY_OPTIMIZED)
.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(1191449994, model.capacity());
+ Assertions.assertEquals(1077635314, model.minCapacity());
+ Assertions.assertEquals(49.956874773116176D, model.maxPricePerVM());
Assertions.assertEquals(EvictionPolicy.DEALLOCATE, model.evictionPolicy());
- Assertions.assertEquals(SpotAllocationStrategy.LOWEST_PRICE, model.allocationStrategy());
+ Assertions.assertEquals(SpotAllocationStrategy.CAPACITY_OPTIMIZED, 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 300217fb4cbc..080e72104960 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\":\"scdntnevf\",\"enable\":true}")
+ .toObject(TerminateNotificationProfile.class);
+ Assertions.assertEquals("scdntnevf", 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("scdntnevf").withEnable(true);
model = BinaryData.fromObject(model).toObject(TerminateNotificationProfile.class);
- Assertions.assertEquals("us", model.notBeforeTimeout());
+ Assertions.assertEquals("scdntnevf", 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 f10280e4bc83..4032ab18bb86 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 570124438384..7cbdeea6a921 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\":\"q\",\"clientId\":\"keqdcvdrhvoods\"}")
+ .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 000000000000..5f5ff13bed20
--- /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\":29.086166877588237,\"max\":98.6788341116056}")
+ .toObject(VMAttributeMinMaxDouble.class);
+ Assertions.assertEquals(29.086166877588237D, model.min());
+ Assertions.assertEquals(98.6788341116056D, model.max());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ VMAttributeMinMaxDouble model
+ = new VMAttributeMinMaxDouble().withMin(29.086166877588237D).withMax(98.6788341116056D);
+ model = BinaryData.fromObject(model).toObject(VMAttributeMinMaxDouble.class);
+ Assertions.assertEquals(29.086166877588237D, model.min());
+ Assertions.assertEquals(98.6788341116056D, 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 000000000000..2622d380d01d
--- /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\":1861456902,\"max\":727805488}").toObject(VMAttributeMinMaxInteger.class);
+ Assertions.assertEquals(1861456902, model.min());
+ Assertions.assertEquals(727805488, model.max());
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ VMAttributeMinMaxInteger model = new VMAttributeMinMaxInteger().withMin(1861456902).withMax(727805488);
+ model = BinaryData.fromObject(model).toObject(VMAttributeMinMaxInteger.class);
+ Assertions.assertEquals(1861456902, model.min());
+ Assertions.assertEquals(727805488, 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 000000000000..69933b2cc293
--- /dev/null
+++ b/sdk/computefleet/azure-resourcemanager-computefleet/src/test/java/com/azure/resourcemanager/computefleet/generated/VMAttributesTests.java
@@ -0,0 +1,112 @@
+// 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\":1471497811,\"max\":700767866},\"memoryInGiB\":{\"min\":97.72873479939565,\"max\":0.1694622715400662},\"localStorageSupport\":\"Required\",\"localStorageInGiB\":{\"min\":56.14730648991429,\"max\":26.326199436407684},\"localStorageDiskTypes\":[\"HDD\",\"HDD\",\"HDD\",\"HDD\"],\"dataDiskCount\":{\"min\":1102727938,\"max\":1294203653},\"networkInterfaceCount\":{\"min\":1743582993,\"max\":1438650135},\"networkBandwidthInMbps\":{\"min\":95.85893282584422,\"max\":85.02961725926099},\"rdmaSupport\":\"Excluded\",\"rdmaNetworkInterfaceCount\":{\"min\":797371044,\"max\":2049120588},\"acceleratorSupport\":\"Required\",\"acceleratorManufacturers\":[\"AMD\",\"Xilinx\",\"Xilinx\"],\"acceleratorTypes\":[\"FPGA\",\"GPU\"],\"acceleratorCount\":{\"min\":388527245,\"max\":1962929741},\"vmCategories\":[\"FpgaAccelerated\",\"GpuAccelerated\"],\"architectureTypes\":[\"X86\",\"X86\",\"X86\",\"ARM64\"],\"cpuManufacturers\":[\"AMD\",\"Intel\",\"AMD\"],\"burstableSupport\":\"Required\",\"excludedVMSizes\":[\"k\",\"tyxolniwpwc\",\"kjfkg\",\"awxklr\"]}")
+ .toObject(VMAttributes.class);
+ Assertions.assertEquals(1471497811, model.vCpuCount().min());
+ Assertions.assertEquals(700767866, model.vCpuCount().max());
+ Assertions.assertEquals(97.72873479939565D, model.memoryInGiB().min());
+ Assertions.assertEquals(0.1694622715400662D, model.memoryInGiB().max());
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.localStorageSupport());
+ Assertions.assertEquals(56.14730648991429D, model.localStorageInGiB().min());
+ Assertions.assertEquals(26.326199436407684D, model.localStorageInGiB().max());
+ Assertions.assertEquals(LocalStorageDiskType.HDD, model.localStorageDiskTypes().get(0));
+ Assertions.assertEquals(1102727938, model.dataDiskCount().min());
+ Assertions.assertEquals(1294203653, model.dataDiskCount().max());
+ Assertions.assertEquals(1743582993, model.networkInterfaceCount().min());
+ Assertions.assertEquals(1438650135, model.networkInterfaceCount().max());
+ Assertions.assertEquals(95.85893282584422D, model.networkBandwidthInMbps().min());
+ Assertions.assertEquals(85.02961725926099D, model.networkBandwidthInMbps().max());
+ Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.rdmaSupport());
+ Assertions.assertEquals(797371044, model.rdmaNetworkInterfaceCount().min());
+ Assertions.assertEquals(2049120588, model.rdmaNetworkInterfaceCount().max());
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.acceleratorSupport());
+ Assertions.assertEquals(AcceleratorManufacturer.AMD, model.acceleratorManufacturers().get(0));
+ Assertions.assertEquals(AcceleratorType.FPGA, model.acceleratorTypes().get(0));
+ Assertions.assertEquals(388527245, model.acceleratorCount().min());
+ Assertions.assertEquals(1962929741, model.acceleratorCount().max());
+ Assertions.assertEquals(VMCategory.FPGA_ACCELERATED, model.vmCategories().get(0));
+ Assertions.assertEquals(ArchitectureType.X86, model.architectureTypes().get(0));
+ Assertions.assertEquals(CpuManufacturer.AMD, model.cpuManufacturers().get(0));
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.burstableSupport());
+ Assertions.assertEquals("k", model.excludedVMSizes().get(0));
+ }
+
+ @org.junit.jupiter.api.Test
+ public void testSerialize() throws Exception {
+ VMAttributes model = new VMAttributes()
+ .withVCpuCount(new VMAttributeMinMaxInteger().withMin(1471497811).withMax(700767866))
+ .withMemoryInGiB(new VMAttributeMinMaxDouble().withMin(97.72873479939565D).withMax(0.1694622715400662D))
+ .withLocalStorageSupport(VMAttributeSupport.REQUIRED)
+ .withLocalStorageInGiB(
+ new VMAttributeMinMaxDouble().withMin(56.14730648991429D).withMax(26.326199436407684D))
+ .withLocalStorageDiskTypes(Arrays.asList(LocalStorageDiskType.HDD, LocalStorageDiskType.HDD,
+ LocalStorageDiskType.HDD, LocalStorageDiskType.HDD))
+ .withDataDiskCount(new VMAttributeMinMaxInteger().withMin(1102727938).withMax(1294203653))
+ .withNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(1743582993).withMax(1438650135))
+ .withNetworkBandwidthInMbps(
+ new VMAttributeMinMaxDouble().withMin(95.85893282584422D).withMax(85.02961725926099D))
+ .withRdmaSupport(VMAttributeSupport.EXCLUDED)
+ .withRdmaNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(797371044).withMax(2049120588))
+ .withAcceleratorSupport(VMAttributeSupport.REQUIRED)
+ .withAcceleratorManufacturers(Arrays.asList(AcceleratorManufacturer.AMD, AcceleratorManufacturer.XILINX,
+ AcceleratorManufacturer.XILINX))
+ .withAcceleratorTypes(Arrays.asList(AcceleratorType.FPGA, AcceleratorType.GPU))
+ .withAcceleratorCount(new VMAttributeMinMaxInteger().withMin(388527245).withMax(1962929741))
+ .withVmCategories(Arrays.asList(VMCategory.FPGA_ACCELERATED, VMCategory.GPU_ACCELERATED))
+ .withArchitectureTypes(
+ Arrays.asList(ArchitectureType.X86, ArchitectureType.X86, ArchitectureType.X86, ArchitectureType.ARM64))
+ .withCpuManufacturers(Arrays.asList(CpuManufacturer.AMD, CpuManufacturer.INTEL, CpuManufacturer.AMD))
+ .withBurstableSupport(VMAttributeSupport.REQUIRED)
+ .withExcludedVMSizes(Arrays.asList("k", "tyxolniwpwc", "kjfkg", "awxklr"));
+ model = BinaryData.fromObject(model).toObject(VMAttributes.class);
+ Assertions.assertEquals(1471497811, model.vCpuCount().min());
+ Assertions.assertEquals(700767866, model.vCpuCount().max());
+ Assertions.assertEquals(97.72873479939565D, model.memoryInGiB().min());
+ Assertions.assertEquals(0.1694622715400662D, model.memoryInGiB().max());
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.localStorageSupport());
+ Assertions.assertEquals(56.14730648991429D, model.localStorageInGiB().min());
+ Assertions.assertEquals(26.326199436407684D, model.localStorageInGiB().max());
+ Assertions.assertEquals(LocalStorageDiskType.HDD, model.localStorageDiskTypes().get(0));
+ Assertions.assertEquals(1102727938, model.dataDiskCount().min());
+ Assertions.assertEquals(1294203653, model.dataDiskCount().max());
+ Assertions.assertEquals(1743582993, model.networkInterfaceCount().min());
+ Assertions.assertEquals(1438650135, model.networkInterfaceCount().max());
+ Assertions.assertEquals(95.85893282584422D, model.networkBandwidthInMbps().min());
+ Assertions.assertEquals(85.02961725926099D, model.networkBandwidthInMbps().max());
+ Assertions.assertEquals(VMAttributeSupport.EXCLUDED, model.rdmaSupport());
+ Assertions.assertEquals(797371044, model.rdmaNetworkInterfaceCount().min());
+ Assertions.assertEquals(2049120588, model.rdmaNetworkInterfaceCount().max());
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.acceleratorSupport());
+ Assertions.assertEquals(AcceleratorManufacturer.AMD, model.acceleratorManufacturers().get(0));
+ Assertions.assertEquals(AcceleratorType.FPGA, model.acceleratorTypes().get(0));
+ Assertions.assertEquals(388527245, model.acceleratorCount().min());
+ Assertions.assertEquals(1962929741, model.acceleratorCount().max());
+ Assertions.assertEquals(VMCategory.FPGA_ACCELERATED, model.vmCategories().get(0));
+ Assertions.assertEquals(ArchitectureType.X86, model.architectureTypes().get(0));
+ Assertions.assertEquals(CpuManufacturer.AMD, model.cpuManufacturers().get(0));
+ Assertions.assertEquals(VMAttributeSupport.REQUIRED, model.burstableSupport());
+ Assertions.assertEquals("k", 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 88d219e1e37c..afae6949885b 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\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"lbjnpgacftadehx\"}}")
.toObject(VMDiskSecurityProfile.class);
- Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityEncryptionType());
- Assertions.assertEquals("gzgqexzlo", model.diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.securityEncryptionType());
+ Assertions.assertEquals("lbjnpgacftadehx", 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.NON_PERSISTED_TPM)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("lbjnpgacftadehx"));
model = BinaryData.fromObject(model).toObject(VMDiskSecurityProfile.class);
- Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY, model.securityEncryptionType());
- Assertions.assertEquals("gzgqexzlo", model.diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM, model.securityEncryptionType());
+ Assertions.assertEquals("lbjnpgacftadehx", 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 d1a22afae446..f48d49384e40 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\":\"bxwakbog\",\"order\":836308274,\"packageReferenceId\":\"dlkzgxhuri\",\"configurationReference\":\"bpodxunkbebxm\",\"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("bxwakbog", model.tags());
+ Assertions.assertEquals(836308274, model.order());
+ Assertions.assertEquals("dlkzgxhuri", model.packageReferenceId());
+ Assertions.assertEquals("bpodxunkbebxm", 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("bxwakbog")
+ .withOrder(836308274)
+ .withPackageReferenceId("dlkzgxhuri")
+ .withConfigurationReference("bpodxunkbebxm")
.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("bxwakbog", model.tags());
+ Assertions.assertEquals(836308274, model.order());
+ Assertions.assertEquals("dlkzgxhuri", model.packageReferenceId());
+ Assertions.assertEquals("bpodxunkbebxm", 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 62208d3fac1f..8559f413b217 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\":837429381,\"vCPUsPerCore\":1876719101}")
.toObject(VMSizeProperties.class);
- Assertions.assertEquals(1880019175, model.vCPUsAvailable());
- Assertions.assertEquals(1776506496, model.vCPUsPerCore());
+ Assertions.assertEquals(837429381, model.vCPUsAvailable());
+ Assertions.assertEquals(1876719101, 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(837429381).withVCPUsPerCore(1876719101);
model = BinaryData.fromObject(model).toObject(VMSizeProperties.class);
- Assertions.assertEquals(1880019175, model.vCPUsAvailable());
- Assertions.assertEquals(1776506496, model.vCPUsPerCore());
+ Assertions.assertEquals(837429381, model.vCPUsAvailable());
+ Assertions.assertEquals(1876719101, 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 1d287ee0d4f0..e36d69975c12 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\":\"u\",\"certificateStore\":\"krlkhbzhfepg\"}")
.toObject(VaultCertificate.class);
- Assertions.assertEquals("hejkotynqgou", model.certificateUrl());
- Assertions.assertEquals("ndlik", model.certificateStore());
+ Assertions.assertEquals("u", model.certificateUrl());
+ Assertions.assertEquals("krlkhbzhfepg", 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("u").withCertificateStore("krlkhbzhfepg");
model = BinaryData.fromObject(model).toObject(VaultCertificate.class);
- Assertions.assertEquals("hejkotynqgou", model.certificateUrl());
- Assertions.assertEquals("ndlik", model.certificateStore());
+ Assertions.assertEquals("u", model.certificateUrl());
+ Assertions.assertEquals("krlkhbzhfepg", 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 766a8d5d5dd6..b9af9daeb367 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\":\"bznorcjxvsnby\"},\"vaultCertificates\":[{\"certificateUrl\":\"nmoc\",\"certificateStore\":\"ysh\"},{\"certificateUrl\":\"zafb\",\"certificateStore\":\"j\"},{\"certificateUrl\":\"btoqcjmkljavbqid\",\"certificateStore\":\"ajzyul\"}]}")
.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("bznorcjxvsnby", model.sourceVault().id());
+ Assertions.assertEquals("nmoc", model.vaultCertificates().get(0).certificateUrl());
+ Assertions.assertEquals("ysh", model.vaultCertificates().get(0).certificateStore());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- VaultSecretGroup model
- = new VaultSecretGroup().withSourceVault(new SubResource().withId("tjelt"))
- .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")));
+ VaultSecretGroup model = new VaultSecretGroup().withSourceVault(new SubResource().withId("bznorcjxvsnby"))
+ .withVaultCertificates(
+ Arrays.asList(new VaultCertificate().withCertificateUrl("nmoc").withCertificateStore("ysh"),
+ new VaultCertificate().withCertificateUrl("zafb").withCertificateStore("j"),
+ new VaultCertificate().withCertificateUrl("btoqcjmkljavbqid").withCertificateStore("ajzyul")));
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("bznorcjxvsnby", model.sourceVault().id());
+ Assertions.assertEquals("nmoc", model.vaultCertificates().get(0).certificateUrl());
+ Assertions.assertEquals("ysh", 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 9d298a85e28e..ad7f08d3f1de 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\":\"hpdjpjumasxa\"}").toObject(VirtualHardDisk.class);
+ Assertions.assertEquals("hpdjpjumasxa", model.uri());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
- VirtualHardDisk model = new VirtualHardDisk().withUri("j");
+ VirtualHardDisk model = new VirtualHardDisk().withUri("hpdjpjumasxa");
model = BinaryData.fromObject(model).toObject(VirtualHardDisk.class);
- Assertions.assertEquals("j", model.uri());
+ Assertions.assertEquals("hpdjpjumasxa", 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 54f15ccb896e..d75558559473 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\":\"tyfsoppusuesn\",\"lun\":331807995,\"caching\":\"ReadWrite\",\"writeAcceleratorEnabled\":false,\"createOption\":\"Restore\",\"diskSizeGB\":1696341054,\"managedDisk\":{\"storageAccountType\":\"PremiumV2_LRS\",\"diskEncryptionSet\":{\"id\":\"ohctbqvudwx\"},\"securityProfile\":{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"w\"}}},\"diskIOPSReadWrite\":7725392897079136246,\"diskMBpsReadWrite\":1752451284566725912,\"deleteOption\":\"Detach\"}")
.toObject(VirtualMachineScaleSetDataDisk.class);
- Assertions.assertEquals("scpai", model.name());
- Assertions.assertEquals(1450066184, model.lun());
+ Assertions.assertEquals("tyfsoppusuesn", model.name());
+ Assertions.assertEquals(331807995, model.lun());
Assertions.assertEquals(CachingTypes.READ_WRITE, 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(DiskCreateOptionTypes.RESTORE, model.createOption());
+ Assertions.assertEquals(1696341054, model.diskSizeGB());
+ Assertions.assertEquals(StorageAccountTypes.PREMIUM_V2_LRS, model.managedDisk().storageAccountType());
+ Assertions.assertEquals("ohctbqvudwx", model.managedDisk().diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY,
model.managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("okaj", model.managedDisk().securityProfile().diskEncryptionSet().id());
- Assertions.assertEquals(4793683131243890643L, model.diskIOPSReadWrite());
- Assertions.assertEquals(1589043930460259001L, model.diskMBpsReadWrite());
- Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption());
+ Assertions.assertEquals("w", model.managedDisk().securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals(7725392897079136246L, model.diskIOPSReadWrite());
+ Assertions.assertEquals(1752451284566725912L, model.diskMBpsReadWrite());
+ Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, 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("tyfsoppusuesn")
+ .withLun(331807995)
+ .withCaching(CachingTypes.READ_WRITE)
+ .withWriteAcceleratorEnabled(false)
+ .withCreateOption(DiskCreateOptionTypes.RESTORE)
+ .withDiskSizeGB(1696341054)
+ .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_V2_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("ohctbqvudwx"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("w"))))
+ .withDiskIOPSReadWrite(7725392897079136246L)
+ .withDiskMBpsReadWrite(1752451284566725912L)
+ .withDeleteOption(DiskDeleteOptionTypes.DETACH);
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetDataDisk.class);
- Assertions.assertEquals("scpai", model.name());
- Assertions.assertEquals(1450066184, model.lun());
+ Assertions.assertEquals("tyfsoppusuesn", model.name());
+ Assertions.assertEquals(331807995, model.lun());
Assertions.assertEquals(CachingTypes.READ_WRITE, 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(DiskCreateOptionTypes.RESTORE, model.createOption());
+ Assertions.assertEquals(1696341054, model.diskSizeGB());
+ Assertions.assertEquals(StorageAccountTypes.PREMIUM_V2_LRS, model.managedDisk().storageAccountType());
+ Assertions.assertEquals("ohctbqvudwx", model.managedDisk().diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY,
model.managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("okaj", model.managedDisk().securityProfile().diskEncryptionSet().id());
- Assertions.assertEquals(4793683131243890643L, model.diskIOPSReadWrite());
- Assertions.assertEquals(1589043930460259001L, model.diskMBpsReadWrite());
- Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption());
+ Assertions.assertEquals("w", model.managedDisk().securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals(7725392897079136246L, model.diskIOPSReadWrite());
+ Assertions.assertEquals(1752451284566725912L, model.diskMBpsReadWrite());
+ Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, 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 a10ef5999c27..ce97b87c7ccb 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\":782528440,\"vCPUsPerCore\":1827531170}}")
.toObject(VirtualMachineScaleSetHardwareProfile.class);
- Assertions.assertEquals(221682106, model.vmSizeProperties().vCPUsAvailable());
- Assertions.assertEquals(1461039431, model.vmSizeProperties().vCPUsPerCore());
+ Assertions.assertEquals(782528440, model.vmSizeProperties().vCPUsAvailable());
+ Assertions.assertEquals(1827531170, 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(782528440).withVCPUsPerCore(1827531170));
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetHardwareProfile.class);
- Assertions.assertEquals(221682106, model.vmSizeProperties().vCPUsAvailable());
- Assertions.assertEquals(1461039431, model.vmSizeProperties().vCPUsPerCore());
+ Assertions.assertEquals(782528440, model.vmSizeProperties().vCPUsAvailable());
+ Assertions.assertEquals(1827531170, 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 c4faf8cfa445..e624c21bb47f 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,84 @@ 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\":\"ywpmueefjzwfqkq\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"suyonobglaocq\",\"properties\":{\"idleTimeoutInMinutes\":1581079817,\"dnsSettings\":{\"domainNameLabel\":\"g\",\"domainNameLabelScope\":\"TenantReuse\"},\"ipTags\":[{\"ipTagType\":\"lmoyrx\",\"tag\":\"fudwpznt\"},{\"ipTagType\":\"dzhlrq\",\"tag\":\"hckfrlhrx\"},{\"ipTagType\":\"kyv\",\"tag\":\"ca\"},{\"ipTagType\":\"z\",\"tag\":\"zka\"}],\"publicIPPrefix\":{\"id\":\"wbcrnwbmehhseyv\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"aofmxagkvtme\"},{\"id\":\"qkrhahvljua\"},{\"id\":\"quhcdhmduala\"}],\"applicationSecurityGroups\":[{\"id\":\"vfadmws\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"vxpvgomz\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"sgwbnbbeld\"},{\"id\":\"k\"}]}")
.toObject(VirtualMachineScaleSetIPConfigurationProperties.class);
- Assertions.assertEquals("vuujq", model.subnet().id());
+ Assertions.assertEquals("ywpmueefjzwfqkq", model.subnet().id());
Assertions.assertEquals(false, model.primary());
- Assertions.assertEquals("kgj", model.publicIPAddressConfiguration().name());
- Assertions.assertEquals(1769769453, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
- Assertions.assertEquals("gvcl",
- model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
- Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE,
+ Assertions.assertEquals("suyonobglaocq", model.publicIPAddressConfiguration().name());
+ Assertions.assertEquals(1581079817, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
+ Assertions.assertEquals("g", model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
+ Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE,
model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("ghkjeszzhbi",
+ Assertions.assertEquals("lmoyrx",
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("fudwpznt", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag());
+ Assertions.assertEquals("wbcrnwbmehhseyv",
+ model.publicIPAddressConfiguration().properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV6,
model.publicIPAddressConfiguration().properties().publicIPAddressVersion());
Assertions.assertEquals(DeleteOptions.DETACH, model.publicIPAddressConfiguration().properties().deleteOption());
- Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.publicIPAddressConfiguration().sku().name());
+ Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, 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(IPVersion.IPV4, model.privateIPAddressVersion());
+ Assertions.assertEquals("aofmxagkvtme", model.applicationGatewayBackendAddressPools().get(0).id());
+ Assertions.assertEquals("vfadmws", model.applicationSecurityGroups().get(0).id());
+ Assertions.assertEquals("vxpvgomz", model.loadBalancerBackendAddressPools().get(0).id());
+ Assertions.assertEquals("sgwbnbbeld", 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("ywpmueefjzwfqkq"))
+ .withPrimary(false)
+ .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
+ .withName("suyonobglaocq")
+ .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
+ .withIdleTimeoutInMinutes(1581079817)
+ .withDnsSettings(
+ new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("g")
+ .withDomainNameLabelScope(DomainNameLabelScopeTypes.TENANT_REUSE))
+ .withIpTags(
+ Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("lmoyrx").withTag("fudwpznt"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("dzhlrq").withTag("hckfrlhrx"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("kyv").withTag("ca"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("z").withTag("zka")))
+ .withPublicIPPrefix(new SubResource().withId("wbcrnwbmehhseyv"))
+ .withPublicIPAddressVersion(IPVersion.IPV6)
+ .withDeleteOption(DeleteOptions.DETACH))
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
+ .withTier(PublicIPAddressSkuTier.GLOBAL)))
+ .withPrivateIPAddressVersion(IPVersion.IPV4)
+ .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("aofmxagkvtme"),
+ new SubResource().withId("qkrhahvljua"), new SubResource().withId("quhcdhmduala")))
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("vfadmws")))
+ .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("vxpvgomz")))
+ .withLoadBalancerInboundNatPools(
+ Arrays.asList(new SubResource().withId("sgwbnbbeld"), new SubResource().withId("k")));
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetIPConfigurationProperties.class);
- Assertions.assertEquals("vuujq", model.subnet().id());
+ Assertions.assertEquals("ywpmueefjzwfqkq", model.subnet().id());
Assertions.assertEquals(false, model.primary());
- Assertions.assertEquals("kgj", model.publicIPAddressConfiguration().name());
- Assertions.assertEquals(1769769453, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
- Assertions.assertEquals("gvcl",
- model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
- Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE,
+ Assertions.assertEquals("suyonobglaocq", model.publicIPAddressConfiguration().name());
+ Assertions.assertEquals(1581079817, model.publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
+ Assertions.assertEquals("g", model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
+ Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE,
model.publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("ghkjeszzhbi",
+ Assertions.assertEquals("lmoyrx",
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("fudwpznt", model.publicIPAddressConfiguration().properties().ipTags().get(0).tag());
+ Assertions.assertEquals("wbcrnwbmehhseyv",
+ model.publicIPAddressConfiguration().properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV6,
model.publicIPAddressConfiguration().properties().publicIPAddressVersion());
Assertions.assertEquals(DeleteOptions.DETACH, model.publicIPAddressConfiguration().properties().deleteOption());
- Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.publicIPAddressConfiguration().sku().name());
+ Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, 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(IPVersion.IPV4, model.privateIPAddressVersion());
+ Assertions.assertEquals("aofmxagkvtme", model.applicationGatewayBackendAddressPools().get(0).id());
+ Assertions.assertEquals("vfadmws", model.applicationSecurityGroups().get(0).id());
+ Assertions.assertEquals("vxpvgomz", model.loadBalancerBackendAddressPools().get(0).id());
+ Assertions.assertEquals("sgwbnbbeld", 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 ee20481c33ed..f7eb986fd92d 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\":\"ukkfplgmgs\",\"properties\":{\"subnet\":{\"id\":\"zkd\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"vlopwiyighx\",\"properties\":{\"idleTimeoutInMinutes\":1713070379,\"dnsSettings\":{\"domainNameLabel\":\"baiuebbaumny\",\"domainNameLabelScope\":\"TenantReuse\"},\"ipTags\":[{\"ipTagType\":\"ojnabckhsmtxpsie\",\"tag\":\"fhvpesaps\"}],\"publicIPPrefix\":{\"id\":\"qmhjjdhtld\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"svlxotogtwrup\"},{\"id\":\"xvnmicykvceov\"},{\"id\":\"lo\"}],\"applicationSecurityGroups\":[{\"id\":\"yfjfcnjbkcn\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ttkphywpnvjtoqne\"},{\"id\":\"clfp\"},{\"id\":\"hoxus\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"bgyepsbj\"},{\"id\":\"zq\"}]}}")
.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("ukkfplgmgs", model.name());
+ Assertions.assertEquals("zkd", model.properties().subnet().id());
+ Assertions.assertEquals(false, model.properties().primary());
+ Assertions.assertEquals("vlopwiyighx", model.properties().publicIPAddressConfiguration().name());
+ Assertions.assertEquals(1713070379,
model.properties().publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
- Assertions.assertEquals("nkixzbinj",
+ Assertions.assertEquals("baiuebbaumny",
model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
- Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE,
+ Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE,
model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("rywn",
+ Assertions.assertEquals("ojnabckhsmtxpsie",
model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType());
- Assertions.assertEquals("oqftiyqzrnkcq",
+ Assertions.assertEquals("fhvpesaps",
model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).tag());
- Assertions.assertEquals("heun",
+ Assertions.assertEquals("qmhjjdhtld",
model.properties().publicIPAddressConfiguration().properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV6,
model.properties().publicIPAddressConfiguration().properties().publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DELETE,
+ Assertions.assertEquals(DeleteOptions.DETACH,
model.properties().publicIPAddressConfiguration().properties().deleteOption());
Assertions.assertEquals(PublicIPAddressSkuName.BASIC,
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(IPVersion.IPV4, model.properties().privateIPAddressVersion());
+ Assertions.assertEquals("svlxotogtwrup",
+ model.properties().applicationGatewayBackendAddressPools().get(0).id());
+ Assertions.assertEquals("yfjfcnjbkcn", model.properties().applicationSecurityGroups().get(0).id());
+ Assertions.assertEquals("ttkphywpnvjtoqne", model.properties().loadBalancerBackendAddressPools().get(0).id());
+ Assertions.assertEquals("bgyepsbj", 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"))));
+ VirtualMachineScaleSetIPConfiguration model = new VirtualMachineScaleSetIPConfiguration().withName("ukkfplgmgs")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
+ .withSubnet(new ApiEntityReference().withId("zkd"))
+ .withPrimary(false)
+ .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
+ .withName("vlopwiyighx")
+ .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
+ .withIdleTimeoutInMinutes(1713070379)
+ .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
+ .withDomainNameLabel("baiuebbaumny")
+ .withDomainNameLabelScope(DomainNameLabelScopeTypes.TENANT_REUSE))
+ .withIpTags(Arrays.asList(
+ new VirtualMachineScaleSetIpTag().withIpTagType("ojnabckhsmtxpsie").withTag("fhvpesaps")))
+ .withPublicIPPrefix(new SubResource().withId("qmhjjdhtld"))
+ .withPublicIPAddressVersion(IPVersion.IPV6)
+ .withDeleteOption(DeleteOptions.DETACH))
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC)
+ .withTier(PublicIPAddressSkuTier.GLOBAL)))
+ .withPrivateIPAddressVersion(IPVersion.IPV4)
+ .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("svlxotogtwrup"),
+ new SubResource().withId("xvnmicykvceov"), new SubResource().withId("lo")))
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("yfjfcnjbkcn")))
+ .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("ttkphywpnvjtoqne"),
+ new SubResource().withId("clfp"), new SubResource().withId("hoxus")))
+ .withLoadBalancerInboundNatPools(
+ Arrays.asList(new SubResource().withId("bgyepsbj"), new SubResource().withId("zq"))));
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("ukkfplgmgs", model.name());
+ Assertions.assertEquals("zkd", model.properties().subnet().id());
+ Assertions.assertEquals(false, model.properties().primary());
+ Assertions.assertEquals("vlopwiyighx", model.properties().publicIPAddressConfiguration().name());
+ Assertions.assertEquals(1713070379,
model.properties().publicIPAddressConfiguration().properties().idleTimeoutInMinutes());
- Assertions.assertEquals("nkixzbinj",
+ Assertions.assertEquals("baiuebbaumny",
model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabel());
- Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE,
+ Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE,
model.properties().publicIPAddressConfiguration().properties().dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("rywn",
+ Assertions.assertEquals("ojnabckhsmtxpsie",
model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).ipTagType());
- Assertions.assertEquals("oqftiyqzrnkcq",
+ Assertions.assertEquals("fhvpesaps",
model.properties().publicIPAddressConfiguration().properties().ipTags().get(0).tag());
- Assertions.assertEquals("heun",
+ Assertions.assertEquals("qmhjjdhtld",
model.properties().publicIPAddressConfiguration().properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV6,
model.properties().publicIPAddressConfiguration().properties().publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DELETE,
+ Assertions.assertEquals(DeleteOptions.DETACH,
model.properties().publicIPAddressConfiguration().properties().deleteOption());
Assertions.assertEquals(PublicIPAddressSkuName.BASIC,
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(IPVersion.IPV4, model.properties().privateIPAddressVersion());
+ Assertions.assertEquals("svlxotogtwrup",
+ model.properties().applicationGatewayBackendAddressPools().get(0).id());
+ Assertions.assertEquals("yfjfcnjbkcn", model.properties().applicationSecurityGroups().get(0).id());
+ Assertions.assertEquals("ttkphywpnvjtoqne", model.properties().loadBalancerBackendAddressPools().get(0).id());
+ Assertions.assertEquals("bgyepsbj", 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 346edcfdc3dd..7903499da13a 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\":\"vlvqhjkbegi\",\"tag\":\"nmxiebwwaloayqc\"}")
.toObject(VirtualMachineScaleSetIpTag.class);
- Assertions.assertEquals("kfssxqukkf", model.ipTagType());
- Assertions.assertEquals("gmgsxnkjzkde", model.tag());
+ Assertions.assertEquals("vlvqhjkbegi", model.ipTagType());
+ Assertions.assertEquals("nmxiebwwaloayqc", model.tag());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualMachineScaleSetIpTag model
- = new VirtualMachineScaleSetIpTag().withIpTagType("kfssxqukkf").withTag("gmgsxnkjzkde");
+ = new VirtualMachineScaleSetIpTag().withIpTagType("vlvqhjkbegi").withTag("nmxiebwwaloayqc");
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetIpTag.class);
- Assertions.assertEquals("kfssxqukkf", model.ipTagType());
- Assertions.assertEquals("gmgsxnkjzkde", model.tag());
+ Assertions.assertEquals("vlvqhjkbegi", model.ipTagType());
+ Assertions.assertEquals("nmxiebwwaloayqc", 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 bc57f897f50d..b05b6bdb6e86 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\":\"e\"},\"securityProfile\":{\"securityEncryptionType\":\"DiskWithVMGuestState\",\"diskEncryptionSet\":{\"id\":\"xxhejjzzvd\"}}}")
.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("e", model.diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE,
model.securityProfile().securityEncryptionType());
- Assertions.assertEquals("qidtqajzyu", model.securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals("xxhejjzzvd", 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"))
- .withSecurityProfile(
- new VMDiskSecurityProfile().withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("qidtqajzyu")));
+ = new VirtualMachineScaleSetManagedDiskParameters().withStorageAccountType(StorageAccountTypes.STANDARD_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("e"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("xxhejjzzvd")));
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("e", model.diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE,
model.securityProfile().securityEncryptionType());
- Assertions.assertEquals("qidtqajzyu", model.securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals("xxhejjzzvd", 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 fb3e4be62876..547994221e1f 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\":[\"vplwzbhv\",\"yuguosvmkfssx\"]}")
+ .toObject(VirtualMachineScaleSetNetworkConfigurationDnsSettings.class);
+ Assertions.assertEquals("vplwzbhv", 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("vplwzbhv", "yuguosvmkfssx"));
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkConfigurationDnsSettings.class);
- Assertions.assertEquals("qzntypm", model.dnsServers().get(0));
+ Assertions.assertEquals("vplwzbhv", 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 855bbcfbfb80..d5fd96686018 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\":true,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"pydptko\"},\"dnsSettings\":{\"dnsServers\":[\"uknvudwti\"]},\"ipConfigurations\":[{\"name\":\"bldngkpoc\",\"properties\":{\"subnet\":{\"id\":\"yxoegukgjnp\"},\"primary\":false,\"publicIPAddressConfiguration\":{\"name\":\"ygevqzntypmrbpiz\",\"properties\":{\"idleTimeoutInMinutes\":1616487247,\"dnsSettings\":{\"domainNameLabel\":\"sdpydnfyhxdeoejz\"},\"ipTags\":[{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"khaj\"},{\"id\":\"yeamdphagalpb\"},{\"id\":\"wgipwhono\"},{\"id\":\"gshwankixz\"}],\"applicationSecurityGroups\":[{\"id\":\"eputtmrywnuzoqf\"},{\"id\":\"yqzrnkcqvyxlw\"},{\"id\":\"lsicohoqqnwv\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"vwhheunmmqhgyx\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"ocukoklyax\"},{\"id\":\"onuq\"}]}},{\"name\":\"zf\",\"properties\":{\"subnet\":{\"id\":\"pewr\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"vvjektcxsenhwlrs\",\"properties\":{\"idleTimeoutInMinutes\":842863771,\"dnsSettings\":{\"domainNameLabel\":\"wvlqdqgb\"},\"ipTags\":[{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"fsnkymuctq\"},{\"id\":\"fbebrjcxer\"}],\"applicationSecurityGroups\":[{\"id\":\"tttxfvjrb\"},{\"id\":\"phxepcyvahf\"},{\"id\":\"jky\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"uujqgidokgjljyo\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"ltbgsncghkj\"},{\"id\":\"zz\"},{\"id\":\"ijhtxf\"}]}},{\"name\":\"gx\",\"properties\":{\"subnet\":{\"id\":\"xnehmpvec\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"ebfqkkrbm\",\"properties\":{\"idleTimeoutInMinutes\":525812320,\"dnsSettings\":{\"domainNameLabel\":\"iw\"},\"ipTags\":[{},{},{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"zahmgkbrpyydhibn\"},{\"id\":\"qkpikadrgvtqagnb\"},{\"id\":\"nhijggmebfsi\"},{\"id\":\"butr\"}],\"applicationSecurityGroups\":[{\"id\":\"azzmhjrunmpxt\"},{\"id\":\"bh\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"ankxmyskpbhenb\"},{\"id\":\"cxy\"},{\"id\":\"y\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"yn\"}]}},{\"name\":\"qidybyx\",\"properties\":{\"subnet\":{\"id\":\"lhaaxdbabp\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"qlfktsths\",\"properties\":{\"idleTimeoutInMinutes\":296949281,\"dnsSettings\":{\"domainNameLabel\":\"nyyazttbtwwrqpue\"},\"ipTags\":[{},{}],\"publicIPPrefix\":{},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"},\"sku\":{\"name\":\"Standard\",\"tier\":\"Global\"}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{\"id\":\"ibx\"},{\"id\":\"wbhqwal\"}],\"applicationSecurityGroups\":[{\"id\":\"oxaepd\"},{\"id\":\"jancu\"},{\"id\":\"hdwbavxbniwdjs\"},{\"id\":\"tsdbpgn\"}],\"loadBalancerBackendAddressPools\":[{\"id\":\"hpzxbzpfzab\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"hxw\"}]}}],\"enableIPForwarding\":false,\"deleteOption\":\"Delete\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"None\"}")
.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(true, 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(true, model.ipConfigurations().get(0).properties().primary());
- Assertions.assertEquals("adehxnltyfsopp",
+ Assertions.assertEquals("pydptko", model.networkSecurityGroup().id());
+ Assertions.assertEquals("uknvudwti", model.dnsSettings().dnsServers().get(0));
+ Assertions.assertEquals("bldngkpoc", model.ipConfigurations().get(0).name());
+ Assertions.assertEquals("yxoegukgjnp", model.ipConfigurations().get(0).properties().subnet().id());
+ Assertions.assertEquals(false, model.ipConfigurations().get(0).properties().primary());
+ Assertions.assertEquals("ygevqzntypmrbpiz",
model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().name());
- Assertions.assertEquals(1667329548,
+ Assertions.assertEquals(1616487247,
model.ipConfigurations()
.get(0)
.properties()
.publicIPAddressConfiguration()
.properties()
.idleTimeoutInMinutes());
- Assertions.assertEquals("nzwdejba",
+ Assertions.assertEquals("sdpydnfyhxdeoejz",
model.ipConfigurations()
.get(0)
.properties()
@@ -57,155 +57,175 @@ public void testDeserialize() throws Exception {
.properties()
.dnsSettings()
.domainNameLabel());
- Assertions.assertEquals(IPVersion.IPV4,
+ Assertions.assertEquals(IPVersion.IPV6,
model.ipConfigurations()
.get(0)
.properties()
.publicIPAddressConfiguration()
.properties()
.publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DETACH,
+ Assertions.assertEquals(DeleteOptions.DELETE,
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("khaj",
model.ipConfigurations().get(0).properties().applicationGatewayBackendAddressPools().get(0).id());
- Assertions.assertEquals("enevfyexfwhybci",
+ Assertions.assertEquals("eputtmrywnuzoqf",
model.ipConfigurations().get(0).properties().applicationSecurityGroups().get(0).id());
- Assertions.assertEquals("kgqhcjrefovg",
+ Assertions.assertEquals("vwhheunmmqhgyx",
model.ipConfigurations().get(0).properties().loadBalancerBackendAddressPools().get(0).id());
- Assertions.assertEquals("mdajv",
+ Assertions.assertEquals("ocukoklyax",
model.ipConfigurations().get(0).properties().loadBalancerInboundNatPools().get(0).id());
Assertions.assertEquals(false, model.enableIPForwarding());
- Assertions.assertEquals(DeleteOptions.DETACH, model.deleteOption());
+ Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption());
Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, model.auxiliarySku());
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.NONE, 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)
+ .withDisableTcpStateTracking(true)
.withEnableFpga(false)
- .withNetworkSecurityGroup(new SubResource().withId("alhbx"))
+ .withNetworkSecurityGroup(new SubResource().withId("pydptko"))
.withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings()
- .withDnsServers(Arrays.asList("jzzvdud")))
+ .withDnsServers(Arrays.asList("uknvudwti")))
.withIpConfigurations(Arrays.asList(
- new VirtualMachineScaleSetIPConfiguration().withName("dslfhotwmcy")
+ new VirtualMachineScaleSetIPConfiguration().withName("bldngkpoc")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("bjnpg"))
+ .withSubnet(new ApiEntityReference().withId("yxoegukgjnp"))
+ .withPrimary(false)
+ .withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
+ .withName("ygevqzntypmrbpiz")
+ .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
+ .withIdleTimeoutInMinutes(1616487247)
+ .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
+ .withDomainNameLabel("sdpydnfyhxdeoejz"))
+ .withIpTags(Arrays.asList(new VirtualMachineScaleSetIpTag()))
+ .withPublicIPPrefix(new SubResource())
+ .withPublicIPAddressVersion(IPVersion.IPV6)
+ .withDeleteOption(DeleteOptions.DELETE))
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
+ .withTier(PublicIPAddressSkuTier.GLOBAL)))
+ .withPrivateIPAddressVersion(IPVersion.IPV6)
+ .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource().withId("khaj"),
+ new SubResource().withId("yeamdphagalpb"), new SubResource().withId("wgipwhono"),
+ new SubResource().withId("gshwankixz")))
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("eputtmrywnuzoqf"),
+ new SubResource().withId("yqzrnkcqvyxlw"), new SubResource().withId("lsicohoqqnwv")))
+ .withLoadBalancerBackendAddressPools(
+ Arrays.asList(new SubResource().withId("vwhheunmmqhgyx")))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("ocukoklyax"),
+ new SubResource().withId("onuq")))),
+ new VirtualMachineScaleSetIPConfiguration().withName("zf")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
+ .withSubnet(new ApiEntityReference().withId("pewr"))
.withPrimary(true)
.withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
- .withName("adehxnltyfsopp")
+ .withName("vvjektcxsenhwlrs")
.withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
- .withIdleTimeoutInMinutes(1667329548)
+ .withIdleTimeoutInMinutes(842863771)
.withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
- .withDomainNameLabel("nzwdejba"))
+ .withDomainNameLabel("wvlqdqgb"))
.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)
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
.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")))
+ .withApplicationGatewayBackendAddressPools(Arrays
+ .asList(new SubResource().withId("fsnkymuctq"), new SubResource().withId("fbebrjcxer")))
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("tttxfvjrb"),
+ new SubResource().withId("phxepcyvahf"), new SubResource().withId("jky")))
.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")
+ Arrays.asList(new SubResource().withId("uujqgidokgjljyo")))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("ltbgsncghkj"),
+ new SubResource().withId("zz"), new SubResource().withId("ijhtxf")))),
+ new VirtualMachineScaleSetIPConfiguration().withName("gx")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("dsfcpkvxodpuoz"))
+ .withSubnet(new ApiEntityReference().withId("xnehmpvec"))
.withPrimary(true)
.withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
- .withName("dagfuaxbezyiuok")
+ .withName("ebfqkkrbm")
.withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
- .withIdleTimeoutInMinutes(1080863753)
+ .withIdleTimeoutInMinutes(525812320)
.withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
- .withDomainNameLabel("dxwzywqsmbsurexi"))
+ .withDomainNameLabel("iw"))
.withIpTags(Arrays.asList(new VirtualMachineScaleSetIpTag(),
new VirtualMachineScaleSetIpTag(), new VirtualMachineScaleSetIpTag(),
new VirtualMachineScaleSetIpTag()))
.withPublicIPPrefix(new SubResource())
- .withPublicIPAddressVersion(IPVersion.IPV4)
- .withDeleteOption(DeleteOptions.DELETE))
+ .withPublicIPAddressVersion(IPVersion.IPV6)
+ .withDeleteOption(DeleteOptions.DETACH))
.withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC)
.withTier(PublicIPAddressSkuTier.GLOBAL)))
.withPrivateIPAddressVersion(IPVersion.IPV6)
.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")
+ Arrays.asList(new SubResource().withId("zahmgkbrpyydhibn"),
+ new SubResource().withId("qkpikadrgvtqagnb"),
+ new SubResource().withId("nhijggmebfsi"), new SubResource().withId("butr")))
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource().withId("azzmhjrunmpxt"),
+ new SubResource().withId("bh")))
+ .withLoadBalancerBackendAddressPools(
+ Arrays.asList(new SubResource().withId("ankxmyskpbhenb"),
+ new SubResource().withId("cxy"), new SubResource().withId("y")))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("yn")))),
+ new VirtualMachineScaleSetIPConfiguration().withName("qidybyx")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("eduugi"))
+ .withSubnet(new ApiEntityReference().withId("lhaaxdbabp"))
.withPrimary(true)
.withPublicIPAddressConfiguration(new VirtualMachineScaleSetPublicIPAddressConfiguration()
- .withName("rfbyaosvexcso")
+ .withName("qlfktsths")
.withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
- .withIdleTimeoutInMinutes(699840472)
+ .withIdleTimeoutInMinutes(296949281)
.withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
- .withDomainNameLabel("ocohslkevleg"))
+ .withDomainNameLabel("nyyazttbtwwrqpue"))
.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"))))))
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
+ .withTier(PublicIPAddressSkuTier.GLOBAL)))
+ .withPrivateIPAddressVersion(IPVersion.IPV4)
+ .withApplicationGatewayBackendAddressPools(
+ Arrays.asList(new SubResource().withId("ibx"), new SubResource().withId("wbhqwal")))
+ .withApplicationSecurityGroups(
+ Arrays.asList(new SubResource().withId("oxaepd"), new SubResource().withId("jancu"),
+ new SubResource().withId("hdwbavxbniwdjs"), new SubResource().withId("tsdbpgn")))
+ .withLoadBalancerBackendAddressPools(Arrays.asList(new SubResource().withId("hpzxbzpfzab")))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource().withId("hxw"))))))
.withEnableIPForwarding(false)
- .withDeleteOption(DeleteOptions.DETACH)
+ .withDeleteOption(DeleteOptions.DELETE)
.withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE)
- .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A1);
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE);
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(true, 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(true, model.ipConfigurations().get(0).properties().primary());
- Assertions.assertEquals("adehxnltyfsopp",
+ Assertions.assertEquals("pydptko", model.networkSecurityGroup().id());
+ Assertions.assertEquals("uknvudwti", model.dnsSettings().dnsServers().get(0));
+ Assertions.assertEquals("bldngkpoc", model.ipConfigurations().get(0).name());
+ Assertions.assertEquals("yxoegukgjnp", model.ipConfigurations().get(0).properties().subnet().id());
+ Assertions.assertEquals(false, model.ipConfigurations().get(0).properties().primary());
+ Assertions.assertEquals("ygevqzntypmrbpiz",
model.ipConfigurations().get(0).properties().publicIPAddressConfiguration().name());
- Assertions.assertEquals(1667329548,
+ Assertions.assertEquals(1616487247,
model.ipConfigurations()
.get(0)
.properties()
.publicIPAddressConfiguration()
.properties()
.idleTimeoutInMinutes());
- Assertions.assertEquals("nzwdejba",
+ Assertions.assertEquals("sdpydnfyhxdeoejz",
model.ipConfigurations()
.get(0)
.properties()
@@ -213,31 +233,31 @@ public void testSerialize() throws Exception {
.properties()
.dnsSettings()
.domainNameLabel());
- Assertions.assertEquals(IPVersion.IPV4,
+ Assertions.assertEquals(IPVersion.IPV6,
model.ipConfigurations()
.get(0)
.properties()
.publicIPAddressConfiguration()
.properties()
.publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DETACH,
+ Assertions.assertEquals(DeleteOptions.DELETE,
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("khaj",
model.ipConfigurations().get(0).properties().applicationGatewayBackendAddressPools().get(0).id());
- Assertions.assertEquals("enevfyexfwhybci",
+ Assertions.assertEquals("eputtmrywnuzoqf",
model.ipConfigurations().get(0).properties().applicationSecurityGroups().get(0).id());
- Assertions.assertEquals("kgqhcjrefovg",
+ Assertions.assertEquals("vwhheunmmqhgyx",
model.ipConfigurations().get(0).properties().loadBalancerBackendAddressPools().get(0).id());
- Assertions.assertEquals("mdajv",
+ Assertions.assertEquals("ocukoklyax",
model.ipConfigurations().get(0).properties().loadBalancerInboundNatPools().get(0).id());
Assertions.assertEquals(false, model.enableIPForwarding());
- Assertions.assertEquals(DeleteOptions.DETACH, model.deleteOption());
+ Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption());
Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, model.auxiliarySku());
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.NONE, 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 0f142f40befc..a31c885f7cd1 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,98 +26,80 @@ 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\":\"watkpnpulexxb\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"j\"},\"dnsSettings\":{\"dnsServers\":[\"myokacspkwlh\",\"dobpxjmflbvvn\",\"hrk\"]},\"ipConfigurations\":[{\"name\":\"iwwzjuqk\",\"properties\":{\"subnet\":{\"id\":\"jiwkuofoskghsau\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"mvxi\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv4\",\"applicationGatewayBackendAddressPools\":[{},{},{}],\"applicationSecurityGroups\":[{},{},{}],\"loadBalancerBackendAddressPools\":[{},{},{},{}],\"loadBalancerInboundNatPools\":[{}]}},{\"name\":\"y\",\"properties\":{\"subnet\":{\"id\":\"e\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"npc\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{}],\"applicationSecurityGroups\":[{},{}],\"loadBalancerBackendAddressPools\":[{},{},{},{}],\"loadBalancerInboundNatPools\":[{},{}]}},{\"name\":\"ggzfbu\",\"properties\":{\"subnet\":{\"id\":\"faxkffeii\"},\"primary\":true,\"publicIPAddressConfiguration\":{\"name\":\"m\",\"properties\":{},\"sku\":{}},\"privateIPAddressVersion\":\"IPv6\",\"applicationGatewayBackendAddressPools\":[{},{},{}],\"applicationSecurityGroups\":[{},{},{},{}],\"loadBalancerBackendAddressPools\":[{},{}],\"loadBalancerInboundNatPools\":[{},{},{},{}]}}],\"enableIPForwarding\":false,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"A1\"}}")
.toObject(VirtualMachineScaleSetNetworkConfiguration.class);
- Assertions.assertEquals("iotkftutqxl", model.name());
- Assertions.assertEquals(true, model.properties().primary());
- Assertions.assertEquals(true, model.properties().enableAcceleratedNetworking());
- Assertions.assertEquals(true, model.properties().disableTcpStateTracking());
+ Assertions.assertEquals("watkpnpulexxb", model.name());
+ Assertions.assertEquals(false, model.properties().primary());
+ Assertions.assertEquals(false, model.properties().enableAcceleratedNetworking());
+ Assertions.assertEquals(false, 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("j", model.properties().networkSecurityGroup().id());
+ Assertions.assertEquals("myokacspkwlh", model.properties().dnsSettings().dnsServers().get(0));
+ Assertions.assertEquals("iwwzjuqk", model.properties().ipConfigurations().get(0).name());
+ Assertions.assertEquals("jiwkuofoskghsau",
+ model.properties().ipConfigurations().get(0).properties().subnet().id());
+ Assertions.assertEquals(true, model.properties().ipConfigurations().get(0).properties().primary());
+ Assertions.assertEquals("mvxi",
model.properties().ipConfigurations().get(0).properties().publicIPAddressConfiguration().name());
- Assertions.assertEquals(IPVersion.IPV6,
+ Assertions.assertEquals(IPVersion.IPV4,
model.properties().ipConfigurations().get(0).properties().privateIPAddressVersion());
Assertions.assertEquals(false, model.properties().enableIPForwarding());
- Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption());
+ Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption());
Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.properties().auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.properties().auxiliarySku());
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, model.properties().auxiliarySku());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualMachineScaleSetNetworkConfiguration model
- = new VirtualMachineScaleSetNetworkConfiguration().withName("iotkftutqxl")
- .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(true)
- .withEnableAcceleratedNetworking(true)
- .withDisableTcpStateTracking(true)
+ = new VirtualMachineScaleSetNetworkConfiguration().withName("watkpnpulexxb")
+ .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false)
+ .withEnableAcceleratedNetworking(false)
+ .withDisableTcpStateTracking(false)
.withEnableFpga(false)
- .withNetworkSecurityGroup(new SubResource().withId("rxdq"))
+ .withNetworkSecurityGroup(new SubResource().withId("j"))
.withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings()
- .withDnsServers(Arrays.asList("thz", "vqdra")))
+ .withDnsServers(Arrays.asList("myokacspkwlh", "dobpxjmflbvvn", "hrk")))
.withIpConfigurations(Arrays.asList(
- new VirtualMachineScaleSetIPConfiguration().withName("jybige")
+ new VirtualMachineScaleSetIPConfiguration().withName("iwwzjuqk")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("bowsk"))
- .withPrimary(false)
- .withPublicIPAddressConfiguration(
- new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("tzlcuiywgqywgn")
- .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()))
- .withLoadBalancerInboundNatPools(
- Arrays.asList(new SubResource(), new SubResource(), new SubResource()))),
- new VirtualMachineScaleSetIPConfiguration().withName("gyncocpecfvmmc")
- .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("xlzevgbmqjqabcy"))
+ .withSubnet(new ApiEntityReference().withId("jiwkuofoskghsau"))
.withPrimary(true)
.withPublicIPAddressConfiguration(
- new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("kwlzuvccfwnfn")
+ new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("mvxi")
.withProperties(
new VirtualMachineScaleSetPublicIPAddressConfigurationProperties())
.withSku(new PublicIPAddressSku()))
.withPrivateIPAddressVersion(IPVersion.IPV4)
- .withApplicationGatewayBackendAddressPools(Arrays.asList(new SubResource(),
- new SubResource(), new SubResource(), new SubResource()))
+ .withApplicationGatewayBackendAddressPools(
+ Arrays.asList(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")
+ .withLoadBalancerBackendAddressPools(Arrays
+ .asList(new SubResource(), new SubResource(), new SubResource(), new SubResource()))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource()))),
+ new VirtualMachineScaleSetIPConfiguration().withName("y")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("qbqqwxr"))
+ .withSubnet(new ApiEntityReference().withId("e"))
.withPrimary(true)
.withPublicIPAddressConfiguration(
- new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("llnwsubi")
+ new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("npc")
.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")
+ .withApplicationSecurityGroups(Arrays.asList(new SubResource(), new SubResource()))
+ .withLoadBalancerBackendAddressPools(Arrays
+ .asList(new SubResource(), new SubResource(), new SubResource(), new SubResource()))
+ .withLoadBalancerInboundNatPools(Arrays.asList(new SubResource(), new SubResource()))),
+ new VirtualMachineScaleSetIPConfiguration().withName("ggzfbu")
.withProperties(new VirtualMachineScaleSetIPConfigurationProperties()
- .withSubnet(new ApiEntityReference().withId("rxnjeaseipheofl"))
- .withPrimary(false)
+ .withSubnet(new ApiEntityReference().withId("faxkffeii"))
+ .withPrimary(true)
.withPublicIPAddressConfiguration(
- new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("y")
+ new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("m")
.withProperties(
new VirtualMachineScaleSetPublicIPAddressConfigurationProperties())
.withSku(new PublicIPAddressSku()))
@@ -127,31 +109,32 @@ public void testSerialize() throws Exception {
.withApplicationSecurityGroups(Arrays.asList(new SubResource(), new SubResource(),
new SubResource(), new SubResource()))
.withLoadBalancerBackendAddressPools(
- Arrays.asList(new SubResource(), new SubResource(), new SubResource()))
+ Arrays.asList(new SubResource(), new SubResource()))
.withLoadBalancerInboundNatPools(Arrays.asList(new SubResource(), new SubResource(),
new SubResource(), new SubResource())))))
.withEnableIPForwarding(false)
- .withDeleteOption(DeleteOptions.DELETE)
+ .withDeleteOption(DeleteOptions.DETACH)
.withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE)
- .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A8));
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A1));
model = BinaryData.fromObject(model).toObject(VirtualMachineScaleSetNetworkConfiguration.class);
- Assertions.assertEquals("iotkftutqxl", model.name());
- Assertions.assertEquals(true, model.properties().primary());
- Assertions.assertEquals(true, model.properties().enableAcceleratedNetworking());
- Assertions.assertEquals(true, model.properties().disableTcpStateTracking());
+ Assertions.assertEquals("watkpnpulexxb", model.name());
+ Assertions.assertEquals(false, model.properties().primary());
+ Assertions.assertEquals(false, model.properties().enableAcceleratedNetworking());
+ Assertions.assertEquals(false, 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("j", model.properties().networkSecurityGroup().id());
+ Assertions.assertEquals("myokacspkwlh", model.properties().dnsSettings().dnsServers().get(0));
+ Assertions.assertEquals("iwwzjuqk", model.properties().ipConfigurations().get(0).name());
+ Assertions.assertEquals("jiwkuofoskghsau",
+ model.properties().ipConfigurations().get(0).properties().subnet().id());
+ Assertions.assertEquals(true, model.properties().ipConfigurations().get(0).properties().primary());
+ Assertions.assertEquals("mvxi",
model.properties().ipConfigurations().get(0).properties().publicIPAddressConfiguration().name());
- Assertions.assertEquals(IPVersion.IPV6,
+ Assertions.assertEquals(IPVersion.IPV4,
model.properties().ipConfigurations().get(0).properties().privateIPAddressVersion());
Assertions.assertEquals(false, model.properties().enableIPForwarding());
- Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption());
+ Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption());
Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE, model.properties().auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A8, model.properties().auxiliarySku());
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A1, 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 ad00570746cc..d9b0d3509f05 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,110 @@ 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\":\"lhslazjdyggdtj\"},\"networkInterfaceConfigurations\":[{\"name\":\"b\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"disableTcpStateTracking\":false,\"enableFpga\":true,\"networkSecurityGroup\":{\"id\":\"n\"},\"dnsSettings\":{\"dnsServers\":[\"exfwhy\",\"cibvyvdcsitynn\"]},\"ipConfigurations\":[{\"name\":\"mdectehfiqscjey\",\"properties\":{}},{\"name\":\"hezrkgq\",\"properties\":{}}],\"enableIPForwarding\":true,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"None\",\"auxiliarySku\":\"None\"}},{\"name\":\"kqsleyyvxy\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":true,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"cr\"},\"dnsSettings\":{\"dnsServers\":[\"qpjhvmda\",\"v\",\"ysou\"]},\"ipConfigurations\":[{\"name\":\"e\",\"properties\":{}}],\"enableIPForwarding\":true,\"deleteOption\":\"Detach\",\"auxiliaryMode\":\"Floating\",\"auxiliarySku\":\"A4\"}},{\"name\":\"yhltrpmopjmcm\",\"properties\":{\"primary\":false,\"enableAcceleratedNetworking\":true,\"disableTcpStateTracking\":false,\"enableFpga\":false,\"networkSecurityGroup\":{\"id\":\"odsfcpkvxodpuozm\"},\"dnsSettings\":{\"dnsServers\":[\"agfuaxbezyiu\",\"kktwhrdxw\",\"ywqsmbsurexim\",\"ryocfsfksymdd\"]},\"ipConfigurations\":[{\"name\":\"tki\",\"properties\":{}},{\"name\":\"xhqyudxorrqnb\",\"properties\":{}},{\"name\":\"czvyifq\",\"properties\":{}}],\"enableIPForwarding\":true,\"deleteOption\":\"Delete\",\"auxiliaryMode\":\"AcceleratedConnections\",\"auxiliarySku\":\"None\"}}],\"networkApiVersion\":\"2020-11-01\"}")
.toObject(VirtualMachineScaleSetNetworkProfile.class);
- Assertions.assertEquals("xgcp", model.healthProbe().id());
- Assertions.assertEquals("maajrmvdjwzrlo", model.networkInterfaceConfigurations().get(0).name());
+ Assertions.assertEquals("lhslazjdyggdtj", model.healthProbe().id());
+ Assertions.assertEquals("b", model.networkInterfaceConfigurations().get(0).name());
Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().primary());
Assertions.assertEquals(false,
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("n",
model.networkInterfaceConfigurations().get(0).properties().networkSecurityGroup().id());
- Assertions.assertEquals("cbkbfkg",
+ Assertions.assertEquals("exfwhy",
model.networkInterfaceConfigurations().get(0).properties().dnsSettings().dnsServers().get(0));
- Assertions.assertEquals("dkexxppofm",
+ Assertions.assertEquals("mdectehfiqscjey",
model.networkInterfaceConfigurations().get(0).properties().ipConfigurations().get(0).name());
- Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding());
+ Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding());
Assertions.assertEquals(DeleteOptions.DETACH,
model.networkInterfaceConfigurations().get(0).properties().deleteOption());
- Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS,
+ Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE,
model.networkInterfaceConfigurations().get(0).properties().auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A4,
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.NONE,
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("lhslazjdyggdtj"))
+ .withNetworkInterfaceConfigurations(Arrays.asList(
+ new VirtualMachineScaleSetNetworkConfiguration().withName("b")
+ .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(true)
+ .withEnableAcceleratedNetworking(false)
+ .withDisableTcpStateTracking(false)
+ .withEnableFpga(true)
+ .withNetworkSecurityGroup(new SubResource().withId("n"))
+ .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings()
+ .withDnsServers(Arrays.asList("exfwhy", "cibvyvdcsitynn")))
+ .withIpConfigurations(Arrays.asList(
+ new VirtualMachineScaleSetIPConfiguration().withName("mdectehfiqscjey")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()),
+ new VirtualMachineScaleSetIPConfiguration().withName("hezrkgq")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties())))
+ .withEnableIPForwarding(true)
+ .withDeleteOption(DeleteOptions.DETACH)
+ .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE)
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE)),
+ new VirtualMachineScaleSetNetworkConfiguration().withName("kqsleyyvxy")
+ .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false)
+ .withEnableAcceleratedNetworking(true)
+ .withDisableTcpStateTracking(true)
+ .withEnableFpga(false)
+ .withNetworkSecurityGroup(new SubResource().withId("cr"))
+ .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings()
+ .withDnsServers(Arrays.asList("qpjhvmda", "v", "ysou")))
+ .withIpConfigurations(Arrays.asList(new VirtualMachineScaleSetIPConfiguration().withName("e")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties())))
+ .withEnableIPForwarding(true)
+ .withDeleteOption(DeleteOptions.DETACH)
+ .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.FLOATING)
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.A4)),
+ new VirtualMachineScaleSetNetworkConfiguration().withName("yhltrpmopjmcm")
+ .withProperties(new VirtualMachineScaleSetNetworkConfigurationProperties().withPrimary(false)
+ .withEnableAcceleratedNetworking(true)
+ .withDisableTcpStateTracking(false)
+ .withEnableFpga(false)
+ .withNetworkSecurityGroup(new SubResource().withId("odsfcpkvxodpuozm"))
+ .withDnsSettings(new VirtualMachineScaleSetNetworkConfigurationDnsSettings().withDnsServers(
+ Arrays.asList("agfuaxbezyiu", "kktwhrdxw", "ywqsmbsurexim", "ryocfsfksymdd")))
+ .withIpConfigurations(Arrays.asList(
+ new VirtualMachineScaleSetIPConfiguration().withName("tki")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()),
+ new VirtualMachineScaleSetIPConfiguration().withName("xhqyudxorrqnb")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties()),
+ new VirtualMachineScaleSetIPConfiguration().withName("czvyifq")
+ .withProperties(new VirtualMachineScaleSetIPConfigurationProperties())))
+ .withEnableIPForwarding(true)
+ .withDeleteOption(DeleteOptions.DELETE)
+ .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS)
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE))))
+ .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("lhslazjdyggdtj", model.healthProbe().id());
+ Assertions.assertEquals("b", model.networkInterfaceConfigurations().get(0).name());
Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().primary());
Assertions.assertEquals(false,
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("n",
model.networkInterfaceConfigurations().get(0).properties().networkSecurityGroup().id());
- Assertions.assertEquals("cbkbfkg",
+ Assertions.assertEquals("exfwhy",
model.networkInterfaceConfigurations().get(0).properties().dnsSettings().dnsServers().get(0));
- Assertions.assertEquals("dkexxppofm",
+ Assertions.assertEquals("mdectehfiqscjey",
model.networkInterfaceConfigurations().get(0).properties().ipConfigurations().get(0).name());
- Assertions.assertEquals(false, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding());
+ Assertions.assertEquals(true, model.networkInterfaceConfigurations().get(0).properties().enableIPForwarding());
Assertions.assertEquals(DeleteOptions.DETACH,
model.networkInterfaceConfigurations().get(0).properties().deleteOption());
- Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.ACCELERATED_CONNECTIONS,
+ Assertions.assertEquals(NetworkInterfaceAuxiliaryMode.NONE,
model.networkInterfaceConfigurations().get(0).properties().auxiliaryMode());
- Assertions.assertEquals(NetworkInterfaceAuxiliarySku.A4,
+ Assertions.assertEquals(NetworkInterfaceAuxiliarySku.NONE,
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 45de967495f2..e417761ece62 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\":\"x\",\"caching\":\"ReadOnly\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Attach\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"CacheDisk\"},\"diskSizeGB\":847580815,\"osType\":\"Linux\",\"image\":{\"uri\":\"jfeallnwsub\"},\"vhdContainers\":[\"jampmngnzscxaqw\",\"ochcbonqvpkvl\"],\"managedDisk\":{\"storageAccountType\":\"Premium_LRS\",\"diskEncryptionSet\":{\"id\":\"seiphe\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"yyien\"}}},\"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("x", model.name());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, model.caching());
+ Assertions.assertEquals(true, model.writeAcceleratorEnabled());
+ Assertions.assertEquals(DiskCreateOptionTypes.ATTACH, model.createOption());
Assertions.assertEquals(DiffDiskOptions.LOCAL, model.diffDiskSettings().option());
Assertions.assertEquals(DiffDiskPlacement.CACHE_DISK, model.diffDiskSettings().placement());
- Assertions.assertEquals(1230254023, 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(847580815, model.diskSizeGB());
+ Assertions.assertEquals(OperatingSystemTypes.LINUX, model.osType());
+ Assertions.assertEquals("jfeallnwsub", model.image().uri());
+ Assertions.assertEquals("jampmngnzscxaqw", model.vhdContainers().get(0));
+ Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType());
+ Assertions.assertEquals("seiphe", model.managedDisk().diskEncryptionSet().id());
Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM,
model.managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("ysh", model.managedDisk().securityProfile().diskEncryptionSet().id());
- Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption());
+ Assertions.assertEquals("yyien", 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)
+ VirtualMachineScaleSetOSDisk model = new VirtualMachineScaleSetOSDisk().withName("x")
+ .withCaching(CachingTypes.READ_ONLY)
+ .withWriteAcceleratorEnabled(true)
+ .withCreateOption(DiskCreateOptionTypes.ATTACH)
.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"))
+ .withDiskSizeGB(847580815)
+ .withOsType(OperatingSystemTypes.LINUX)
+ .withImage(new VirtualHardDisk().withUri("jfeallnwsub"))
+ .withVhdContainers(Arrays.asList("jampmngnzscxaqw", "ochcbonqvpkvl"))
.withManagedDisk(
new VirtualMachineScaleSetManagedDiskParameters()
- .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_ZRS)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("cjxvsnbyxqab"))
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("seiphe"))
.withSecurityProfile(new VMDiskSecurityProfile()
.withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("ysh"))))
- .withDeleteOption(DiskDeleteOptionTypes.DELETE);
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("yyien"))))
+ .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("x", model.name());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, model.caching());
+ Assertions.assertEquals(true, model.writeAcceleratorEnabled());
+ Assertions.assertEquals(DiskCreateOptionTypes.ATTACH, model.createOption());
Assertions.assertEquals(DiffDiskOptions.LOCAL, model.diffDiskSettings().option());
Assertions.assertEquals(DiffDiskPlacement.CACHE_DISK, model.diffDiskSettings().placement());
- Assertions.assertEquals(1230254023, 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(847580815, model.diskSizeGB());
+ Assertions.assertEquals(OperatingSystemTypes.LINUX, model.osType());
+ Assertions.assertEquals("jfeallnwsub", model.image().uri());
+ Assertions.assertEquals("jampmngnzscxaqw", model.vhdContainers().get(0));
+ Assertions.assertEquals(StorageAccountTypes.PREMIUM_LRS, model.managedDisk().storageAccountType());
+ Assertions.assertEquals("seiphe", model.managedDisk().diskEncryptionSet().id());
Assertions.assertEquals(SecurityEncryptionTypes.NON_PERSISTED_TPM,
model.managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("ysh", model.managedDisk().securityProfile().diskEncryptionSet().id());
- Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.deleteOption());
+ Assertions.assertEquals("yyien", 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 2d29acbfb679..17201c3a2b74 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\":\"c\",\"domainNameLabelScope\":\"NoReuse\"}")
+ .toObject(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings.class);
+ Assertions.assertEquals("c", 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("c")
+ .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("c", 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 995a99b08c5f..be71364663b4 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,39 +19,40 @@ 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\":1151262260,\"dnsSettings\":{\"domainNameLabel\":\"nhjdauw\",\"domainNameLabelScope\":\"TenantReuse\"},\"ipTags\":[{\"ipTagType\":\"btdhxujznbm\",\"tag\":\"wuwprzqlv\"},{\"ipTagType\":\"alupjm\",\"tag\":\"fxobbcsws\"}],\"publicIPPrefix\":{\"id\":\"riplrbpbewtg\"},\"publicIPAddressVersion\":\"IPv6\",\"deleteOption\":\"Detach\"}")
.toObject(VirtualMachineScaleSetPublicIPAddressConfigurationProperties.class);
- Assertions.assertEquals(2022437290, model.idleTimeoutInMinutes());
- Assertions.assertEquals("niwdjsw", model.dnsSettings().domainNameLabel());
+ Assertions.assertEquals(1151262260, model.idleTimeoutInMinutes());
+ Assertions.assertEquals("nhjdauw", model.dnsSettings().domainNameLabel());
Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE, model.dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("gnxytxhpzxbz", model.ipTags().get(0).ipTagType());
- Assertions.assertEquals("zabglcuhxwt", model.ipTags().get(0).tag());
- Assertions.assertEquals("qik", model.publicIPPrefix().id());
- Assertions.assertEquals(IPVersion.IPV4, model.publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption());
+ Assertions.assertEquals("btdhxujznbm", model.ipTags().get(0).ipTagType());
+ Assertions.assertEquals("wuwprzqlv", model.ipTags().get(0).tag());
+ Assertions.assertEquals("riplrbpbewtg", model.publicIPPrefix().id());
+ Assertions.assertEquals(IPVersion.IPV6, model.publicIPAddressVersion());
+ Assertions.assertEquals(DeleteOptions.DETACH, model.deleteOption());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualMachineScaleSetPublicIPAddressConfigurationProperties model
- = new VirtualMachineScaleSetPublicIPAddressConfigurationProperties().withIdleTimeoutInMinutes(2022437290)
+ = new VirtualMachineScaleSetPublicIPAddressConfigurationProperties().withIdleTimeoutInMinutes(1151262260)
.withDnsSettings(
- new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("niwdjsw")
+ new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings().withDomainNameLabel("nhjdauw")
.withDomainNameLabelScope(DomainNameLabelScopeTypes.TENANT_REUSE))
- .withIpTags(Arrays
- .asList(new VirtualMachineScaleSetIpTag().withIpTagType("gnxytxhpzxbz").withTag("zabglcuhxwt")))
- .withPublicIPPrefix(new SubResource().withId("qik"))
- .withPublicIPAddressVersion(IPVersion.IPV4)
- .withDeleteOption(DeleteOptions.DELETE);
+ .withIpTags(
+ Arrays.asList(new VirtualMachineScaleSetIpTag().withIpTagType("btdhxujznbm").withTag("wuwprzqlv"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("alupjm").withTag("fxobbcsws")))
+ .withPublicIPPrefix(new SubResource().withId("riplrbpbewtg"))
+ .withPublicIPAddressVersion(IPVersion.IPV6)
+ .withDeleteOption(DeleteOptions.DETACH);
model
= BinaryData.fromObject(model).toObject(VirtualMachineScaleSetPublicIPAddressConfigurationProperties.class);
- Assertions.assertEquals(2022437290, model.idleTimeoutInMinutes());
- Assertions.assertEquals("niwdjsw", model.dnsSettings().domainNameLabel());
+ Assertions.assertEquals(1151262260, model.idleTimeoutInMinutes());
+ Assertions.assertEquals("nhjdauw", model.dnsSettings().domainNameLabel());
Assertions.assertEquals(DomainNameLabelScopeTypes.TENANT_REUSE, model.dnsSettings().domainNameLabelScope());
- Assertions.assertEquals("gnxytxhpzxbz", model.ipTags().get(0).ipTagType());
- Assertions.assertEquals("zabglcuhxwt", model.ipTags().get(0).tag());
- Assertions.assertEquals("qik", model.publicIPPrefix().id());
- Assertions.assertEquals(IPVersion.IPV4, model.publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DELETE, model.deleteOption());
+ Assertions.assertEquals("btdhxujznbm", model.ipTags().get(0).ipTagType());
+ Assertions.assertEquals("wuwprzqlv", model.ipTags().get(0).tag());
+ Assertions.assertEquals("riplrbpbewtg", model.publicIPPrefix().id());
+ Assertions.assertEquals(IPVersion.IPV6, model.publicIPAddressVersion());
+ Assertions.assertEquals(DeleteOptions.DETACH, 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 d5e0125624ed..606d8d9ba715 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,52 +23,53 @@ 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\":\"baliourqhakauha\",\"properties\":{\"idleTimeoutInMinutes\":661923872,\"dnsSettings\":{\"domainNameLabel\":\"xosow\",\"domainNameLabelScope\":\"ResourceGroupReuse\"},\"ipTags\":[{\"ipTagType\":\"cjooxdjebwpucwwf\",\"tag\":\"vbvmeu\"},{\"ipTagType\":\"ivyhzceuojgjrwju\",\"tag\":\"otwmcdyt\"},{\"ipTagType\":\"wit\",\"tag\":\"rjaw\"}],\"publicIPPrefix\":{\"id\":\"gxhnisk\"},\"publicIPAddressVersion\":\"IPv4\",\"deleteOption\":\"Delete\"},\"sku\":{\"name\":\"Basic\",\"tier\":\"Regional\"}}")
.toObject(VirtualMachineScaleSetPublicIPAddressConfiguration.class);
- Assertions.assertEquals("henbtkcxywnytn", model.name());
- Assertions.assertEquals(815551540, model.properties().idleTimeoutInMinutes());
- Assertions.assertEquals("qidybyx", model.properties().dnsSettings().domainNameLabel());
- Assertions.assertEquals(DomainNameLabelScopeTypes.NO_REUSE,
+ Assertions.assertEquals("baliourqhakauha", model.name());
+ Assertions.assertEquals(661923872, model.properties().idleTimeoutInMinutes());
+ Assertions.assertEquals("xosow", model.properties().dnsSettings().domainNameLabel());
+ Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_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("cjooxdjebwpucwwf", model.properties().ipTags().get(0).ipTagType());
+ Assertions.assertEquals("vbvmeu", model.properties().ipTags().get(0).tag());
+ Assertions.assertEquals("gxhnisk", model.properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption());
- Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.sku().name());
- Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.sku().tier());
+ Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption());
+ Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.sku().name());
+ Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, model.sku().tier());
}
@org.junit.jupiter.api.Test
public void testSerialize() throws Exception {
VirtualMachineScaleSetPublicIPAddressConfiguration model
- = new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("henbtkcxywnytn")
- .withProperties(new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
- .withIdleTimeoutInMinutes(815551540)
- .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
- .withDomainNameLabel("qidybyx")
- .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))
- .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.STANDARD)
- .withTier(PublicIPAddressSkuTier.GLOBAL));
+ = new VirtualMachineScaleSetPublicIPAddressConfiguration().withName("baliourqhakauha")
+ .withProperties(
+ new VirtualMachineScaleSetPublicIPAddressConfigurationProperties()
+ .withIdleTimeoutInMinutes(661923872)
+ .withDnsSettings(new VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings()
+ .withDomainNameLabel("xosow")
+ .withDomainNameLabelScope(DomainNameLabelScopeTypes.RESOURCE_GROUP_REUSE))
+ .withIpTags(Arrays.asList(
+ new VirtualMachineScaleSetIpTag().withIpTagType("cjooxdjebwpucwwf").withTag("vbvmeu"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("ivyhzceuojgjrwju").withTag("otwmcdyt"),
+ new VirtualMachineScaleSetIpTag().withIpTagType("wit").withTag("rjaw")))
+ .withPublicIPPrefix(new SubResource().withId("gxhnisk"))
+ .withPublicIPAddressVersion(IPVersion.IPV4)
+ .withDeleteOption(DeleteOptions.DELETE))
+ .withSku(new PublicIPAddressSku().withName(PublicIPAddressSkuName.BASIC)
+ .withTier(PublicIPAddressSkuTier.REGIONAL));
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(DomainNameLabelScopeTypes.NO_REUSE,
+ Assertions.assertEquals("baliourqhakauha", model.name());
+ Assertions.assertEquals(661923872, model.properties().idleTimeoutInMinutes());
+ Assertions.assertEquals("xosow", model.properties().dnsSettings().domainNameLabel());
+ Assertions.assertEquals(DomainNameLabelScopeTypes.RESOURCE_GROUP_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("cjooxdjebwpucwwf", model.properties().ipTags().get(0).ipTagType());
+ Assertions.assertEquals("vbvmeu", model.properties().ipTags().get(0).tag());
+ Assertions.assertEquals("gxhnisk", model.properties().publicIPPrefix().id());
Assertions.assertEquals(IPVersion.IPV4, model.properties().publicIPAddressVersion());
- Assertions.assertEquals(DeleteOptions.DETACH, model.properties().deleteOption());
- Assertions.assertEquals(PublicIPAddressSkuName.STANDARD, model.sku().name());
- Assertions.assertEquals(PublicIPAddressSkuTier.GLOBAL, model.sku().tier());
+ Assertions.assertEquals(DeleteOptions.DELETE, model.properties().deleteOption());
+ Assertions.assertEquals(PublicIPAddressSkuName.BASIC, model.sku().name());
+ Assertions.assertEquals(PublicIPAddressSkuTier.REGIONAL, 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 22901145964f..1d696b82cfdc 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,135 +30,166 @@ 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\":\"e\",\"publisher\":\"locx\",\"offer\":\"paierh\",\"sku\":\"csglum\",\"version\":\"jtjaodxobnbdxkq\",\"exactVersion\":\"okaj\",\"sharedGalleryImageId\":\"npime\",\"communityGalleryImageId\":\"stxgc\"},\"osDisk\":{\"name\":\"gmaajrm\",\"caching\":\"ReadOnly\",\"writeAcceleratorEnabled\":true,\"createOption\":\"FromImage\",\"diffDiskSettings\":{\"option\":\"Local\",\"placement\":\"NvmeDisk\"},\"diskSizeGB\":1219720111,\"osType\":\"Linux\",\"image\":{\"uri\":\"oejctbzaqsqsy\"},\"vhdContainers\":[\"bfkgukdkex\",\"ppofmxaxcfjpgdd\"],\"managedDisk\":{\"storageAccountType\":\"StandardSSD_ZRS\",\"diskEncryptionSet\":{\"id\":\"hvpmoue\"},\"securityProfile\":{\"securityEncryptionType\":\"NonPersistedTPM\",\"diskEncryptionSet\":{\"id\":\"bqe\"}}},\"deleteOption\":\"Detach\"},\"dataDisks\":[{\"name\":\"zvddntwndeicbtwn\",\"lun\":537336258,\"caching\":\"ReadOnly\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Restore\",\"diskSizeGB\":114023042,\"managedDisk\":{\"storageAccountType\":\"StandardSSD_ZRS\",\"diskEncryptionSet\":{\"id\":\"yd\"},\"securityProfile\":{\"securityEncryptionType\":\"DiskWithVMGuestState\",\"diskEncryptionSet\":{\"id\":\"hjq\"}}},\"diskIOPSReadWrite\":6943639735240918018,\"diskMBpsReadWrite\":3955309032354146781,\"deleteOption\":\"Delete\"},{\"name\":\"ciwqvhk\",\"lun\":1191010695,\"caching\":\"None\",\"writeAcceleratorEnabled\":true,\"createOption\":\"Attach\",\"diskSizeGB\":1528206823,\"managedDisk\":{\"storageAccountType\":\"Premium_LRS\",\"diskEncryptionSet\":{\"id\":\"og\"},\"securityProfile\":{\"securityEncryptionType\":\"VMGuestStateOnly\",\"diskEncryptionSet\":{\"id\":\"m\"}}},\"diskIOPSReadWrite\":5337187329855698822,\"diskMBpsReadWrite\":1825829126532867613,\"deleteOption\":\"Detach\"},{\"name\":\"pgvdf\",\"lun\":723087340,\"caching\":\"ReadOnly\",\"writeAcceleratorEnabled\":true,\"createOption\":\"FromImage\",\"diskSizeGB\":1205198165,\"managedDisk\":{\"storageAccountType\":\"UltraSSD_LRS\",\"diskEncryptionSet\":{\"id\":\"xlefgugnxkrx\"},\"securityProfile\":{\"securityEncryptionType\":\"DiskWithVMGuestState\",\"diskEncryptionSet\":{\"id\":\"thz\"}}},\"diskIOPSReadWrite\":8808164000454833628,\"diskMBpsReadWrite\":7023125566579249889,\"deleteOption\":\"Delete\"}],\"diskControllerType\":\"SCSI\"}")
.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("e", model.imageReference().id());
+ Assertions.assertEquals("locx", model.imageReference().publisher());
+ Assertions.assertEquals("paierh", model.imageReference().offer());
+ Assertions.assertEquals("csglum", model.imageReference().sku());
+ Assertions.assertEquals("jtjaodxobnbdxkq", model.imageReference().version());
+ Assertions.assertEquals("npime", model.imageReference().sharedGalleryImageId());
+ Assertions.assertEquals("stxgc", model.imageReference().communityGalleryImageId());
+ Assertions.assertEquals("gmaajrm", model.osDisk().name());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, model.osDisk().caching());
Assertions.assertEquals(true, model.osDisk().writeAcceleratorEnabled());
- Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.osDisk().createOption());
+ Assertions.assertEquals(DiskCreateOptionTypes.FROM_IMAGE, 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(1219720111, 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("oejctbzaqsqsy", model.osDisk().image().uri());
+ Assertions.assertEquals("bfkgukdkex", 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("hvpmoue", 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(DiskDeleteOptionTypes.DELETE, model.osDisk().deleteOption());
- Assertions.assertEquals("qguhmuo", model.dataDisks().get(0).name());
- Assertions.assertEquals(84876236, model.dataDisks().get(0).lun());
- Assertions.assertEquals(CachingTypes.READ_WRITE, model.dataDisks().get(0).caching());
+ Assertions.assertEquals("bqe", model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, model.osDisk().deleteOption());
+ Assertions.assertEquals("zvddntwndeicbtwn", model.dataDisks().get(0).name());
+ Assertions.assertEquals(537336258, model.dataDisks().get(0).lun());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, 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(DiskCreateOptionTypes.RESTORE, model.dataDisks().get(0).createOption());
+ Assertions.assertEquals(114023042, model.dataDisks().get(0).diskSizeGB());
+ Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS,
model.dataDisks().get(0).managedDisk().storageAccountType());
- Assertions.assertEquals("nwui", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id());
- Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY,
+ Assertions.assertEquals("yd", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE,
model.dataDisks().get(0).managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("fizuckyf",
+ Assertions.assertEquals("hjq",
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(6943639735240918018L, model.dataDisks().get(0).diskIOPSReadWrite());
+ Assertions.assertEquals(3955309032354146781L, model.dataDisks().get(0).diskMBpsReadWrite());
Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.dataDisks().get(0).deleteOption());
- Assertions.assertEquals(DiskControllerTypes.NVME, model.diskControllerType());
+ Assertions.assertEquals(DiskControllerTypes.SCSI, model.diskControllerType());
}
@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)
+ .withImageReference(new ImageReference().withId("e")
+ .withPublisher("locx")
+ .withOffer("paierh")
+ .withSku("csglum")
+ .withVersion("jtjaodxobnbdxkq")
+ .withSharedGalleryImageId("npime")
+ .withCommunityGalleryImageId("stxgc"))
+ .withOsDisk(new VirtualMachineScaleSetOSDisk().withName("gmaajrm")
+ .withCaching(CachingTypes.READ_ONLY)
.withWriteAcceleratorEnabled(true)
- .withCreateOption(DiskCreateOptionTypes.COPY)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
.withDiffDiskSettings(
new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL).withPlacement(DiffDiskPlacement.NVME_DISK))
- .withDiskSizeGB(1777353299)
+ .withDiskSizeGB(1219720111)
.withOsType(OperatingSystemTypes.LINUX)
- .withImage(new VirtualHardDisk().withUri("qrolfpf"))
- .withVhdContainers(Arrays.asList("lgbquxig", "yjgzjaoyfhrtxiln", "rkujy", "vlejuvfqa"))
+ .withImage(new VirtualHardDisk().withUri("oejctbzaqsqsy"))
+ .withVhdContainers(Arrays.asList("bfkgukdkex", "ppofmxaxcfjpgdd"))
.withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
.withStorageAccountType(StorageAccountTypes.STANDARD_SSD_ZRS)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("jkcpr"))
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("hvpmoue"))
.withSecurityProfile(new VMDiskSecurityProfile()
.withSecurityEncryptionType(SecurityEncryptionTypes.NON_PERSISTED_TPM)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("jvtbvpyss"))))
- .withDeleteOption(DiskDeleteOptionTypes.DELETE))
- .withDataDisks(Arrays.asList(new VirtualMachineScaleSetDataDisk().withName("qguhmuo")
- .withLun(84876236)
- .withCaching(CachingTypes.READ_WRITE)
- .withWriteAcceleratorEnabled(true)
- .withCreateOption(DiskCreateOptionTypes.COPY)
- .withDiskSizeGB(1207198504)
- .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
- .withStorageAccountType(StorageAccountTypes.ULTRA_SSD_LRS)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("nwui"))
- .withSecurityProfile(new VMDiskSecurityProfile()
- .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY)
- .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("fizuckyf"))))
- .withDiskIOPSReadWrite(1201040082291654922L)
- .withDiskMBpsReadWrite(3342132991657632527L)
- .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
- .withDiskControllerType(DiskControllerTypes.NVME);
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("bqe"))))
+ .withDeleteOption(DiskDeleteOptionTypes.DETACH))
+ .withDataDisks(Arrays.asList(
+ new VirtualMachineScaleSetDataDisk().withName("zvddntwndeicbtwn")
+ .withLun(537336258)
+ .withCaching(CachingTypes.READ_ONLY)
+ .withWriteAcceleratorEnabled(true)
+ .withCreateOption(DiskCreateOptionTypes.RESTORE)
+ .withDiskSizeGB(114023042)
+ .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.STANDARD_SSD_ZRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("yd"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("hjq"))))
+ .withDiskIOPSReadWrite(6943639735240918018L)
+ .withDiskMBpsReadWrite(3955309032354146781L)
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE),
+ new VirtualMachineScaleSetDataDisk().withName("ciwqvhk")
+ .withLun(1191010695)
+ .withCaching(CachingTypes.NONE)
+ .withWriteAcceleratorEnabled(true)
+ .withCreateOption(DiskCreateOptionTypes.ATTACH)
+ .withDiskSizeGB(1528206823)
+ .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("og"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("m"))))
+ .withDiskIOPSReadWrite(5337187329855698822L)
+ .withDiskMBpsReadWrite(1825829126532867613L)
+ .withDeleteOption(DiskDeleteOptionTypes.DETACH),
+ new VirtualMachineScaleSetDataDisk().withName("pgvdf")
+ .withLun(723087340)
+ .withCaching(CachingTypes.READ_ONLY)
+ .withWriteAcceleratorEnabled(true)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(1205198165)
+ .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.ULTRA_SSD_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("xlefgugnxkrx"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId("thz"))))
+ .withDiskIOPSReadWrite(8808164000454833628L)
+ .withDiskMBpsReadWrite(7023125566579249889L)
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withDiskControllerType(DiskControllerTypes.SCSI);
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("e", model.imageReference().id());
+ Assertions.assertEquals("locx", model.imageReference().publisher());
+ Assertions.assertEquals("paierh", model.imageReference().offer());
+ Assertions.assertEquals("csglum", model.imageReference().sku());
+ Assertions.assertEquals("jtjaodxobnbdxkq", model.imageReference().version());
+ Assertions.assertEquals("npime", model.imageReference().sharedGalleryImageId());
+ Assertions.assertEquals("stxgc", model.imageReference().communityGalleryImageId());
+ Assertions.assertEquals("gmaajrm", model.osDisk().name());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, model.osDisk().caching());
Assertions.assertEquals(true, model.osDisk().writeAcceleratorEnabled());
- Assertions.assertEquals(DiskCreateOptionTypes.COPY, model.osDisk().createOption());
+ Assertions.assertEquals(DiskCreateOptionTypes.FROM_IMAGE, 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(1219720111, 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("oejctbzaqsqsy", model.osDisk().image().uri());
+ Assertions.assertEquals("bfkgukdkex", 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("hvpmoue", 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(DiskDeleteOptionTypes.DELETE, model.osDisk().deleteOption());
- Assertions.assertEquals("qguhmuo", model.dataDisks().get(0).name());
- Assertions.assertEquals(84876236, model.dataDisks().get(0).lun());
- Assertions.assertEquals(CachingTypes.READ_WRITE, model.dataDisks().get(0).caching());
+ Assertions.assertEquals("bqe", model.osDisk().managedDisk().securityProfile().diskEncryptionSet().id());
+ Assertions.assertEquals(DiskDeleteOptionTypes.DETACH, model.osDisk().deleteOption());
+ Assertions.assertEquals("zvddntwndeicbtwn", model.dataDisks().get(0).name());
+ Assertions.assertEquals(537336258, model.dataDisks().get(0).lun());
+ Assertions.assertEquals(CachingTypes.READ_ONLY, 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(DiskCreateOptionTypes.RESTORE, model.dataDisks().get(0).createOption());
+ Assertions.assertEquals(114023042, model.dataDisks().get(0).diskSizeGB());
+ Assertions.assertEquals(StorageAccountTypes.STANDARD_SSD_ZRS,
model.dataDisks().get(0).managedDisk().storageAccountType());
- Assertions.assertEquals("nwui", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id());
- Assertions.assertEquals(SecurityEncryptionTypes.VMGUEST_STATE_ONLY,
+ Assertions.assertEquals("yd", model.dataDisks().get(0).managedDisk().diskEncryptionSet().id());
+ Assertions.assertEquals(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE,
model.dataDisks().get(0).managedDisk().securityProfile().securityEncryptionType());
- Assertions.assertEquals("fizuckyf",
+ Assertions.assertEquals("hjq",
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(6943639735240918018L, model.dataDisks().get(0).diskIOPSReadWrite());
+ Assertions.assertEquals(3955309032354146781L, model.dataDisks().get(0).diskMBpsReadWrite());
Assertions.assertEquals(DiskDeleteOptionTypes.DELETE, model.dataDisks().get(0).deleteOption());
- Assertions.assertEquals(DiskControllerTypes.NVME, model.diskControllerType());
+ Assertions.assertEquals(DiskControllerTypes.SCSI, 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 b63efce9c22e..6cafaf314ccd 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\":\"abkyqduujitcjcz\",\"rank\":1089417783}").toObject(VmSizeProfile.class);
+ Assertions.assertEquals("abkyqduujitcjcz", model.name());
+ Assertions.assertEquals(1089417783, 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("abkyqduujitcjcz").withRank(1089417783);
model = BinaryData.fromObject(model).toObject(VmSizeProfile.class);
- Assertions.assertEquals("qnjaqwix", model.name());
- Assertions.assertEquals(2020254457, model.rank());
+ Assertions.assertEquals("abkyqduujitcjcz", model.name());
+ Assertions.assertEquals(1089417783, 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 f7692958ea79..22ace108716a 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,21 @@ 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\":\"Https\",\"certificateUrl\":\"sezcxtb\"},{\"protocol\":\"Http\",\"certificateUrl\":\"yc\"},{\"protocol\":\"Https\",\"certificateUrl\":\"wmdwzjeiachboo\"},{\"protocol\":\"Http\",\"certificateUrl\":\"ro\"}]}")
.toObject(WinRMConfiguration.class);
- Assertions.assertEquals(ProtocolTypes.HTTP, model.listeners().get(0).protocol());
- Assertions.assertEquals("bybkzgcwrwclxx", model.listeners().get(0).certificateUrl());
+ Assertions.assertEquals(ProtocolTypes.HTTPS, model.listeners().get(0).protocol());
+ Assertions.assertEquals("sezcxtb", 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.HTTPS).withCertificateUrl("sezcxtb"),
+ new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("yc"),
+ new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("wmdwzjeiachboo"),
+ new WinRMListener().withProtocol(ProtocolTypes.HTTP).withCertificateUrl("ro")));
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(ProtocolTypes.HTTPS, model.listeners().get(0).protocol());
+ Assertions.assertEquals("sezcxtb", 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 a7d3050a4a34..065df2fbb1a0 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\"}")
- .toObject(WinRMListener.class);
+ WinRMListener model
+ = BinaryData.fromString("{\"protocol\":\"Http\",\"certificateUrl\":\"t\"}").toObject(WinRMListener.class);
Assertions.assertEquals(ProtocolTypes.HTTP, model.protocol());
- Assertions.assertEquals("sainqpjwnzl", model.certificateUrl());
+ Assertions.assertEquals("t", 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.HTTP).withCertificateUrl("t");
model = BinaryData.fromObject(model).toObject(WinRMListener.class);
Assertions.assertEquals(ProtocolTypes.HTTP, model.protocol());
- Assertions.assertEquals("sainqpjwnzl", model.certificateUrl());
+ Assertions.assertEquals("t", 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 309c83c65c4e..53d48d223ca1 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,81 @@ 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\":\"xigjyjgzjaoyfhr\",\"additionalUnattendContent\":[{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"ysvlejuvf\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"jkcpr\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"FirstLogonCommands\",\"content\":\"tbvpysszdnru\"},{\"passName\":\"OobeSystem\",\"componentName\":\"Microsoft-Windows-Shell-Setup\",\"settingName\":\"AutoLogon\",\"content\":\"uqfprwzw\"}],\"patchSettings\":{\"patchMode\":\"AutomaticByOS\",\"enableHotpatching\":false,\"assessmentMode\":\"ImageDefault\",\"automaticByPlatformSettings\":{\"rebootSetting\":\"Unknown\",\"bypassPlatformSafetyChecksOnUserSchedule\":false}},\"winRM\":{\"listeners\":[{\"protocol\":\"Https\",\"certificateUrl\":\"uckyf\"},{\"protocol\":\"Https\",\"certificateUrl\":\"idf\"},{\"protocol\":\"Https\",\"certificateUrl\":\"zuhtymwisdkfthwx\"}]},\"enableVMAgentPlatformUpdates\":false}")
.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("xigjyjgzjaoyfhr", 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("ysvlejuvf", model.additionalUnattendContent().get(0).content());
+ Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS, model.patchSettings().patchMode());
Assertions.assertEquals(false, model.patchSettings().enableHotpatching());
- Assertions.assertEquals(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,
- model.patchSettings().assessmentMode());
- Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,
+ Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.patchSettings().assessmentMode());
+ Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN,
model.patchSettings().automaticByPlatformSettings().rebootSetting());
- Assertions.assertEquals(true,
+ Assertions.assertEquals(false,
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("uckyf", model.winRM().listeners().get(0).certificateUrl());
Assertions.assertEquals(false, 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("xigjyjgzjaoyfhr")
.withAdditionalUnattendContent(Arrays.asList(
new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM)
.withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP)
.withSettingName(SettingNames.AUTO_LOGON)
- .withContent("cjrwzoxxjtfellu"),
+ .withContent("ysvlejuvf"),
new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM)
.withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP)
- .withSettingName(SettingNames.AUTO_LOGON)
- .withContent("eqfpj"),
+ .withSettingName(SettingNames.FIRST_LOGON_COMMANDS)
+ .withContent("jkcpr"),
new AdditionalUnattendContent().withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM)
.withComponentName(AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP)
.withSettingName(SettingNames.FIRST_LOGON_COMMANDS)
- .withContent("vhpfxxypininmay"),
+ .withContent("tbvpysszdnru"),
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)
+ .withContent("uqfprwzw")))
+ .withPatchSettings(new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS)
.withEnableHotpatching(false)
- .withAssessmentMode(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM)
+ .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT)
.withAutomaticByPlatformSettings(new WindowsVMGuestPatchAutomaticByPlatformSettings()
- .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER)
- .withBypassPlatformSafetyChecksOnUserSchedule(true)))
+ .withRebootSetting(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN)
+ .withBypassPlatformSafetyChecksOnUserSchedule(false)))
.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"))))
+ Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("uckyf"),
+ new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("idf"),
+ new WinRMListener().withProtocol(ProtocolTypes.HTTPS).withCertificateUrl("zuhtymwisdkfthwx"))))
.withEnableVMAgentPlatformUpdates(false);
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("xigjyjgzjaoyfhr", 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("ysvlejuvf", model.additionalUnattendContent().get(0).content());
+ Assertions.assertEquals(WindowsVMGuestPatchMode.AUTOMATIC_BY_OS, model.patchSettings().patchMode());
Assertions.assertEquals(false, model.patchSettings().enableHotpatching());
- Assertions.assertEquals(WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,
- model.patchSettings().assessmentMode());
- Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,
+ Assertions.assertEquals(WindowsPatchAssessmentMode.IMAGE_DEFAULT, model.patchSettings().assessmentMode());
+ Assertions.assertEquals(WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN,
model.patchSettings().automaticByPlatformSettings().rebootSetting());
- Assertions.assertEquals(true,
+ Assertions.assertEquals(false,
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("uckyf", model.winRM().listeners().get(0).certificateUrl());
Assertions.assertEquals(false, 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 a79d7993b1d8..0ad28b092dbd 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 17c1c0f64cb6..47c89904877c 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
+commit: f7b24fd29049a522e1fd5bca95fd80a73b70bb76
repo: Azure/azure-rest-api-specs
-additionalDirectories: null
+additionalDirectories: