diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md b/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md index d8d0a6b22065..fa3193bd6667 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md +++ b/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md @@ -1,14 +1,80 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2025-03-25) -### Features Added +- Azure Resource Manager Scvmm client library for Java. This package contains Microsoft Azure SDK for Scvmm Management SDK. SCVMM Client. Package tag package-2025-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.VirtualNetworkInventoryItem` was modified + +* `uuid()` was removed +* `managedResourceId()` was removed +* `provisioningState()` was removed +* `inventoryItemName()` was removed + +#### `models.VirtualMachineTemplateInventoryItem` was modified + +* `managedResourceId()` was removed +* `provisioningState()` was removed +* `uuid()` was removed +* `inventoryItemName()` was removed + +#### `models.CloudInventoryItem` was modified + +* `provisioningState()` was removed +* `uuid()` was removed +* `inventoryItemName()` was removed +* `managedResourceId()` was removed + +#### `models.VirtualMachineInstances` was modified + +* `stop(java.lang.String,models.StopVirtualMachineOptions)` was removed + +#### `models.VirtualMachineInventoryItem` was modified + +* `uuid()` was removed +* `provisioningState()` was removed +* `inventoryItemName()` was removed +* `managedResourceId()` was removed + +### Features Added + +#### `models.GuestAgentProperties` was modified + +* `withPrivateLinkScopeResourceId(java.lang.String)` was added +* `privateLinkScopeResourceId()` was added + +#### `models.VirtualMachineInstances` was modified + +* `stop(java.lang.String)` was added + +#### `models.VirtualMachineInventoryItem` was modified + +* `generation()` was added + +#### `models.CloudCapacity` was modified -### Other Changes +* `storageGB()` was added + +#### `models.OsProfileForVmInstance` was modified + +* `withRunOnceCommands(java.lang.String)` was added +* `adminUsername()` was added +* `domainPassword()` was added +* `productKey()` was added +* `domainUsername()` was added +* `timezone()` was added +* `domainName()` was added +* `withDomainName(java.lang.String)` was added +* `workgroup()` was added +* `runOnceCommands()` was added +* `withDomainPassword(java.lang.String)` was added +* `withProductKey(java.lang.String)` was added +* `withDomainUsername(java.lang.String)` was added +* `withAdminUsername(java.lang.String)` was added +* `withTimezone(java.lang.Integer)` was added +* `withWorkgroup(java.lang.String)` was added ## 1.0.0 (2024-06-26) diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/README.md b/sdk/scvmm/azure-resourcemanager-scvmm/README.md index c3c6fa5b4d8d..e121cc6f5112 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/README.md +++ b/sdk/scvmm/azure-resourcemanager-scvmm/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Scvmm client library for Java. -This package contains Microsoft Azure SDK for Scvmm Management SDK. SCVMM Client. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Scvmm Management SDK. SCVMM Client. Package tag package-2025-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ ScvmmManager manager = ScvmmManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ - - diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md b/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md index ee8b2ac27666..7882616f3597 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md +++ b/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md @@ -95,7 +95,7 @@ import java.util.Map; */ public final class AvailabilitySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -113,7 +113,7 @@ public final class AvailabilitySetsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -160,7 +160,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; */ public final class AvailabilitySetsDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Delete_MaximumSet_Gen.json */ /** @@ -173,7 +173,7 @@ public final class AvailabilitySetsDeleteSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Delete_MinimumSet_Gen.json */ /** @@ -195,7 +195,7 @@ public final class AvailabilitySetsDeleteSamples { */ public final class AvailabilitySetsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Get_MinimumSet_Gen.json */ /** @@ -208,7 +208,7 @@ public final class AvailabilitySetsGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Get_MaximumSet_Gen.json */ /** @@ -230,7 +230,7 @@ public final class AvailabilitySetsGetByResourceGroupSamples { */ public final class AvailabilitySetsListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListBySubscription_MinimumSet_Gen.json */ /** @@ -244,7 +244,7 @@ public final class AvailabilitySetsListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListBySubscription_MaximumSet_Gen.json */ /** @@ -267,7 +267,7 @@ public final class AvailabilitySetsListSamples { */ public final class AvailabilitySetsListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -281,7 +281,7 @@ public final class AvailabilitySetsListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -308,7 +308,7 @@ import java.util.Map; */ public final class AvailabilitySetsUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Update_MinimumSet_Gen.json */ /** @@ -324,7 +324,7 @@ public final class AvailabilitySetsUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Update_MaximumSet_Gen.json */ /** @@ -366,7 +366,7 @@ import java.util.Map; */ public final class CloudsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -384,7 +384,7 @@ public final class CloudsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -433,7 +433,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; public final class CloudsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Delete_MaximumSet_Gen.json */ /** * Sample code: Clouds_Delete_MaximumSet. @@ -446,7 +446,7 @@ public final class CloudsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Delete_MinimumSet_Gen.json */ /** * Sample code: Clouds_Delete_MinimumSet. @@ -468,7 +468,7 @@ public final class CloudsDeleteSamples { public final class CloudsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Get_MaximumSet_Gen.json */ /** * Sample code: Clouds_Get_MaximumSet. @@ -481,7 +481,7 @@ public final class CloudsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Get_MinimumSet_Gen.json */ /** * Sample code: Clouds_Get_MinimumSet. @@ -502,7 +502,7 @@ public final class CloudsGetByResourceGroupSamples { */ public final class CloudsListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListBySubscription_MinimumSet_Gen.json */ /** @@ -515,7 +515,7 @@ public final class CloudsListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListBySubscription_MaximumSet_Gen.json */ /** @@ -537,7 +537,7 @@ public final class CloudsListSamples { */ public final class CloudsListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -550,7 +550,7 @@ public final class CloudsListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -577,7 +577,7 @@ import java.util.Map; public final class CloudsUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Update_MinimumSet_Gen.json */ /** * Sample code: Clouds_Update_MinimumSet. @@ -593,7 +593,7 @@ public final class CloudsUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Update_MaximumSet_Gen.json */ /** * Sample code: Clouds_Update_MaximumSet. @@ -636,7 +636,7 @@ import com.azure.resourcemanager.scvmm.models.ProvisioningAction; public final class GuestAgentsCreateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Create_MinimumSet_Gen * .json */ /** @@ -650,7 +650,7 @@ public final class GuestAgentsCreateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Create_MaximumSet_Gen * .json */ /** @@ -680,7 +680,7 @@ public final class GuestAgentsCreateSamples { public final class GuestAgentsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Delete_MaximumSet_Gen * .json */ /** @@ -694,7 +694,7 @@ public final class GuestAgentsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Delete_MinimumSet_Gen * .json */ /** @@ -717,7 +717,7 @@ public final class GuestAgentsDeleteSamples { public final class GuestAgentsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Get_MaximumSet_Gen. * json */ /** @@ -731,7 +731,7 @@ public final class GuestAgentsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Get_MinimumSet_Gen. * json */ /** @@ -753,7 +753,7 @@ public final class GuestAgentsGetSamples { */ public final class GuestAgentsListByVirtualMachineInstanceSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * GuestAgents_ListByVirtualMachineInstance_MaximumSet_Gen.json */ /** @@ -767,7 +767,7 @@ public final class GuestAgentsListByVirtualMachineInstanceSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * GuestAgents_ListByVirtualMachineInstance_MinimumSet_Gen.json */ /** @@ -792,7 +792,7 @@ import com.azure.resourcemanager.scvmm.models.InventoryItemProperties; */ public final class InventoryItemsCreateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Create_MinimumSet_Gen.json */ /** @@ -808,7 +808,7 @@ public final class InventoryItemsCreateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Create_MaximumSet_Gen.json */ /** @@ -835,7 +835,7 @@ public final class InventoryItemsCreateSamples { */ public final class InventoryItemsDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Delete_MaximumSet_Gen.json */ /** @@ -850,7 +850,7 @@ public final class InventoryItemsDeleteSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Delete_MinimumSet_Gen.json */ /** @@ -875,7 +875,7 @@ public final class InventoryItemsDeleteSamples { public final class InventoryItemsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/InventoryItems_Get_MinimumSet_Gen * .json */ /** @@ -890,7 +890,7 @@ public final class InventoryItemsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/InventoryItems_Get_MaximumSet_Gen * .json */ /** @@ -913,7 +913,7 @@ public final class InventoryItemsGetSamples { */ public final class InventoryItemsListByVmmServerSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_ListByVmmServer_MaximumSet_Gen.json */ /** @@ -926,7 +926,7 @@ public final class InventoryItemsListByVmmServerSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_ListByVmmServer_MinimumSet_Gen.json */ /** @@ -949,7 +949,7 @@ public final class InventoryItemsListByVmmServerSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Operations_List_MinimumSet_Gen. * json */ /** @@ -963,7 +963,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Operations_List_MaximumSet_Gen. * json */ /** @@ -987,7 +987,7 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineCreateCheckpoint; */ public final class VirtualMachineInstancesCreateCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateCheckpoint_MaximumSet_Gen.json */ /** @@ -1003,7 +1003,7 @@ public final class VirtualMachineInstancesCreateCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateCheckpoint_MinimumSet_Gen.json */ /** @@ -1045,7 +1045,7 @@ import java.util.Arrays; */ public final class VirtualMachineInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -1061,8 +1061,16 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples { .withAvailabilitySets(Arrays.asList(new AvailabilitySetListItem().withId( "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName") .withName("lwbhaseo"))) - .withOsProfile(new OsProfileForVmInstance().withAdminPassword("fakeTokenPlaceholder") - .withComputerName("uuxpcxuxcufllc")) + .withOsProfile(new OsProfileForVmInstance().withAdminUsername("asasas") + .withAdminPassword("fakeTokenPlaceholder") + .withComputerName("uuxpcxuxcufllc") + .withDomainName("vblzsoqxzlrygdulnefexjdezo") + .withDomainUsername("sn") + .withDomainPassword("fakeTokenPlaceholder") + .withWorkgroup("bsqftibgcnnjpvmuxligk") + .withProductKey("fakeTokenPlaceholder") + .withTimezone(4) + .withRunOnceCommands("byxpnluptiwxycbbybsf;qwerty")) .withHardwareProfile(new HardwareProfile().withMemoryMB(5) .withCpuCount(22) .withLimitCpuForMigration(LimitCpuForMigration.TRUE) @@ -1108,7 +1116,7 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -1137,7 +1145,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; */ public final class VirtualMachineInstancesDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Delete_MaximumSet_Gen.json */ /** @@ -1151,7 +1159,7 @@ public final class VirtualMachineInstancesDeleteSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Delete_MinimumSet_Gen.json */ /** @@ -1175,7 +1183,7 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineDeleteCheckpoint; */ public final class VirtualMachineInstancesDeleteCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json */ /** @@ -1192,7 +1200,7 @@ public final class VirtualMachineInstancesDeleteCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json */ /** @@ -1216,7 +1224,7 @@ public final class VirtualMachineInstancesDeleteCheckpointSamples { */ public final class VirtualMachineInstancesGetSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Get_MinimumSet_Gen.json */ /** @@ -1229,7 +1237,7 @@ public final class VirtualMachineInstancesGetSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Get_MaximumSet_Gen.json */ /** @@ -1251,7 +1259,7 @@ public final class VirtualMachineInstancesGetSamples { */ public final class VirtualMachineInstancesListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_List_MaximumSet_Gen.json */ /** @@ -1264,7 +1272,7 @@ public final class VirtualMachineInstancesListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_List_MinimumSet_Gen.json */ /** @@ -1286,7 +1294,7 @@ public final class VirtualMachineInstancesListSamples { */ public final class VirtualMachineInstancesRestartSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Restart_MaximumSet_Gen.json */ /** @@ -1299,7 +1307,7 @@ public final class VirtualMachineInstancesRestartSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Restart_MinimumSet_Gen.json */ /** @@ -1323,7 +1331,7 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineRestoreCheckpoint; */ public final class VirtualMachineInstancesRestoreCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_RestoreCheckpoint_MinimumSet_Gen.json */ /** @@ -1339,7 +1347,7 @@ public final class VirtualMachineInstancesRestoreCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_RestoreCheckpoint_MaximumSet_Gen.json */ /** @@ -1364,7 +1372,7 @@ public final class VirtualMachineInstancesRestoreCheckpointSamples { */ public final class VirtualMachineInstancesStartSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Start_MinimumSet_Gen.json */ /** @@ -1377,7 +1385,7 @@ public final class VirtualMachineInstancesStartSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Start_MaximumSet_Gen.json */ /** @@ -1402,7 +1410,7 @@ import com.azure.resourcemanager.scvmm.models.StopVirtualMachineOptions; */ public final class VirtualMachineInstancesStopSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Stop_MaximumSet_Gen.json */ /** @@ -1417,7 +1425,7 @@ public final class VirtualMachineInstancesStopSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Stop_MinimumSet_Gen.json */ /** @@ -1455,7 +1463,7 @@ import java.util.Arrays; */ public final class VirtualMachineInstancesUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Update_MinimumSet_Gen.json */ /** @@ -1469,7 +1477,7 @@ public final class VirtualMachineInstancesUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Update_MaximumSet_Gen.json */ /** @@ -1528,7 +1536,7 @@ import java.util.Map; */ public final class VirtualMachineTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -1547,7 +1555,7 @@ public final class VirtualMachineTemplatesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -1596,7 +1604,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; */ public final class VirtualMachineTemplatesDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Delete_MinimumSet_Gen.json */ /** @@ -1609,7 +1617,7 @@ public final class VirtualMachineTemplatesDeleteSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Delete_MaximumSet_Gen.json */ /** @@ -1631,7 +1639,7 @@ public final class VirtualMachineTemplatesDeleteSamples { */ public final class VirtualMachineTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Get_MinimumSet_Gen.json */ /** @@ -1645,7 +1653,7 @@ public final class VirtualMachineTemplatesGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Get_MaximumSet_Gen.json */ /** @@ -1668,7 +1676,7 @@ public final class VirtualMachineTemplatesGetByResourceGroupSamples { */ public final class VirtualMachineTemplatesListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListBySubscription_MaximumSet_Gen.json */ /** @@ -1682,7 +1690,7 @@ public final class VirtualMachineTemplatesListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListBySubscription_MinimumSet_Gen.json */ /** @@ -1705,7 +1713,7 @@ public final class VirtualMachineTemplatesListSamples { */ public final class VirtualMachineTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -1719,7 +1727,7 @@ public final class VirtualMachineTemplatesListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -1746,7 +1754,7 @@ import java.util.Map; */ public final class VirtualMachineTemplatesUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Update_MaximumSet_Gen.json */ /** @@ -1762,7 +1770,7 @@ public final class VirtualMachineTemplatesUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Update_MinimumSet_Gen.json */ /** @@ -1804,7 +1812,7 @@ import java.util.Map; */ public final class VirtualNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -1829,7 +1837,7 @@ public final class VirtualNetworksCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -1870,7 +1878,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; */ public final class VirtualNetworksDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Delete_MaximumSet_Gen.json */ /** @@ -1883,7 +1891,7 @@ public final class VirtualNetworksDeleteSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Delete_MinimumSet_Gen.json */ /** @@ -1905,7 +1913,7 @@ public final class VirtualNetworksDeleteSamples { */ public final class VirtualNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Get_MaximumSet_Gen.json */ /** @@ -1918,7 +1926,7 @@ public final class VirtualNetworksGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Get_MinimumSet_Gen.json */ /** @@ -1940,7 +1948,7 @@ public final class VirtualNetworksGetByResourceGroupSamples { */ public final class VirtualNetworksListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListBySubscription_MinimumSet_Gen.json */ /** @@ -1954,7 +1962,7 @@ public final class VirtualNetworksListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListBySubscription_MaximumSet_Gen.json */ /** @@ -1977,7 +1985,7 @@ public final class VirtualNetworksListSamples { */ public final class VirtualNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -1991,7 +1999,7 @@ public final class VirtualNetworksListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -2018,7 +2026,7 @@ import java.util.Map; */ public final class VirtualNetworksUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Update_MinimumSet_Gen.json */ /** @@ -2034,7 +2042,7 @@ public final class VirtualNetworksUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Update_MaximumSet_Gen.json */ /** @@ -2071,7 +2079,7 @@ public final class VirtualNetworksUpdateSamples { */ public final class VmInstanceHybridIdentityMetadatasGetSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_Get_MinimumSet_Gen.json */ /** @@ -2085,7 +2093,7 @@ public final class VmInstanceHybridIdentityMetadatasGetSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_Get_MaximumSet_Gen.json */ /** @@ -2108,7 +2116,7 @@ public final class VmInstanceHybridIdentityMetadatasGetSamples { */ public final class VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MaximumSet_Gen.json */ /** @@ -2123,7 +2131,7 @@ public final class VmInstanceHybridIdentityMetadatasListByVirtualMachineInstance } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MinimumSet_Gen.json */ /** @@ -2153,7 +2161,7 @@ import java.util.Map; */ public final class VmmServersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -2171,7 +2179,7 @@ public final class VmmServersCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -2221,7 +2229,7 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete; public final class VmmServersDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Delete_MaximumSet_Gen. * json */ /** @@ -2235,7 +2243,7 @@ public final class VmmServersDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Delete_MinimumSet_Gen. * json */ /** @@ -2258,7 +2266,7 @@ public final class VmmServersDeleteSamples { public final class VmmServersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Get_MinimumSet_Gen. * json */ /** @@ -2272,7 +2280,7 @@ public final class VmmServersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Get_MaximumSet_Gen. * json */ /** @@ -2294,7 +2302,7 @@ public final class VmmServersGetByResourceGroupSamples { */ public final class VmmServersListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListBySubscription_MaximumSet_Gen.json */ /** @@ -2307,7 +2315,7 @@ public final class VmmServersListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListBySubscription_MinimumSet_Gen.json */ /** @@ -2329,7 +2337,7 @@ public final class VmmServersListSamples { */ public final class VmmServersListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -2342,7 +2350,7 @@ public final class VmmServersListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -2369,7 +2377,7 @@ import java.util.Map; public final class VmmServersUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Update_MinimumSet_Gen. * json */ /** @@ -2386,7 +2394,7 @@ public final class VmmServersUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Update_MaximumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml b/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml index 00dd21297aac..0e5d257abebc 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml +++ b/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Scvmm Management - This package contains Microsoft Azure SDK for Scvmm Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. SCVMM Client. Package tag package-2023-10. + This package contains Microsoft Azure SDK for Scvmm Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. SCVMM Client. Package tag package-2025-03. https://github.com/Azure/azure-sdk-for-java @@ -45,13 +45,10 @@ UTF-8 0 0 + true + false - - com.azure - azure-json - 1.5.0 - com.azure azure-core @@ -62,6 +59,11 @@ azure-core-management 1.17.0 + + com.azure + azure-json + 1.5.0 + com.azure azure-core-test diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java index 11e2df4a9505..a9542a5d6055 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java @@ -11,17 +11,18 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.scvmm.fluent.ScvmmClient; import com.azure.resourcemanager.scvmm.implementation.AvailabilitySetsImpl; @@ -49,6 +50,7 @@ import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; @@ -129,6 +131,9 @@ public static Configurable configure() { */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + private static final String SDK_VERSION = "version"; + private static final Map PROPERTIES + = CoreUtils.getProperties("azure-resourcemanager-scvmm.properties"); private HttpClient httpClient; private HttpLogOptions httpLogOptions; @@ -236,12 +241,14 @@ public ScvmmManager authenticate(TokenCredential credential, AzureProfile profil Objects.requireNonNull(credential, "'credential' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); + String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion"); + StringBuilder userAgentBuilder = new StringBuilder(); userAgentBuilder.append("azsdk-java") .append("-") .append("com.azure.resourcemanager.scvmm") .append("/") - .append("1.0.0"); + .append(clientVersion); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -274,7 +281,7 @@ public ScvmmManager authenticate(TokenCredential credential, AzureProfile profil HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java index d224a41cfcaf..e146837a7b8f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java @@ -577,14 +577,13 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi * The operation to power off (stop) a virtual machine instance. * * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. - * @param body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String resourceUri, StopVirtualMachineOptions body); + SyncPoller, Void> beginStop(String resourceUri); /** * Implements the operation to stop a virtual machine. @@ -608,13 +607,12 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi * The operation to power off (stop) a virtual machine instance. * * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. - * @param body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceUri, StopVirtualMachineOptions body); + void stop(String resourceUri); /** * Implements the operation to stop a virtual machine. diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java index 8b902f8f5143..6978601576bf 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java @@ -37,9 +37,9 @@ public final class AvailabilitySetInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -47,9 +47,9 @@ public final class AvailabilitySetInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AvailabilitySetInner class. @@ -107,13 +107,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -127,13 +127,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java index 90cf0eae97b2..f2be6fbf591a 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java @@ -37,9 +37,9 @@ public final class CloudInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -47,9 +47,9 @@ public final class CloudInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CloudInner class. @@ -107,13 +107,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -127,13 +127,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java index 3193a51c1136..5483b3a2ca19 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java @@ -29,9 +29,9 @@ public final class GuestAgentInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class GuestAgentInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of GuestAgentInner class. @@ -79,13 +79,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java index 9ab0a50b5df5..1ba67d725fb1 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java @@ -36,9 +36,9 @@ public final class InventoryItemInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -46,9 +46,9 @@ public final class InventoryItemInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of InventoryItemInner class. @@ -110,13 +110,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -130,13 +130,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java index 7e5f5a6d72a0..7de25cb52a37 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java @@ -36,9 +36,9 @@ public final class VirtualMachineInstanceInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -46,9 +46,9 @@ public final class VirtualMachineInstanceInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VirtualMachineInstanceInner class. @@ -106,13 +106,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -126,13 +126,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java index a51ddc0ba56e..872d55b8d384 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java @@ -37,9 +37,9 @@ public final class VirtualMachineTemplateInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -47,9 +47,9 @@ public final class VirtualMachineTemplateInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VirtualMachineTemplateInner class. @@ -107,13 +107,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -127,13 +127,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java index 074bfd63c7de..add28d7142a1 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java @@ -37,9 +37,9 @@ public final class VirtualNetworkInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -47,9 +47,9 @@ public final class VirtualNetworkInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VirtualNetworkInner class. @@ -107,13 +107,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -127,13 +127,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java index dfd9097c7ced..9ce3f4e19998 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java @@ -29,9 +29,9 @@ public final class VmInstanceHybridIdentityMetadataInner extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class VmInstanceHybridIdentityMetadataInner extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VmInstanceHybridIdentityMetadataInner class. @@ -79,13 +79,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java index c861dccd3968..9b6aa0ff7199 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java @@ -37,9 +37,9 @@ public final class VmmServerInner extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -47,9 +47,9 @@ public final class VmmServerInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VmmServerInner class. @@ -107,13 +107,13 @@ public SystemData systemData() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -127,13 +127,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/ScvmmClientImpl.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/ScvmmClientImpl.java index 1c3d59949962..948ab1bebd40 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/ScvmmClientImpl.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/ScvmmClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; @@ -289,7 +289,7 @@ public InventoryItemsClient getInventoryItems() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-10-07"; + this.apiVersion = "2025-03-13"; this.virtualMachineInstances = new VirtualMachineInstancesClientImpl(this); this.guestAgents = new GuestAgentsClientImpl(this); this.vmInstanceHybridIdentityMetadatas = new VmInstanceHybridIdentityMetadatasClientImpl(this); diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesClientImpl.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesClientImpl.java index 1cf7281e2821..57036a6d36b8 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesClientImpl.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesClientImpl.java @@ -2178,9 +2178,7 @@ private Mono>> stopWithResponseAsync(String resourceUr if (resourceUri == null) { return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null.")); } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { + if (body != null) { body.validate(); } final String accept = "application/json"; @@ -2213,9 +2211,7 @@ private Mono>> stopWithResponseAsync(String resourceUr if (resourceUri == null) { return Mono.error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null.")); } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { + if (body != null) { body.validate(); } final String accept = "application/json"; @@ -2242,6 +2238,25 @@ private PollerFlux, Void> beginStopAsync(String resourceUri, St this.client.getContext()); } + /** + * Implements the operation to stop a virtual machine. + * + * The operation to power off (stop) a virtual machine instance. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginStopAsync(String resourceUri) { + final StopVirtualMachineOptions body = null; + Mono>> mono = stopWithResponseAsync(resourceUri, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + /** * Implements the operation to stop a virtual machine. * @@ -2270,14 +2285,14 @@ private PollerFlux, Void> beginStopAsync(String resourceUri, St * The operation to power off (stop) a virtual machine instance. * * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. - * @param body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop(String resourceUri, StopVirtualMachineOptions body) { + public SyncPoller, Void> beginStop(String resourceUri) { + final StopVirtualMachineOptions body = null; return this.beginStopAsync(resourceUri, body).getSyncPoller(); } @@ -2317,6 +2332,23 @@ private Mono stopAsync(String resourceUri, StopVirtualMachineOptions body) return beginStopAsync(resourceUri, body).last().flatMap(this.client::getLroFinalResultOrError); } + /** + * Implements the operation to stop a virtual machine. + * + * The operation to power off (stop) a virtual machine instance. + * + * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono stopAsync(String resourceUri) { + final StopVirtualMachineOptions body = null; + return beginStopAsync(resourceUri, body).last().flatMap(this.client::getLroFinalResultOrError); + } + /** * Implements the operation to stop a virtual machine. * @@ -2341,13 +2373,13 @@ private Mono stopAsync(String resourceUri, StopVirtualMachineOptions body, * The operation to power off (stop) a virtual machine instance. * * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. - * @param body The content of the action request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceUri, StopVirtualMachineOptions body) { + public void stop(String resourceUri) { + final StopVirtualMachineOptions body = null; stopAsync(resourceUri, body).block(); } diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesImpl.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesImpl.java index 96283c542def..07a35d546ce4 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesImpl.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/VirtualMachineInstancesImpl.java @@ -17,8 +17,8 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineCreateCheckpoint; import com.azure.resourcemanager.scvmm.models.VirtualMachineDeleteCheckpoint; import com.azure.resourcemanager.scvmm.models.VirtualMachineInstance; -import com.azure.resourcemanager.scvmm.models.VirtualMachineInstances; import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdate; +import com.azure.resourcemanager.scvmm.models.VirtualMachineInstances; import com.azure.resourcemanager.scvmm.models.VirtualMachineRestoreCheckpoint; public final class VirtualMachineInstancesImpl implements VirtualMachineInstances { @@ -148,8 +148,8 @@ public void start(String resourceUri, Context context) { this.serviceClient().start(resourceUri, context); } - public void stop(String resourceUri, StopVirtualMachineOptions body) { - this.serviceClient().stop(resourceUri, body); + public void stop(String resourceUri) { + this.serviceClient().stop(resourceUri); } public void stop(String resourceUri, StopVirtualMachineOptions body, Context context) { diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudCapacity.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudCapacity.java index 128a3a6b87c9..bae9ea73c10b 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudCapacity.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudCapacity.java @@ -31,6 +31,11 @@ public final class CloudCapacity implements JsonSerializable { */ private Long vmCount; + /* + * StorageGB gives the storage in GB present in the cloud. + */ + private Long storageGB; + /** * Creates an instance of CloudCapacity class. */ @@ -64,6 +69,15 @@ public Long vmCount() { return this.vmCount; } + /** + * Get the storageGB property: StorageGB gives the storage in GB present in the cloud. + * + * @return the storageGB value. + */ + public Long storageGB() { + return this.storageGB; + } + /** * Validates the instance. * @@ -102,6 +116,8 @@ public static CloudCapacity fromJson(JsonReader jsonReader) throws IOException { deserializedCloudCapacity.memoryMB = reader.getNullable(JsonReader::getLong); } else if ("vmCount".equals(fieldName)) { deserializedCloudCapacity.vmCount = reader.getNullable(JsonReader::getLong); + } else if ("storageGB".equals(fieldName)) { + deserializedCloudCapacity.storageGB = reader.getNullable(JsonReader::getLong); } else { reader.skipChildren(); } diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudInventoryItem.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudInventoryItem.java index 7ab5536c3aec..505c6078c0ad 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudInventoryItem.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/CloudInventoryItem.java @@ -20,26 +20,6 @@ public final class CloudInventoryItem extends InventoryItemProperties { */ private InventoryType inventoryType = InventoryType.CLOUD; - /* - * Gets the tracked resource id corresponding to the inventory resource. - */ - private String managedResourceId; - - /* - * Gets the UUID (which is assigned by Vmm) for the inventory item. - */ - private String uuid; - - /* - * Gets the Managed Object name in Vmm for the inventory item. - */ - private String inventoryItemName; - - /* - * Provisioning state of the resource. - */ - private ProvisioningState provisioningState; - /** * Creates an instance of CloudInventoryItem class. */ @@ -56,46 +36,6 @@ public InventoryType inventoryType() { return this.inventoryType; } - /** - * Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource. - * - * @return the managedResourceId value. - */ - @Override - public String managedResourceId() { - return this.managedResourceId; - } - - /** - * Get the uuid property: Gets the UUID (which is assigned by Vmm) for the inventory item. - * - * @return the uuid value. - */ - @Override - public String uuid() { - return this.uuid; - } - - /** - * Get the inventoryItemName property: Gets the Managed Object name in Vmm for the inventory item. - * - * @return the inventoryItemName value. - */ - @Override - public String inventoryItemName() { - return this.inventoryItemName; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - @Override - public ProvisioningState provisioningState() { - return this.provisioningState; - } - /** * Validates the instance. * @@ -103,7 +43,6 @@ public ProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** @@ -132,13 +71,14 @@ public static CloudInventoryItem fromJson(JsonReader jsonReader) throws IOExcept reader.nextToken(); if ("managedResourceId".equals(fieldName)) { - deserializedCloudInventoryItem.managedResourceId = reader.getString(); + deserializedCloudInventoryItem.withManagedResourceId(reader.getString()); } else if ("uuid".equals(fieldName)) { - deserializedCloudInventoryItem.uuid = reader.getString(); + deserializedCloudInventoryItem.withUuid(reader.getString()); } else if ("inventoryItemName".equals(fieldName)) { - deserializedCloudInventoryItem.inventoryItemName = reader.getString(); + deserializedCloudInventoryItem.withInventoryItemName(reader.getString()); } else if ("provisioningState".equals(fieldName)) { - deserializedCloudInventoryItem.provisioningState = ProvisioningState.fromString(reader.getString()); + deserializedCloudInventoryItem + .withProvisioningState(ProvisioningState.fromString(reader.getString())); } else if ("inventoryType".equals(fieldName)) { deserializedCloudInventoryItem.inventoryType = InventoryType.fromString(reader.getString()); } else { diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/GuestAgentProperties.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/GuestAgentProperties.java index 170c9bf544f8..32bf2980860c 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/GuestAgentProperties.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/GuestAgentProperties.java @@ -51,6 +51,11 @@ public final class GuestAgentProperties implements JsonSerializable { + /* + * Gets or sets the admin username. + */ + private String adminUsername; + /* * Admin password of the virtual machine. */ @@ -41,12 +46,67 @@ public final class OsProfileForVmInstance implements JsonSerializable ipAddresses = reader.readArray(reader1 -> reader1.getString()); deserializedVirtualMachineInventoryItem.ipAddresses = ipAddresses; diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineTemplateInventoryItem.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineTemplateInventoryItem.java index 284a69663a10..59d4f2d48c06 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineTemplateInventoryItem.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineTemplateInventoryItem.java @@ -40,26 +40,6 @@ public final class VirtualMachineTemplateInventoryItem extends InventoryItemProp */ private String osName; - /* - * Gets the tracked resource id corresponding to the inventory resource. - */ - private String managedResourceId; - - /* - * Gets the UUID (which is assigned by Vmm) for the inventory item. - */ - private String uuid; - - /* - * Gets the Managed Object name in Vmm for the inventory item. - */ - private String inventoryItemName; - - /* - * Provisioning state of the resource. - */ - private ProvisioningState provisioningState; - /** * Creates an instance of VirtualMachineTemplateInventoryItem class. */ @@ -112,46 +92,6 @@ public String osName() { return this.osName; } - /** - * Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource. - * - * @return the managedResourceId value. - */ - @Override - public String managedResourceId() { - return this.managedResourceId; - } - - /** - * Get the uuid property: Gets the UUID (which is assigned by Vmm) for the inventory item. - * - * @return the uuid value. - */ - @Override - public String uuid() { - return this.uuid; - } - - /** - * Get the inventoryItemName property: Gets the Managed Object name in Vmm for the inventory item. - * - * @return the inventoryItemName value. - */ - @Override - public String inventoryItemName() { - return this.inventoryItemName; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - @Override - public ProvisioningState provisioningState() { - return this.provisioningState; - } - /** * Validates the instance. * @@ -159,7 +99,6 @@ public ProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** @@ -189,14 +128,14 @@ public static VirtualMachineTemplateInventoryItem fromJson(JsonReader jsonReader reader.nextToken(); if ("managedResourceId".equals(fieldName)) { - deserializedVirtualMachineTemplateInventoryItem.managedResourceId = reader.getString(); + deserializedVirtualMachineTemplateInventoryItem.withManagedResourceId(reader.getString()); } else if ("uuid".equals(fieldName)) { - deserializedVirtualMachineTemplateInventoryItem.uuid = reader.getString(); + deserializedVirtualMachineTemplateInventoryItem.withUuid(reader.getString()); } else if ("inventoryItemName".equals(fieldName)) { - deserializedVirtualMachineTemplateInventoryItem.inventoryItemName = reader.getString(); + deserializedVirtualMachineTemplateInventoryItem.withInventoryItemName(reader.getString()); } else if ("provisioningState".equals(fieldName)) { - deserializedVirtualMachineTemplateInventoryItem.provisioningState - = ProvisioningState.fromString(reader.getString()); + deserializedVirtualMachineTemplateInventoryItem + .withProvisioningState(ProvisioningState.fromString(reader.getString())); } else if ("inventoryType".equals(fieldName)) { deserializedVirtualMachineTemplateInventoryItem.inventoryType = InventoryType.fromString(reader.getString()); diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualNetworkInventoryItem.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualNetworkInventoryItem.java index 8061608cbc6c..5fe78a7e927e 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualNetworkInventoryItem.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualNetworkInventoryItem.java @@ -20,26 +20,6 @@ public final class VirtualNetworkInventoryItem extends InventoryItemProperties { */ private InventoryType inventoryType = InventoryType.VIRTUAL_NETWORK; - /* - * Gets the tracked resource id corresponding to the inventory resource. - */ - private String managedResourceId; - - /* - * Gets the UUID (which is assigned by Vmm) for the inventory item. - */ - private String uuid; - - /* - * Gets the Managed Object name in Vmm for the inventory item. - */ - private String inventoryItemName; - - /* - * Provisioning state of the resource. - */ - private ProvisioningState provisioningState; - /** * Creates an instance of VirtualNetworkInventoryItem class. */ @@ -56,46 +36,6 @@ public InventoryType inventoryType() { return this.inventoryType; } - /** - * Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource. - * - * @return the managedResourceId value. - */ - @Override - public String managedResourceId() { - return this.managedResourceId; - } - - /** - * Get the uuid property: Gets the UUID (which is assigned by Vmm) for the inventory item. - * - * @return the uuid value. - */ - @Override - public String uuid() { - return this.uuid; - } - - /** - * Get the inventoryItemName property: Gets the Managed Object name in Vmm for the inventory item. - * - * @return the inventoryItemName value. - */ - @Override - public String inventoryItemName() { - return this.inventoryItemName; - } - - /** - * Get the provisioningState property: Provisioning state of the resource. - * - * @return the provisioningState value. - */ - @Override - public ProvisioningState provisioningState() { - return this.provisioningState; - } - /** * Validates the instance. * @@ -103,7 +43,6 @@ public ProvisioningState provisioningState() { */ @Override public void validate() { - super.validate(); } /** @@ -132,14 +71,14 @@ public static VirtualNetworkInventoryItem fromJson(JsonReader jsonReader) throws reader.nextToken(); if ("managedResourceId".equals(fieldName)) { - deserializedVirtualNetworkInventoryItem.managedResourceId = reader.getString(); + deserializedVirtualNetworkInventoryItem.withManagedResourceId(reader.getString()); } else if ("uuid".equals(fieldName)) { - deserializedVirtualNetworkInventoryItem.uuid = reader.getString(); + deserializedVirtualNetworkInventoryItem.withUuid(reader.getString()); } else if ("inventoryItemName".equals(fieldName)) { - deserializedVirtualNetworkInventoryItem.inventoryItemName = reader.getString(); + deserializedVirtualNetworkInventoryItem.withInventoryItemName(reader.getString()); } else if ("provisioningState".equals(fieldName)) { - deserializedVirtualNetworkInventoryItem.provisioningState - = ProvisioningState.fromString(reader.getString()); + deserializedVirtualNetworkInventoryItem + .withProvisioningState(ProvisioningState.fromString(reader.getString())); } else if ("inventoryType".equals(fieldName)) { deserializedVirtualNetworkInventoryItem.inventoryType = InventoryType.fromString(reader.getString()); diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/proxy-config.json b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/proxy-config.json index 1f22f3863248..a37e738c391c 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/proxy-config.json +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.scvmm.implementation.AvailabilitySetsClientImpl$AvailabilitySetsService" ], [ "com.azure.resourcemanager.scvmm.implementation.CloudsClientImpl$CloudsService" ], [ "com.azure.resourcemanager.scvmm.implementation.GuestAgentsClientImpl$GuestAgentsService" ], [ "com.azure.resourcemanager.scvmm.implementation.InventoryItemsClientImpl$InventoryItemsService" ], [ "com.azure.resourcemanager.scvmm.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.scvmm.implementation.VirtualMachineInstancesClientImpl$VirtualMachineInstancesService" ], [ "com.azure.resourcemanager.scvmm.implementation.VirtualMachineTemplatesClientImpl$VirtualMachineTemplatesService" ], [ "com.azure.resourcemanager.scvmm.implementation.VirtualNetworksClientImpl$VirtualNetworksService" ], [ "com.azure.resourcemanager.scvmm.implementation.VmInstanceHybridIdentityMetadatasClientImpl$VmInstanceHybridIdentityMetadatasService" ], [ "com.azure.resourcemanager.scvmm.implementation.VmmServersClientImpl$VmmServersService" ] ] \ No newline at end of file +[["com.azure.resourcemanager.scvmm.implementation.AvailabilitySetsClientImpl$AvailabilitySetsService"],["com.azure.resourcemanager.scvmm.implementation.CloudsClientImpl$CloudsService"],["com.azure.resourcemanager.scvmm.implementation.GuestAgentsClientImpl$GuestAgentsService"],["com.azure.resourcemanager.scvmm.implementation.InventoryItemsClientImpl$InventoryItemsService"],["com.azure.resourcemanager.scvmm.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.scvmm.implementation.VirtualMachineInstancesClientImpl$VirtualMachineInstancesService"],["com.azure.resourcemanager.scvmm.implementation.VirtualMachineTemplatesClientImpl$VirtualMachineTemplatesService"],["com.azure.resourcemanager.scvmm.implementation.VirtualNetworksClientImpl$VirtualNetworksService"],["com.azure.resourcemanager.scvmm.implementation.VmInstanceHybridIdentityMetadatasClientImpl$VmInstanceHybridIdentityMetadatasService"],["com.azure.resourcemanager.scvmm.implementation.VmmServersClientImpl$VmmServersService"]] \ No newline at end of file diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/reflect-config.json b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/reflect-config.json index 8878e547a798..0637a088a01e 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/reflect-config.json +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-scvmm/reflect-config.json @@ -1 +1 @@ -[ ] \ No newline at end of file +[] \ No newline at end of file diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/azure-resourcemanager-scvmm.properties b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/azure-resourcemanager-scvmm.properties new file mode 100644 index 000000000000..defbd48204e4 --- /dev/null +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/resources/azure-resourcemanager-scvmm.properties @@ -0,0 +1 @@ +version=${project.version} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateSamples.java index 6b3a0aff0cb0..0ee78dba8400 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class AvailabilitySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -32,7 +32,7 @@ public static void availabilitySetsCreateOrUpdateMinimumSet(com.azure.resourcema } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_CreateOrUpdate_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsDeleteSamples.java index 52dfcdc27663..582a42a99d94 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class AvailabilitySetsDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Delete_MaximumSet_Gen.json */ /** @@ -24,7 +24,7 @@ public static void availabilitySetsDeleteMaximumSet(com.azure.resourcemanager.sc } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Delete_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupSamples.java index 99799a361a5b..22cf5b38a30f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Get_MinimumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void availabilitySetsGetMinimumSet(com.azure.resourcemanager.scvmm } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Get_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupSamples.java index 935e31bb576e..4a636283856a 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class AvailabilitySetsListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListByResourceGroup_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListSamples.java index 9714a70deda9..20128370aba5 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListBySubscription_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class AvailabilitySetsListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_ListBySubscription_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsUpdateSamples.java index 522f491aa2b9..5f3c4259faff 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AvailabilitySetsUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Update_MinimumSet_Gen.json */ /** @@ -29,7 +29,7 @@ public static void availabilitySetsUpdateMinimumSet(com.azure.resourcemanager.sc } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * AvailabilitySets_Update_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateSamples.java index cdd59d501c66..7e71b800d11d 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class CloudsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -32,7 +32,7 @@ public static void cloudsCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvm } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_CreateOrUpdate_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsDeleteSamples.java index 1198e9164fe6..934a5810f84a 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsDeleteSamples.java @@ -12,7 +12,7 @@ public final class CloudsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Delete_MaximumSet_Gen.json */ /** * Sample code: Clouds_Delete_MaximumSet. @@ -25,7 +25,7 @@ public static void cloudsDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmM /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Delete_MinimumSet_Gen.json */ /** * Sample code: Clouds_Delete_MinimumSet. diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupSamples.java index 21dc65862229..3587588f2718 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CloudsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Get_MaximumSet_Gen.json */ /** * Sample code: Clouds_Get_MaximumSet. @@ -23,7 +23,7 @@ public static void cloudsGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmMana /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Get_MinimumSet_Gen.json */ /** * Sample code: Clouds_Get_MinimumSet. diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupSamples.java index b8b834896fb7..cadc2e0298f0 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CloudsListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListByResourceGroup_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void cloudsListByResourceGroupMaximumSet(com.azure.resourcemanager } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListByResourceGroup_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListSamples.java index 5a91c1223a5e..e5b457d7a6bf 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsListSamples.java @@ -9,7 +9,7 @@ */ public final class CloudsListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListBySubscription_MinimumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void cloudsListBySubscriptionMinimumSet(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * Clouds_ListBySubscription_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsUpdateSamples.java index 98093ba8d0bb..1b45392fb659 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/CloudsUpdateSamples.java @@ -14,7 +14,7 @@ public final class CloudsUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MinimumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Update_MinimumSet_Gen.json */ /** * Sample code: Clouds_Update_MinimumSet. @@ -30,7 +30,7 @@ public static void cloudsUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmM /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MaximumSet_Gen.json + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Clouds_Update_MaximumSet_Gen.json */ /** * Sample code: Clouds_Update_MaximumSet. diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsCreateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsCreateSamples.java index 09788e1117e4..b37af2ddef0c 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsCreateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsCreateSamples.java @@ -16,7 +16,7 @@ public final class GuestAgentsCreateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Create_MinimumSet_Gen * .json */ /** @@ -30,7 +30,7 @@ public static void guestAgentsCreateMinimumSet(com.azure.resourcemanager.scvmm.S /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Create_MaximumSet_Gen * .json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteSamples.java index 5823a2e98b40..310b54ecdc9f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class GuestAgentsDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Delete_MaximumSet_Gen * .json */ /** @@ -24,7 +24,7 @@ public static void guestAgentsDeleteMaximumSet(com.azure.resourcemanager.scvmm.S /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Delete_MinimumSet_Gen * .json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsGetSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsGetSamples.java index 12e8240f2ae3..31721dceb8b7 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsGetSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsGetSamples.java @@ -10,7 +10,7 @@ public final class GuestAgentsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Get_MaximumSet_Gen. * json */ /** @@ -24,7 +24,7 @@ public static void guestAgentsGetMaximumSet(com.azure.resourcemanager.scvmm.Scvm /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/GuestAgents_Get_MinimumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsListByVirtualMachineInstanceSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsListByVirtualMachineInstanceSamples.java index ffd9e2d614b2..88a936c82f95 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsListByVirtualMachineInstanceSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsListByVirtualMachineInstanceSamples.java @@ -9,7 +9,7 @@ */ public final class GuestAgentsListByVirtualMachineInstanceSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * GuestAgents_ListByVirtualMachineInstance_MaximumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class GuestAgentsListByVirtualMachineInstanceSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * GuestAgents_ListByVirtualMachineInstance_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateSamples.java index 281cc12fa8a7..2839a623ccc6 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateSamples.java @@ -11,7 +11,7 @@ */ public final class InventoryItemsCreateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Create_MinimumSet_Gen.json */ /** @@ -27,7 +27,7 @@ public static void inventoryItemsCreateMinimumSet(com.azure.resourcemanager.scvm } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Create_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteSamples.java index 2cee94efb876..2fa037f7b877 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class InventoryItemsDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Delete_MaximumSet_Gen.json */ /** @@ -24,7 +24,7 @@ public static void inventoryItemsDeleteMaximumSet(com.azure.resourcemanager.scvm } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_Delete_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetSamples.java index 2db329b4100b..d91229fc7562 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetSamples.java @@ -10,7 +10,7 @@ public final class InventoryItemsGetSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MinimumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/InventoryItems_Get_MinimumSet_Gen * .json */ /** @@ -25,7 +25,7 @@ public static void inventoryItemsGetMinimumSet(com.azure.resourcemanager.scvmm.S /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MaximumSet_Gen + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/InventoryItems_Get_MaximumSet_Gen * .json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerSamples.java index fdaf6036b08a..635b49b748ce 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerSamples.java @@ -9,7 +9,7 @@ */ public final class InventoryItemsListByVmmServerSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_ListByVmmServer_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void inventoryItemsListByVmmServerMaximumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * InventoryItems_ListByVmmServer_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/OperationsListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/OperationsListSamples.java index 690f112d4af4..1ec77f6e4b0f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/OperationsListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Operations_List_MinimumSet_Gen. * json */ /** @@ -24,7 +24,7 @@ public static void operationsListMinimumSet(com.azure.resourcemanager.scvmm.Scvm /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/Operations_List_MaximumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateCheckpointSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateCheckpointSamples.java index 72bf7748f978..3c0140ba879e 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateCheckpointSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateCheckpointSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachineInstancesCreateCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateCheckpoint_MaximumSet_Gen.json */ /** @@ -27,7 +27,7 @@ public final class VirtualMachineInstancesCreateCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateCheckpoint_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateOrUpdateSamples.java index 4b406b9fc181..adf01c5e6d60 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesCreateOrUpdateSamples.java @@ -27,7 +27,7 @@ */ public final class VirtualMachineInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -43,8 +43,16 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples { .withAvailabilitySets(Arrays.asList(new AvailabilitySetListItem().withId( "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName") .withName("lwbhaseo"))) - .withOsProfile(new OsProfileForVmInstance().withAdminPassword("fakeTokenPlaceholder") - .withComputerName("uuxpcxuxcufllc")) + .withOsProfile(new OsProfileForVmInstance().withAdminUsername("asasas") + .withAdminPassword("fakeTokenPlaceholder") + .withComputerName("uuxpcxuxcufllc") + .withDomainName("vblzsoqxzlrygdulnefexjdezo") + .withDomainUsername("sn") + .withDomainPassword("fakeTokenPlaceholder") + .withWorkgroup("bsqftibgcnnjpvmuxligk") + .withProductKey("fakeTokenPlaceholder") + .withTimezone(4) + .withRunOnceCommands("byxpnluptiwxycbbybsf;qwerty")) .withHardwareProfile(new HardwareProfile().withMemoryMB(5) .withCpuCount(22) .withLimitCpuForMigration(LimitCpuForMigration.TRUE) @@ -90,7 +98,7 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_CreateOrUpdate_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteCheckpointSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteCheckpointSamples.java index fbbe01aa6326..e5f56a7dfffa 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteCheckpointSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteCheckpointSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachineInstancesDeleteCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json */ /** @@ -28,7 +28,7 @@ public final class VirtualMachineInstancesDeleteCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteSamples.java index 0c3e5745a772..fef29150c687 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesDeleteSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineInstancesDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Delete_MaximumSet_Gen.json */ /** @@ -26,7 +26,7 @@ public static void virtualMachineInstancesDeleteMaximumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Delete_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesGetSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesGetSamples.java index 5f8e76b23736..9bf6de253106 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesGetSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineInstancesGetSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Get_MinimumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void virtualMachineInstancesGetMinimumSet(com.azure.resourcemanage } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Get_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesListSamples.java index c52897ccda26..68babddf28ce 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineInstancesListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_List_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void virtualMachineInstancesListMaximumSet(com.azure.resourcemanag } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_List_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestartSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestartSamples.java index e2591721c842..c58b5996f3ae 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestartSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestartSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineInstancesRestartSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Restart_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void virtualMachineInstancesRestartMaximumSet(com.azure.resourcema } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Restart_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestoreCheckpointSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestoreCheckpointSamples.java index 2453bbfb7050..8bac61e7171f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestoreCheckpointSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesRestoreCheckpointSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachineInstancesRestoreCheckpointSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_RestoreCheckpoint_MinimumSet_Gen.json */ /** @@ -27,7 +27,7 @@ public final class VirtualMachineInstancesRestoreCheckpointSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_RestoreCheckpoint_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStartSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStartSamples.java index e312dca8b560..d46a04ff4145 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStartSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStartSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineInstancesStartSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Start_MinimumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void virtualMachineInstancesStartMinimumSet(com.azure.resourcemana } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Start_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStopSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStopSamples.java index 13cc1ebcfba9..ad506dfd9e58 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStopSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesStopSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineInstancesStopSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Stop_MaximumSet_Gen.json */ /** @@ -27,7 +27,7 @@ public static void virtualMachineInstancesStopMaximumSet(com.azure.resourcemanag } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Stop_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesUpdateSamples.java index 9e745e6aa78b..7537a79c5196 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstancesUpdateSamples.java @@ -24,7 +24,7 @@ */ public final class VirtualMachineInstancesUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Update_MinimumSet_Gen.json */ /** @@ -38,7 +38,7 @@ public static void virtualMachineInstancesUpdateMinimumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineInstances_Update_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateSamples.java index 9be14b34a4dd..ce36da3ff747 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class VirtualMachineTemplatesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -33,7 +33,7 @@ public final class VirtualMachineTemplatesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_CreateOrUpdate_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesDeleteSamples.java index 512dfb09320c..8db94cf2e279 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachineTemplatesDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Delete_MinimumSet_Gen.json */ /** @@ -24,7 +24,7 @@ public static void virtualMachineTemplatesDeleteMinimumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Delete_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupSamples.java index 358fb603bd30..a815f15b883a 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineTemplatesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Get_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public static void virtualMachineTemplatesGetMinimumSet(com.azure.resourcemanage } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Get_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupSamples.java index 725bc3dfd67f..a01ae0699e4c 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineTemplatesListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class VirtualMachineTemplatesListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListByResourceGroup_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListSamples.java index 2df01698f32f..b2ea7361cc51 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineTemplatesListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListBySubscription_MaximumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class VirtualMachineTemplatesListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_ListBySubscription_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesUpdateSamples.java index 2ccff5766cdc..a4911cfbe3ee 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class VirtualMachineTemplatesUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Update_MaximumSet_Gen.json */ /** @@ -29,7 +29,7 @@ public static void virtualMachineTemplatesUpdateMaximumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualMachineTemplates_Update_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateSamples.java index 31b8022765de..6ecbebd1942f 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class VirtualNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_CreateOrUpdate_MaximumSet_Gen.json */ /** @@ -39,7 +39,7 @@ public static void virtualNetworksCreateOrUpdateMaximumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_CreateOrUpdate_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksDeleteSamples.java index 3c76001693e6..ded9c39e7be5 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualNetworksDeleteSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Delete_MaximumSet_Gen.json */ /** @@ -24,7 +24,7 @@ public static void virtualNetworksDeleteMaximumSet(com.azure.resourcemanager.scv } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Delete_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupSamples.java index 5d63cb08d6e9..9799bf934fd5 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Get_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void virtualNetworksGetMaximumSet(com.azure.resourcemanager.scvmm. } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Get_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupSamples.java index 2abdca4c2fdf..d4013f8b857c 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class VirtualNetworksListByResourceGroupSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListByResourceGroup_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListSamples.java index 28157042c631..376aad0c7056 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualNetworksListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListBySubscription_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class VirtualNetworksListSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_ListBySubscription_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksUpdateSamples.java index 410ce15b58d6..eca585bb0faf 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class VirtualNetworksUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Update_MinimumSet_Gen.json */ /** @@ -29,7 +29,7 @@ public static void virtualNetworksUpdateMinimumSet(com.azure.resourcemanager.scv } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VirtualNetworks_Update_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasGetSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasGetSamples.java index 09a7900b6ff2..50f8935bb750 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasGetSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasGetSamples.java @@ -9,7 +9,7 @@ */ public final class VmInstanceHybridIdentityMetadatasGetSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_Get_MinimumSet_Gen.json */ /** @@ -23,7 +23,7 @@ public final class VmInstanceHybridIdentityMetadatasGetSamples { } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_Get_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples.java index 53e4b45d4559..e8a41b3fd001 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples.java @@ -9,7 +9,7 @@ */ public final class VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MaximumSet_Gen.json */ /** @@ -24,7 +24,7 @@ public static void vmInstanceHybridIdentityMetadatasListByVirtualMachineInstance } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersCreateOrUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersCreateOrUpdateSamples.java index 9e632ae4658a..4735ae41eacc 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersCreateOrUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class VmmServersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_CreateOrUpdate_MinimumSet_Gen.json */ /** @@ -33,7 +33,7 @@ public static void vmmServersCreateOrUpdateMinimumSet(com.azure.resourcemanager. } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_CreateOrUpdate_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersDeleteSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersDeleteSamples.java index 8b9955edf14d..aa9910d66852 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersDeleteSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersDeleteSamples.java @@ -12,7 +12,7 @@ public final class VmmServersDeleteSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Delete_MaximumSet_Gen. * json */ /** @@ -26,7 +26,7 @@ public static void vmmServersDeleteMaximumSet(com.azure.resourcemanager.scvmm.Sc /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Delete_MinimumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersGetByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersGetByResourceGroupSamples.java index 046ab3dee5c2..84bad87b48a5 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersGetByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class VmmServersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Get_MinimumSet_Gen. * json */ /** @@ -24,7 +24,7 @@ public static void vmmServersGetMinimumSet(com.azure.resourcemanager.scvmm.Scvmm /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Get_MaximumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListByResourceGroupSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListByResourceGroupSamples.java index 2c2f9ce223d8..0280dd8458b9 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListByResourceGroupSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VmmServersListByResourceGroupSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListByResourceGroup_MinimumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void vmmServersListByResourceGroupMinimumSet(com.azure.resourceman } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListByResourceGroup_MaximumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListSamples.java index a1bc5c3ac9fb..da7d337871f8 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersListSamples.java @@ -9,7 +9,7 @@ */ public final class VmmServersListSamples { /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListBySubscription_MaximumSet_Gen.json */ /** @@ -22,7 +22,7 @@ public static void vmmServersListBySubscriptionMaximumSet(com.azure.resourcemana } /* - * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/ + * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/ * VmmServers_ListBySubscription_MinimumSet_Gen.json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersUpdateSamples.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersUpdateSamples.java index 8a8c727f1541..5e44c48533cc 100644 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersUpdateSamples.java +++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/samples/java/com/azure/resourcemanager/scvmm/generated/VmmServersUpdateSamples.java @@ -14,7 +14,7 @@ public final class VmmServersUpdateSamples { /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MinimumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Update_MinimumSet_Gen. * json */ /** @@ -31,7 +31,7 @@ public static void vmmServersUpdateMinimumSet(com.azure.resourcemanager.scvmm.Sc /* * x-ms-original-file: - * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MaximumSet_Gen. + * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2025-03-13/examples/VmmServers_Update_MaximumSet_Gen. * json */ /** diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetInnerTests.java deleted file mode 100644 index 1bb21a97fe62..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetInnerTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.AvailabilitySetInner; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetProperties; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AvailabilitySetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailabilitySetInner model = BinaryData.fromString( - "{\"properties\":{\"availabilitySetName\":\"xy\",\"vmmServerId\":\"moyrxvwfudwpz\",\"provisioningState\":\"Accepted\"},\"extendedLocation\":{\"type\":\"dzhlrq\",\"name\":\"hckfrlhrx\"},\"location\":\"kyv\",\"tags\":{\"crnwbmeh\":\"anuzbpzkafkuw\"},\"id\":\"seyvj\",\"name\":\"srtslhspkdeem\",\"type\":\"ofmxagkvtmelmqkr\"}") - .toObject(AvailabilitySetInner.class); - Assertions.assertEquals("kyv", model.location()); - Assertions.assertEquals("anuzbpzkafkuw", model.tags().get("crnwbmeh")); - Assertions.assertEquals("xy", model.properties().availabilitySetName()); - Assertions.assertEquals("moyrxvwfudwpz", model.properties().vmmServerId()); - Assertions.assertEquals("dzhlrq", model.extendedLocation().type()); - Assertions.assertEquals("hckfrlhrx", model.extendedLocation().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailabilitySetInner model = new AvailabilitySetInner().withLocation("kyv") - .withTags(mapOf("crnwbmeh", "anuzbpzkafkuw")) - .withProperties( - new AvailabilitySetProperties().withAvailabilitySetName("xy").withVmmServerId("moyrxvwfudwpz")) - .withExtendedLocation(new ExtendedLocation().withType("dzhlrq").withName("hckfrlhrx")); - model = BinaryData.fromObject(model).toObject(AvailabilitySetInner.class); - Assertions.assertEquals("kyv", model.location()); - Assertions.assertEquals("anuzbpzkafkuw", model.tags().get("crnwbmeh")); - Assertions.assertEquals("xy", model.properties().availabilitySetName()); - Assertions.assertEquals("moyrxvwfudwpz", model.properties().vmmServerId()); - Assertions.assertEquals("dzhlrq", model.extendedLocation().type()); - Assertions.assertEquals("hckfrlhrx", model.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListItemTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListItemTests.java deleted file mode 100644 index b04dc8eba205..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListItemTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetListItem; -import org.junit.jupiter.api.Assertions; - -public final class AvailabilitySetListItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailabilitySetListItem model - = BinaryData.fromString("{\"id\":\"hmofc\",\"name\":\"smy\"}").toObject(AvailabilitySetListItem.class); - Assertions.assertEquals("hmofc", model.id()); - Assertions.assertEquals("smy", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailabilitySetListItem model = new AvailabilitySetListItem().withId("hmofc").withName("smy"); - model = BinaryData.fromObject(model).toObject(AvailabilitySetListItem.class); - Assertions.assertEquals("hmofc", model.id()); - Assertions.assertEquals("smy", model.name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListResultTests.java deleted file mode 100644 index edcf4a007b94..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetListResultTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetListResult; -import org.junit.jupiter.api.Assertions; - -public final class AvailabilitySetListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailabilitySetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"availabilitySetName\":\"hrbnlankxmyskpbh\",\"vmmServerId\":\"btkcxywnytnrsyn\",\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"ybyxc\",\"name\":\"clha\"},\"location\":\"dbabp\",\"tags\":{\"yazttbtwwrqpue\":\"rqlfktsthsucocmn\",\"xibxujwbhqwalm\":\"ckzywbiexzfeyue\",\"ux\":\"zyoxaepdkzjan\",\"zt\":\"hdwbavxbniwdjs\"},\"id\":\"dbpgnxytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"},{\"properties\":{\"availabilitySetName\":\"plwzbhvgyugu\",\"vmmServerId\":\"vmkfssxqu\",\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"l\",\"name\":\"gsxnkjzkdeslpv\"},\"location\":\"pwiyig\",\"tags\":{\"upedeojnabckhs\":\"kdwzbaiuebbaumny\",\"ie\":\"txp\"},\"id\":\"tfhvpesapskrdqmh\",\"name\":\"jdhtldwkyzxu\",\"type\":\"tkncwsc\"},{\"properties\":{\"availabilitySetName\":\"lxotogtwrupq\",\"vmmServerId\":\"vnm\",\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"vce\",\"name\":\"eil\"},\"location\":\"notyfjfcnjbkcn\",\"tags\":{\"h\":\"bttk\",\"jtoqne\":\"wpn\",\"abgy\":\"mclfplphoxuscr\"},\"id\":\"psbjta\",\"name\":\"qugxywpmueefjzwf\",\"type\":\"kqujidsuyono\"}],\"nextLink\":\"laocqxtccmg\"}") - .toObject(AvailabilitySetListResult.class); - Assertions.assertEquals("dbabp", model.value().get(0).location()); - Assertions.assertEquals("rqlfktsthsucocmn", model.value().get(0).tags().get("yazttbtwwrqpue")); - Assertions.assertEquals("hrbnlankxmyskpbh", model.value().get(0).properties().availabilitySetName()); - Assertions.assertEquals("btkcxywnytnrsyn", model.value().get(0).properties().vmmServerId()); - Assertions.assertEquals("ybyxc", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("clha", model.value().get(0).extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetPropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetPropertiesTests.java deleted file mode 100644 index 3472679389c8..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetProperties; -import org.junit.jupiter.api.Assertions; - -public final class AvailabilitySetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailabilitySetProperties model = BinaryData - .fromString( - "{\"availabilitySetName\":\"hvljuahaquh\",\"vmmServerId\":\"hmdua\",\"provisioningState\":\"Failed\"}") - .toObject(AvailabilitySetProperties.class); - Assertions.assertEquals("hvljuahaquh", model.availabilitySetName()); - Assertions.assertEquals("hmdua", model.vmmServerId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailabilitySetProperties model - = new AvailabilitySetProperties().withAvailabilitySetName("hvljuahaquh").withVmmServerId("hmdua"); - model = BinaryData.fromObject(model).toObject(AvailabilitySetProperties.class); - Assertions.assertEquals("hvljuahaquh", model.availabilitySetName()); - Assertions.assertEquals("hmdua", model.vmmServerId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetTagsUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetTagsUpdateTests.java deleted file mode 100644 index 42678a4ec758..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetTagsUpdateTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetTagsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AvailabilitySetTagsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailabilitySetTagsUpdate model - = BinaryData.fromString("{\"tags\":{\"g\":\"hgkfmin\"}}").toObject(AvailabilitySetTagsUpdate.class); - Assertions.assertEquals("hgkfmin", model.tags().get("g")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailabilitySetTagsUpdate model = new AvailabilitySetTagsUpdate().withTags(mapOf("g", "hgkfmin")); - model = BinaryData.fromObject(model).toObject(AvailabilitySetTagsUpdate.class); - Assertions.assertEquals("hgkfmin", model.tags().get("g")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateMockTests.java deleted file mode 100644 index 3887dbafbaa3..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.AvailabilitySet; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetProperties; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AvailabilitySetsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"availabilitySetName\":\"v\",\"vmmServerId\":\"eexavo\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"lecdmdqbw\",\"name\":\"pqtgsfjac\"},\"location\":\"lhhxudbxvodhtnsi\",\"tags\":{\"ckdlpag\":\"hzmme\",\"xdfgsftufqobr\":\"rcxfailcfxwmdb\",\"knh\":\"lnacgcc\"},\"id\":\"kizvytn\",\"name\":\"zvulj\",\"type\":\"aaeranokqgukk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AvailabilitySet response = manager.availabilitySets() - .define("yxkyxvx") - .withRegion("lnsrmffe") - .withExistingResourceGroup("jjidjk") - .withExtendedLocation(new ExtendedLocation().withType("jbnkpp").withName("nenlsvxeizzg")) - .withTags(mapOf("iymerteeammxqi", "ckt", "zddrt", "kk", "ojbmxv", "g", "cuijpxt", "vrefdeesv")) - .withProperties( - new AvailabilitySetProperties().withAvailabilitySetName("lbj").withVmmServerId("nljlageuaulx")) - .create(); - - Assertions.assertEquals("lhhxudbxvodhtnsi", response.location()); - Assertions.assertEquals("hzmme", response.tags().get("ckdlpag")); - Assertions.assertEquals("v", response.properties().availabilitySetName()); - Assertions.assertEquals("eexavo", response.properties().vmmServerId()); - Assertions.assertEquals("lecdmdqbw", response.extendedLocation().type()); - Assertions.assertEquals("pqtgsfjac", response.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index dae9a33777d5..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.AvailabilitySet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AvailabilitySetsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"availabilitySetName\":\"qvmmbn\",\"vmmServerId\":\"fr\",\"provisioningState\":\"Accepted\"},\"extendedLocation\":{\"type\":\"zmegnitgvk\",\"name\":\"zyqdrfegcealzx\"},\"location\":\"cansymoyqhlwigd\",\"tags\":{\"ajuwas\":\"kbxgom\",\"hzbezkgi\":\"vdaeyyguxakjsq\",\"vvjskgfmocwahp\":\"sidxasicdd\"},\"id\":\"gat\",\"name\":\"eaahhvjhhn\",\"type\":\"kzyb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AvailabilitySet response = manager.availabilitySets() - .getByResourceGroupWithResponse("m", "yefrpmpdnqqska", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cansymoyqhlwigd", response.location()); - Assertions.assertEquals("kbxgom", response.tags().get("ajuwas")); - Assertions.assertEquals("qvmmbn", response.properties().availabilitySetName()); - Assertions.assertEquals("fr", response.properties().vmmServerId()); - Assertions.assertEquals("zmegnitgvk", response.extendedLocation().type()); - Assertions.assertEquals("zyqdrfegcealzx", response.extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupMockTests.java deleted file mode 100644 index 7a026d9a8f44..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListByResourceGroupMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.AvailabilitySet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AvailabilitySetsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"availabilitySetName\":\"vmuvgpmu\",\"vmmServerId\":\"qsxvmhf\",\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"yihsasbhudypohyu\",\"name\":\"slynsqyrpfoo\"},\"location\":\"lttymsjn\",\"tags\":{\"ilaxhn\":\"dnfwqzdzg\",\"wivkxo\":\"hqlyvijo\",\"ti\":\"zunbixx\"},\"id\":\"vcpwpgclrc\",\"name\":\"vtsoxf\",\"type\":\"kenx\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.availabilitySets().listByResourceGroup("hhzjhfj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lttymsjn", response.iterator().next().location()); - Assertions.assertEquals("dnfwqzdzg", response.iterator().next().tags().get("ilaxhn")); - Assertions.assertEquals("vmuvgpmu", response.iterator().next().properties().availabilitySetName()); - Assertions.assertEquals("qsxvmhf", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("yihsasbhudypohyu", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("slynsqyrpfoo", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListMockTests.java deleted file mode 100644 index 64aba4807090..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/AvailabilitySetsListMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.AvailabilitySet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AvailabilitySetsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"availabilitySetName\":\"cf\",\"vmmServerId\":\"rxgkne\",\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"type\":\"nzqodfvpg\",\"name\":\"oxgsgbpfgzdjtx\"},\"location\":\"flbqvgaq\",\"tags\":{\"cqusr\":\"a\",\"lduycv\":\"vetnwsdtutn\"},\"id\":\"zhyrmewipmve\",\"name\":\"dxukuqgsjjxundxg\",\"type\":\"etw\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.availabilitySets().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("flbqvgaq", response.iterator().next().location()); - Assertions.assertEquals("a", response.iterator().next().tags().get("cqusr")); - Assertions.assertEquals("cf", response.iterator().next().properties().availabilitySetName()); - Assertions.assertEquals("rxgkne", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("nzqodfvpg", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("oxgsgbpfgzdjtx", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CheckpointTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CheckpointTests.java deleted file mode 100644 index 6d45d53d67e9..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CheckpointTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.Checkpoint; -import org.junit.jupiter.api.Assertions; - -public final class CheckpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Checkpoint model = BinaryData.fromString( - "{\"parentCheckpointID\":\"qex\",\"checkpointID\":\"ocxscpaierhhbcs\",\"name\":\"ummajtjaod\",\"description\":\"bnbdxkqpxokajion\"}") - .toObject(Checkpoint.class); - Assertions.assertEquals("qex", model.parentCheckpointId()); - Assertions.assertEquals("ocxscpaierhhbcs", model.checkpointId()); - Assertions.assertEquals("ummajtjaod", model.name()); - Assertions.assertEquals("bnbdxkqpxokajion", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Checkpoint model = new Checkpoint().withParentCheckpointId("qex") - .withCheckpointId("ocxscpaierhhbcs") - .withName("ummajtjaod") - .withDescription("bnbdxkqpxokajion"); - model = BinaryData.fromObject(model).toObject(Checkpoint.class); - Assertions.assertEquals("qex", model.parentCheckpointId()); - Assertions.assertEquals("ocxscpaierhhbcs", model.checkpointId()); - Assertions.assertEquals("ummajtjaod", model.name()); - Assertions.assertEquals("bnbdxkqpxokajion", model.description()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudCapacityTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudCapacityTests.java deleted file mode 100644 index a58f33317a4d..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudCapacityTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CloudCapacity; - -public final class CloudCapacityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudCapacity model = BinaryData - .fromString( - "{\"cpuCount\":6996015407661494971,\"memoryMB\":3431932886317561144,\"vmCount\":5668149621351966733}") - .toObject(CloudCapacity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudCapacity model = new CloudCapacity(); - model = BinaryData.fromObject(model).toObject(CloudCapacity.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInnerTests.java deleted file mode 100644 index 5237b761ae0f..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInnerTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.CloudInner; -import com.azure.resourcemanager.scvmm.models.CloudProperties; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudInner model = BinaryData.fromString( - "{\"properties\":{\"inventoryItemId\":\"ivkrtsw\",\"uuid\":\"qzvszjf\",\"vmmServerId\":\"vjfdx\",\"cloudName\":\"vetvt\",\"cloudCapacity\":{\"cpuCount\":3989982721308647052,\"memoryMB\":6414157962649478285,\"vmCount\":4668269847268047385},\"storageQoSPolicies\":[{\"name\":\"vxysl\",\"id\":\"hsfxoblytkb\",\"iopsMaximum\":1261547703522273379,\"iopsMinimum\":6710979409785542965,\"bandwidthLimit\":3820765705092103463,\"policyId\":\"vrnsvshqjohxc\"},{\"name\":\"bfovasrruvwbhsq\",\"id\":\"ubcgjbirxb\",\"iopsMaximum\":5990216587260133822,\"iopsMinimum\":9066736792193838127,\"bandwidthLimit\":2236269397517718606,\"policyId\":\"w\"},{\"name\":\"otftpvjzbexilz\",\"id\":\"fqqnvwpmqtaruo\",\"iopsMaximum\":6347695881931305668,\"iopsMinimum\":4269295539164353927,\"bandwidthLimit\":6824806013048148325,\"policyId\":\"jrybnwjewgdrjer\"},{\"name\":\"aen\",\"id\":\"eh\",\"iopsMaximum\":2926817929583465327,\"iopsMinimum\":781592580513390645,\"bandwidthLimit\":6991523348113589059,\"policyId\":\"nzdndslgna\"}],\"provisioningState\":\"Accepted\"},\"extendedLocation\":{\"type\":\"ynduha\",\"name\":\"qlkth\"},\"location\":\"aqolbgycduiertg\",\"tags\":{\"lqlfm\":\"mvaolps\"},\"id\":\"dnbbglzps\",\"name\":\"iydmcwyhzdxs\",\"type\":\"adbzmnvdfznud\"}") - .toObject(CloudInner.class); - Assertions.assertEquals("aqolbgycduiertg", model.location()); - Assertions.assertEquals("mvaolps", model.tags().get("lqlfm")); - Assertions.assertEquals("ivkrtsw", model.properties().inventoryItemId()); - Assertions.assertEquals("qzvszjf", model.properties().uuid()); - Assertions.assertEquals("vjfdx", model.properties().vmmServerId()); - Assertions.assertEquals("ynduha", model.extendedLocation().type()); - Assertions.assertEquals("qlkth", model.extendedLocation().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudInner model = new CloudInner().withLocation("aqolbgycduiertg") - .withTags(mapOf("lqlfm", "mvaolps")) - .withProperties( - new CloudProperties().withInventoryItemId("ivkrtsw").withUuid("qzvszjf").withVmmServerId("vjfdx")) - .withExtendedLocation(new ExtendedLocation().withType("ynduha").withName("qlkth")); - model = BinaryData.fromObject(model).toObject(CloudInner.class); - Assertions.assertEquals("aqolbgycduiertg", model.location()); - Assertions.assertEquals("mvaolps", model.tags().get("lqlfm")); - Assertions.assertEquals("ivkrtsw", model.properties().inventoryItemId()); - Assertions.assertEquals("qzvszjf", model.properties().uuid()); - Assertions.assertEquals("vjfdx", model.properties().vmmServerId()); - Assertions.assertEquals("ynduha", model.extendedLocation().type()); - Assertions.assertEquals("qlkth", model.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInventoryItemTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInventoryItemTests.java deleted file mode 100644 index f63a0c8a6a0a..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudInventoryItemTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CloudInventoryItem; - -public final class CloudInventoryItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudInventoryItem model = BinaryData.fromString( - "{\"inventoryType\":\"Cloud\",\"managedResourceId\":\"iivwzjbhyzsxjrka\",\"uuid\":\"trnegvmnvuqeqvld\",\"inventoryItemName\":\"astjbkkdmflvestm\",\"provisioningState\":\"Deleting\"}") - .toObject(CloudInventoryItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudInventoryItem model = new CloudInventoryItem(); - model = BinaryData.fromObject(model).toObject(CloudInventoryItem.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudListResultTests.java deleted file mode 100644 index 5eaf51462015..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CloudListResult; -import org.junit.jupiter.api.Assertions; - -public final class CloudListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"inventoryItemId\":\"vfadmws\",\"uuid\":\"r\",\"vmmServerId\":\"xpvgo\",\"cloudName\":\"lf\",\"cloudCapacity\":{\"cpuCount\":3141876003584230040,\"memoryMB\":7679233497718407318,\"vmCount\":365691236561868989},\"storageQoSPolicies\":[{\"name\":\"k\",\"id\":\"ali\",\"iopsMaximum\":54169882983487255,\"iopsMinimum\":6778562451936395688,\"bandwidthLimit\":131133871653701525,\"policyId\":\"shsfwxosowzxcu\"}],\"provisioningState\":\"Created\"},\"extendedLocation\":{\"type\":\"ooxdjebwpuc\",\"name\":\"fvovbvmeuecivy\"},\"location\":\"ce\",\"tags\":{\"x\":\"gjrwjueiotwmcdyt\",\"nrjawgqwg\":\"it\",\"klwndnhjdauwhv\":\"hniskxfbkpyc\",\"zbtd\":\"l\"},\"id\":\"xujznbmpowu\",\"name\":\"przqlveu\",\"type\":\"lupj\"},{\"properties\":{\"inventoryItemId\":\"fxobbcsws\",\"uuid\":\"jriplrbpbewtghf\",\"vmmServerId\":\"lcgwxzvlvqh\",\"cloudName\":\"begibtnmxiebwwa\",\"cloudCapacity\":{\"cpuCount\":6525239708045322977,\"memoryMB\":7151462329487158065,\"vmCount\":6136339981043942378},\"storageQoSPolicies\":[{\"name\":\"gwyzm\",\"id\":\"xongmtsavjcbpwxq\",\"iopsMaximum\":8746825901777553134,\"iopsMinimum\":5242300752961630966,\"bandwidthLimit\":2094806440159682328,\"policyId\":\"iuhprwmdyvxqta\"},{\"name\":\"iwwroyqbexrmc\",\"id\":\"bycnojvkn\",\"iopsMaximum\":3613497258699833567,\"iopsMinimum\":3533117585190130257,\"bandwidthLimit\":2097123359842677496,\"policyId\":\"pjyzhpv\"},{\"name\":\"zcjrvxdjzlmwlx\",\"id\":\"ug\",\"iopsMaximum\":8948733559998471922,\"iopsMinimum\":6856642650959955968,\"bandwidthLimit\":7305517021128699895,\"policyId\":\"nluthnnp\"}],\"provisioningState\":\"Accepted\"},\"extendedLocation\":{\"type\":\"peilpjzuaejxdu\",\"name\":\"skzbb\"},\"location\":\"zumveekgpwo\",\"tags\":{\"yofd\":\"kfpbs\",\"dttouwaboekqvkel\":\"luu\"},\"id\":\"smv\",\"name\":\"xwyjsflhhc\",\"type\":\"aln\"},{\"properties\":{\"inventoryItemId\":\"isxyawjoyaqcslyj\",\"uuid\":\"iidzyexzne\",\"vmmServerId\":\"xhnrztfolhb\",\"cloudName\":\"knalaulppg\",\"cloudCapacity\":{\"cpuCount\":4103777440618573927,\"memoryMB\":2247931820360130707,\"vmCount\":7714445110480603377},\"storageQoSPolicies\":[{\"name\":\"hpigv\",\"id\":\"ylgqgitxmedjvcsl\",\"iopsMaximum\":5849348987172300465,\"iopsMinimum\":3200172025781612030,\"bandwidthLimit\":1124312331123717294,\"policyId\":\"xgk\"}],\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"type\":\"ucnapkteoellwp\",\"name\":\"d\"},\"location\":\"pfqbuaceopzf\",\"tags\":{\"qeqxo\":\"huaoppp\",\"ahzxctobgbk\":\"z\"},\"id\":\"moizpos\",\"name\":\"mgrcfbu\",\"type\":\"rmfqjhhkxbpvj\"}],\"nextLink\":\"jhxxjyn\"}") - .toObject(CloudListResult.class); - Assertions.assertEquals("ce", model.value().get(0).location()); - Assertions.assertEquals("gjrwjueiotwmcdyt", model.value().get(0).tags().get("x")); - Assertions.assertEquals("vfadmws", model.value().get(0).properties().inventoryItemId()); - Assertions.assertEquals("r", model.value().get(0).properties().uuid()); - Assertions.assertEquals("xpvgo", model.value().get(0).properties().vmmServerId()); - Assertions.assertEquals("ooxdjebwpuc", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("fvovbvmeuecivy", model.value().get(0).extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudPropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudPropertiesTests.java deleted file mode 100644 index 6fb887667bf0..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CloudProperties; -import org.junit.jupiter.api.Assertions; - -public final class CloudPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudProperties model = BinaryData.fromString( - "{\"inventoryItemId\":\"dvxzbncblylpst\",\"uuid\":\"hh\",\"vmmServerId\":\"rzdzucerscdnt\",\"cloudName\":\"vfiwjmygtdss\",\"cloudCapacity\":{\"cpuCount\":4029880181936290822,\"memoryMB\":2056289881259732229,\"vmCount\":3002295961372287593},\"storageQoSPolicies\":[{\"name\":\"qsemwabne\",\"id\":\"hhszh\",\"iopsMaximum\":6111204244847646570,\"iopsMinimum\":6033840789921327792,\"bandwidthLimit\":2247461655033792564,\"policyId\":\"wmbesldnkw\"}],\"provisioningState\":\"Succeeded\"}") - .toObject(CloudProperties.class); - Assertions.assertEquals("dvxzbncblylpst", model.inventoryItemId()); - Assertions.assertEquals("hh", model.uuid()); - Assertions.assertEquals("rzdzucerscdnt", model.vmmServerId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudProperties model = new CloudProperties().withInventoryItemId("dvxzbncblylpst") - .withUuid("hh") - .withVmmServerId("rzdzucerscdnt"); - model = BinaryData.fromObject(model).toObject(CloudProperties.class); - Assertions.assertEquals("dvxzbncblylpst", model.inventoryItemId()); - Assertions.assertEquals("hh", model.uuid()); - Assertions.assertEquals("rzdzucerscdnt", model.vmmServerId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudTagsUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudTagsUpdateTests.java deleted file mode 100644 index 6558a4444b35..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudTagsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CloudTagsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudTagsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudTagsUpdate model = BinaryData.fromString( - "{\"tags\":{\"lahb\":\"fttsttk\",\"qtgqqqxhrnxr\":\"actxtgzukxitm\",\"okqdzfvaz\":\"cpjuisa\",\"ajlkatnw\":\"vjlfrqtt\"}}") - .toObject(CloudTagsUpdate.class); - Assertions.assertEquals("fttsttk", model.tags().get("lahb")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudTagsUpdate model = new CloudTagsUpdate().withTags( - mapOf("lahb", "fttsttk", "qtgqqqxhrnxr", "actxtgzukxitm", "okqdzfvaz", "cpjuisa", "ajlkatnw", "vjlfrqtt")); - model = BinaryData.fromObject(model).toObject(CloudTagsUpdate.class); - Assertions.assertEquals("fttsttk", model.tags().get("lahb")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateMockTests.java deleted file mode 100644 index 1de594c9d999..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.Cloud; -import com.azure.resourcemanager.scvmm.models.CloudProperties; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CloudsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"vpbdbzqgq\",\"uuid\":\"hedsvqwthmkyib\",\"vmmServerId\":\"sihsgqcwdhohsd\",\"cloudName\":\"cdzsu\",\"cloudCapacity\":{\"cpuCount\":7117215511818462498,\"memoryMB\":6915667068183243162,\"vmCount\":7808079684010366581},\"storageQoSPolicies\":[{\"name\":\"pcvhdbevwqqxeys\",\"id\":\"nqzi\",\"iopsMaximum\":4259363860416490102,\"iopsMinimum\":1183436721296067733,\"bandwidthLimit\":4864080345534775106,\"policyId\":\"xeqoc\"},{\"name\":\"mygvkzqkj\",\"id\":\"okbzef\",\"iopsMaximum\":2200731602352647038,\"iopsMinimum\":8813876269554898921,\"bandwidthLimit\":4509675475426678163,\"policyId\":\"e\"},{\"name\":\"q\",\"id\":\"kwv\",\"iopsMaximum\":5672897057063193378,\"iopsMinimum\":1846786260892387923,\"bandwidthLimit\":4435864913823432479,\"policyId\":\"xzmqpnodawop\"},{\"name\":\"ewjptmcg\",\"id\":\"ostzelndlatu\",\"iopsMaximum\":6922803194395266051,\"iopsMinimum\":879063471631285932,\"bandwidthLimit\":8308748747055589302,\"policyId\":\"hrbbpneqvcwwyy\"}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"chpp\",\"name\":\"rsnm\"},\"location\":\"ayzejnhlbkpbz\",\"tags\":{\"echndbnwieholew\":\"iljhahz\",\"efqsfapaqtferrqw\":\"wiuub\",\"kmfx\":\"x\"},\"id\":\"pjwogqqno\",\"name\":\"pud\",\"type\":\"dabtqwp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Cloud response = manager.clouds() - .define("hpc") - .withRegion("uciqdsme") - .withExistingResourceGroup("lzo") - .withExtendedLocation(new ExtendedLocation().withType("ypoq").withName("hlqhykprlpy")) - .withTags(mapOf("asiibmiybnnust", "tdfuxt", "nmgixh", "nlj", "oudorhcgyyp", "mavmq", "hu", "otwypundmb")) - .withProperties(new CloudProperties().withInventoryItemId("mdxotngfdgu") - .withUuid("yzihgrkyuizabsn") - .withVmmServerId("pphoj")) - .create(); - - Assertions.assertEquals("ayzejnhlbkpbz", response.location()); - Assertions.assertEquals("iljhahz", response.tags().get("echndbnwieholew")); - Assertions.assertEquals("vpbdbzqgq", response.properties().inventoryItemId()); - Assertions.assertEquals("hedsvqwthmkyib", response.properties().uuid()); - Assertions.assertEquals("sihsgqcwdhohsd", response.properties().vmmServerId()); - Assertions.assertEquals("chpp", response.extendedLocation().type()); - Assertions.assertEquals("rsnm", response.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index eb42aeaf6304..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.Cloud; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CloudsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"izbfhfovvacq\",\"uuid\":\"tuodxeszabbelaw\",\"vmmServerId\":\"ua\",\"cloudName\":\"zkwrrwoyc\",\"cloudCapacity\":{\"cpuCount\":3200915566855533052,\"memoryMB\":2884775904635449436,\"vmCount\":2467395859679855860},\"storageQoSPolicies\":[{\"name\":\"ywuhpsvfuur\",\"id\":\"lwexxwl\",\"iopsMaximum\":5454533877839303334,\"iopsMinimum\":9199175945719514627,\"bandwidthLimit\":6869025053356818243,\"policyId\":\"gepqtybbwwpg\"},{\"name\":\"k\",\"id\":\"zyvli\",\"iopsMaximum\":7764041210336820295,\"iopsMinimum\":8287274670039182556,\"bandwidthLimit\":848870221890738563,\"policyId\":\"nxm\"},{\"name\":\"uxswqrntvl\",\"id\":\"jpsttexoq\",\"iopsMaximum\":5287210425103137929,\"iopsMinimum\":5284910564957842889,\"bandwidthLimit\":62183573876209376,\"policyId\":\"uncuw\"}],\"provisioningState\":\"Provisioning\"},\"extendedLocation\":{\"type\":\"kcdqzhlct\",\"name\":\"unqndyfpchrqb\"},\"location\":\"jrcg\",\"tags\":{\"qqoli\":\"dcwboxjum\",\"aiouaubrjt\":\"r\",\"fuojrngif\":\"oq\"},\"id\":\"rzpasccbiuimzdly\",\"name\":\"dfqwmkyoq\",\"type\":\"fdvruz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Cloud response = manager.clouds() - .getByResourceGroupWithResponse("xcudchxgsr", "oldforobw", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jrcg", response.location()); - Assertions.assertEquals("dcwboxjum", response.tags().get("qqoli")); - Assertions.assertEquals("izbfhfovvacq", response.properties().inventoryItemId()); - Assertions.assertEquals("tuodxeszabbelaw", response.properties().uuid()); - Assertions.assertEquals("ua", response.properties().vmmServerId()); - Assertions.assertEquals("kcdqzhlct", response.extendedLocation().type()); - Assertions.assertEquals("unqndyfpchrqb", response.extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupMockTests.java deleted file mode 100644 index 5ef7956cdb1d..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListByResourceGroupMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.Cloud; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CloudsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"wm\",\"uuid\":\"mebwjscjpah\",\"vmmServerId\":\"veabfqxnmwmqtib\",\"cloudName\":\"ijddtvqc\",\"cloudCapacity\":{\"cpuCount\":3995165957523237174,\"memoryMB\":4810009338488600409,\"vmCount\":3344718342128535077},\"storageQoSPolicies\":[{\"name\":\"eekpndz\",\"id\":\"pmudqmeqwig\",\"iopsMaximum\":1602038748333470502,\"iopsMinimum\":2895883377575243380,\"bandwidthLimit\":191813532014871887,\"policyId\":\"e\"},{\"name\":\"pmzznrtffya\",\"id\":\"tmhheioqa\",\"iopsMaximum\":730726349973993242,\"iopsMinimum\":7801083553230678005,\"bandwidthLimit\":4758857143001364501,\"policyId\":\"xpdlcgqlsis\"},{\"name\":\"qfrddgam\",\"id\":\"hiosrsjuiv\",\"iopsMaximum\":455092351262610963,\"iopsMinimum\":572361619606348416,\"bandwidthLimit\":7426719311659683930,\"policyId\":\"hcz\"},{\"name\":\"rxzbujr\",\"id\":\"hqvwrevkhgnlnzon\",\"iopsMaximum\":432499304266915638,\"iopsMinimum\":2005313689678276388,\"bandwidthLimit\":6253741023246690907,\"policyId\":\"jtszcof\"}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"tdhgbjkvrelj\",\"name\":\"murvzm\"},\"location\":\"vuanashcxlp\",\"tags\":{\"zsdbccxjmon\":\"rbdkelvidiz\",\"uqj\":\"dgnwncypuuwwlt\"},\"id\":\"tzenk\",\"name\":\"if\",\"type\":\"zhmkdasvflyh\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.clouds().listByResourceGroup("fuzboyjathwtzolb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("vuanashcxlp", response.iterator().next().location()); - Assertions.assertEquals("rbdkelvidiz", response.iterator().next().tags().get("zsdbccxjmon")); - Assertions.assertEquals("wm", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("mebwjscjpah", response.iterator().next().properties().uuid()); - Assertions.assertEquals("veabfqxnmwmqtib", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("tdhgbjkvrelj", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("murvzm", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListMockTests.java deleted file mode 100644 index 42a9a58e3b4b..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/CloudsListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.Cloud; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CloudsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"vbroylaxxu\",\"uuid\":\"disdosfjbjsvgj\",\"vmmServerId\":\"hryvy\",\"cloudName\":\"t\",\"cloudCapacity\":{\"cpuCount\":87313434350967654,\"memoryMB\":4633131497917723717,\"vmCount\":3545804393254840755},\"storageQoSPolicies\":[{\"name\":\"tmvpdvjdhtt\",\"id\":\"efedxihchrphkm\",\"iopsMaximum\":3787352834540927110,\"iopsMinimum\":3614573403784565190,\"bandwidthLimit\":2282885407091220390,\"policyId\":\"bg\"},{\"name\":\"kylkdghrj\",\"id\":\"utlwxezwzhok\",\"iopsMaximum\":7624149688717867785,\"iopsMinimum\":2062475772346184475,\"bandwidthLimit\":5204919757963226438,\"policyId\":\"hgppipifhpfeoa\"},{\"name\":\"gcxtxj\",\"id\":\"heafidlt\",\"iopsMaximum\":2005438621034770208,\"iopsMinimum\":5739341399228629925,\"bandwidthLimit\":3530960182442104157,\"policyId\":\"h\"},{\"name\":\"ftxfkf\",\"id\":\"gpr\",\"iopsMaximum\":2543866141895923842,\"iopsMinimum\":5566902972165714794,\"bandwidthLimit\":7370264401437151122,\"policyId\":\"tgdqohmcwsldriz\"}],\"provisioningState\":\"Created\"},\"extendedLocation\":{\"type\":\"bra\",\"name\":\"libph\"},\"location\":\"zmizakakan\",\"tags\":{\"joylh\":\"dnjzh\"},\"id\":\"lmuoyxprimrsopte\",\"name\":\"cjmeislstvasy\",\"type\":\"wxdzaumweoohgu\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.clouds().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zmizakakan", response.iterator().next().location()); - Assertions.assertEquals("dnjzh", response.iterator().next().tags().get("joylh")); - Assertions.assertEquals("vbroylaxxu", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("disdosfjbjsvgj", response.iterator().next().properties().uuid()); - Assertions.assertEquals("hryvy", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("bra", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("libph", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/ExtendedLocationTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/ExtendedLocationTests.java deleted file mode 100644 index a18e18ebec92..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/ExtendedLocationTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import org.junit.jupiter.api.Assertions; - -public final class ExtendedLocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExtendedLocation model - = BinaryData.fromString("{\"type\":\"mexgstxgcp\",\"name\":\"gmaajrm\"}").toObject(ExtendedLocation.class); - Assertions.assertEquals("mexgstxgcp", model.type()); - Assertions.assertEquals("gmaajrm", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExtendedLocation model = new ExtendedLocation().withType("mexgstxgcp").withName("gmaajrm"); - model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("mexgstxgcp", model.type()); - Assertions.assertEquals("gmaajrm", model.name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteWithResponseMockTests.java deleted file mode 100644 index 495e021d60d5..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/GuestAgentsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GuestAgentsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.guestAgents().deleteWithResponse("aaomylweazu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileTests.java deleted file mode 100644 index a9888219042e..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.DynamicMemoryEnabled; -import com.azure.resourcemanager.scvmm.models.HardwareProfile; -import com.azure.resourcemanager.scvmm.models.LimitCpuForMigration; -import org.junit.jupiter.api.Assertions; - -public final class HardwareProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HardwareProfile model = BinaryData.fromString( - "{\"memoryMB\":1950851050,\"cpuCount\":1983903346,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"false\",\"dynamicMemoryMaxMB\":2056372142,\"dynamicMemoryMinMB\":1492414283,\"isHighlyAvailable\":\"true\"}") - .toObject(HardwareProfile.class); - Assertions.assertEquals(1950851050, model.memoryMB()); - Assertions.assertEquals(1983903346, model.cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.TRUE, model.limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, model.dynamicMemoryEnabled()); - Assertions.assertEquals(2056372142, model.dynamicMemoryMaxMB()); - Assertions.assertEquals(1492414283, model.dynamicMemoryMinMB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HardwareProfile model = new HardwareProfile().withMemoryMB(1950851050) - .withCpuCount(1983903346) - .withLimitCpuForMigration(LimitCpuForMigration.TRUE) - .withDynamicMemoryEnabled(DynamicMemoryEnabled.FALSE) - .withDynamicMemoryMaxMB(2056372142) - .withDynamicMemoryMinMB(1492414283); - model = BinaryData.fromObject(model).toObject(HardwareProfile.class); - Assertions.assertEquals(1950851050, model.memoryMB()); - Assertions.assertEquals(1983903346, model.cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.TRUE, model.limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, model.dynamicMemoryEnabled()); - Assertions.assertEquals(2056372142, model.dynamicMemoryMaxMB()); - Assertions.assertEquals(1492414283, model.dynamicMemoryMinMB()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileUpdateTests.java deleted file mode 100644 index e9b909f7c7e0..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HardwareProfileUpdateTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.DynamicMemoryEnabled; -import com.azure.resourcemanager.scvmm.models.HardwareProfileUpdate; -import com.azure.resourcemanager.scvmm.models.LimitCpuForMigration; -import org.junit.jupiter.api.Assertions; - -public final class HardwareProfileUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HardwareProfileUpdate model = BinaryData.fromString( - "{\"memoryMB\":330627677,\"cpuCount\":1964386727,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"false\",\"dynamicMemoryMaxMB\":8313214,\"dynamicMemoryMinMB\":5520044}") - .toObject(HardwareProfileUpdate.class); - Assertions.assertEquals(330627677, model.memoryMB()); - Assertions.assertEquals(1964386727, model.cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.FALSE, model.limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, model.dynamicMemoryEnabled()); - Assertions.assertEquals(8313214, model.dynamicMemoryMaxMB()); - Assertions.assertEquals(5520044, model.dynamicMemoryMinMB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HardwareProfileUpdate model = new HardwareProfileUpdate().withMemoryMB(330627677) - .withCpuCount(1964386727) - .withLimitCpuForMigration(LimitCpuForMigration.FALSE) - .withDynamicMemoryEnabled(DynamicMemoryEnabled.FALSE) - .withDynamicMemoryMaxMB(8313214) - .withDynamicMemoryMinMB(5520044); - model = BinaryData.fromObject(model).toObject(HardwareProfileUpdate.class); - Assertions.assertEquals(330627677, model.memoryMB()); - Assertions.assertEquals(1964386727, model.cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.FALSE, model.limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, model.dynamicMemoryEnabled()); - Assertions.assertEquals(8313214, model.dynamicMemoryMaxMB()); - Assertions.assertEquals(5520044, model.dynamicMemoryMinMB()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HttpProxyConfigurationTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HttpProxyConfigurationTests.java deleted file mode 100644 index 80b81654de9e..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/HttpProxyConfigurationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.HttpProxyConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class HttpProxyConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HttpProxyConfiguration model - = BinaryData.fromString("{\"httpsProxy\":\"cgygev\"}").toObject(HttpProxyConfiguration.class); - Assertions.assertEquals("cgygev", model.httpsProxy()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HttpProxyConfiguration model = new HttpProxyConfiguration().withHttpsProxy("cgygev"); - model = BinaryData.fromObject(model).toObject(HttpProxyConfiguration.class); - Assertions.assertEquals("cgygev", model.httpsProxy()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileTests.java deleted file mode 100644 index bbe67cf5cf25..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InfrastructureProfile; -import org.junit.jupiter.api.Assertions; - -public final class InfrastructureProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InfrastructureProfile model = BinaryData.fromString( - "{\"inventoryItemId\":\"muouqfp\",\"vmmServerId\":\"zw\",\"cloudId\":\"g\",\"templateId\":\"tnwu\",\"vmName\":\"gazxuf\",\"uuid\":\"uckyf\",\"lastRestoredVMCheckpoint\":{\"parentCheckpointID\":\"fidfvzw\",\"checkpointID\":\"uht\",\"name\":\"wisdkft\",\"description\":\"xmnteiwaop\"},\"checkpoints\":[{\"parentCheckpointID\":\"jcmmxdcufufsrp\",\"checkpointID\":\"zidnsezcxtbzsgfy\",\"name\":\"sne\",\"description\":\"dwzjeiach\"},{\"parentCheckpointID\":\"osfln\",\"checkpointID\":\"sfqpteehz\",\"name\":\"ypyqrimzinp\",\"description\":\"wjdk\"},{\"parentCheckpointID\":\"soodqxhcrmnoh\",\"checkpointID\":\"ckwhds\",\"name\":\"fiyipjxsqwpgrj\",\"description\":\"norcjxvsnbyxqab\"},{\"parentCheckpointID\":\"ocpcy\",\"checkpointID\":\"urzafb\",\"name\":\"j\",\"description\":\"btoqcjmkljavbqid\"}],\"checkpointType\":\"ajzyul\",\"generation\":144447336,\"biosGuid\":\"jkrlkhbzhfepg\"}") - .toObject(InfrastructureProfile.class); - Assertions.assertEquals("muouqfp", model.inventoryItemId()); - Assertions.assertEquals("zw", model.vmmServerId()); - Assertions.assertEquals("g", model.cloudId()); - Assertions.assertEquals("tnwu", model.templateId()); - Assertions.assertEquals("gazxuf", model.vmName()); - Assertions.assertEquals("uckyf", model.uuid()); - Assertions.assertEquals("ajzyul", model.checkpointType()); - Assertions.assertEquals(144447336, model.generation()); - Assertions.assertEquals("jkrlkhbzhfepg", model.biosGuid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InfrastructureProfile model = new InfrastructureProfile().withInventoryItemId("muouqfp") - .withVmmServerId("zw") - .withCloudId("g") - .withTemplateId("tnwu") - .withVmName("gazxuf") - .withUuid("uckyf") - .withCheckpointType("ajzyul") - .withGeneration(144447336) - .withBiosGuid("jkrlkhbzhfepg"); - model = BinaryData.fromObject(model).toObject(InfrastructureProfile.class); - Assertions.assertEquals("muouqfp", model.inventoryItemId()); - Assertions.assertEquals("zw", model.vmmServerId()); - Assertions.assertEquals("g", model.cloudId()); - Assertions.assertEquals("tnwu", model.templateId()); - Assertions.assertEquals("gazxuf", model.vmName()); - Assertions.assertEquals("uckyf", model.uuid()); - Assertions.assertEquals("ajzyul", model.checkpointType()); - Assertions.assertEquals(144447336, model.generation()); - Assertions.assertEquals("jkrlkhbzhfepg", model.biosGuid()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileUpdateTests.java deleted file mode 100644 index 426c2f0abff8..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InfrastructureProfileUpdateTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InfrastructureProfileUpdate; -import org.junit.jupiter.api.Assertions; - -public final class InfrastructureProfileUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InfrastructureProfileUpdate model = BinaryData.fromString("{\"checkpointType\":\"wkuofoskghsauu\"}") - .toObject(InfrastructureProfileUpdate.class); - Assertions.assertEquals("wkuofoskghsauu", model.checkpointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InfrastructureProfileUpdate model = new InfrastructureProfileUpdate().withCheckpointType("wkuofoskghsauu"); - model = BinaryData.fromObject(model).toObject(InfrastructureProfileUpdate.class); - Assertions.assertEquals("wkuofoskghsauu", model.checkpointType()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemDetailsTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemDetailsTests.java deleted file mode 100644 index 94cdc36534f1..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InventoryItemDetails; -import org.junit.jupiter.api.Assertions; - -public final class InventoryItemDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InventoryItemDetails model - = BinaryData.fromString("{\"inventoryItemId\":\"ril\",\"inventoryItemName\":\"apeewchpxlkt\"}") - .toObject(InventoryItemDetails.class); - Assertions.assertEquals("ril", model.inventoryItemId()); - Assertions.assertEquals("apeewchpxlkt", model.inventoryItemName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InventoryItemDetails model - = new InventoryItemDetails().withInventoryItemId("ril").withInventoryItemName("apeewchpxlkt"); - model = BinaryData.fromObject(model).toObject(InventoryItemDetails.class); - Assertions.assertEquals("ril", model.inventoryItemId()); - Assertions.assertEquals("apeewchpxlkt", model.inventoryItemName()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemInnerTests.java deleted file mode 100644 index a9a7cfc5cfbc..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.InventoryItemInner; -import com.azure.resourcemanager.scvmm.models.InventoryItemProperties; -import org.junit.jupiter.api.Assertions; - -public final class InventoryItemInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InventoryItemInner model = BinaryData.fromString( - "{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"i\",\"uuid\":\"fhoqca\",\"inventoryItemName\":\"wdaomdjvlpjxxkzb\",\"provisioningState\":\"Provisioning\"},\"kind\":\"eivsiykzkdnc\",\"id\":\"xonbzoggculapz\",\"name\":\"y\",\"type\":\"pgogtqxepny\"}") - .toObject(InventoryItemInner.class); - Assertions.assertEquals("eivsiykzkdnc", model.kind()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InventoryItemInner model - = new InventoryItemInner().withProperties(new InventoryItemProperties()).withKind("eivsiykzkdnc"); - model = BinaryData.fromObject(model).toObject(InventoryItemInner.class); - Assertions.assertEquals("eivsiykzkdnc", model.kind()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemListResultTests.java deleted file mode 100644 index 2b7a88c59c4d..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemListResultTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InventoryItemListResult; -import org.junit.jupiter.api.Assertions; - -public final class InventoryItemListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InventoryItemListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"lma\",\"uuid\":\"tcyohpfkyrk\",\"inventoryItemName\":\"dg\",\"provisioningState\":\"Failed\"},\"kind\":\"jkmnwq\",\"id\":\"obaiyhddviaceg\",\"name\":\"n\",\"type\":\"ntfpmvmemfnc\"},{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"vvbalx\",\"uuid\":\"lchpodbzevwrdn\",\"inventoryItemName\":\"ukuv\",\"provisioningState\":\"Updating\"},\"kind\":\"wsmystuluqypf\",\"id\":\"lerchpq\",\"name\":\"mfpjbabw\",\"type\":\"dfc\"}],\"nextLink\":\"spuunnoxyhkxgq\"}") - .toObject(InventoryItemListResult.class); - Assertions.assertEquals("jkmnwq", model.value().get(0).kind()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemPropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemPropertiesTests.java deleted file mode 100644 index 4791760e0604..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemPropertiesTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InventoryItemProperties; - -public final class InventoryItemPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - InventoryItemProperties model = BinaryData.fromString( - "{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"fuajly\",\"uuid\":\"lvofqzhvfcibyfmo\",\"inventoryItemName\":\"xrkjpvdw\",\"provisioningState\":\"Accepted\"}") - .toObject(InventoryItemProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - InventoryItemProperties model = new InventoryItemProperties(); - model = BinaryData.fromObject(model).toObject(InventoryItemProperties.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateWithResponseMockTests.java deleted file mode 100644 index 97d1a1fdccf3..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsCreateWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.InventoryItem; -import com.azure.resourcemanager.scvmm.models.InventoryItemProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class InventoryItemsCreateWithResponseMockTests { - @Test - public void testCreateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"eftkwqe\",\"uuid\":\"mvss\",\"inventoryItemName\":\"aepwamcxtcz\",\"provisioningState\":\"Provisioning\"},\"kind\":\"uknijduyye\",\"id\":\"ydjfb\",\"name\":\"c\",\"type\":\"v\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - InventoryItem response = manager.inventoryItems() - .define("mghihp") - .withExistingVmmServer("cxnafbwqrooh", "uovmaonurjt") - .withProperties(new InventoryItemProperties()) - .withKind("eukdqkkyih") - .create(); - - Assertions.assertEquals("uknijduyye", response.kind()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteWithResponseMockTests.java deleted file mode 100644 index da8371ecd41c..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class InventoryItemsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.inventoryItems() - .deleteWithResponse("vnynkb", "etnjuhpsprkz", "aupia", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetWithResponseMockTests.java deleted file mode 100644 index e88b95778aa8..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.InventoryItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class InventoryItemsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"og\",\"uuid\":\"zyvneezaifghtmo\",\"inventoryItemName\":\"tlffhzbkr\",\"provisioningState\":\"Canceled\"},\"kind\":\"avfqnvhnqoewdogi\",\"id\":\"tesypvidbztjh\",\"name\":\"t\",\"type\":\"b\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - InventoryItem response = manager.inventoryItems() - .getWithResponse("b", "vnwsw", "txkyctwwgzwxjlm", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("avfqnvhnqoewdogi", response.kind()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerMockTests.java deleted file mode 100644 index 97a670337028..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/InventoryItemsListByVmmServerMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.InventoryItem; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class InventoryItemsListByVmmServerMockTests { - @Test - public void testListByVmmServer() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryType\":\"InventoryItemProperties\",\"managedResourceId\":\"ziven\",\"uuid\":\"pmeyyvpkpatlbijp\",\"inventoryItemName\":\"sksrfhfvolmknbn\",\"provisioningState\":\"Deleting\"},\"kind\":\"ommpvfqaw\",\"id\":\"gbrt\",\"name\":\"uiaclkiexhajlfn\",\"type\":\"hiqfyuttdiy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.inventoryItems().listByVmmServer("mzvlazipbh", "wvqsgny", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ommpvfqaw", response.iterator().next().kind()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceTests.java deleted file mode 100644 index 0cbf99deffc0..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.NetworkInterface; -import org.junit.jupiter.api.Assertions; - -public final class NetworkInterfaceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkInterface model = BinaryData.fromString( - "{\"name\":\"si\",\"displayName\":\"evcciqihnhun\",\"ipv4Addresses\":[\"jzrnf\",\"gxg\",\"spemvtzfk\",\"fublj\"],\"ipv6Addresses\":[\"qeof\",\"aeqjhqjbasvms\",\"jqul\",\"gsntnbybkzgcwr\"],\"macAddress\":\"lxxwrljdouskc\",\"virtualNetworkId\":\"kocrcjdkwtnhx\",\"networkName\":\"jbiksqrglssai\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"ljfmppee\"}") - .toObject(NetworkInterface.class); - Assertions.assertEquals("si", model.name()); - Assertions.assertEquals("lxxwrljdouskc", model.macAddress()); - Assertions.assertEquals("kocrcjdkwtnhx", model.virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.macAddressType()); - Assertions.assertEquals("ljfmppee", model.nicId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkInterface model = new NetworkInterface().withName("si") - .withMacAddress("lxxwrljdouskc") - .withVirtualNetworkId("kocrcjdkwtnhx") - .withIpv4AddressType(AllocationMethod.DYNAMIC) - .withIpv6AddressType(AllocationMethod.STATIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("ljfmppee"); - model = BinaryData.fromObject(model).toObject(NetworkInterface.class); - Assertions.assertEquals("si", model.name()); - Assertions.assertEquals("lxxwrljdouskc", model.macAddress()); - Assertions.assertEquals("kocrcjdkwtnhx", model.virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.macAddressType()); - Assertions.assertEquals("ljfmppee", model.nicId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceUpdateTests.java deleted file mode 100644 index 808db74768c0..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkInterfaceUpdateTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.NetworkInterfaceUpdate; -import org.junit.jupiter.api.Assertions; - -public final class NetworkInterfaceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkInterfaceUpdate model = BinaryData.fromString( - "{\"name\":\"xodpuozmyzydagfu\",\"macAddress\":\"bezy\",\"virtualNetworkId\":\"okktwhrdxw\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"ureximoryocfs\"}") - .toObject(NetworkInterfaceUpdate.class); - Assertions.assertEquals("xodpuozmyzydagfu", model.name()); - Assertions.assertEquals("bezy", model.macAddress()); - Assertions.assertEquals("okktwhrdxw", model.virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.macAddressType()); - Assertions.assertEquals("ureximoryocfs", model.nicId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkInterfaceUpdate model = new NetworkInterfaceUpdate().withName("xodpuozmyzydagfu") - .withMacAddress("bezy") - .withVirtualNetworkId("okktwhrdxw") - .withIpv4AddressType(AllocationMethod.DYNAMIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("ureximoryocfs"); - model = BinaryData.fromObject(model).toObject(NetworkInterfaceUpdate.class); - Assertions.assertEquals("xodpuozmyzydagfu", model.name()); - Assertions.assertEquals("bezy", model.macAddress()); - Assertions.assertEquals("okktwhrdxw", model.virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.macAddressType()); - Assertions.assertEquals("ureximoryocfs", model.nicId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileTests.java deleted file mode 100644 index 021f39a7fd63..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.NetworkInterface; -import com.azure.resourcemanager.scvmm.models.NetworkProfile; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkProfile model = BinaryData.fromString( - "{\"networkInterfaces\":[{\"name\":\"zwuxzd\",\"displayName\":\"a\",\"ipv4Addresses\":[\"hmwhfpmrqo\",\"mt\",\"kknryrtihf\",\"tijbpzvgnwzsymgl\"],\"ipv6Addresses\":[\"cyzkohdbihanuf\",\"fcbjysagithxqha\",\"ifpikxwczby\",\"cnpqxuhivyqniwby\"],\"macAddress\":\"k\",\"virtualNetworkId\":\"dumjgrtfwvuk\",\"networkName\":\"audccsnhs\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"ryhtnapczwlokjy\"},{\"name\":\"kkvnipjox\",\"displayName\":\"nchgej\",\"ipv4Addresses\":[\"dmailzydehojw\",\"ahuxinpm\",\"njaqwixjspro\"],\"ipv6Addresses\":[\"putegjvwmfd\",\"t\",\"cmdv\",\"jhulsuuvmkjo\"],\"macAddress\":\"rwfndiod\",\"virtualNetworkId\":\"slwejdpvw\",\"networkName\":\"oqpsoa\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"j\"},{\"name\":\"hbcryffdfdosyge\",\"displayName\":\"aojakhmsbzjhcrz\",\"ipv4Addresses\":[\"phlxa\",\"lthqtrgqjbp\",\"zfsinzgvf\"],\"ipv6Addresses\":[\"wzo\",\"xjtfelluwfzit\",\"np\",\"qfpjk\"],\"macAddress\":\"xofpdvhpfxxypi\",\"virtualNetworkId\":\"nmayhuybb\",\"networkName\":\"odepoogin\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"gnarxzxtheo\"}]}") - .toObject(NetworkProfile.class); - Assertions.assertEquals("zwuxzd", model.networkInterfaces().get(0).name()); - Assertions.assertEquals("k", model.networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("dumjgrtfwvuk", model.networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("ryhtnapczwlokjy", model.networkInterfaces().get(0).nicId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkProfile model = new NetworkProfile().withNetworkInterfaces(Arrays.asList( - new NetworkInterface().withName("zwuxzd") - .withMacAddress("k") - .withVirtualNetworkId("dumjgrtfwvuk") - .withIpv4AddressType(AllocationMethod.STATIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.DYNAMIC) - .withNicId("ryhtnapczwlokjy"), - new NetworkInterface().withName("kkvnipjox") - .withMacAddress("rwfndiod") - .withVirtualNetworkId("slwejdpvw") - .withIpv4AddressType(AllocationMethod.DYNAMIC) - .withIpv6AddressType(AllocationMethod.STATIC) - .withMacAddressType(AllocationMethod.DYNAMIC) - .withNicId("j"), - new NetworkInterface().withName("hbcryffdfdosyge") - .withMacAddress("xofpdvhpfxxypi") - .withVirtualNetworkId("nmayhuybb") - .withIpv4AddressType(AllocationMethod.STATIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("gnarxzxtheo"))); - model = BinaryData.fromObject(model).toObject(NetworkProfile.class); - Assertions.assertEquals("zwuxzd", model.networkInterfaces().get(0).name()); - Assertions.assertEquals("k", model.networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("dumjgrtfwvuk", model.networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("ryhtnapczwlokjy", model.networkInterfaces().get(0).nicId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileUpdateTests.java deleted file mode 100644 index 4826dc0975e4..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/NetworkProfileUpdateTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.NetworkInterfaceUpdate; -import com.azure.resourcemanager.scvmm.models.NetworkProfileUpdate; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class NetworkProfileUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkProfileUpdate model = BinaryData.fromString( - "{\"networkInterfaces\":[{\"name\":\"ae\",\"macAddress\":\"fhyhltrpmopjmcma\",\"virtualNetworkId\":\"okth\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"fcp\"}]}") - .toObject(NetworkProfileUpdate.class); - Assertions.assertEquals("ae", model.networkInterfaces().get(0).name()); - Assertions.assertEquals("fhyhltrpmopjmcma", model.networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("okth", model.networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("fcp", model.networkInterfaces().get(0).nicId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkProfileUpdate model - = new NetworkProfileUpdate().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceUpdate().withName("ae") - .withMacAddress("fhyhltrpmopjmcma") - .withVirtualNetworkId("okth") - .withIpv4AddressType(AllocationMethod.DYNAMIC) - .withIpv6AddressType(AllocationMethod.STATIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("fcp"))); - model = BinaryData.fromObject(model).toObject(NetworkProfileUpdate.class); - Assertions.assertEquals("ae", model.networkInterfaces().get(0).name()); - Assertions.assertEquals("fhyhltrpmopjmcma", model.networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("okth", model.networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, model.networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, model.networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("fcp", model.networkInterfaces().get(0).nicId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationDisplayTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationDisplayTests.java deleted file mode 100644 index 1f0dad009903..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationDisplayTests.java +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData - .fromString( - "{\"provider\":\"gg\",\"resource\":\"bfs\",\"operation\":\"rbu\",\"description\":\"cvpnazzmhjrunmpx\"}") - .toObject(OperationDisplay.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationInnerTests.java deleted file mode 100644 index 3b4ddee8d253..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationInnerTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.OperationInner; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"pvecxgodeb\",\"isDataAction\":false,\"display\":{\"provider\":\"bmpukgriwflz\",\"resource\":\"bxzpuzycisp\",\"operation\":\"zahmgkbrpyydhibn\",\"description\":\"qkpikadrgvtqagnb\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationListResultTests.java deleted file mode 100644 index 991393632ac2..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationListResultTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"kix\",\"isDataAction\":false,\"display\":{\"provider\":\"eputtmrywnuzoqf\",\"resource\":\"yqzrnkcqvyxlw\",\"operation\":\"lsicohoqqnwv\",\"description\":\"yav\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"mmqhgyxzkonocuk\",\"isDataAction\":false,\"display\":{\"provider\":\"xuconu\",\"resource\":\"zf\",\"operation\":\"eyp\",\"description\":\"rmjmwvvjektc\"},\"origin\":\"user\",\"actionType\":\"Internal\"},{\"name\":\"lrsf\",\"isDataAction\":false,\"display\":{\"provider\":\"v\",\"resource\":\"dqgbiqylihkaetc\",\"operation\":\"vfcivfsnkymuc\",\"description\":\"hjfbebrjcxe\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"ttxfvjr\",\"isDataAction\":false,\"display\":{\"provider\":\"xepcyvahfn\",\"resource\":\"kyqxjvuujqgidokg\",\"operation\":\"jyoxgvclt\",\"description\":\"sncghkjeszz\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"xfvgxbfsmxne\"}") - .toObject(OperationListResult.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationsListMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationsListMockTests.java deleted file mode 100644 index 9e058a45439f..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/OperationsListMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"immbcx\",\"isDataAction\":true,\"display\":{\"provider\":\"orxvxcjzhqiz\",\"resource\":\"pxtgqscjav\",\"operation\":\"juhdqazkmtgguwpi\",\"description\":\"ajc\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StopVirtualMachineOptionsTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StopVirtualMachineOptionsTests.java deleted file mode 100644 index 34a7584f8d96..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StopVirtualMachineOptionsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.SkipShutdown; -import com.azure.resourcemanager.scvmm.models.StopVirtualMachineOptions; -import org.junit.jupiter.api.Assertions; - -public final class StopVirtualMachineOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StopVirtualMachineOptions model - = BinaryData.fromString("{\"skipShutdown\":\"false\"}").toObject(StopVirtualMachineOptions.class); - Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StopVirtualMachineOptions model = new StopVirtualMachineOptions().withSkipShutdown(SkipShutdown.FALSE); - model = BinaryData.fromObject(model).toObject(StopVirtualMachineOptions.class); - Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileTests.java deleted file mode 100644 index 2ad2c09cfcad..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CreateDiffDisk; -import com.azure.resourcemanager.scvmm.models.StorageProfile; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDisk; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageProfile model = BinaryData.fromString( - "{\"disks\":[{\"name\":\"xsabkyqdu\",\"displayName\":\"itcjczdz\",\"diskId\":\"ndhkrw\",\"diskSizeGB\":881924894,\"maxDiskSizeGB\":176871010,\"bus\":1872271759,\"lun\":223251370,\"busType\":\"vwrwj\",\"vhdType\":\"usnhutje\",\"volumeType\":\"mrldhu\",\"vhdFormatType\":\"zzd\",\"templateDiskId\":\"qxhocdgeablgphut\",\"storageQoSPolicy\":{\"name\":\"dvkaozw\",\"id\":\"ftyhxhurokf\"},\"createDiffDisk\":\"false\"},{\"name\":\"lniwpwcukjfkgiaw\",\"displayName\":\"lryplwckbasyy\",\"diskId\":\"ddhsgcbacphe\",\"diskSizeGB\":370872808,\"maxDiskSizeGB\":2065161762,\"bus\":2116203102,\"lun\":813482060,\"busType\":\"l\",\"vhdType\":\"dlikwyqkgfgibma\",\"volumeType\":\"akeqs\",\"vhdFormatType\":\"yb\",\"templateDiskId\":\"qedqytbciqfoufl\",\"storageQoSPolicy\":{\"name\":\"kzsmodm\",\"id\":\"ougpbkwt\"},\"createDiffDisk\":\"false\"}]}") - .toObject(StorageProfile.class); - Assertions.assertEquals("xsabkyqdu", model.disks().get(0).name()); - Assertions.assertEquals("ndhkrw", model.disks().get(0).diskId()); - Assertions.assertEquals(881924894, model.disks().get(0).diskSizeGB()); - Assertions.assertEquals(1872271759, model.disks().get(0).bus()); - Assertions.assertEquals(223251370, model.disks().get(0).lun()); - Assertions.assertEquals("vwrwj", model.disks().get(0).busType()); - Assertions.assertEquals("usnhutje", model.disks().get(0).vhdType()); - Assertions.assertEquals("qxhocdgeablgphut", model.disks().get(0).templateDiskId()); - Assertions.assertEquals("dvkaozw", model.disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("ftyhxhurokf", model.disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals(CreateDiffDisk.FALSE, model.disks().get(0).createDiffDisk()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageProfile model - = new StorageProfile() - .withDisks( - Arrays.asList( - new VirtualDisk().withName("xsabkyqdu") - .withDiskId("ndhkrw") - .withDiskSizeGB(881924894) - .withBus(1872271759) - .withLun(223251370) - .withBusType("vwrwj") - .withVhdType("usnhutje") - .withTemplateDiskId("qxhocdgeablgphut") - .withStorageQosPolicy( - new StorageQosPolicyDetails().withName("dvkaozw").withId("ftyhxhurokf")) - .withCreateDiffDisk(CreateDiffDisk.FALSE), - new VirtualDisk().withName("lniwpwcukjfkgiaw") - .withDiskId("ddhsgcbacphe") - .withDiskSizeGB(370872808) - .withBus(2116203102) - .withLun(813482060) - .withBusType("l") - .withVhdType("dlikwyqkgfgibma") - .withTemplateDiskId("qedqytbciqfoufl") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("kzsmodm").withId("ougpbkwt")) - .withCreateDiffDisk(CreateDiffDisk.FALSE))); - model = BinaryData.fromObject(model).toObject(StorageProfile.class); - Assertions.assertEquals("xsabkyqdu", model.disks().get(0).name()); - Assertions.assertEquals("ndhkrw", model.disks().get(0).diskId()); - Assertions.assertEquals(881924894, model.disks().get(0).diskSizeGB()); - Assertions.assertEquals(1872271759, model.disks().get(0).bus()); - Assertions.assertEquals(223251370, model.disks().get(0).lun()); - Assertions.assertEquals("vwrwj", model.disks().get(0).busType()); - Assertions.assertEquals("usnhutje", model.disks().get(0).vhdType()); - Assertions.assertEquals("qxhocdgeablgphut", model.disks().get(0).templateDiskId()); - Assertions.assertEquals("dvkaozw", model.disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("ftyhxhurokf", model.disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals(CreateDiffDisk.FALSE, model.disks().get(0).createDiffDisk()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileUpdateTests.java deleted file mode 100644 index 282e0075487d..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageProfileUpdateTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.StorageProfileUpdate; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageProfileUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageProfileUpdate model = BinaryData.fromString( - "{\"disks\":[{\"name\":\"mddystkiiux\",\"diskId\":\"yudxorrqnbp\",\"diskSizeGB\":999035629,\"bus\":2085551487,\"lun\":2041227856,\"busType\":\"rvkdvjsllrm\",\"vhdType\":\"d\",\"storageQoSPolicy\":{\"name\":\"t\",\"id\":\"n\"}}]}") - .toObject(StorageProfileUpdate.class); - Assertions.assertEquals("mddystkiiux", model.disks().get(0).name()); - Assertions.assertEquals("yudxorrqnbp", model.disks().get(0).diskId()); - Assertions.assertEquals(999035629, model.disks().get(0).diskSizeGB()); - Assertions.assertEquals(2085551487, model.disks().get(0).bus()); - Assertions.assertEquals(2041227856, model.disks().get(0).lun()); - Assertions.assertEquals("rvkdvjsllrm", model.disks().get(0).busType()); - Assertions.assertEquals("d", model.disks().get(0).vhdType()); - Assertions.assertEquals("t", model.disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("n", model.disks().get(0).storageQosPolicy().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageProfileUpdate model - = new StorageProfileUpdate().withDisks(Arrays.asList(new VirtualDiskUpdate().withName("mddystkiiux") - .withDiskId("yudxorrqnbp") - .withDiskSizeGB(999035629) - .withBus(2085551487) - .withLun(2041227856) - .withBusType("rvkdvjsllrm") - .withVhdType("d") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("t").withId("n")))); - model = BinaryData.fromObject(model).toObject(StorageProfileUpdate.class); - Assertions.assertEquals("mddystkiiux", model.disks().get(0).name()); - Assertions.assertEquals("yudxorrqnbp", model.disks().get(0).diskId()); - Assertions.assertEquals(999035629, model.disks().get(0).diskSizeGB()); - Assertions.assertEquals(2085551487, model.disks().get(0).bus()); - Assertions.assertEquals(2041227856, model.disks().get(0).lun()); - Assertions.assertEquals("rvkdvjsllrm", model.disks().get(0).busType()); - Assertions.assertEquals("d", model.disks().get(0).vhdType()); - Assertions.assertEquals("t", model.disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("n", model.disks().get(0).storageQosPolicy().id()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyDetailsTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyDetailsTests.java deleted file mode 100644 index abdf4992d054..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyDetailsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import org.junit.jupiter.api.Assertions; - -public final class StorageQosPolicyDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageQosPolicyDetails model = BinaryData.fromString("{\"name\":\"bnwbxgjvtbvpyssz\",\"id\":\"rujqg\"}") - .toObject(StorageQosPolicyDetails.class); - Assertions.assertEquals("bnwbxgjvtbvpyssz", model.name()); - Assertions.assertEquals("rujqg", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageQosPolicyDetails model = new StorageQosPolicyDetails().withName("bnwbxgjvtbvpyssz").withId("rujqg"); - model = BinaryData.fromObject(model).toObject(StorageQosPolicyDetails.class); - Assertions.assertEquals("bnwbxgjvtbvpyssz", model.name()); - Assertions.assertEquals("rujqg", model.id()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyTests.java deleted file mode 100644 index 46b07e701412..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/StorageQosPolicyTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicy; -import org.junit.jupiter.api.Assertions; - -public final class StorageQosPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageQosPolicy model = BinaryData.fromString( - "{\"name\":\"konzmnsik\",\"id\":\"kqze\",\"iopsMaximum\":4891735483783264620,\"iopsMinimum\":3222886554645871935,\"bandwidthLimit\":2941591087358508203,\"policyId\":\"hvhgureod\"}") - .toObject(StorageQosPolicy.class); - Assertions.assertEquals("konzmnsik", model.name()); - Assertions.assertEquals("kqze", model.id()); - Assertions.assertEquals(4891735483783264620L, model.iopsMaximum()); - Assertions.assertEquals(3222886554645871935L, model.iopsMinimum()); - Assertions.assertEquals(2941591087358508203L, model.bandwidthLimit()); - Assertions.assertEquals("hvhgureod", model.policyId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageQosPolicy model = new StorageQosPolicy().withName("konzmnsik") - .withId("kqze") - .withIopsMaximum(4891735483783264620L) - .withIopsMinimum(3222886554645871935L) - .withBandwidthLimit(2941591087358508203L) - .withPolicyId("hvhgureod"); - model = BinaryData.fromObject(model).toObject(StorageQosPolicy.class); - Assertions.assertEquals("konzmnsik", model.name()); - Assertions.assertEquals("kqze", model.id()); - Assertions.assertEquals(4891735483783264620L, model.iopsMaximum()); - Assertions.assertEquals(3222886554645871935L, model.iopsMinimum()); - Assertions.assertEquals(2941591087358508203L, model.bandwidthLimit()); - Assertions.assertEquals("hvhgureod", model.policyId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskTests.java deleted file mode 100644 index 904ba797e335..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.CreateDiffDisk; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDisk; -import org.junit.jupiter.api.Assertions; - -public final class VirtualDiskTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualDisk model = BinaryData.fromString( - "{\"name\":\"uqktap\",\"displayName\":\"wgcu\",\"diskId\":\"tumkdosvqwhbm\",\"diskSizeGB\":1497620633,\"maxDiskSizeGB\":398280406,\"bus\":1089342550,\"lun\":763703494,\"busType\":\"bmbexppbhtqqro\",\"vhdType\":\"p\",\"volumeType\":\"s\",\"vhdFormatType\":\"gbquxigj\",\"templateDiskId\":\"gzjaoyfhrtxilne\",\"storageQoSPolicy\":{\"name\":\"jysvl\",\"id\":\"uvfqawrlyxwj\"},\"createDiffDisk\":\"false\"}") - .toObject(VirtualDisk.class); - Assertions.assertEquals("uqktap", model.name()); - Assertions.assertEquals("tumkdosvqwhbm", model.diskId()); - Assertions.assertEquals(1497620633, model.diskSizeGB()); - Assertions.assertEquals(1089342550, model.bus()); - Assertions.assertEquals(763703494, model.lun()); - Assertions.assertEquals("bmbexppbhtqqro", model.busType()); - Assertions.assertEquals("p", model.vhdType()); - Assertions.assertEquals("gzjaoyfhrtxilne", model.templateDiskId()); - Assertions.assertEquals("jysvl", model.storageQosPolicy().name()); - Assertions.assertEquals("uvfqawrlyxwj", model.storageQosPolicy().id()); - Assertions.assertEquals(CreateDiffDisk.FALSE, model.createDiffDisk()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualDisk model = new VirtualDisk().withName("uqktap") - .withDiskId("tumkdosvqwhbm") - .withDiskSizeGB(1497620633) - .withBus(1089342550) - .withLun(763703494) - .withBusType("bmbexppbhtqqro") - .withVhdType("p") - .withTemplateDiskId("gzjaoyfhrtxilne") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("jysvl").withId("uvfqawrlyxwj")) - .withCreateDiffDisk(CreateDiffDisk.FALSE); - model = BinaryData.fromObject(model).toObject(VirtualDisk.class); - Assertions.assertEquals("uqktap", model.name()); - Assertions.assertEquals("tumkdosvqwhbm", model.diskId()); - Assertions.assertEquals(1497620633, model.diskSizeGB()); - Assertions.assertEquals(1089342550, model.bus()); - Assertions.assertEquals(763703494, model.lun()); - Assertions.assertEquals("bmbexppbhtqqro", model.busType()); - Assertions.assertEquals("p", model.vhdType()); - Assertions.assertEquals("gzjaoyfhrtxilne", model.templateDiskId()); - Assertions.assertEquals("jysvl", model.storageQosPolicy().name()); - Assertions.assertEquals("uvfqawrlyxwj", model.storageQosPolicy().id()); - Assertions.assertEquals(CreateDiffDisk.FALSE, model.createDiffDisk()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskUpdateTests.java deleted file mode 100644 index d3676dff3177..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualDiskUpdateTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate; -import org.junit.jupiter.api.Assertions; - -public final class VirtualDiskUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualDiskUpdate model = BinaryData.fromString( - "{\"name\":\"lexxbczwtru\",\"diskId\":\"qzbqjvsov\",\"diskSizeGB\":1785684937,\"bus\":1778259828,\"lun\":1485053733,\"busType\":\"kwlhzdo\",\"vhdType\":\"xjmflbvv\",\"storageQoSPolicy\":{\"name\":\"rkcciwwzjuqk\",\"id\":\"sa\"}}") - .toObject(VirtualDiskUpdate.class); - Assertions.assertEquals("lexxbczwtru", model.name()); - Assertions.assertEquals("qzbqjvsov", model.diskId()); - Assertions.assertEquals(1785684937, model.diskSizeGB()); - Assertions.assertEquals(1778259828, model.bus()); - Assertions.assertEquals(1485053733, model.lun()); - Assertions.assertEquals("kwlhzdo", model.busType()); - Assertions.assertEquals("xjmflbvv", model.vhdType()); - Assertions.assertEquals("rkcciwwzjuqk", model.storageQosPolicy().name()); - Assertions.assertEquals("sa", model.storageQosPolicy().id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualDiskUpdate model = new VirtualDiskUpdate().withName("lexxbczwtru") - .withDiskId("qzbqjvsov") - .withDiskSizeGB(1785684937) - .withBus(1778259828) - .withLun(1485053733) - .withBusType("kwlhzdo") - .withVhdType("xjmflbvv") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("rkcciwwzjuqk").withId("sa")); - model = BinaryData.fromObject(model).toObject(VirtualDiskUpdate.class); - Assertions.assertEquals("lexxbczwtru", model.name()); - Assertions.assertEquals("qzbqjvsov", model.diskId()); - Assertions.assertEquals(1785684937, model.diskSizeGB()); - Assertions.assertEquals(1778259828, model.bus()); - Assertions.assertEquals(1485053733, model.lun()); - Assertions.assertEquals("kwlhzdo", model.busType()); - Assertions.assertEquals("xjmflbvv", model.vhdType()); - Assertions.assertEquals("rkcciwwzjuqk", model.storageQosPolicy().name()); - Assertions.assertEquals("sa", model.storageQosPolicy().id()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineCreateCheckpointTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineCreateCheckpointTests.java deleted file mode 100644 index 80eb03b877bc..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineCreateCheckpointTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineCreateCheckpoint; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineCreateCheckpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineCreateCheckpoint model - = BinaryData.fromString("{\"name\":\"jmvxie\",\"description\":\"ugidyjrr\"}") - .toObject(VirtualMachineCreateCheckpoint.class); - Assertions.assertEquals("jmvxie", model.name()); - Assertions.assertEquals("ugidyjrr", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineCreateCheckpoint model - = new VirtualMachineCreateCheckpoint().withName("jmvxie").withDescription("ugidyjrr"); - model = BinaryData.fromObject(model).toObject(VirtualMachineCreateCheckpoint.class); - Assertions.assertEquals("jmvxie", model.name()); - Assertions.assertEquals("ugidyjrr", model.description()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineDeleteCheckpointTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineDeleteCheckpointTests.java deleted file mode 100644 index 85ee7e7c1499..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineDeleteCheckpointTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineDeleteCheckpoint; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineDeleteCheckpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineDeleteCheckpoint model - = BinaryData.fromString("{\"id\":\"y\"}").toObject(VirtualMachineDeleteCheckpoint.class); - Assertions.assertEquals("y", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineDeleteCheckpoint model = new VirtualMachineDeleteCheckpoint().withId("y"); - model = BinaryData.fromObject(model).toObject(VirtualMachineDeleteCheckpoint.class); - Assertions.assertEquals("y", model.id()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdatePropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdatePropertiesTests.java deleted file mode 100644 index dac6c305e750..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdatePropertiesTests.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetListItem; -import com.azure.resourcemanager.scvmm.models.DynamicMemoryEnabled; -import com.azure.resourcemanager.scvmm.models.HardwareProfileUpdate; -import com.azure.resourcemanager.scvmm.models.InfrastructureProfileUpdate; -import com.azure.resourcemanager.scvmm.models.LimitCpuForMigration; -import com.azure.resourcemanager.scvmm.models.NetworkInterfaceUpdate; -import com.azure.resourcemanager.scvmm.models.NetworkProfileUpdate; -import com.azure.resourcemanager.scvmm.models.StorageProfileUpdate; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate; -import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdateProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineInstanceUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineInstanceUpdateProperties model = BinaryData.fromString( - "{\"availabilitySets\":[{\"id\":\"jampmngnzscxaqw\",\"name\":\"chcbonqvpkvlrxnj\"},{\"id\":\"seiphe\",\"name\":\"lokeyy\"},{\"id\":\"nj\",\"name\":\"lwtgrhpdj\"}],\"hardwareProfile\":{\"memoryMB\":1270874920,\"cpuCount\":1786348929,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"true\",\"dynamicMemoryMaxMB\":958851014,\"dynamicMemoryMinMB\":184362773},\"networkProfile\":{\"networkInterfaces\":[{\"name\":\"hb\",\"macAddress\":\"hejjz\",\"virtualNetworkId\":\"dudgwdslfhot\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"bjnpg\"},{\"name\":\"ftadehxnltyfs\",\"macAddress\":\"pusuesn\",\"virtualNetworkId\":\"dejbavo\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"tbqvudw\"}]},\"storageProfile\":{\"disks\":[{\"name\":\"vo\",\"diskId\":\"ujjugwdkcglh\",\"diskSizeGB\":1950035591,\"bus\":3147535,\"lun\":24046342,\"busType\":\"gdtjixhbkuofqwey\",\"vhdType\":\"menevfyexfwh\",\"storageQoSPolicy\":{\"name\":\"i\",\"id\":\"yvdcsitynnaa\"}},{\"name\":\"ectehf\",\"diskId\":\"scjeypv\",\"diskSizeGB\":1363658384,\"bus\":902064602,\"lun\":177141497,\"busType\":\"c\",\"vhdType\":\"efovgmk\",\"storageQoSPolicy\":{\"name\":\"eyyvxyqjpkcat\",\"id\":\"ngj\"}}]},\"infrastructureProfile\":{\"checkpointType\":\"czsqpjhvm\"}}") - .toObject(VirtualMachineInstanceUpdateProperties.class); - Assertions.assertEquals("jampmngnzscxaqw", model.availabilitySets().get(0).id()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.availabilitySets().get(0).name()); - Assertions.assertEquals(1270874920, model.hardwareProfile().memoryMB()); - Assertions.assertEquals(1786348929, model.hardwareProfile().cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.FALSE, model.hardwareProfile().limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.TRUE, model.hardwareProfile().dynamicMemoryEnabled()); - Assertions.assertEquals(958851014, model.hardwareProfile().dynamicMemoryMaxMB()); - Assertions.assertEquals(184362773, model.hardwareProfile().dynamicMemoryMinMB()); - Assertions.assertEquals("hb", model.networkProfile().networkInterfaces().get(0).name()); - Assertions.assertEquals("hejjz", model.networkProfile().networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("dudgwdslfhot", model.networkProfile().networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("bjnpg", model.networkProfile().networkInterfaces().get(0).nicId()); - Assertions.assertEquals("vo", model.storageProfile().disks().get(0).name()); - Assertions.assertEquals("ujjugwdkcglh", model.storageProfile().disks().get(0).diskId()); - Assertions.assertEquals(1950035591, model.storageProfile().disks().get(0).diskSizeGB()); - Assertions.assertEquals(3147535, model.storageProfile().disks().get(0).bus()); - Assertions.assertEquals(24046342, model.storageProfile().disks().get(0).lun()); - Assertions.assertEquals("gdtjixhbkuofqwey", model.storageProfile().disks().get(0).busType()); - Assertions.assertEquals("menevfyexfwh", model.storageProfile().disks().get(0).vhdType()); - Assertions.assertEquals("i", model.storageProfile().disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("yvdcsitynnaa", model.storageProfile().disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals("czsqpjhvm", model.infrastructureProfile().checkpointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineInstanceUpdateProperties model = new VirtualMachineInstanceUpdateProperties() - .withAvailabilitySets( - Arrays.asList(new AvailabilitySetListItem().withId("jampmngnzscxaqw").withName("chcbonqvpkvlrxnj"), - new AvailabilitySetListItem().withId("seiphe").withName("lokeyy"), - new AvailabilitySetListItem().withId("nj").withName("lwtgrhpdj"))) - .withHardwareProfile(new HardwareProfileUpdate().withMemoryMB(1270874920) - .withCpuCount(1786348929) - .withLimitCpuForMigration(LimitCpuForMigration.FALSE) - .withDynamicMemoryEnabled(DynamicMemoryEnabled.TRUE) - .withDynamicMemoryMaxMB(958851014) - .withDynamicMemoryMinMB(184362773)) - .withNetworkProfile(new NetworkProfileUpdate().withNetworkInterfaces(Arrays.asList( - new NetworkInterfaceUpdate().withName("hb") - .withMacAddress("hejjz") - .withVirtualNetworkId("dudgwdslfhot") - .withIpv4AddressType(AllocationMethod.STATIC) - .withIpv6AddressType(AllocationMethod.STATIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("bjnpg"), - new NetworkInterfaceUpdate().withName("ftadehxnltyfs") - .withMacAddress("pusuesn") - .withVirtualNetworkId("dejbavo") - .withIpv4AddressType(AllocationMethod.STATIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("tbqvudw")))) - .withStorageProfile(new StorageProfileUpdate().withDisks(Arrays.asList( - new VirtualDiskUpdate().withName("vo") - .withDiskId("ujjugwdkcglh") - .withDiskSizeGB(1950035591) - .withBus(3147535) - .withLun(24046342) - .withBusType("gdtjixhbkuofqwey") - .withVhdType("menevfyexfwh") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("i").withId("yvdcsitynnaa")), - new VirtualDiskUpdate().withName("ectehf") - .withDiskId("scjeypv") - .withDiskSizeGB(1363658384) - .withBus(902064602) - .withLun(177141497) - .withBusType("c") - .withVhdType("efovgmk") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("eyyvxyqjpkcat").withId("ngj"))))) - .withInfrastructureProfile(new InfrastructureProfileUpdate().withCheckpointType("czsqpjhvm")); - model = BinaryData.fromObject(model).toObject(VirtualMachineInstanceUpdateProperties.class); - Assertions.assertEquals("jampmngnzscxaqw", model.availabilitySets().get(0).id()); - Assertions.assertEquals("chcbonqvpkvlrxnj", model.availabilitySets().get(0).name()); - Assertions.assertEquals(1270874920, model.hardwareProfile().memoryMB()); - Assertions.assertEquals(1786348929, model.hardwareProfile().cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.FALSE, model.hardwareProfile().limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.TRUE, model.hardwareProfile().dynamicMemoryEnabled()); - Assertions.assertEquals(958851014, model.hardwareProfile().dynamicMemoryMaxMB()); - Assertions.assertEquals(184362773, model.hardwareProfile().dynamicMemoryMinMB()); - Assertions.assertEquals("hb", model.networkProfile().networkInterfaces().get(0).name()); - Assertions.assertEquals("hejjz", model.networkProfile().networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("dudgwdslfhot", model.networkProfile().networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.STATIC, - model.networkProfile().networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("bjnpg", model.networkProfile().networkInterfaces().get(0).nicId()); - Assertions.assertEquals("vo", model.storageProfile().disks().get(0).name()); - Assertions.assertEquals("ujjugwdkcglh", model.storageProfile().disks().get(0).diskId()); - Assertions.assertEquals(1950035591, model.storageProfile().disks().get(0).diskSizeGB()); - Assertions.assertEquals(3147535, model.storageProfile().disks().get(0).bus()); - Assertions.assertEquals(24046342, model.storageProfile().disks().get(0).lun()); - Assertions.assertEquals("gdtjixhbkuofqwey", model.storageProfile().disks().get(0).busType()); - Assertions.assertEquals("menevfyexfwh", model.storageProfile().disks().get(0).vhdType()); - Assertions.assertEquals("i", model.storageProfile().disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("yvdcsitynnaa", model.storageProfile().disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals("czsqpjhvm", model.infrastructureProfile().checkpointType()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdateTests.java deleted file mode 100644 index 55e80cb18bd3..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInstanceUpdateTests.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.AllocationMethod; -import com.azure.resourcemanager.scvmm.models.AvailabilitySetListItem; -import com.azure.resourcemanager.scvmm.models.DynamicMemoryEnabled; -import com.azure.resourcemanager.scvmm.models.HardwareProfileUpdate; -import com.azure.resourcemanager.scvmm.models.InfrastructureProfileUpdate; -import com.azure.resourcemanager.scvmm.models.LimitCpuForMigration; -import com.azure.resourcemanager.scvmm.models.NetworkInterfaceUpdate; -import com.azure.resourcemanager.scvmm.models.NetworkProfileUpdate; -import com.azure.resourcemanager.scvmm.models.StorageProfileUpdate; -import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails; -import com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate; -import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdate; -import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdateProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineInstanceUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineInstanceUpdate model = BinaryData.fromString( - "{\"properties\":{\"availabilitySets\":[{\"id\":\"rlovmclwhijcoej\",\"name\":\"bzaqsqsycbkbfk\"},{\"id\":\"kdkexxp\",\"name\":\"fmxa\"},{\"id\":\"fjpgddtocjjxhvp\",\"name\":\"uexhdzx\"},{\"id\":\"qeojnxqbzvddntw\",\"name\":\"eic\"}],\"hardwareProfile\":{\"memoryMB\":1604770276,\"cpuCount\":537336258,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"false\",\"dynamicMemoryMaxMB\":2037494020,\"dynamicMemoryMinMB\":2040818894},\"networkProfile\":{\"networkInterfaces\":[{\"name\":\"yd\",\"macAddress\":\"lmjthjq\",\"virtualNetworkId\":\"pyeicxm\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"hix\"},{\"name\":\"gdtopbobjogh\",\"macAddress\":\"w\",\"virtualNetworkId\":\"m\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"vtpgvdfgiotkf\"}]},\"storageProfile\":{\"disks\":[{\"name\":\"ln\",\"diskId\":\"lefgugnxk\",\"diskSizeGB\":1788312026,\"bus\":435751453,\"lun\":423857841,\"busType\":\"thz\",\"vhdType\":\"qdrabhjybigehoqf\",\"storageQoSPolicy\":{\"name\":\"skanyk\",\"id\":\"lcuiywgqywgndr\"}},{\"name\":\"nhzgpphrcgyn\",\"diskId\":\"cpecfvmmcoofs\",\"diskSizeGB\":1165207027,\"bus\":164546469,\"lun\":903903169,\"busType\":\"qjqabcypmivkwl\",\"vhdType\":\"vccfw\",\"storageQoSPolicy\":{\"name\":\"bacfionlebxetq\",\"id\":\"zxdpnqbqqw\"}}]},\"infrastructureProfile\":{\"checkpointType\":\"feallnwsu\"}}}") - .toObject(VirtualMachineInstanceUpdate.class); - Assertions.assertEquals("rlovmclwhijcoej", model.properties().availabilitySets().get(0).id()); - Assertions.assertEquals("bzaqsqsycbkbfk", model.properties().availabilitySets().get(0).name()); - Assertions.assertEquals(1604770276, model.properties().hardwareProfile().memoryMB()); - Assertions.assertEquals(537336258, model.properties().hardwareProfile().cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.TRUE, model.properties().hardwareProfile().limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, - model.properties().hardwareProfile().dynamicMemoryEnabled()); - Assertions.assertEquals(2037494020, model.properties().hardwareProfile().dynamicMemoryMaxMB()); - Assertions.assertEquals(2040818894, model.properties().hardwareProfile().dynamicMemoryMinMB()); - Assertions.assertEquals("yd", model.properties().networkProfile().networkInterfaces().get(0).name()); - Assertions.assertEquals("lmjthjq", model.properties().networkProfile().networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("pyeicxm", - model.properties().networkProfile().networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("hix", model.properties().networkProfile().networkInterfaces().get(0).nicId()); - Assertions.assertEquals("ln", model.properties().storageProfile().disks().get(0).name()); - Assertions.assertEquals("lefgugnxk", model.properties().storageProfile().disks().get(0).diskId()); - Assertions.assertEquals(1788312026, model.properties().storageProfile().disks().get(0).diskSizeGB()); - Assertions.assertEquals(435751453, model.properties().storageProfile().disks().get(0).bus()); - Assertions.assertEquals(423857841, model.properties().storageProfile().disks().get(0).lun()); - Assertions.assertEquals("thz", model.properties().storageProfile().disks().get(0).busType()); - Assertions.assertEquals("qdrabhjybigehoqf", model.properties().storageProfile().disks().get(0).vhdType()); - Assertions.assertEquals("skanyk", model.properties().storageProfile().disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("lcuiywgqywgndr", - model.properties().storageProfile().disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals("feallnwsu", model.properties().infrastructureProfile().checkpointType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineInstanceUpdate model - = new VirtualMachineInstanceUpdate().withProperties(new VirtualMachineInstanceUpdateProperties() - .withAvailabilitySets( - Arrays.asList(new AvailabilitySetListItem().withId("rlovmclwhijcoej").withName("bzaqsqsycbkbfk"), - new AvailabilitySetListItem().withId("kdkexxp").withName("fmxa"), - new AvailabilitySetListItem().withId("fjpgddtocjjxhvp").withName("uexhdzx"), - new AvailabilitySetListItem().withId("qeojnxqbzvddntw").withName("eic"))) - .withHardwareProfile(new HardwareProfileUpdate().withMemoryMB(1604770276) - .withCpuCount(537336258) - .withLimitCpuForMigration(LimitCpuForMigration.TRUE) - .withDynamicMemoryEnabled(DynamicMemoryEnabled.FALSE) - .withDynamicMemoryMaxMB(2037494020) - .withDynamicMemoryMinMB(2040818894)) - .withNetworkProfile(new NetworkProfileUpdate().withNetworkInterfaces(Arrays.asList( - new NetworkInterfaceUpdate().withName("yd") - .withMacAddress("lmjthjq") - .withVirtualNetworkId("pyeicxm") - .withIpv4AddressType(AllocationMethod.DYNAMIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.DYNAMIC) - .withNicId("hix"), - new NetworkInterfaceUpdate().withName("gdtopbobjogh") - .withMacAddress("w") - .withVirtualNetworkId("m") - .withIpv4AddressType(AllocationMethod.STATIC) - .withIpv6AddressType(AllocationMethod.DYNAMIC) - .withMacAddressType(AllocationMethod.STATIC) - .withNicId("vtpgvdfgiotkf")))) - .withStorageProfile( - new StorageProfileUpdate() - .withDisks( - Arrays.asList( - new VirtualDiskUpdate().withName("ln") - .withDiskId("lefgugnxk") - .withDiskSizeGB(1788312026) - .withBus(435751453) - .withLun(423857841) - .withBusType("thz") - .withVhdType("qdrabhjybigehoqf") - .withStorageQosPolicy( - new StorageQosPolicyDetails().withName("skanyk").withId("lcuiywgqywgndr")), - new VirtualDiskUpdate().withName("nhzgpphrcgyn") - .withDiskId("cpecfvmmcoofs") - .withDiskSizeGB(1165207027) - .withBus(164546469) - .withLun(903903169) - .withBusType("qjqabcypmivkwl") - .withVhdType("vccfw") - .withStorageQosPolicy(new StorageQosPolicyDetails().withName("bacfionlebxetq") - .withId("zxdpnqbqqw"))))) - .withInfrastructureProfile(new InfrastructureProfileUpdate().withCheckpointType("feallnwsu"))); - model = BinaryData.fromObject(model).toObject(VirtualMachineInstanceUpdate.class); - Assertions.assertEquals("rlovmclwhijcoej", model.properties().availabilitySets().get(0).id()); - Assertions.assertEquals("bzaqsqsycbkbfk", model.properties().availabilitySets().get(0).name()); - Assertions.assertEquals(1604770276, model.properties().hardwareProfile().memoryMB()); - Assertions.assertEquals(537336258, model.properties().hardwareProfile().cpuCount()); - Assertions.assertEquals(LimitCpuForMigration.TRUE, model.properties().hardwareProfile().limitCpuForMigration()); - Assertions.assertEquals(DynamicMemoryEnabled.FALSE, - model.properties().hardwareProfile().dynamicMemoryEnabled()); - Assertions.assertEquals(2037494020, model.properties().hardwareProfile().dynamicMemoryMaxMB()); - Assertions.assertEquals(2040818894, model.properties().hardwareProfile().dynamicMemoryMinMB()); - Assertions.assertEquals("yd", model.properties().networkProfile().networkInterfaces().get(0).name()); - Assertions.assertEquals("lmjthjq", model.properties().networkProfile().networkInterfaces().get(0).macAddress()); - Assertions.assertEquals("pyeicxm", - model.properties().networkProfile().networkInterfaces().get(0).virtualNetworkId()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).ipv4AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).ipv6AddressType()); - Assertions.assertEquals(AllocationMethod.DYNAMIC, - model.properties().networkProfile().networkInterfaces().get(0).macAddressType()); - Assertions.assertEquals("hix", model.properties().networkProfile().networkInterfaces().get(0).nicId()); - Assertions.assertEquals("ln", model.properties().storageProfile().disks().get(0).name()); - Assertions.assertEquals("lefgugnxk", model.properties().storageProfile().disks().get(0).diskId()); - Assertions.assertEquals(1788312026, model.properties().storageProfile().disks().get(0).diskSizeGB()); - Assertions.assertEquals(435751453, model.properties().storageProfile().disks().get(0).bus()); - Assertions.assertEquals(423857841, model.properties().storageProfile().disks().get(0).lun()); - Assertions.assertEquals("thz", model.properties().storageProfile().disks().get(0).busType()); - Assertions.assertEquals("qdrabhjybigehoqf", model.properties().storageProfile().disks().get(0).vhdType()); - Assertions.assertEquals("skanyk", model.properties().storageProfile().disks().get(0).storageQosPolicy().name()); - Assertions.assertEquals("lcuiywgqywgndr", - model.properties().storageProfile().disks().get(0).storageQosPolicy().id()); - Assertions.assertEquals("feallnwsu", model.properties().infrastructureProfile().checkpointType()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInventoryItemTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInventoryItemTests.java deleted file mode 100644 index 91e1ba79e026..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineInventoryItemTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.InventoryItemDetails; -import com.azure.resourcemanager.scvmm.models.VirtualMachineInventoryItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineInventoryItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineInventoryItem model = BinaryData.fromString( - "{\"inventoryType\":\"VirtualMachine\",\"osType\":\"Windows\",\"osName\":\"iycslevuf\",\"osVersion\":\"tcktyhjtqedcgzu\",\"powerState\":\"mmrqz\",\"ipAddresses\":[\"jvpglydzgk\",\"vqeevtoep\",\"yutnwytpzdmov\",\"vf\"],\"cloud\":{\"inventoryItemId\":\"wzqa\",\"inventoryItemName\":\"lgzurig\"},\"biosGuid\":\"ecxn\",\"managedMachineResourceId\":\"icokpv\",\"managedResourceId\":\"lqtmldgxob\",\"uuid\":\"rclnpkc\",\"inventoryItemName\":\"yzriykhy\",\"provisioningState\":\"Accepted\"}") - .toObject(VirtualMachineInventoryItem.class); - Assertions.assertEquals("jvpglydzgk", model.ipAddresses().get(0)); - Assertions.assertEquals("wzqa", model.cloud().inventoryItemId()); - Assertions.assertEquals("lgzurig", model.cloud().inventoryItemName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineInventoryItem model = new VirtualMachineInventoryItem() - .withIpAddresses(Arrays.asList("jvpglydzgk", "vqeevtoep", "yutnwytpzdmov", "vf")) - .withCloud(new InventoryItemDetails().withInventoryItemId("wzqa").withInventoryItemName("lgzurig")); - model = BinaryData.fromObject(model).toObject(VirtualMachineInventoryItem.class); - Assertions.assertEquals("jvpglydzgk", model.ipAddresses().get(0)); - Assertions.assertEquals("wzqa", model.cloud().inventoryItemId()); - Assertions.assertEquals("lgzurig", model.cloud().inventoryItemName()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineRestoreCheckpointTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineRestoreCheckpointTests.java deleted file mode 100644 index 173f49b9cb86..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineRestoreCheckpointTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineRestoreCheckpoint; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineRestoreCheckpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineRestoreCheckpoint model - = BinaryData.fromString("{\"id\":\"lpbuxwgipwhonowk\"}").toObject(VirtualMachineRestoreCheckpoint.class); - Assertions.assertEquals("lpbuxwgipwhonowk", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineRestoreCheckpoint model = new VirtualMachineRestoreCheckpoint().withId("lpbuxwgipwhonowk"); - model = BinaryData.fromObject(model).toObject(VirtualMachineRestoreCheckpoint.class); - Assertions.assertEquals("lpbuxwgipwhonowk", model.id()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInnerTests.java deleted file mode 100644 index e524d2bcdf40..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInnerTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.VirtualMachineTemplateInner; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineTemplateInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTemplateInner model = BinaryData.fromString( - "{\"properties\":{\"inventoryItemId\":\"rhneuyowq\",\"uuid\":\"wyt\",\"vmmServerId\":\"ib\",\"osType\":\"Linux\",\"osName\":\"pikpz\",\"computerName\":\"ejzanlfz\",\"memoryMB\":386879497,\"cpuCount\":1297052787,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":185109829,\"dynamicMemoryMinMB\":988966310,\"isHighlyAvailable\":\"true\",\"generation\":1122267125,\"networkInterfaces\":[{\"name\":\"pfrlazsz\",\"displayName\":\"woiindf\",\"ipv4Addresses\":[\"jylwbtlhflsj\"],\"ipv6Addresses\":[\"szfjvfbgofelja\",\"rqmq\"],\"macAddress\":\"dvriiiojnal\",\"virtualNetworkId\":\"fk\",\"networkName\":\"vsexsowuelu\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"rhmzkwpj\"},{\"name\":\"wspughftqsxhqx\",\"displayName\":\"xukndxdigr\",\"ipv4Addresses\":[\"ufzdmsyq\",\"fi\",\"whbotzingamv\",\"phoszqz\"],\"ipv6Addresses\":[\"hqamvdkf\",\"ynwcvtbv\",\"ayhmtnvyqiatkz\",\"pcnp\"],\"macAddress\":\"cjaesgvvs\",\"virtualNetworkId\":\"yajguqfhwygzlv\",\"networkName\":\"kfxu\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"uh\"}],\"disks\":[{\"name\":\"qdpsqxqvpsvu\",\"displayName\":\"mgccelvezrypq\",\"diskId\":\"feo\",\"diskSizeGB\":1208971148,\"maxDiskSizeGB\":1007513685,\"bus\":835251373,\"lun\":137094818,\"busType\":\"bopgxedkowepbqp\",\"vhdType\":\"fkbw\",\"volumeType\":\"snjvcdwxlpqekftn\",\"vhdFormatType\":\"tjsyin\",\"templateDiskId\":\"fq\",\"storageQoSPolicy\":{\"name\":\"tdhtmdvyp\",\"id\":\"kdgszywkbirr\"},\"createDiffDisk\":\"true\"},{\"name\":\"lhkjoqrvqq\",\"displayName\":\"t\",\"diskId\":\"nrvgoupmfiibfgg\",\"diskSizeGB\":615385800,\"maxDiskSizeGB\":364570184,\"bus\":466932926,\"lun\":176109120,\"busType\":\"v\",\"vhdType\":\"k\",\"volumeType\":\"lqwjygvjayvblm\",\"vhdFormatType\":\"k\",\"templateDiskId\":\"hbxvvyhgsopbyrqu\",\"storageQoSPolicy\":{\"name\":\"xuvw\",\"id\":\"bnhlmc\"},\"createDiffDisk\":\"true\"}],\"provisioningState\":\"Created\"},\"extendedLocation\":{\"type\":\"itvgbmhrixkwm\",\"name\":\"jejveg\"},\"location\":\"bpnaixexccbdre\",\"tags\":{\"qkghtpwijnhy\":\"cexdrrvqa\",\"owvrvmtgjqppyos\":\"svfycxzbfv\",\"sxkm\":\"ronzmyhgfip\"},\"id\":\"waekrrjreafxtsgu\",\"name\":\"hjglikk\",\"type\":\"wslolbqp\"}") - .toObject(VirtualMachineTemplateInner.class); - Assertions.assertEquals("bpnaixexccbdre", model.location()); - Assertions.assertEquals("cexdrrvqa", model.tags().get("qkghtpwijnhy")); - Assertions.assertEquals("rhneuyowq", model.properties().inventoryItemId()); - Assertions.assertEquals("wyt", model.properties().uuid()); - Assertions.assertEquals("ib", model.properties().vmmServerId()); - Assertions.assertEquals("itvgbmhrixkwm", model.extendedLocation().type()); - Assertions.assertEquals("jejveg", model.extendedLocation().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineTemplateInner model = new VirtualMachineTemplateInner().withLocation("bpnaixexccbdre") - .withTags(mapOf("qkghtpwijnhy", "cexdrrvqa", "owvrvmtgjqppyos", "svfycxzbfv", "sxkm", "ronzmyhgfip")) - .withProperties(new VirtualMachineTemplateProperties().withInventoryItemId("rhneuyowq") - .withUuid("wyt") - .withVmmServerId("ib")) - .withExtendedLocation(new ExtendedLocation().withType("itvgbmhrixkwm").withName("jejveg")); - model = BinaryData.fromObject(model).toObject(VirtualMachineTemplateInner.class); - Assertions.assertEquals("bpnaixexccbdre", model.location()); - Assertions.assertEquals("cexdrrvqa", model.tags().get("qkghtpwijnhy")); - Assertions.assertEquals("rhneuyowq", model.properties().inventoryItemId()); - Assertions.assertEquals("wyt", model.properties().uuid()); - Assertions.assertEquals("ib", model.properties().vmmServerId()); - Assertions.assertEquals("itvgbmhrixkwm", model.extendedLocation().type()); - Assertions.assertEquals("jejveg", model.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInventoryItemTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInventoryItemTests.java deleted file mode 100644 index 0f216d0d6428..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateInventoryItemTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateInventoryItem; - -public final class VirtualMachineTemplateInventoryItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTemplateInventoryItem model = BinaryData.fromString( - "{\"inventoryType\":\"VirtualMachineTemplate\",\"cpuCount\":638538203,\"memoryMB\":156446182,\"osType\":\"Windows\",\"osName\":\"vkjlmxhom\",\"managedResourceId\":\"nhdwdigumbnra\",\"uuid\":\"zzp\",\"inventoryItemName\":\"a\",\"provisioningState\":\"Provisioning\"}") - .toObject(VirtualMachineTemplateInventoryItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineTemplateInventoryItem model = new VirtualMachineTemplateInventoryItem(); - model = BinaryData.fromObject(model).toObject(VirtualMachineTemplateInventoryItem.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateListResultTests.java deleted file mode 100644 index 14b5b5d38db4..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateListResult; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineTemplateListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTemplateListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"inventoryItemId\":\"dagxtibqd\",\"uuid\":\"xwak\",\"vmmServerId\":\"gqxndlkzgxhuripl\",\"osType\":\"Linux\",\"osName\":\"xunkbebxmubyynt\",\"computerName\":\"rbqtkoie\",\"memoryMB\":1053107000,\"cpuCount\":921402224,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":98779693,\"dynamicMemoryMinMB\":1887219641,\"isHighlyAvailable\":\"true\",\"generation\":284153241,\"networkInterfaces\":[{\"name\":\"bm\",\"displayName\":\"cjefuzmu\",\"ipv4Addresses\":[\"ttdumorppxebmnzb\",\"bhjpglkfgohdne\",\"el\"],\"ipv6Addresses\":[\"sdyhtozfikdowwq\"],\"macAddress\":\"v\",\"virtualNetworkId\":\"xclvit\",\"networkName\":\"qzonosggbhcohf\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"jutiiswacff\"}],\"disks\":[{\"name\":\"zewk\",\"displayName\":\"hqcrailvpnpp\",\"diskId\":\"flrwd\",\"diskSizeGB\":1982601986,\"maxDiskSizeGB\":1444401866,\"bus\":885184868,\"lun\":1095036678,\"busType\":\"agafcnihgwqap\",\"vhdType\":\"dgfbcvkcvqvpke\",\"volumeType\":\"cvdrhvoodsot\",\"vhdFormatType\":\"bzdopcj\",\"templateDiskId\":\"nhdldwmgxcx\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"}],\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"wuoegrpk\",\"name\":\"wniyqsluicpd\"},\"location\":\"kzzlvmbmpaxmodf\",\"tags\":{\"sbpfvmwyhr\":\"fy\"},\"id\":\"ouyftaakc\",\"name\":\"wiyzvqtmnubexkp\",\"type\":\"ksmond\"},{\"properties\":{\"inventoryItemId\":\"uxvypomgkopkwh\",\"uuid\":\"v\",\"vmmServerId\":\"jqg\",\"osType\":\"Other\",\"osName\":\"ocmbqfqvmkcxoza\",\"computerName\":\"helxprglya\",\"memoryMB\":1462356590,\"cpuCount\":1586709440,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":465544934,\"dynamicMemoryMinMB\":1949252963,\"isHighlyAvailable\":\"true\",\"generation\":785036468,\"networkInterfaces\":[{\"name\":\"osx\",\"displayName\":\"qrhzoymibmrqyib\",\"ipv4Addresses\":[\"fluszdtm\",\"rkwofyyvoqa\"],\"ipv6Addresses\":[\"expbtg\",\"wbwo\",\"nwashrtd\"],\"macAddress\":\"cnqxwbpokulpi\",\"virtualNetworkId\":\"waasip\",\"networkName\":\"iobyu\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"wcciuqgbdbu\"}],\"disks\":[{\"name\":\"fbtkuwhhmhyk\",\"displayName\":\"oxafn\",\"diskId\":\"lpichk\",\"diskSizeGB\":1847154217,\"maxDiskSizeGB\":1638328793,\"bus\":1909436106,\"lun\":103737339,\"busType\":\"kkpwdreqnovvq\",\"vhdType\":\"vljxywsu\",\"volumeType\":\"yrs\",\"vhdFormatType\":\"sytgadgvraea\",\"templateDiskId\":\"e\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"},{\"name\":\"rwlqu\",\"displayName\":\"jfqka\",\"diskId\":\"wiipfpub\",\"diskSizeGB\":1516044260,\"maxDiskSizeGB\":1113434704,\"bus\":254804801,\"lun\":1572357139,\"busType\":\"qkvpuvksgplsakn\",\"vhdType\":\"fsynljphuop\",\"volumeType\":\"dlqiyntorzih\",\"vhdFormatType\":\"osjswsr\",\"templateDiskId\":\"lyzrpzbchckqqzqi\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"false\"},{\"name\":\"uiizynke\",\"displayName\":\"atrwyhqmibzyh\",\"diskId\":\"tsmypyynpcdp\",\"diskSizeGB\":874382237,\"maxDiskSizeGB\":66905695,\"bus\":944462660,\"lun\":1547081847,\"busType\":\"abikns\",\"vhdType\":\"gj\",\"volumeType\":\"bldtlww\",\"vhdFormatType\":\"kdmtncvokotll\",\"templateDiskId\":\"yhgsy\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"dtbnnha\",\"name\":\"ocrkvcikh\"},\"location\":\"p\",\"tags\":{\"wggxkallat\":\"gxqquezik\",\"cjzkzivgvvcna\":\"elwuipi\",\"drd\":\"rhyrnxxmueed\"},\"id\":\"stkwqqtch\",\"name\":\"alm\",\"type\":\"mtdaa\"},{\"properties\":{\"inventoryItemId\":\"v\",\"uuid\":\"gpiohgwxrtfudxe\",\"vmmServerId\":\"gyqagvrvmnpkuk\",\"osType\":\"Windows\",\"osName\":\"dblx\",\"computerName\":\"imfnjhfjx\",\"memoryMB\":205109580,\"cpuCount\":1343784830,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":1631223460,\"dynamicMemoryMinMB\":520152641,\"isHighlyAvailable\":\"true\",\"generation\":2032728059,\"networkInterfaces\":[{\"name\":\"eaivxwczel\",\"displayName\":\"irels\",\"ipv4Addresses\":[\"enwabfatk\",\"ddxbjhwuaanoz\"],\"ipv6Addresses\":[\"ph\",\"oulpjrv\",\"ag\",\"rvimjwosytxitcsk\"],\"macAddress\":\"k\",\"virtualNetworkId\":\"umiekkezzi\",\"networkName\":\"ly\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"ebdunyg\"},{\"name\":\"qidbqfatpxllrxcy\",\"displayName\":\"oadsuvar\",\"ipv4Addresses\":[\"dmjsjqb\",\"hhyxxrw\",\"yc\",\"duhpk\"],\"ipv6Addresses\":[\"ymareqnajxqugj\",\"ky\"],\"macAddress\":\"beddgssofw\",\"virtualNetworkId\":\"zqalkrmnjijpx\",\"networkName\":\"q\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"baaa\"}],\"disks\":[{\"name\":\"ayffim\",\"displayName\":\"rtuzqogs\",\"diskId\":\"nevfdnw\",\"diskSizeGB\":2059840008,\"maxDiskSizeGB\":377160768,\"bus\":1440499034,\"lun\":10547913,\"busType\":\"euzsoi\",\"vhdType\":\"ud\",\"volumeType\":\"rx\",\"vhdFormatType\":\"thzvaytdwkqbrqu\",\"templateDiskId\":\"axhexiilivp\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"},{\"name\":\"q\",\"displayName\":\"qoaxoruzfgs\",\"diskId\":\"yfxrx\",\"diskSizeGB\":1104175771,\"maxDiskSizeGB\":2043686923,\"bus\":137172163,\"lun\":699446772,\"busType\":\"ezw\",\"vhdType\":\"nwxuqlcvydyp\",\"volumeType\":\"dooaojkniodko\",\"vhdFormatType\":\"bw\",\"templateDiskId\":\"jhemms\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"false\"},{\"name\":\"rodtjinfwjlfl\",\"displayName\":\"acjvefkd\",\"diskId\":\"oakggkfpag\",\"diskSizeGB\":577549105,\"maxDiskSizeGB\":1739461107,\"bus\":1784212142,\"lun\":1177485669,\"busType\":\"ylsyxkqjnsje\",\"vhdType\":\"tiagx\",\"volumeType\":\"sz\",\"vhdFormatType\":\"mpsbzkfzbeyv\",\"templateDiskId\":\"qi\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"jxdxrbuukz\",\"name\":\"ewyhml\"},\"location\":\"aztz\",\"tags\":{\"fz\":\"ncckw\"},\"id\":\"whxxbuyqax\",\"name\":\"feqztppriol\",\"type\":\"or\"},{\"properties\":{\"inventoryItemId\":\"tolmncwsobqw\",\"uuid\":\"dbnw\",\"vmmServerId\":\"fhucqdpfuv\",\"osType\":\"Windows\",\"osName\":\"jjcanvxbvtv\",\"computerName\":\"utncorm\",\"memoryMB\":1945766703,\"cpuCount\":1218996877,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"false\",\"isCustomizable\":\"true\",\"dynamicMemoryMaxMB\":1364369199,\"dynamicMemoryMinMB\":2052668715,\"isHighlyAvailable\":\"true\",\"generation\":1902610413,\"networkInterfaces\":[{\"name\":\"nnqvsa\",\"displayName\":\"qntorudsgsahmkyc\",\"ipv4Addresses\":[\"uwjuetaeburuvdmo\",\"s\",\"zlxwabmqoefkifr\"],\"ipv6Addresses\":[\"u\",\"ujmqlgkfbtndoa\",\"n\",\"bjcntujitc\"],\"macAddress\":\"df\",\"virtualNetworkId\":\"waezkojvd\",\"networkName\":\"zfoqouicybxar\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"ciqopidoa\"},{\"name\":\"iodhkhazxkhnz\",\"displayName\":\"nlwntoe\",\"ipv4Addresses\":[\"dwbwhkszzcmrvexz\",\"vbtqgsfraoyzk\",\"owtlmnguxawqald\"],\"ipv6Addresses\":[\"uximerqfobw\",\"znkbykutwpfhpagm\"],\"macAddress\":\"skdsnfdsdoakg\",\"virtualNetworkId\":\"lmkk\",\"networkName\":\"vdlhewpusdsttwv\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"cngqqmoakufgmjz\"},{\"name\":\"rdgrtw\",\"displayName\":\"nuuzkopbm\",\"ipv4Addresses\":[\"fdwoyuhh\",\"iuiefozbhdmsm\"],\"ipv6Addresses\":[\"qhoftrmaequiah\",\"icslfaoq\"],\"macAddress\":\"iyylhalnswhccsp\",\"virtualNetworkId\":\"aivwitqscywu\",\"networkName\":\"woluhczbwemhair\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"swe\"}],\"disks\":[{\"name\":\"dxggicccnxqhuexm\",\"displayName\":\"tlstvlzywem\",\"diskId\":\"rncsdtclu\",\"diskSizeGB\":2121256273,\"maxDiskSizeGB\":1137275627,\"bus\":1674447280,\"lun\":1861224364,\"busType\":\"gusl\",\"vhdType\":\"adcy\",\"volumeType\":\"ukyhejhzis\",\"vhdFormatType\":\"fpel\",\"templateDiskId\":\"p\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"},{\"name\":\"pqvujzraehtwdwrf\",\"displayName\":\"wib\",\"diskId\":\"cdl\",\"diskSizeGB\":1538697515,\"maxDiskSizeGB\":523065183,\"bus\":206253573,\"lun\":137143614,\"busType\":\"stwit\",\"vhdType\":\"hevxcced\",\"volumeType\":\"nmdyodnwzxl\",\"vhdFormatType\":\"cvnhltiugc\",\"templateDiskId\":\"avvwxqi\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"},{\"name\":\"y\",\"displayName\":\"xwlmdjr\",\"diskId\":\"fgbvfvpdbo\",\"diskSizeGB\":2095776205,\"maxDiskSizeGB\":1592823352,\"bus\":218756340,\"lun\":1933405509,\"busType\":\"krribdeibqi\",\"vhdType\":\"kghv\",\"volumeType\":\"dzwmkrefajpj\",\"vhdFormatType\":\"wkqnyhg\",\"templateDiskId\":\"j\",\"storageQoSPolicy\":{},\"createDiffDisk\":\"true\"}],\"provisioningState\":\"Provisioning\"},\"extendedLocation\":{\"type\":\"sjabibs\",\"name\":\"tawfsdjpvkvp\"},\"location\":\"xbkzbzkdvncj\",\"tags\":{\"jjklff\":\"durgkakmokz\",\"bizikayuhq\":\"mouwqlgzrfzeey\",\"wrv\":\"bjbsybb\"},\"id\":\"ldgmfpgvmpip\",\"name\":\"slthaq\",\"type\":\"x\"}],\"nextLink\":\"mwutwbdsre\"}") - .toObject(VirtualMachineTemplateListResult.class); - Assertions.assertEquals("kzzlvmbmpaxmodf", model.value().get(0).location()); - Assertions.assertEquals("fy", model.value().get(0).tags().get("sbpfvmwyhr")); - Assertions.assertEquals("dagxtibqd", model.value().get(0).properties().inventoryItemId()); - Assertions.assertEquals("xwak", model.value().get(0).properties().uuid()); - Assertions.assertEquals("gqxndlkzgxhuripl", model.value().get(0).properties().vmmServerId()); - Assertions.assertEquals("wuoegrpk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("wniyqsluicpd", model.value().get(0).extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatePropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatePropertiesTests.java deleted file mode 100644 index bb4e2d737bc7..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatePropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateProperties; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineTemplatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTemplateProperties model = BinaryData.fromString( - "{\"inventoryItemId\":\"zlmvfelfktgp\",\"uuid\":\"rpw\",\"vmmServerId\":\"eznoig\",\"osType\":\"Linux\",\"osName\":\"w\",\"computerName\":\"kpnb\",\"memoryMB\":1716189852,\"cpuCount\":1901897096,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"false\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":959686247,\"dynamicMemoryMinMB\":1162521892,\"isHighlyAvailable\":\"false\",\"generation\":1479780432,\"networkInterfaces\":[{\"name\":\"nfaazpxdtnkdmkq\",\"displayName\":\"lwuenvrkp\",\"ipv4Addresses\":[\"aibrebqaaysjkixq\",\"nqttezl\",\"fffiak\",\"jpqqmted\"],\"ipv6Addresses\":[\"mjihyeozphv\"],\"macAddress\":\"uyqncygupkvipmd\",\"virtualNetworkId\":\"wx\",\"networkName\":\"pevzhfst\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"bypel\"},{\"name\":\"uvhixbjxyfwn\",\"displayName\":\"r\",\"ipv4Addresses\":[\"lsttpkiwkkbnuj\"],\"ipv6Addresses\":[\"vtylbfpncu\",\"doiwi\",\"thtywub\",\"cbihwqk\"],\"macAddress\":\"dntwjchrdgo\",\"virtualNetworkId\":\"xum\",\"networkName\":\"ton\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"dlwggytsbwtovv\"}],\"disks\":[{\"name\":\"inqfiufxqknpirgn\",\"displayName\":\"ttwqmsni\",\"diskId\":\"cdm\",\"diskSizeGB\":266606002,\"maxDiskSizeGB\":235273121,\"bus\":803649154,\"lun\":1533423181,\"busType\":\"k\",\"vhdType\":\"frddhcrati\",\"volumeType\":\"ronasxift\",\"vhdFormatType\":\"qyzhf\",\"templateDiskId\":\"esgogc\",\"storageQoSPolicy\":{\"name\":\"nnxk\",\"id\":\"gnyhmossxkkg\"},\"createDiffDisk\":\"false\"},{\"name\":\"gh\",\"displayName\":\"bdhqxvcxgf\",\"diskId\":\"dsofbshrns\",\"diskSizeGB\":1330323698,\"maxDiskSizeGB\":1537279832,\"bus\":333268682,\"lun\":1290029311,\"busType\":\"bycnunvjsrtkf\",\"vhdType\":\"nopqgikyzirtx\",\"volumeType\":\"uxzejntpsew\",\"vhdFormatType\":\"oi\",\"templateDiskId\":\"ukry\",\"storageQoSPolicy\":{\"name\":\"qmi\",\"id\":\"xorgg\"},\"createDiffDisk\":\"false\"},{\"name\":\"aomtbghhavgrvkff\",\"displayName\":\"jzhpjbibgjmfx\",\"diskId\":\"vfcluyovwxnbkfe\",\"diskSizeGB\":1782319370,\"maxDiskSizeGB\":357757853,\"bus\":740528384,\"lun\":1673017156,\"busType\":\"g\",\"vhdType\":\"ujb\",\"volumeType\":\"omvzzbtd\",\"vhdFormatType\":\"vp\",\"templateDiskId\":\"yujviylwdshfssn\",\"storageQoSPolicy\":{\"name\":\"ye\",\"id\":\"ymsgaojfmwnc\"},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Failed\"}") - .toObject(VirtualMachineTemplateProperties.class); - Assertions.assertEquals("zlmvfelfktgp", model.inventoryItemId()); - Assertions.assertEquals("rpw", model.uuid()); - Assertions.assertEquals("eznoig", model.vmmServerId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineTemplateProperties model - = new VirtualMachineTemplateProperties().withInventoryItemId("zlmvfelfktgp") - .withUuid("rpw") - .withVmmServerId("eznoig"); - model = BinaryData.fromObject(model).toObject(VirtualMachineTemplateProperties.class); - Assertions.assertEquals("zlmvfelfktgp", model.inventoryItemId()); - Assertions.assertEquals("rpw", model.uuid()); - Assertions.assertEquals("eznoig", model.vmmServerId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateTagsUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateTagsUpdateTests.java deleted file mode 100644 index e2d021a59d7c..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplateTagsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateTagsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachineTemplateTagsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachineTemplateTagsUpdate model - = BinaryData.fromString("{\"tags\":{\"cxkdmligovi\":\"opidkqqfkuv\",\"goorbteo\":\"rxkpmloazuruoc\"}}") - .toObject(VirtualMachineTemplateTagsUpdate.class); - Assertions.assertEquals("opidkqqfkuv", model.tags().get("cxkdmligovi")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachineTemplateTagsUpdate model = new VirtualMachineTemplateTagsUpdate() - .withTags(mapOf("cxkdmligovi", "opidkqqfkuv", "goorbteo", "rxkpmloazuruoc")); - model = BinaryData.fromObject(model).toObject(VirtualMachineTemplateTagsUpdate.class); - Assertions.assertEquals("opidkqqfkuv", model.tags().get("cxkdmligovi")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateMockTests.java deleted file mode 100644 index c4ed8df7f74b..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplate; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualMachineTemplatesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"rhv\",\"uuid\":\"laiwdcxsmlzzh\",\"vmmServerId\":\"txetlgydl\",\"osType\":\"Linux\",\"osName\":\"n\",\"computerName\":\"xybafiqgea\",\"memoryMB\":755954714,\"cpuCount\":1031040752,\"limitCpuForMigration\":\"false\",\"dynamicMemoryEnabled\":\"false\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":344545687,\"dynamicMemoryMinMB\":1514866149,\"isHighlyAvailable\":\"true\",\"generation\":2131258889,\"networkInterfaces\":[{\"name\":\"zegjonfhjirwgdn\",\"displayName\":\"brfkspz\",\"ipv4Addresses\":[\"tk\",\"jcitdigsxcdglj\",\"lkeuac\",\"tomflrytswfpf\"],\"ipv6Addresses\":[\"ycxnmskw\",\"qjjyslurl\",\"shhkvpedw\",\"slsrhmpq\"],\"macAddress\":\"wskondcbrwimuvqe\",\"virtualNetworkId\":\"so\",\"networkName\":\"rrleaesinuqt\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"hehcecybmrqb\"},{\"name\":\"bbmpxdlvykfre\",\"displayName\":\"rseqwjksghudgz\",\"ipv4Addresses\":[\"gjggsv\",\"u\",\"kxibdafh\",\"kmdyomkxfbvfbh\"],\"ipv6Addresses\":[\"rhpw\"],\"macAddress\":\"ddei\",\"virtualNetworkId\":\"wzovgk\",\"networkName\":\"muikjcjcaztbws\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"omlik\"}],\"disks\":[{\"name\":\"czcswka\",\"displayName\":\"ejyfdvlvhbwrnfx\",\"diskId\":\"ddpqt\",\"diskSizeGB\":277353032,\"maxDiskSizeGB\":1265914547,\"bus\":1175019303,\"lun\":1049399081,\"busType\":\"nkcoeqswankltyt\",\"vhdType\":\"droznn\",\"volumeType\":\"rlktgjcsggu\",\"vhdFormatType\":\"eml\",\"templateDiskId\":\"waeeczgfb\",\"storageQoSPolicy\":{\"name\":\"lelssxblycsxzujk\",\"id\":\"lsmdesqplpvmjc\"},\"createDiffDisk\":\"false\"},{\"name\":\"bidyv\",\"displayName\":\"owx\",\"diskId\":\"piudeugfsxzecpa\",\"diskSizeGB\":1953646440,\"maxDiskSizeGB\":1277972193,\"bus\":1188038408,\"lun\":814359275,\"busType\":\"hxepmrutzna\",\"vhdType\":\"obns\",\"volumeType\":\"jdjltymkmvgui\",\"vhdFormatType\":\"wartspphkixkykxd\",\"templateDiskId\":\"j\",\"storageQoSPolicy\":{\"name\":\"mucfxhikkf\",\"id\":\"mymyincqlhri\"},\"createDiffDisk\":\"true\"},{\"name\":\"miii\",\"displayName\":\"gqcg\",\"diskId\":\"ugqkctotiowlxteq\",\"diskSizeGB\":234322459,\"maxDiskSizeGB\":452524587,\"bus\":1297111913,\"lun\":1109620342,\"busType\":\"kranblwphqlkcc\",\"vhdType\":\"gygqwah\",\"volumeType\":\"ulwgniiprglvawuw\",\"vhdFormatType\":\"ufypiv\",\"templateDiskId\":\"bbjpmcubkmif\",\"storageQoSPolicy\":{\"name\":\"ku\",\"id\":\"phavpmhbrb\"},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"pbbttefjoknss\",\"name\":\"zqedikdfrdbi\"},\"location\":\"rjgeih\",\"tags\":{\"xmjpbyep\":\"ggwfiwz\"},\"id\":\"mgtvlj\",\"name\":\"rc\",\"type\":\"yfqi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualMachineTemplate response = manager.virtualMachineTemplates() - .define("nwvroevytlyokrr") - .withRegion("kolawjmjsmwrokc") - .withExistingResourceGroup("voxczytpr") - .withExtendedLocation(new ExtendedLocation().withType("zvhqjwtrhtgvg").withName("c")) - .withTags(mapOf("afitlhguynuchlg", "zzzwy", "gzvlnsnn", "ltxdwhmozu", "agpgdph", "zfpafolpymwamxqz", - "ejchcsrlz", "vdulajv")) - .withProperties(new VirtualMachineTemplateProperties().withInventoryItemId("uxvnsasbcrymodi") - .withUuid("xkl") - .withVmmServerId("d")) - .create(); - - Assertions.assertEquals("rjgeih", response.location()); - Assertions.assertEquals("ggwfiwz", response.tags().get("xmjpbyep")); - Assertions.assertEquals("rhv", response.properties().inventoryItemId()); - Assertions.assertEquals("laiwdcxsmlzzh", response.properties().uuid()); - Assertions.assertEquals("txetlgydl", response.properties().vmmServerId()); - Assertions.assertEquals("pbbttefjoknss", response.extendedLocation().type()); - Assertions.assertEquals("zqedikdfrdbi", response.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 96602563d37b..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplate; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualMachineTemplatesGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"lafcbahh\",\"uuid\":\"pofoi\",\"vmmServerId\":\"w\",\"osType\":\"Windows\",\"osName\":\"kmkkholvdnd\",\"computerName\":\"auo\",\"memoryMB\":1485385595,\"cpuCount\":1546671556,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":1848545940,\"dynamicMemoryMinMB\":2049992940,\"isHighlyAvailable\":\"false\",\"generation\":2060279442,\"networkInterfaces\":[{\"name\":\"mnxhkxjqirwrweo\",\"displayName\":\"ffifhx\",\"ipv4Addresses\":[\"newmozqvb\",\"bqmamhsycxhxzgaz\",\"taboidvmf\"],\"ipv6Addresses\":[\"pubowsepdfg\"],\"macAddress\":\"tdherngbtcjuahok\",\"virtualNetworkId\":\"obkauxofsh\",\"networkName\":\"hwpnulaiywzejywh\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"l\"},{\"name\":\"npdwr\",\"displayName\":\"afgfugsnn\",\"ipv4Addresses\":[\"et\",\"fypococtfjgti\"],\"ipv6Addresses\":[\"vzuyturmlmu\",\"wolba\"],\"macAddress\":\"ropions\",\"virtualNetworkId\":\"nw\",\"networkName\":\"gajinnixjawrtmj\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Static\",\"nicId\":\"zhcoxovnekhe\"},{\"name\":\"usfnr\",\"displayName\":\"jxtxrdc\",\"ipv4Addresses\":[\"vidttgepuslvyjt\",\"vuwkasiziesfuugh\"],\"ipv6Addresses\":[\"fecjxeygtuhx\",\"ic\",\"uewmrswnjlxuzrhw\",\"usxjbaqehg\"],\"macAddress\":\"ohzjqatucoigeb\",\"virtualNetworkId\":\"cnwfepbnwgfmxjg\",\"networkName\":\"bjb\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"snaquf\"},{\"name\":\"bctqhamzjrwd\",\"displayName\":\"zeqyjleziun\",\"ipv4Addresses\":[\"fza\",\"tkw\",\"eg\"],\"ipv6Addresses\":[\"lbnseqac\",\"jvpilguooqja\"],\"macAddress\":\"d\",\"virtualNetworkId\":\"gueiookjbsahrtdt\",\"networkName\":\"elqacslmot\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"vcjkgd\"}],\"disks\":[{\"name\":\"f\",\"displayName\":\"ejwabmdujtmvco\",\"diskId\":\"xcmjurbu\",\"diskSizeGB\":662695114,\"maxDiskSizeGB\":2003888088,\"bus\":997520556,\"lun\":1508910298,\"busType\":\"rogtuwkf\",\"vhdType\":\"jk\",\"volumeType\":\"ysidfvclgl\",\"vhdFormatType\":\"fuijtkbus\",\"templateDiskId\":\"gsfikayiansha\",\"storageQoSPolicy\":{\"name\":\"t\",\"id\":\"qxfzyjqttvwk\"},\"createDiffDisk\":\"false\"},{\"name\":\"penuy\",\"displayName\":\"qeqqekewvnqvcdl\",\"diskId\":\"a\",\"diskSizeGB\":1607576677,\"maxDiskSizeGB\":1323683698,\"bus\":1722049750,\"lun\":1773834271,\"busType\":\"xpunjqi\",\"vhdType\":\"zvvitacgxmfcs\",\"volumeType\":\"rxhtvso\",\"vhdFormatType\":\"lwntsjgqrs\",\"templateDiskId\":\"p\",\"storageQoSPolicy\":{\"name\":\"u\",\"id\":\"nchrszizoyu\"},\"createDiffDisk\":\"true\"},{\"name\":\"tn\",\"displayName\":\"bf\",\"diskId\":\"ggagfln\",\"diskSizeGB\":1468230412,\"maxDiskSizeGB\":1408591251,\"bus\":505064528,\"lun\":1643103479,\"busType\":\"mu\",\"vhdType\":\"tb\",\"volumeType\":\"plrohkpigq\",\"vhdFormatType\":\"suckzm\",\"templateDiskId\":\"klsnoxaxmqeqa\",\"storageQoSPolicy\":{\"name\":\"jnhgwydyyn\",\"id\":\"vkh\"},\"createDiffDisk\":\"false\"},{\"name\":\"ta\",\"displayName\":\"rfdl\",\"diskId\":\"kh\",\"diskSizeGB\":685959660,\"maxDiskSizeGB\":1532018074,\"bus\":2014408725,\"lun\":1539061935,\"busType\":\"eogkhnmgbro\",\"vhdType\":\"ddbhf\",\"volumeType\":\"fpazjzoywjxhpd\",\"vhdFormatType\":\"ontacnpq\",\"templateDiskId\":\"ehtuevrhr\",\"storageQoSPolicy\":{\"name\":\"oogwxhnsduugwb\",\"id\":\"e\"},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"uarenlv\",\"name\":\"tklnvnafvvkyfed\"},\"location\":\"jboslcqxypok\",\"tags\":{\"unin\":\"inqcymczngnbdxxe\",\"ec\":\"udbchaqdtv\"},\"id\":\"qct\",\"name\":\"xxdtddmflh\",\"type\":\"ytxzvtznapxbanno\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualMachineTemplate response = manager.virtualMachineTemplates() - .getByResourceGroupWithResponse("xoe", "qinjipnwjf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jboslcqxypok", response.location()); - Assertions.assertEquals("inqcymczngnbdxxe", response.tags().get("unin")); - Assertions.assertEquals("lafcbahh", response.properties().inventoryItemId()); - Assertions.assertEquals("pofoi", response.properties().uuid()); - Assertions.assertEquals("w", response.properties().vmmServerId()); - Assertions.assertEquals("uarenlv", response.extendedLocation().type()); - Assertions.assertEquals("tklnvnafvvkyfed", response.extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupMockTests.java deleted file mode 100644 index f0d58ea1b5e8..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListByResourceGroupMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplate; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualMachineTemplatesListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"ywwpgjxsnptfuj\",\"uuid\":\"cg\",\"vmmServerId\":\"o\",\"osType\":\"Other\",\"osName\":\"aqutdewemxswvruu\",\"computerName\":\"zjgehkfkim\",\"memoryMB\":355142126,\"cpuCount\":2101404470,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":1426347910,\"dynamicMemoryMinMB\":758637615,\"isHighlyAvailable\":\"false\",\"generation\":800032229,\"networkInterfaces\":[{\"name\":\"monstshiyxgve\",\"displayName\":\"clduc\",\"ipv4Addresses\":[\"rds\",\"uwc\",\"b\"],\"ipv6Addresses\":[\"stmninwjizcilng\",\"gshejjtbxqmulux\",\"xqzv\",\"ers\"],\"macAddress\":\"cucrwnamikze\",\"virtualNetworkId\":\"qbsms\",\"networkName\":\"iqg\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"swhvhczznvfbycj\"},{\"name\":\"jww\",\"displayName\":\"z\",\"ipv4Addresses\":[\"wmxqhndvnoamlds\",\"haohdjhhflzokxc\",\"xpelnjetagltsx\",\"atftgzpnpbsw\"],\"ipv6Addresses\":[\"loccsrmozihm\",\"pgawtxxpkyjcxcjx\",\"rytfmpcycil\"],\"macAddress\":\"caykggnoxuz\",\"virtualNetworkId\":\"ksxwpnd\",\"networkName\":\"pfnznthjtwkj\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"oamktcq\"},{\"name\":\"smgbzahgxqdl\",\"displayName\":\"tlt\",\"ipv4Addresses\":[\"rltzkatbhjmz\",\"nbsoqeqalarv\",\"agunbtgfebw\",\"nbmhyree\"],\"ipv6Addresses\":[\"qavbpdqmj\",\"lyyzglgouwtlmjj\",\"uojqt\"],\"macAddress\":\"axkjeytunlbfjk\",\"virtualNetworkId\":\"u\",\"networkName\":\"kqbh\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"hdenxaulk\"},{\"name\":\"kdk\",\"displayName\":\"mjnnawtq\",\"ipv4Addresses\":[\"xuckpggqoweyir\",\"hlisngw\",\"lqqmpiz\"],\"ipv6Addresses\":[\"n\"],\"macAddress\":\"xpxiwfcngjs\",\"virtualNetworkId\":\"sii\",\"networkName\":\"mkzjvkviir\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Dynamic\",\"nicId\":\"pgratzvzbglbyvi\"}],\"disks\":[{\"name\":\"brxkjzwr\",\"displayName\":\"ffm\",\"diskId\":\"kwfbkgo\",\"diskSizeGB\":277381231,\"maxDiskSizeGB\":1082965161,\"bus\":1662564263,\"lun\":1179999545,\"busType\":\"izqaclnapxbiyg\",\"vhdType\":\"gjkn\",\"volumeType\":\"mfcttux\",\"vhdFormatType\":\"yilflqoiquvrehmr\",\"templateDiskId\":\"hvsujztc\",\"storageQoSPolicy\":{\"name\":\"qjtwhauu\",\"id\":\"prnjletlxsmr\"},\"createDiffDisk\":\"true\"},{\"name\":\"uifamowaziynknlq\",\"displayName\":\"dvpiwh\",\"diskId\":\"szdtmaajquh\",\"diskSizeGB\":578758071,\"maxDiskSizeGB\":1621545899,\"bus\":1529964299,\"lun\":521294772,\"busType\":\"g\",\"vhdType\":\"mzyospspshck\",\"volumeType\":\"yjpmspbpssdfppyo\",\"vhdFormatType\":\"ieyujtvc\",\"templateDiskId\":\"cnyxrxmunjd\",\"storageQoSPolicy\":{\"name\":\"lnkvxlx\",\"id\":\"glqivbgkcv\"},\"createDiffDisk\":\"false\"},{\"name\":\"vuqd\",\"displayName\":\"voniypfp\",\"diskId\":\"cpzgpxtiv\",\"diskSizeGB\":1447599159,\"maxDiskSizeGB\":666978054,\"bus\":711664414,\"lun\":1731512826,\"busType\":\"jxgpnrhgovfg\",\"vhdType\":\"kqmhhaowjr\",\"volumeType\":\"vuporqzdfuydzv\",\"vhdFormatType\":\"vxcnqmxqps\",\"templateDiskId\":\"kmvkhl\",\"storageQoSPolicy\":{\"name\":\"hbemzq\",\"id\":\"sz\"},\"createDiffDisk\":\"false\"},{\"name\":\"tglxx\",\"displayName\":\"jfpgpicrmn\",\"diskId\":\"rgmqgjs\",\"diskSizeGB\":1587486803,\"maxDiskSizeGB\":1307017173,\"bus\":704061882,\"lun\":1162167874,\"busType\":\"odth\",\"vhdType\":\"qgvriibakcla\",\"volumeType\":\"fr\",\"vhdFormatType\":\"ousxauzlwvsgmw\",\"templateDiskId\":\"qf\",\"storageQoSPolicy\":{\"name\":\"vux\",\"id\":\"kjsvthnwpzteko\"},\"createDiffDisk\":\"true\"}],\"provisioningState\":\"Created\"},\"extendedLocation\":{\"type\":\"attgplu\",\"name\":\"otangcfhnykzc\"},\"location\":\"swvxwlmzqwmv\",\"tags\":{\"cvclxynpdk\":\"jmxmcuqud\",\"neiknpg\":\"gfabuiyjibuzphdu\",\"btozipqwje\":\"xgjiuqh\",\"xxgewpk\":\"mur\"},\"id\":\"vqylkmqpzoyhl\",\"name\":\"bcg\",\"type\":\"gcl\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.virtualMachineTemplates().listByResourceGroup("bffmbmxz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("swvxwlmzqwmv", response.iterator().next().location()); - Assertions.assertEquals("jmxmcuqud", response.iterator().next().tags().get("cvclxynpdk")); - Assertions.assertEquals("ywwpgjxsnptfuj", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("cg", response.iterator().next().properties().uuid()); - Assertions.assertEquals("o", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("attgplu", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("otangcfhnykzc", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListMockTests.java deleted file mode 100644 index f24b872b74fa..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualMachineTemplatesListMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualMachineTemplate; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualMachineTemplatesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"wbzasqbuclj\",\"uuid\":\"yexaoguy\",\"vmmServerId\":\"p\",\"osType\":\"Other\",\"osName\":\"ault\",\"computerName\":\"jjum\",\"memoryMB\":605011869,\"cpuCount\":129557013,\"limitCpuForMigration\":\"true\",\"dynamicMemoryEnabled\":\"true\",\"isCustomizable\":\"false\",\"dynamicMemoryMaxMB\":714307587,\"dynamicMemoryMinMB\":1485575169,\"isHighlyAvailable\":\"false\",\"generation\":1855012181,\"networkInterfaces\":[{\"name\":\"wgnyfusfzsvtui\",\"displayName\":\"hajqglcfh\",\"ipv4Addresses\":[\"qryxyn\",\"nzrdpsovwxz\",\"ptgoeiybbabp\"],\"ipv6Addresses\":[\"f\"],\"macAddress\":\"kvntjlrigjkskyri\",\"virtualNetworkId\":\"vzidsxwaab\",\"networkName\":\"ifrygzn\",\"ipv4AddressType\":\"Dynamic\",\"ipv6AddressType\":\"Dynamic\",\"macAddressType\":\"Static\",\"nicId\":\"zob\"},{\"name\":\"pxl\",\"displayName\":\"lnelxieixynl\",\"ipv4Addresses\":[\"cwcrojphs\",\"hcawjutifdwfmv\",\"gorqjbttzh\",\"aglkafhon\"],\"ipv6Addresses\":[\"jeick\",\"zvcpopm\"],\"macAddress\":\"lnwcltyjed\",\"virtualNetworkId\":\"xm\",\"networkName\":\"mkqscaz\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"uamwabzxrvxc\"},{\"name\":\"hsphaivmxyas\",\"displayName\":\"vgsgzwywakoihkn\",\"ipv4Addresses\":[\"blmljh\",\"nymzotqyr\",\"uzcbmqq\"],\"ipv6Addresses\":[\"vwf\"],\"macAddress\":\"ayxonsupeujl\",\"virtualNetworkId\":\"nh\",\"networkName\":\"sqltnzo\",\"ipv4AddressType\":\"Static\",\"ipv6AddressType\":\"Static\",\"macAddressType\":\"Dynamic\",\"nicId\":\"fyq\"}],\"disks\":[{\"name\":\"qoxwd\",\"displayName\":\"dbxiqx\",\"diskId\":\"iqbi\",\"diskSizeGB\":1213641430,\"maxDiskSizeGB\":2002140945,\"bus\":1099420861,\"lun\":152537554,\"busType\":\"hfqpofv\",\"vhdType\":\"cblembnkbwv\",\"volumeType\":\"xk\",\"vhdFormatType\":\"vqihebwtswbzuwf\",\"templateDiskId\":\"urageg\",\"storageQoSPolicy\":{\"name\":\"cjfelisdjubgg\",\"id\":\"igkxkbsazga\"},\"createDiffDisk\":\"true\"},{\"name\":\"yrcmjdmspofap\",\"displayName\":\"hryl\",\"diskId\":\"ofrzgb\",\"diskSizeGB\":726767515,\"maxDiskSizeGB\":981780547,\"bus\":1946171356,\"lun\":2142933776,\"busType\":\"l\",\"vhdType\":\"bcuiiz\",\"volumeType\":\"twfans\",\"vhdFormatType\":\"pdibmikostbzbki\",\"templateDiskId\":\"uqn\",\"storageQoSPolicy\":{\"name\":\"hzfylsgcrpfbc\",\"id\":\"ezzcez\"},\"createDiffDisk\":\"false\"}],\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"wl\",\"name\":\"jwetnpsihcla\"},\"location\":\"va\",\"tags\":{\"tcmwqkchc\":\"trsqqw\"},\"id\":\"waxfewzjkj\",\"name\":\"xfdeqvhpsyl\",\"type\":\"ksh\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.virtualMachineTemplates().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("va", response.iterator().next().location()); - Assertions.assertEquals("trsqqw", response.iterator().next().tags().get("tcmwqkchc")); - Assertions.assertEquals("wbzasqbuclj", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("yexaoguy", response.iterator().next().properties().uuid()); - Assertions.assertEquals("p", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("wl", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("jwetnpsihcla", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInnerTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInnerTests.java deleted file mode 100644 index 52346dd2230b..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInnerTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.fluent.models.VirtualNetworkInner; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkInner model = BinaryData.fromString( - "{\"properties\":{\"inventoryItemId\":\"vwpklvxwmygdxp\",\"uuid\":\"qchiszep\",\"vmmServerId\":\"bjcrxgibbdaxco\",\"networkName\":\"ozauorsukokwb\",\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"lvnuuepzlrph\",\"name\":\"soldweyuqdunv\"},\"location\":\"nrwrbiork\",\"tags\":{\"sivfomilo\":\"ywjhhgdnhx\",\"ao\":\"ggdufiqndieu\"},\"id\":\"jchvcyy\",\"name\":\"s\",\"type\":\"gdotcubiipuipwo\"}") - .toObject(VirtualNetworkInner.class); - Assertions.assertEquals("nrwrbiork", model.location()); - Assertions.assertEquals("ywjhhgdnhx", model.tags().get("sivfomilo")); - Assertions.assertEquals("vwpklvxwmygdxp", model.properties().inventoryItemId()); - Assertions.assertEquals("qchiszep", model.properties().uuid()); - Assertions.assertEquals("bjcrxgibbdaxco", model.properties().vmmServerId()); - Assertions.assertEquals("lvnuuepzlrph", model.extendedLocation().type()); - Assertions.assertEquals("soldweyuqdunv", model.extendedLocation().name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkInner model = new VirtualNetworkInner().withLocation("nrwrbiork") - .withTags(mapOf("sivfomilo", "ywjhhgdnhx", "ao", "ggdufiqndieu")) - .withProperties(new VirtualNetworkProperties().withInventoryItemId("vwpklvxwmygdxp") - .withUuid("qchiszep") - .withVmmServerId("bjcrxgibbdaxco")) - .withExtendedLocation(new ExtendedLocation().withType("lvnuuepzlrph").withName("soldweyuqdunv")); - model = BinaryData.fromObject(model).toObject(VirtualNetworkInner.class); - Assertions.assertEquals("nrwrbiork", model.location()); - Assertions.assertEquals("ywjhhgdnhx", model.tags().get("sivfomilo")); - Assertions.assertEquals("vwpklvxwmygdxp", model.properties().inventoryItemId()); - Assertions.assertEquals("qchiszep", model.properties().uuid()); - Assertions.assertEquals("bjcrxgibbdaxco", model.properties().vmmServerId()); - Assertions.assertEquals("lvnuuepzlrph", model.extendedLocation().type()); - Assertions.assertEquals("soldweyuqdunv", model.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInventoryItemTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInventoryItemTests.java deleted file mode 100644 index 063a8768f062..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkInventoryItemTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkInventoryItem; - -public final class VirtualNetworkInventoryItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkInventoryItem model = BinaryData.fromString( - "{\"inventoryType\":\"VirtualNetwork\",\"managedResourceId\":\"zhezwwvaiq\",\"uuid\":\"vv\",\"inventoryItemName\":\"nk\",\"provisioningState\":\"Provisioning\"}") - .toObject(VirtualNetworkInventoryItem.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkInventoryItem model = new VirtualNetworkInventoryItem(); - model = BinaryData.fromObject(model).toObject(VirtualNetworkInventoryItem.class); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkListResultTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkListResultTests.java deleted file mode 100644 index c9b8be6394ca..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkListResult; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"inventoryItemId\":\"ctymoxoftp\",\"uuid\":\"iwyczuh\",\"vmmServerId\":\"cpqjlihhyu\",\"networkName\":\"skasdvlmfwdgzxu\",\"provisioningState\":\"Failed\"},\"extendedLocation\":{\"type\":\"pamrsr\",\"name\":\"zvxurisjnhny\"},\"location\":\"ifqjz\",\"tags\":{\"upauut\":\"rhublwpcesutrg\",\"qg\":\"woqhihe\",\"foimwkslircizjxv\":\"zpnfqntcypsxj\"},\"id\":\"dfcea\",\"name\":\"vlhv\",\"type\":\"gdyftumrtwna\"},{\"properties\":{\"inventoryItemId\":\"lbiw\",\"uuid\":\"jgcyztsfmznba\",\"vmmServerId\":\"ph\",\"networkName\":\"qnrnrpxehuwryk\",\"provisioningState\":\"Provisioning\"},\"extendedLocation\":{\"type\":\"fmviklby\",\"name\":\"khbejdznxc\"},\"location\":\"srhnjivo\",\"tags\":{\"jdftuljltd\":\"novqfzge\",\"zuo\":\"ceamtm\",\"ssxmojms\":\"ejwcwwqiok\",\"jpr\":\"p\"},\"id\":\"kwcf\",\"name\":\"ql\",\"type\":\"yxgtczh\"},{\"properties\":{\"inventoryItemId\":\"bsdshmkxmaehvbbx\",\"uuid\":\"iplt\",\"vmmServerId\":\"htba\",\"networkName\":\"gx\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"kpyklyhp\",\"name\":\"odpvruudlgzib\"},\"location\":\"ostgkts\",\"tags\":{\"odqkdlwwqfb\":\"xeclzedqbcvhzlhp\",\"lmbtxhwgfwsrt\":\"mlkxtrqjfs\",\"kh\":\"wcoezbrhub\",\"ookk\":\"dyg\"},\"id\":\"fqjbvleo\",\"name\":\"fmluiqtqzfavyvn\",\"type\":\"qybaryeua\"},{\"properties\":{\"inventoryItemId\":\"qabqgzslesjcb\",\"uuid\":\"rnntiewdjcv\",\"vmmServerId\":\"uwrbehwagoh\",\"networkName\":\"f\",\"provisioningState\":\"Updating\"},\"extendedLocation\":{\"type\":\"qem\",\"name\":\"hmxtdr\"},\"location\":\"utacoe\",\"tags\":{\"guaadraufactkahz\":\"ewzcjznmwcp\",\"jjziuxxpsh\":\"v\"},\"id\":\"eekulfgslqubkwd\",\"name\":\"enr\",\"type\":\"sutujba\"}],\"nextLink\":\"juohminyflnorw\"}") - .toObject(VirtualNetworkListResult.class); - Assertions.assertEquals("ifqjz", model.value().get(0).location()); - Assertions.assertEquals("rhublwpcesutrg", model.value().get(0).tags().get("upauut")); - Assertions.assertEquals("ctymoxoftp", model.value().get(0).properties().inventoryItemId()); - Assertions.assertEquals("iwyczuh", model.value().get(0).properties().uuid()); - Assertions.assertEquals("cpqjlihhyu", model.value().get(0).properties().vmmServerId()); - Assertions.assertEquals("pamrsr", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("zvxurisjnhny", model.value().get(0).extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkPropertiesTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkPropertiesTests.java deleted file mode 100644 index 334e18890fb5..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkPropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkProperties; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkProperties model = BinaryData.fromString( - "{\"inventoryItemId\":\"nmacj\",\"uuid\":\"nizshqvcim\",\"vmmServerId\":\"vfgmblrrilby\",\"networkName\":\"xsmiccwrwfscjf\",\"provisioningState\":\"Provisioning\"}") - .toObject(VirtualNetworkProperties.class); - Assertions.assertEquals("nmacj", model.inventoryItemId()); - Assertions.assertEquals("nizshqvcim", model.uuid()); - Assertions.assertEquals("vfgmblrrilby", model.vmmServerId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkProperties model = new VirtualNetworkProperties().withInventoryItemId("nmacj") - .withUuid("nizshqvcim") - .withVmmServerId("vfgmblrrilby"); - model = BinaryData.fromObject(model).toObject(VirtualNetworkProperties.class); - Assertions.assertEquals("nmacj", model.inventoryItemId()); - Assertions.assertEquals("nizshqvcim", model.uuid()); - Assertions.assertEquals("vfgmblrrilby", model.vmmServerId()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkTagsUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkTagsUpdateTests.java deleted file mode 100644 index b588f5094a48..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworkTagsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkTagsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkTagsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkTagsUpdate model - = BinaryData.fromString("{\"tags\":{\"vvjgslor\":\"hjxa\",\"yw\":\"il\",\"gkxnyedabg\":\"t\"}}") - .toObject(VirtualNetworkTagsUpdate.class); - Assertions.assertEquals("hjxa", model.tags().get("vvjgslor")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkTagsUpdate model - = new VirtualNetworkTagsUpdate().withTags(mapOf("vvjgslor", "hjxa", "yw", "il", "gkxnyedabg", "t")); - model = BinaryData.fromObject(model).toObject(VirtualNetworkTagsUpdate.class); - Assertions.assertEquals("hjxa", model.tags().get("vvjgslor")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateMockTests.java deleted file mode 100644 index a1be844a70a1..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.ExtendedLocation; -import com.azure.resourcemanager.scvmm.models.VirtualNetwork; -import com.azure.resourcemanager.scvmm.models.VirtualNetworkProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualNetworksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"vbxngr\",\"uuid\":\"wggahttzlswvaj\",\"vmmServerId\":\"utlxjoqzasunwqrj\",\"networkName\":\"rg\",\"provisioningState\":\"Succeeded\"},\"extendedLocation\":{\"type\":\"hcmbuocnjrohmbp\",\"name\":\"yx\"},\"location\":\"eblydyv\",\"tags\":{\"ocxnehvsmtodl\":\"m\",\"unssxlghieegjl\":\"pyapucygvoav\"},\"id\":\"vvpa\",\"name\":\"eksgbuxantuygd\",\"type\":\"gaqi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualNetwork response = manager.virtualNetworks() - .define("krtt") - .withRegion("pcohhoucqpqojx") - .withExistingResourceGroup("xcptsoqfyiaseqc") - .withExtendedLocation(new ExtendedLocation().withType("gnzxojpslsvj").withName("liufiqwoyxq")) - .withTags(mapOf("tzqdd", "rzdcgdzbenribcaw", "mzwcjjncqt", "jwfljhznamtua")) - .withProperties(new VirtualNetworkProperties().withInventoryItemId("zisgykiuemvanb") - .withUuid("ohmn") - .withVmmServerId("xbsojkli")) - .create(); - - Assertions.assertEquals("eblydyv", response.location()); - Assertions.assertEquals("m", response.tags().get("ocxnehvsmtodl")); - Assertions.assertEquals("vbxngr", response.properties().inventoryItemId()); - Assertions.assertEquals("wggahttzlswvaj", response.properties().uuid()); - Assertions.assertEquals("utlxjoqzasunwqrj", response.properties().vmmServerId()); - Assertions.assertEquals("hcmbuocnjrohmbp", response.extendedLocation().type()); - Assertions.assertEquals("yx", response.extendedLocation().name()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupWithResponseMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index c9ece26bbdba..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualNetworksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"inventoryItemId\":\"qagwwrxaomz\",\"uuid\":\"glrrczez\",\"vmmServerId\":\"hltnjadhqoawjq\",\"networkName\":\"ueayfbpcmsplb\",\"provisioningState\":\"Provisioning\"},\"extendedLocation\":{\"type\":\"eqthwmg\",\"name\":\"b\"},\"location\":\"bbxi\",\"tags\":{\"wdpyq\":\"xiidloped\",\"cbq\":\"ybxubmdna\",\"laqacigele\":\"remj\"},\"id\":\"hdbvqvwzkjop\",\"name\":\"beonrlkwzdq\",\"type\":\"bxcea\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualNetwork response = manager.virtualNetworks() - .getByResourceGroupWithResponse("wqagnepzwa", "lsbs", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("bbxi", response.location()); - Assertions.assertEquals("xiidloped", response.tags().get("wdpyq")); - Assertions.assertEquals("qagwwrxaomz", response.properties().inventoryItemId()); - Assertions.assertEquals("glrrczez", response.properties().uuid()); - Assertions.assertEquals("hltnjadhqoawjq", response.properties().vmmServerId()); - Assertions.assertEquals("eqthwmg", response.extendedLocation().type()); - Assertions.assertEquals("b", response.extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupMockTests.java deleted file mode 100644 index 58b9ff6b4edc..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListByResourceGroupMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualNetworksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"vxnqmhrpqpd\",\"uuid\":\"mkoisqcssf\",\"vmmServerId\":\"uifmc\",\"networkName\":\"p\",\"provisioningState\":\"Deleting\"},\"extendedLocation\":{\"type\":\"qzrdzsylollg\",\"name\":\"czzydmxzjij\"},\"location\":\"uaurkihcir\",\"tags\":{\"dcoxnbk\":\"fx\",\"urnnqbnqbpiz\":\"ja\",\"gypxrxvbfihwuhvc\":\"qltgrd\"},\"id\":\"a\",\"name\":\"s\",\"type\":\"bxrblmliowxihspn\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.virtualNetworks().listByResourceGroup("ac", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uaurkihcir", response.iterator().next().location()); - Assertions.assertEquals("fx", response.iterator().next().tags().get("dcoxnbk")); - Assertions.assertEquals("vxnqmhrpqpd", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("mkoisqcssf", response.iterator().next().properties().uuid()); - Assertions.assertEquals("uifmc", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("qzrdzsylollg", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("czzydmxzjij", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListMockTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListMockTests.java deleted file mode 100644 index 29546d4eae8d..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VirtualNetworksListMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.scvmm.ScvmmManager; -import com.azure.resourcemanager.scvmm.models.VirtualNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class VirtualNetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"inventoryItemId\":\"hnp\",\"uuid\":\"yqwcabvnuil\",\"vmmServerId\":\"yaswlpaugmr\",\"networkName\":\"jlrxwtoaukhfk\",\"provisioningState\":\"Canceled\"},\"extendedLocation\":{\"type\":\"izmoaeds\",\"name\":\"wuived\"},\"location\":\"gyeewxeiq\",\"tags\":{\"amljdlrgmsplzgau\":\"mgomg\",\"ewgnxkympqanxrj\":\"cshhv\",\"bta\":\"ixt\"},\"id\":\"ypnyghshxc\",\"name\":\"lhkgmnsghp\",\"type\":\"ycphdrwjjkhvyo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ScvmmManager manager = ScvmmManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.virtualNetworks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gyeewxeiq", response.iterator().next().location()); - Assertions.assertEquals("mgomg", response.iterator().next().tags().get("amljdlrgmsplzgau")); - Assertions.assertEquals("hnp", response.iterator().next().properties().inventoryItemId()); - Assertions.assertEquals("yqwcabvnuil", response.iterator().next().properties().uuid()); - Assertions.assertEquals("yaswlpaugmr", response.iterator().next().properties().vmmServerId()); - Assertions.assertEquals("izmoaeds", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("wuived", response.iterator().next().extendedLocation().name()); - } -} diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VmmServerTagsUpdateTests.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VmmServerTagsUpdateTests.java deleted file mode 100644 index 3d1e9a934ebd..000000000000 --- a/sdk/scvmm/azure-resourcemanager-scvmm/src/test/java/com/azure/resourcemanager/scvmm/generated/VmmServerTagsUpdateTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.scvmm.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.scvmm.models.VmmServerTagsUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VmmServerTagsUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VmmServerTagsUpdate model - = BinaryData.fromString("{\"tags\":{\"ewbcihxuuw\":\"dtj\",\"yxccyb\":\"c\",\"px\":\"payakkud\"}}") - .toObject(VmmServerTagsUpdate.class); - Assertions.assertEquals("dtj", model.tags().get("ewbcihxuuw")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VmmServerTagsUpdate model - = new VmmServerTagsUpdate().withTags(mapOf("ewbcihxuuw", "dtj", "yxccyb", "c", "px", "payakkud")); - model = BinaryData.fromObject(model).toObject(VmmServerTagsUpdate.class); - Assertions.assertEquals("dtj", model.tags().get("ewbcihxuuw")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -}