From 575222885fdedd59efe45baf8d3840dd85cc4720 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 23 Dec 2024 16:53:30 +0000 Subject: [PATCH] CodeGen from PR 31270 in Azure/azure-rest-api-specs Merge 16951a87533aae994467daef74516815944fcbd1 into 12492edbcf4c2d43d153da544ffbf1ffe7cbd20b --- .../CHANGELOG.md | 833 +++++++++++++++++- .../README.md | 4 +- .../SAMPLE.md | 440 +++++---- .../pom.xml | 2 +- .../networkcloud/NetworkCloudManager.java | 2 +- .../fluent/models/ClusterInner.java | 86 +- .../fluent/models/ClusterPatchProperties.java | 105 +++ .../fluent/models/ClusterProperties.java | 114 ++- .../fluent/models/StorageApplianceInner.java | 5 +- .../models/StorageApplianceProperties.java | 9 +- .../fluent/models/VirtualMachineInner.java | 23 + .../models/VirtualMachineProperties.java | 32 + .../implementation/ClusterImpl.java | 47 + .../implementation/NetworkCloudImpl.java | 2 +- .../implementation/VirtualMachineImpl.java | 9 + .../models/AnalyticsOutputSettings.java | 130 +++ .../BareMetalMachineConfigurationData.java | 12 +- .../BareMetalMachineReplaceParameters.java | 12 +- .../networkcloud/models/Cluster.java | 145 ++- .../models/ClusterPatchParameters.java | 76 ++ .../models/OsDiskCreateOption.java | 5 + .../models/SecretArchiveSettings.java | 127 +++ .../networkcloud/models/StorageAppliance.java | 5 +- .../StorageApplianceConfigurationData.java | 12 +- .../StorageApplianceDetailedStatus.java | 13 +- .../networkcloud/models/VirtualMachine.java | 28 +- .../models/VirtualMachineDeviceModelType.java | 5 + .../models/VulnerabilityScanningSettings.java | 96 ++ ...rabilityScanningSettingsContainerScan.java | 52 ++ .../VulnerabilityScanningSettingsPatch.java | 97 ++ .../AgentPoolsCreateOrUpdateSamples.java | 7 +- .../generated/AgentPoolsDeleteSamples.java | 2 +- .../generated/AgentPoolsGetSamples.java | 2 +- ...ntPoolsListByKubernetesClusterSamples.java | 2 +- .../generated/AgentPoolsUpdateSamples.java | 2 +- ...alMachineKeySetsCreateOrUpdateSamples.java | 2 +- .../BareMetalMachineKeySetsDeleteSamples.java | 2 +- .../BareMetalMachineKeySetsGetSamples.java | 2 +- ...talMachineKeySetsListByClusterSamples.java | 2 +- .../BareMetalMachineKeySetsUpdateSamples.java | 2 +- .../BareMetalMachinesCordonSamples.java | 2 +- ...areMetalMachinesCreateOrUpdateSamples.java | 2 +- .../BareMetalMachinesDeleteSamples.java | 2 +- ...etalMachinesGetByResourceGroupSamples.java | 2 +- ...talMachinesListByResourceGroupSamples.java | 2 +- .../BareMetalMachinesListSamples.java | 2 +- .../BareMetalMachinesPowerOffSamples.java | 2 +- .../BareMetalMachinesReimageSamples.java | 2 +- .../BareMetalMachinesReplaceSamples.java | 2 +- .../BareMetalMachinesRestartSamples.java | 2 +- .../BareMetalMachinesRunCommandSamples.java | 2 +- ...reMetalMachinesRunDataExtractsSamples.java | 2 +- ...reMetalMachinesRunReadCommandsSamples.java | 2 +- .../BareMetalMachinesStartSamples.java | 2 +- .../BareMetalMachinesUncordonSamples.java | 2 +- .../BareMetalMachinesUpdateSamples.java | 2 +- .../BmcKeySetsCreateOrUpdateSamples.java | 2 +- .../generated/BmcKeySetsDeleteSamples.java | 2 +- .../generated/BmcKeySetsGetSamples.java | 2 +- .../BmcKeySetsListByClusterSamples.java | 2 +- .../generated/BmcKeySetsUpdateSamples.java | 2 +- ...ServicesNetworksCreateOrUpdateSamples.java | 2 +- .../CloudServicesNetworksDeleteSamples.java | 2 +- ...icesNetworksGetByResourceGroupSamples.java | 2 +- ...cesNetworksListByResourceGroupSamples.java | 2 +- .../CloudServicesNetworksListSamples.java | 2 +- .../CloudServicesNetworksUpdateSamples.java | 2 +- .../ClusterManagersCreateOrUpdateSamples.java | 4 +- .../ClusterManagersDeleteSamples.java | 2 +- ...sterManagersGetByResourceGroupSamples.java | 2 +- ...terManagersListByResourceGroupSamples.java | 2 +- .../generated/ClusterManagersListSamples.java | 2 +- .../ClusterManagersUpdateSamples.java | 2 +- .../ClustersContinueUpdateVersionSamples.java | 2 +- .../ClustersCreateOrUpdateSamples.java | 90 +- .../generated/ClustersDeleteSamples.java | 2 +- .../generated/ClustersDeploySamples.java | 4 +- .../ClustersGetByResourceGroupSamples.java | 2 +- .../ClustersListByResourceGroupSamples.java | 2 +- .../generated/ClustersListSamples.java | 2 +- .../generated/ClustersScanRuntimeSamples.java | 2 +- .../generated/ClustersUpdateSamples.java | 77 +- .../ClustersUpdateVersionSamples.java | 2 +- .../ConsolesCreateOrUpdateSamples.java | 2 +- .../generated/ConsolesDeleteSamples.java | 2 +- .../generated/ConsolesGetSamples.java | 2 +- .../ConsolesListByVirtualMachineSamples.java | 2 +- .../generated/ConsolesUpdateSamples.java | 2 +- ...sClusterFeaturesCreateOrUpdateSamples.java | 2 +- ...ubernetesClusterFeaturesDeleteSamples.java | 2 +- .../KubernetesClusterFeaturesGetSamples.java | 2 +- ...eaturesListByKubernetesClusterSamples.java | 2 +- ...ubernetesClusterFeaturesUpdateSamples.java | 2 +- ...bernetesClustersCreateOrUpdateSamples.java | 18 +- .../KubernetesClustersDeleteSamples.java | 2 +- ...etesClustersGetByResourceGroupSamples.java | 2 +- ...tesClustersListByResourceGroupSamples.java | 2 +- .../KubernetesClustersListSamples.java | 2 +- .../KubernetesClustersRestartNodeSamples.java | 2 +- .../KubernetesClustersUpdateSamples.java | 2 +- .../L2NetworksCreateOrUpdateSamples.java | 2 +- .../generated/L2NetworksDeleteSamples.java | 2 +- .../L2NetworksGetByResourceGroupSamples.java | 2 +- .../L2NetworksListByResourceGroupSamples.java | 2 +- .../generated/L2NetworksListSamples.java | 2 +- .../generated/L2NetworksUpdateSamples.java | 2 +- .../L3NetworksCreateOrUpdateSamples.java | 2 +- .../generated/L3NetworksDeleteSamples.java | 2 +- .../L3NetworksGetByResourceGroupSamples.java | 2 +- .../L3NetworksListByResourceGroupSamples.java | 2 +- .../generated/L3NetworksListSamples.java | 2 +- .../generated/L3NetworksUpdateSamples.java | 2 +- ...csConfigurationsCreateOrUpdateSamples.java | 2 +- .../MetricsConfigurationsDeleteSamples.java | 2 +- .../MetricsConfigurationsGetSamples.java | 2 +- ...icsConfigurationsListByClusterSamples.java | 2 +- .../MetricsConfigurationsUpdateSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../generated/RackSkusGetSamples.java | 2 +- .../generated/RackSkusListSamples.java | 2 +- .../generated/RacksCreateOrUpdateSamples.java | 2 +- .../generated/RacksDeleteSamples.java | 2 +- .../RacksGetByResourceGroupSamples.java | 2 +- .../RacksListByResourceGroupSamples.java | 2 +- .../generated/RacksListSamples.java | 2 +- .../generated/RacksUpdateSamples.java | 2 +- ...torageAppliancesCreateOrUpdateSamples.java | 2 +- .../StorageAppliancesDeleteSamples.java | 2 +- ...sDisableRemoteVendorManagementSamples.java | 2 +- ...esEnableRemoteVendorManagementSamples.java | 2 +- ...geAppliancesGetByResourceGroupSamples.java | 2 +- ...eAppliancesListByResourceGroupSamples.java | 2 +- .../StorageAppliancesListSamples.java | 2 +- .../StorageAppliancesUpdateSamples.java | 2 +- .../TrunkedNetworksCreateOrUpdateSamples.java | 2 +- .../TrunkedNetworksDeleteSamples.java | 2 +- ...nkedNetworksGetByResourceGroupSamples.java | 2 +- ...kedNetworksListByResourceGroupSamples.java | 2 +- .../generated/TrunkedNetworksListSamples.java | 2 +- .../TrunkedNetworksUpdateSamples.java | 2 +- .../VirtualMachinesCreateOrUpdateSamples.java | 2 +- .../VirtualMachinesDeleteSamples.java | 2 +- ...tualMachinesGetByResourceGroupSamples.java | 2 +- ...ualMachinesListByResourceGroupSamples.java | 2 +- .../generated/VirtualMachinesListSamples.java | 2 +- .../VirtualMachinesPowerOffSamples.java | 2 +- .../VirtualMachinesReimageSamples.java | 2 +- .../VirtualMachinesRestartSamples.java | 2 +- .../VirtualMachinesStartSamples.java | 2 +- .../VirtualMachinesUpdateSamples.java | 2 +- .../VolumesCreateOrUpdateSamples.java | 2 +- .../generated/VolumesDeleteSamples.java | 2 +- .../VolumesGetByResourceGroupSamples.java | 2 +- .../VolumesListByResourceGroupSamples.java | 2 +- .../generated/VolumesListSamples.java | 2 +- .../generated/VolumesUpdateSamples.java | 2 +- .../generated/AadConfigurationTests.java | 26 - .../generated/AgentOptionsTests.java | 29 - .../AgentPoolUpgradeSettingsTests.java | 33 - .../AttachedNetworkConfigurationTests.java | 55 -- .../generated/AvailableUpgradeTests.java | 23 - ...MetalMachineCommandSpecificationTests.java | 30 - ...BareMetalMachineCordonParametersTests.java | 27 - .../BareMetalMachinePatchParametersTests.java | 44 - .../BareMetalMachinePatchPropertiesTests.java | 25 - ...reMetalMachinePowerOffParametersTests.java | 27 - ...MetalMachineRunCommandParametersTests.java | 34 - ...MachineRunDataExtractsParametersTests.java | 43 - ...MachineRunReadCommandsParametersTests.java | 41 - .../generated/BgpAdvertisementTests.java | 37 - .../CloudServicesNetworkInnerTests.java | 89 -- .../CloudServicesNetworkListTests.java | 131 --- ...udServicesNetworkPatchParametersTests.java | 76 -- ...udServicesNetworkPatchPropertiesTests.java | 60 -- .../CloudServicesNetworkPropertiesTests.java | 61 -- ...rvicesNetworksCreateOrUpdateMockTests.java | 84 -- ...tByResourceGroupWithResponseMockTests.java | 48 - ...sNetworksListByResourceGroupMockTests.java | 49 -- .../CloudServicesNetworksListMockTests.java | 48 - .../ClusterAvailableUpgradeVersionTests.java | 23 - .../ClusterAvailableVersionTests.java | 23 - .../generated/ClusterCapacityTests.java | 47 - ...rContinueUpdateVersionParametersTests.java | 30 - .../ClusterDeployParametersTests.java | 28 - .../generated/ClusterManagerInnerTests.java | 71 -- .../generated/ClusterManagerListTests.java | 98 --- .../ClusterManagerPatchParametersTests.java | 49 -- .../ClusterManagerPropertiesTests.java | 43 - ...lusterManagersCreateOrUpdateMockTests.java | 81 -- ...tByResourceGroupWithResponseMockTests.java | 48 - ...rManagersListByResourceGroupMockTests.java | 48 - .../ClusterManagersListMockTests.java | 48 - ...ClusterMetricsConfigurationInnerTests.java | 56 -- .../ClusterMetricsConfigurationListTests.java | 72 -- ...ricsConfigurationPatchParametersTests.java | 48 - ...ricsConfigurationPatchPropertiesTests.java | 31 - ...erMetricsConfigurationPropertiesTests.java | 31 - .../ClusterScanRuntimeParametersTests.java | 27 - .../generated/ClusterUpdateStrategyTests.java | 40 - .../ClusterUpdateVersionParametersTests.java | 26 - .../generated/CommandOutputSettingsTests.java | 39 - .../generated/EgressEndpointTests.java | 37 - .../generated/EndpointDependencyTests.java | 27 - .../generated/ExtendedLocationTests.java | 27 - .../generated/FeatureStatusTests.java | 23 - ...ardwareInventoryNetworkInterfaceTests.java | 23 - .../generated/HardwareInventoryTests.java | 23 - .../HardwareValidationStatusTests.java | 23 - .../generated/IdentitySelectorTests.java | 31 - .../generated/IpAddressPoolTests.java | 37 - .../generated/KeySetUserStatusTests.java | 23 - ...etesClusterRestartNodeParametersTests.java | 26 - ...L2NetworkAttachmentConfigurationTests.java | 30 - .../generated/L2NetworkInnerTests.java | 59 -- .../generated/L2NetworkListTests.java | 82 -- .../L2NetworkPatchParametersTests.java | 42 - .../generated/L2NetworkPropertiesTests.java | 33 - .../L2NetworksCreateOrUpdateMockTests.java | 68 -- ...tByResourceGroupWithResponseMockTests.java | 46 - ...2NetworksListByResourceGroupMockTests.java | 46 - .../generated/L2NetworksListMockTests.java | 45 - ...ServiceLoadBalancerConfigurationTests.java | 44 - ...L3NetworkAttachmentConfigurationTests.java | 35 - .../generated/L3NetworkInnerTests.java | 76 -- .../generated/L3NetworkListTests.java | 104 --- .../L3NetworkPatchParametersTests.java | 41 - .../generated/L3NetworkPropertiesTests.java | 50 -- .../L3NetworksCreateOrUpdateMockTests.java | 80 -- ...tByResourceGroupWithResponseMockTests.java | 53 -- ...3NetworksListByResourceGroupMockTests.java | 53 -- .../generated/L3NetworksListMockTests.java | 52 -- .../generated/LldpNeighborTests.java | 23 - .../generated/MachineDiskTests.java | 23 - .../generated/MachineSkuPropertiesTests.java | 23 - .../generated/MachineSkuSlotTests.java | 23 - ...anagedResourceGroupConfigurationTests.java | 29 - .../ManagedServiceIdentityTests.java | 45 - ...ConfigurationsCreateOrUpdateMockTests.java | 66 -- ...onfigurationsGetWithResponseMockTests.java | 44 - ...sConfigurationsListByClusterMockTests.java | 44 - .../generated/NetworkAttachmentTests.java | 43 - .../generated/NetworkInterfaceTests.java | 23 - .../networkcloud/generated/NicTests.java | 23 - .../generated/OperationDisplayTests.java | 23 - .../generated/OperationInnerTests.java | 24 - .../generated/OperationListResultTests.java | 23 - .../generated/OperationsListMockTests.java | 36 - .../networkcloud/generated/OsDiskTests.java | 35 - .../generated/RackInnerTests.java | 61 -- .../networkcloud/generated/RackListTests.java | 81 -- .../generated/RackPatchParametersTests.java | 47 - .../generated/RackPropertiesTests.java | 35 - .../generated/RackSkuInnerTests.java | 23 - .../generated/RackSkuListTests.java | 29 - .../generated/RackSkuPropertiesTests.java | 23 - .../RackSkusGetWithResponseMockTests.java | 35 - .../generated/RackSkusListMockTests.java | 36 - .../RacksCreateOrUpdateMockTests.java | 69 -- ...tByResourceGroupWithResponseMockTests.java | 46 - .../RacksListByResourceGroupMockTests.java | 45 - .../generated/RacksListMockTests.java | 45 - .../generated/RacksPatchPropertiesTests.java | 27 - .../RuntimeProtectionConfigurationTests.java | 27 - .../RuntimeProtectionStatusTests.java | 23 - ...RemoteVendorManagementParametersTests.java | 29 - .../StorageAppliancePatchParametersTests.java | 45 - .../StorageAppliancePatchPropertiesTests.java | 26 - .../StorageApplianceSkuPropertiesTests.java | 23 - .../StorageApplianceSkuSlotTests.java | 23 - .../generated/StorageProfileTests.java | 40 - ...edNetworkAttachmentConfigurationTests.java | 31 - .../generated/TrunkedNetworkInnerTests.java | 63 -- .../generated/TrunkedNetworkListTests.java | 78 -- .../TrunkedNetworkPatchParametersTests.java | 41 - .../TrunkedNetworkPropertiesTests.java | 38 - ...runkedNetworksCreateOrUpdateMockTests.java | 71 -- ...tByResourceGroupWithResponseMockTests.java | 47 - ...dNetworksListByResourceGroupMockTests.java | 47 - .../TrunkedNetworksListMockTests.java | 46 - .../generated/UserAssignedIdentityTests.java | 23 - .../generated/ValidationThresholdTests.java | 34 - .../VirtualMachinePlacementHintTests.java | 39 - ...VirtualMachinePowerOffParametersTests.java | 27 - .../generated/VolumeInnerTests.java | 52 -- .../generated/VolumeListTests.java | 75 -- .../generated/VolumePatchParametersTests.java | 41 - .../generated/VolumePropertiesTests.java | 26 - .../VolumesCreateOrUpdateMockTests.java | 63 -- ...tByResourceGroupWithResponseMockTests.java | 43 - .../VolumesListByResourceGroupMockTests.java | 42 - .../generated/VolumesListMockTests.java | 42 - 291 files changed, 2548 insertions(+), 6243 deletions(-) create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AnalyticsOutputSettings.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretArchiveSettings.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettings.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsContainerScan.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsPatch.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCordonParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePowerOffParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ExtendedLocationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryNetworkInterfaceTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareValidationStatusTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/LldpNeighborTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NicTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationDisplayTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationListResultTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md index 640c9b375ab9e..c2a1f93ef3592 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md @@ -1,14 +1,839 @@ # Release History -## 1.1.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2024-12-23) -### Features Added +- Azure Resource Manager NetworkCloud client library for Java. This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview. 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.BareMetalMachineKeySets` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.Racks` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.StorageAppliances` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.Clusters` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.MetricsConfigurations` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.Volumes` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.KubernetesClusters` was modified + +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.Consoles` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.L3Networks` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.CloudServicesNetworks` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.ClusterManagers` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.AgentPools` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.BmcKeySets` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.BareMetalMachines` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.VirtualMachines` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.TrunkedNetworks` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.L2Networks` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +### Features Added + +* `models.ClusterContinueUpdateVersionParameters` was added + +* `models.KubernetesClusterFeatureProvisioningState` was added + +* `models.ClusterUpdateStrategyType` was added + +* `models.VulnerabilityScanningSettingsPatch` was added -### Other Changes +* `models.RuntimeProtectionConfiguration` was added + +* `models.NodePoolAdministratorConfigurationPatch` was added + +* `models.KubernetesClusterFeature$Update` was added + +* `models.UserAssignedIdentity` was added + +* `models.KubernetesClusterFeatureAvailabilityLifecycle` was added + +* `models.AdministratorConfigurationPatch` was added + +* `models.IdentitySelector` was added + +* `models.VulnerabilityScanningSettingsContainerScan` was added + +* `models.ClusterScanRuntimeParametersScanActivity` was added + +* `models.L2ServiceLoadBalancerConfiguration` was added + +* `models.KubernetesClusterFeatureRequired` was added + +* `models.KubernetesClusterFeatureDetailedStatus` was added + +* `models.KubernetesClusterFeatures` was added + +* `models.ClusterUpdateStrategy` was added + +* `models.KubernetesClusterFeaturePatchParameters` was added + +* `models.KubernetesClusterFeature$Definition` was added + +* `models.KubernetesClusterFeature$UpdateStages` was added + +* `models.KubernetesClusterFeature$DefinitionStages` was added + +* `models.ManagedServiceIdentitySelectorType` was added + +* `models.ManagedServiceIdentity` was added + +* `models.RuntimeProtectionEnforcementLevel` was added + +* `models.ClusterScanRuntimeParameters` was added + +* `models.SecretRotationStatus` was added + +* `models.KubernetesClusterFeature` was added + +* `models.StringKeyValuePair` was added + +* `models.VulnerabilityScanningSettings` was added + +* `models.SecretArchiveReference` was added + +* `models.KubernetesClusterFeatureList` was added + +* `models.SecretArchiveSettings` was added + +* `models.CommandOutputSettings` was added + +* `models.AnalyticsOutputSettings` was added + +* `models.ClusterContinueUpdateVersionMachineGroupTargetingMode` was added + +* `models.RuntimeProtectionStatus` was added + +* `models.ClusterSecretArchive` was added + +* `models.ManagedServiceIdentityType` was added + +* `models.ClusterSecretArchiveEnabled` was added + +#### `models.VirtualMachinePatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.EndpointDependency` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineKeySetList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachinePowerOffParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineCordonParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Nic` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AgentPool$Update` was modified + +* `withAdministratorConfiguration(models.NodePoolAdministratorConfigurationPatch)` was added + +#### `models.ServicePrincipalInformation` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterMetricsConfigurationList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachine` was modified + +* `secretRotationStatus()` was added +* `runtimeProtectionStatus()` was added +* `machineRoles()` was added +* `machineClusterVersion()` was added + +#### `models.TrunkedNetworkAttachmentConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BmcKeySetList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.StorageApplianceEnableRemoteVendorManagementParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterManagerList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.KeySetUserStatus` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterDeployParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterCapacity` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterAvailableUpgradeVersion` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageProfile` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.MachineDisk` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesClusterList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CloudServicesNetworkList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineKeySetPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkConfiguration` was modified + +* `withL2ServiceLoadBalancerConfiguration(models.L2ServiceLoadBalancerConfiguration)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `l2ServiceLoadBalancerConfiguration()` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.IpAddressPool` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AgentOptions` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RackPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterManagerPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `identity()` was added +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.BareMetalMachineCommandSpecification` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Cluster` was modified + +* `commandOutputSettings()` was added +* `continueUpdateVersion(models.ClusterContinueUpdateVersionParameters,com.azure.core.util.Context)` was added +* `vulnerabilityScanningSettings()` was added +* `updateStrategy()` was added +* `runtimeProtectionConfiguration()` was added +* `identity()` was added +* `scanRuntime(models.ClusterScanRuntimeParameters,com.azure.core.util.Context)` was added +* `analyticsOutputSettings()` was added +* `secretArchiveSettings()` was added +* `secretArchive()` was added +* `continueUpdateVersion(models.ClusterContinueUpdateVersionParameters)` was added +* `scanRuntime()` was added + +#### `models.AadConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineRunReadCommandsParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ConsolePatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Clusters` was modified + +* `continueUpdateVersion(java.lang.String,java.lang.String,models.ClusterContinueUpdateVersionParameters,com.azure.core.util.Context)` was added +* `scanRuntime(java.lang.String,java.lang.String,models.ClusterScanRuntimeParameters,com.azure.core.util.Context)` was added +* `continueUpdateVersion(java.lang.String,java.lang.String,models.ClusterContinueUpdateVersionParameters)` was added +* `scanRuntime(java.lang.String,java.lang.String)` was added + +#### `models.HardwareValidationStatus` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ControlPlaneNodeConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BgpAdvertisement` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesLabel` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineReplaceParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationStatusResult` was modified + +* `resultRef()` was added +* `exitCode()` was added +* `resultUrl()` was added +* `outputHead()` was added + +#### `models.BareMetalMachineList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.LldpNeighbor` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.StorageAppliance` was modified + +* `version()` was added +* `model()` was added +* `secretRotationStatus()` was added +* `manufacturer()` was added + +#### `models.AgentPoolPatchParameters` was modified + +* `administratorConfiguration()` was added +* `withAdministratorConfiguration(models.NodePoolAdministratorConfigurationPatch)` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.VirtualMachinePowerOffParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CloudServicesNetworkPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageApplianceList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ValidationThreshold` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.FeatureStatus` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachinePatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ExtendedLocation` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachine$Definition` was modified + +* `withMachineClusterVersion(java.lang.String)` was added + +#### `models.TrunkedNetworkList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ManagedResourceGroupConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.TrunkedNetworkPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.HardwareInventory` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ImageRepositoryCredentials` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineRunDataExtractsParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineRunCommandParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `vulnerabilityScanningSettings()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `runtimeProtectionConfiguration()` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `withAnalyticsOutputSettings(models.AnalyticsOutputSettings)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `analyticsOutputSettings()` was added +* `updateStrategy()` was added +* `secretArchive()` was added +* `withSecretArchiveSettings(models.SecretArchiveSettings)` was added +* `identity()` was added +* `secretArchiveSettings()` was added +* `commandOutputSettings()` was added +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added +* `withVulnerabilityScanningSettings(models.VulnerabilityScanningSettingsPatch)` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added + +#### `models.VirtualMachine$Definition` was modified + +* `withConsoleExtendedLocation(models.ExtendedLocation)` was added + +#### `models.OsDisk` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterManager$Update` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.ControlPlaneNodePatchConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `administratorConfiguration()` was added + +#### `models.RackList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L3NetworkPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `NetworkCloudManager` was modified + +* `kubernetesClusterFeatures()` was added + +#### `models.BgpServiceLoadBalancerConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AdministratorConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.VolumeList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterAvailableVersion` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageApplianceSkuSlot` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AdministrativeCredentials` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.VirtualMachineList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineConfigurationData` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BmcKeySetPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.SshPublicKey` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RackSkuList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterUpdateVersionParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConsoleList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AgentPoolUpgradeSettings` was modified + +* `maxUnavailable()` was added +* `withDrainTimeout(java.lang.Long)` was added +* `withMaxUnavailable(java.lang.String)` was added +* `drainTimeout()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterManager$Definition` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.KeySetUser` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `withUserPrincipalName(java.lang.String)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `userPrincipalName()` was added + +#### `models.VolumePatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.VirtualMachine` was modified + +* `consoleExtendedLocation()` was added + +#### `models.AgentPoolList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkAttachment` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.HardwareInventoryNetworkInterface` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesCluster$Update` was modified + +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added + +#### `models.AvailableUpgrade` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Cluster$Definition` was modified + +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added +* `withVulnerabilityScanningSettings(models.VulnerabilityScanningSettings)` was added +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `withSecretArchiveSettings(models.SecretArchiveSettings)` was added +* `withAnalyticsOutputSettings(models.AnalyticsOutputSettings)` was added + +#### `models.KubernetesClusterRestartNodeParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.EgressEndpoint` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L3NetworkAttachmentConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Cluster$Update` was modified + +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `withVulnerabilityScanningSettings(models.VulnerabilityScanningSettingsPatch)` was added +* `withSecretArchiveSettings(models.SecretArchiveSettings)` was added +* `withAnalyticsOutputSettings(models.AnalyticsOutputSettings)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added + +#### `models.StorageApplianceConfigurationData` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AttachedNetworkConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L3NetworkList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.MachineSkuSlot` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L2NetworkPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.StorageAppliancePatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesClusterPatchParameters` was modified + +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `administratorConfiguration()` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.RackDefinition` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.VirtualMachinePlacementHint` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterMetricsConfigurationPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L2NetworkAttachmentConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L2NetworkList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.KubernetesClusterNode` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.NetworkInterface` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationDisplay` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterManager` was modified + +* `identity()` was added + +#### `models.ServiceLoadBalancerBgpPeer` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InitialAgentPoolConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added ## 1.1.0-beta.1 (2024-11-21) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md index 05e54f25f52a8..2166319271655 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md @@ -2,7 +2,7 @@ Azure Resource Manager NetworkCloud client library for Java. -This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. 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 NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-networkcloud - 1.1.0-beta.1 + 1.1.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md index cf82527d4cc03..465ec957ff09a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md @@ -213,7 +213,7 @@ import java.util.Map; public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Create.json */ /** @@ -229,7 +229,7 @@ public final class AgentPoolsCreateOrUpdateSamples { .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") .withCount(3L) .withMode(AgentPoolMode.SYSTEM) - .withVmSkuName("NC_XXXX") + .withVmSkuName("NC_P46_224_v1") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExtendedLocation(new ExtendedLocation().withName( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") @@ -251,7 +251,8 @@ public final class AgentPoolsCreateOrUpdateSamples { .withPluginType(KubernetesPluginType.MACVLAN)))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) .create(); } @@ -279,7 +280,7 @@ public final class AgentPoolsCreateOrUpdateSamples { public final class AgentPoolsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Delete.json */ /** @@ -304,7 +305,7 @@ public final class AgentPoolsDeleteSamples { public final class AgentPoolsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Get.json */ /** @@ -330,7 +331,7 @@ public final class AgentPoolsGetSamples { public final class AgentPoolsListByKubernetesClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_ListByKubernetesCluster.json */ /** @@ -363,7 +364,7 @@ import java.util.Map; public final class AgentPoolsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Patch.json */ /** @@ -419,7 +420,7 @@ import java.util.Map; public final class BareMetalMachineKeySetsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Create.json */ /** @@ -477,7 +478,7 @@ public final class BareMetalMachineKeySetsCreateOrUpdateSamples { public final class BareMetalMachineKeySetsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Delete.json */ /** @@ -502,7 +503,7 @@ public final class BareMetalMachineKeySetsDeleteSamples { public final class BareMetalMachineKeySetsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Get.json */ /** @@ -528,7 +529,7 @@ public final class BareMetalMachineKeySetsGetSamples { public final class BareMetalMachineKeySetsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_ListByCluster.json */ /** @@ -561,7 +562,7 @@ import java.util.Map; public final class BareMetalMachineKeySetsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Patch.json */ /** @@ -617,7 +618,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate; public final class BareMetalMachinesCordonSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Cordon.json */ /** @@ -648,7 +649,7 @@ import java.util.Map; public final class BareMetalMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Create.json */ /** @@ -704,7 +705,7 @@ public final class BareMetalMachinesCreateOrUpdateSamples { public final class BareMetalMachinesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Delete.json */ /** @@ -728,7 +729,7 @@ public final class BareMetalMachinesDeleteSamples { public final class BareMetalMachinesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Get.json */ /** @@ -753,7 +754,7 @@ public final class BareMetalMachinesGetByResourceGroupSamples { public final class BareMetalMachinesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_ListBySubscription.json */ /** @@ -777,7 +778,7 @@ public final class BareMetalMachinesListSamples { public final class BareMetalMachinesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_ListByResourceGroup.json */ /** @@ -804,7 +805,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdow public final class BareMetalMachinesPowerOffSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_PowerOff.json */ /** @@ -830,7 +831,7 @@ public final class BareMetalMachinesPowerOffSamples { public final class BareMetalMachinesReimageSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Reimage.json */ /** @@ -857,7 +858,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReplacePara public final class BareMetalMachinesReplaceSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Replace.json */ /** @@ -889,7 +890,7 @@ public final class BareMetalMachinesReplaceSamples { public final class BareMetalMachinesRestartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Restart.json */ /** @@ -916,7 +917,7 @@ import java.util.Arrays; public final class BareMetalMachinesRunCommandSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunCommand.json */ /** @@ -949,7 +950,7 @@ import java.util.Arrays; public final class BareMetalMachinesRunDataExtractsSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunDataExtracts.json */ /** @@ -983,7 +984,7 @@ import java.util.Arrays; public final class BareMetalMachinesRunReadCommandsSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunReadCommands.json */ /** @@ -1015,7 +1016,7 @@ public final class BareMetalMachinesRunReadCommandsSamples { public final class BareMetalMachinesStartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Start.json */ /** @@ -1039,7 +1040,7 @@ public final class BareMetalMachinesStartSamples { public final class BareMetalMachinesUncordonSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Uncordon.json */ /** @@ -1067,7 +1068,7 @@ import java.util.Map; public final class BareMetalMachinesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Patch.json */ /** @@ -1118,7 +1119,7 @@ import java.util.Map; public final class BmcKeySetsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Create.json */ /** @@ -1174,7 +1175,7 @@ public final class BmcKeySetsCreateOrUpdateSamples { public final class BmcKeySetsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Delete.json */ /** @@ -1199,7 +1200,7 @@ public final class BmcKeySetsDeleteSamples { public final class BmcKeySetsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Get.json */ /** @@ -1224,7 +1225,7 @@ public final class BmcKeySetsGetSamples { public final class BmcKeySetsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_ListByCluster.json */ /** @@ -1256,7 +1257,7 @@ import java.util.Map; public final class BmcKeySetsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Patch.json */ /** @@ -1315,7 +1316,7 @@ import java.util.Map; public final class CloudServicesNetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Create.json */ /** @@ -1363,7 +1364,7 @@ public final class CloudServicesNetworksCreateOrUpdateSamples { public final class CloudServicesNetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Delete.json */ /** @@ -1387,7 +1388,7 @@ public final class CloudServicesNetworksDeleteSamples { public final class CloudServicesNetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Get.json */ /** @@ -1412,7 +1413,7 @@ public final class CloudServicesNetworksGetByResourceGroupSamples { public final class CloudServicesNetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_ListBySubscription.json */ /** @@ -1436,7 +1437,7 @@ public final class CloudServicesNetworksListSamples { public final class CloudServicesNetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_ListByResourceGroup.json */ /** @@ -1468,7 +1469,7 @@ import java.util.Map; public final class CloudServicesNetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Patch.json */ /** @@ -1520,7 +1521,7 @@ import java.util.Map; public final class ClusterManagersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Create.json */ /** @@ -1547,7 +1548,7 @@ public final class ClusterManagersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Create_Uami.json */ /** @@ -1598,7 +1599,7 @@ public final class ClusterManagersCreateOrUpdateSamples { public final class ClusterManagersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Delete.json */ /** @@ -1621,7 +1622,7 @@ public final class ClusterManagersDeleteSamples { public final class ClusterManagersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Get.json */ /** @@ -1646,7 +1647,7 @@ public final class ClusterManagersGetByResourceGroupSamples { public final class ClusterManagersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_ListBySubscription.json */ /** @@ -1670,7 +1671,7 @@ public final class ClusterManagersListSamples { public final class ClusterManagersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_ListByResourceGroup.json */ /** @@ -1701,7 +1702,7 @@ import java.util.Map; public final class ClusterManagersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Patch.json */ /** @@ -1750,7 +1751,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersio public final class ClustersContinueUpdateVersionSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ContinueUpdateVersion.json */ /** @@ -1773,9 +1774,8 @@ public final class ClustersContinueUpdateVersionSamples { ```java import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterType; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; @@ -1789,12 +1789,15 @@ import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsContainerScan; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -1805,7 +1808,7 @@ import java.util.Map; public final class ClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Create.json */ /** @@ -1821,37 +1824,41 @@ public final class ClustersCreateOrUpdateSamples { .withExtendedLocation(new ExtendedLocation().withName( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") .withType("CustomLocation")) - .withAggregatorOrSingleRackDefinition(new RackDefinition() - .withBareMetalMachineConfigurationData(Arrays.asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withAggregatorOrSingleRackDefinition( + new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials( + new AdministrativeCredentials() + .withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData().withBmcCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withClusterType(ClusterType.SINGLE_RACK) .withClusterVersion("1.0.0") .withNetworkFabricId( @@ -1861,8 +1868,12 @@ public final class ClustersCreateOrUpdateSamples { .withUserAssignedIdentities(mapOf( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId( + .withAnalyticsOutputSettings(new AnalyticsOutputSettings().withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"))) .withClusterLocation("Foo Street, 3rd Floor, row 9") .withClusterServicePrincipal( new ServicePrincipalInformation().withApplicationId("12345678-1234-1234-1234-123456789012") @@ -1880,8 +1891,9 @@ public final class ClustersCreateOrUpdateSamples { .withValue(90L)) .withComputeRackDefinitions(Arrays.asList(new RackDefinition() .withBareMetalMachineConfigurationData(Arrays.asList( - new BareMetalMachineConfigurationData().withBmcCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) .withBmcMacAddress("AA:BB:CC:DD:EE:FF") .withBootMacAddress("00:BB:CC:DD:EE:FF") .withMachineDetails("extraDetails") @@ -1913,13 +1925,18 @@ public final class ClustersCreateOrUpdateSamples { new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) .withRuntimeProtectionConfiguration( new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) - .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") - .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withVaultUri("https://keyvaultname.vault.azure.net/")) .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) .withStrategyType(ClusterUpdateStrategyType.RACK) .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) .withThresholdValue(4L) .withWaitTimeMinutes(10L)) + .withVulnerabilityScanningSettings(new VulnerabilityScanningSettings() + .withContainerScan(VulnerabilityScanningSettingsContainerScan.ENABLED)) .create(); } @@ -1946,7 +1963,7 @@ public final class ClustersCreateOrUpdateSamples { public final class ClustersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Delete.json */ /** @@ -1972,7 +1989,7 @@ import java.util.Arrays; public final class ClustersDeploySamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Deploy.json */ /** @@ -1988,7 +2005,7 @@ public final class ClustersDeploySamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Deploy_SkipValidation.json */ /** @@ -2015,7 +2032,7 @@ public final class ClustersDeploySamples { public final class ClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Get.json */ /** @@ -2039,7 +2056,7 @@ public final class ClustersGetByResourceGroupSamples { public final class ClustersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ListBySubscription.json */ /** @@ -2062,7 +2079,7 @@ public final class ClustersListSamples { public final class ClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ListByResourceGroup.json */ /** @@ -2089,7 +2106,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameter public final class ClustersScanRuntimeSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ScanRuntime.json */ /** @@ -2111,10 +2128,9 @@ public final class ClustersScanRuntimeSamples { ```java import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; import com.azure.resourcemanager.networkcloud.models.Cluster; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; @@ -2125,11 +2141,14 @@ import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsContainerScan; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsPatch; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -2140,7 +2159,7 @@ import java.util.Map; public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_UpdateStrategy.json */ /** @@ -2164,7 +2183,28 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ + * Clusters_Patch_VulnerabilityScanning.json + */ + /** + * Sample code: Patch vulnerability scanning. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchVulnerabilityScanning(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withVulnerabilityScanningSettings(new VulnerabilityScanningSettingsPatch() + .withContainerScan(VulnerabilityScanningSettingsContainerScan.ENABLED)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_Location.json */ /** @@ -2184,7 +2224,7 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_AggregatorOrSingleRackDefinition.json */ /** @@ -2243,7 +2283,7 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_CommandOutput.json */ /** @@ -2273,7 +2313,7 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_RuntimeProtectionConfiguration.json */ /** @@ -2295,7 +2335,7 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_SecretArchive.json */ /** @@ -2309,8 +2349,42 @@ public final class ClustersUpdateSamples { .getValue(); resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") - .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withVaultUri("https://keyvaultname.vault.azure.net/")) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ + * Clusters_Patch_AnalyticsOutput.json + */ + /** + * Sample code: Patch cluster analytics output. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchClusterAnalyticsOutput(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .withAnalyticsOutputSettings(new AnalyticsOutputSettings().withAnalyticsWorkspaceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"))) .apply(); } @@ -2339,7 +2413,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParamet public final class ClustersUpdateVersionSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_UpdateVersion.json */ /** @@ -2371,7 +2445,7 @@ import java.util.Map; public final class ConsolesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Create.json */ /** @@ -2418,7 +2492,7 @@ public final class ConsolesCreateOrUpdateSamples { public final class ConsolesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Delete.json */ /** @@ -2442,7 +2516,7 @@ public final class ConsolesDeleteSamples { public final class ConsolesGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Get.json */ /** @@ -2466,7 +2540,7 @@ public final class ConsolesGetSamples { public final class ConsolesListByVirtualMachineSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_ListByVirtualMachine.json */ /** @@ -2498,7 +2572,7 @@ import java.util.Map; public final class ConsolesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Patch.json */ /** @@ -2546,7 +2620,7 @@ import java.util.Map; public final class KubernetesClusterFeaturesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Create.json */ /** @@ -2589,7 +2663,7 @@ public final class KubernetesClusterFeaturesCreateOrUpdateSamples { public final class KubernetesClusterFeaturesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Delete.json */ /** @@ -2614,7 +2688,7 @@ public final class KubernetesClusterFeaturesDeleteSamples { public final class KubernetesClusterFeaturesGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Get.json */ /** @@ -2639,7 +2713,7 @@ public final class KubernetesClusterFeaturesGetSamples { public final class KubernetesClusterFeaturesListByKubernetesClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_ListByKubernetesCluster.json */ /** @@ -2670,7 +2744,7 @@ import java.util.Map; public final class KubernetesClusterFeaturesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Patch.json */ /** @@ -2746,7 +2820,7 @@ import java.util.Map; public final class KubernetesClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Create.json */ /** @@ -2768,7 +2842,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withCount(3L) - .withVmSkuName("NC_XXXX")) + .withVmSkuName("NC_G6_28_v1")) .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) @@ -2790,9 +2864,10 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withMode(AgentPoolMode.SYSTEM) .withName("SystemPool-1") - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_XXXX"))) + .withVmSkuName("NC_P46_224_v1"))) .withKubernetesVersion("1.XX.Y") .withNetworkConfiguration(new NetworkConfiguration() .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() @@ -2847,7 +2922,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_L2LoadBalancer_Create.json */ /** @@ -2869,7 +2944,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withCount(3L) - .withVmSkuName("NC_XXXX")) + .withVmSkuName("NC_G6_28_v1")) .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) @@ -2891,9 +2966,10 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withMode(AgentPoolMode.SYSTEM) .withName("SystemPool-1") - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_XXXX"))) + .withVmSkuName("NC_P46_224_v1"))) .withKubernetesVersion("1.XX.Y") .withNetworkConfiguration(new NetworkConfiguration() .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() @@ -2952,7 +3028,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { public final class KubernetesClustersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Delete.json */ /** @@ -2976,7 +3052,7 @@ public final class KubernetesClustersDeleteSamples { public final class KubernetesClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Get.json */ /** @@ -3001,7 +3077,7 @@ public final class KubernetesClustersGetByResourceGroupSamples { public final class KubernetesClustersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_ListBySubscription.json */ /** @@ -3025,7 +3101,7 @@ public final class KubernetesClustersListSamples { public final class KubernetesClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_ListByResourceGroup.json */ /** @@ -3051,7 +3127,7 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNod public final class KubernetesClustersRestartNodeSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_RestartNode.json */ /** @@ -3086,7 +3162,7 @@ import java.util.Map; public final class KubernetesClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Patch.json */ /** @@ -3139,7 +3215,7 @@ import java.util.Map; public final class L2NetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Create.json */ /** @@ -3186,7 +3262,7 @@ public final class L2NetworksCreateOrUpdateSamples { public final class L2NetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Delete.json */ /** @@ -3209,7 +3285,7 @@ public final class L2NetworksDeleteSamples { public final class L2NetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Get.json */ /** @@ -3233,7 +3309,7 @@ public final class L2NetworksGetByResourceGroupSamples { public final class L2NetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_ListBySubscription.json */ /** @@ -3257,7 +3333,7 @@ public final class L2NetworksListSamples { public final class L2NetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_ListByResourceGroup.json */ /** @@ -3285,7 +3361,7 @@ import java.util.Map; public final class L2NetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Patch.json */ /** @@ -3328,7 +3404,7 @@ import java.util.Map; public final class L3NetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Create.json */ /** @@ -3378,7 +3454,7 @@ public final class L3NetworksCreateOrUpdateSamples { public final class L3NetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Delete.json */ /** @@ -3401,7 +3477,7 @@ public final class L3NetworksDeleteSamples { public final class L3NetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Get.json */ /** @@ -3425,7 +3501,7 @@ public final class L3NetworksGetByResourceGroupSamples { public final class L3NetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_ListBySubscription.json */ /** @@ -3449,7 +3525,7 @@ public final class L3NetworksListSamples { public final class L3NetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_ListByResourceGroup.json */ /** @@ -3477,7 +3553,7 @@ import java.util.Map; public final class L3NetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Patch.json */ /** @@ -3520,7 +3596,7 @@ import java.util.Map; public final class MetricsConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Create.json */ /** @@ -3566,7 +3642,7 @@ public final class MetricsConfigurationsCreateOrUpdateSamples { public final class MetricsConfigurationsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Delete.json */ /** @@ -3591,7 +3667,7 @@ public final class MetricsConfigurationsDeleteSamples { public final class MetricsConfigurationsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Get.json */ /** @@ -3616,7 +3692,7 @@ public final class MetricsConfigurationsGetSamples { public final class MetricsConfigurationsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_ListByCluster.json */ /** @@ -3646,7 +3722,7 @@ import java.util.Map; public final class MetricsConfigurationsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Patch.json */ /** @@ -3689,7 +3765,7 @@ public final class MetricsConfigurationsUpdateSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Operations_List.json */ /** @@ -3713,7 +3789,7 @@ public final class OperationsListSamples { public final class RackSkusGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * RackSkus_Get.json */ /** @@ -3736,7 +3812,7 @@ public final class RackSkusGetSamples { public final class RackSkusListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * RackSkus_ListBySubscription.json */ /** @@ -3763,7 +3839,7 @@ import java.util.Map; public final class RacksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Create.json */ /** @@ -3811,7 +3887,7 @@ public final class RacksCreateOrUpdateSamples { public final class RacksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Delete.json */ /** @@ -3834,7 +3910,7 @@ public final class RacksDeleteSamples { public final class RacksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get. + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/Racks_Get. * json */ /** @@ -3858,7 +3934,7 @@ public final class RacksGetByResourceGroupSamples { public final class RacksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_ListBySubscription.json */ /** @@ -3881,7 +3957,7 @@ public final class RacksListSamples { public final class RacksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_ListByResourceGroup.json */ /** @@ -3908,7 +3984,7 @@ import java.util.Map; public final class RacksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Patch.json */ /** @@ -3955,7 +4031,7 @@ import java.util.Map; public final class StorageAppliancesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Create.json */ /** @@ -4006,7 +4082,7 @@ public final class StorageAppliancesCreateOrUpdateSamples { public final class StorageAppliancesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Delete.json */ /** @@ -4030,7 +4106,7 @@ public final class StorageAppliancesDeleteSamples { public final class StorageAppliancesDisableRemoteVendorManagementSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_DisableRemoteVendorManagement.json */ /** @@ -4059,7 +4135,7 @@ import java.util.Arrays; public final class StorageAppliancesEnableRemoteVendorManagementSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_EnableRemoteVendorManagement.json */ /** @@ -4087,7 +4163,7 @@ public final class StorageAppliancesEnableRemoteVendorManagementSamples { public final class StorageAppliancesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Get.json */ /** @@ -4112,7 +4188,7 @@ public final class StorageAppliancesGetByResourceGroupSamples { public final class StorageAppliancesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_ListBySubscription.json */ /** @@ -4136,7 +4212,7 @@ public final class StorageAppliancesListSamples { public final class StorageAppliancesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_ListByResourceGroup.json */ /** @@ -4164,7 +4240,7 @@ import java.util.Map; public final class StorageAppliancesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Patch.json */ /** @@ -4211,7 +4287,7 @@ import java.util.Map; public final class TrunkedNetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Create.json */ /** @@ -4260,7 +4336,7 @@ public final class TrunkedNetworksCreateOrUpdateSamples { public final class TrunkedNetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Delete.json */ /** @@ -4283,7 +4359,7 @@ public final class TrunkedNetworksDeleteSamples { public final class TrunkedNetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Get.json */ /** @@ -4308,7 +4384,7 @@ public final class TrunkedNetworksGetByResourceGroupSamples { public final class TrunkedNetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_ListBySubscription.json */ /** @@ -4332,7 +4408,7 @@ public final class TrunkedNetworksListSamples { public final class TrunkedNetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_ListByResourceGroup.json */ /** @@ -4360,7 +4436,7 @@ import java.util.Map; public final class TrunkedNetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Patch.json */ /** @@ -4418,7 +4494,7 @@ import java.util.Map; public final class VirtualMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Create.json */ /** @@ -4496,7 +4572,7 @@ public final class VirtualMachinesCreateOrUpdateSamples { public final class VirtualMachinesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Delete.json */ /** @@ -4519,7 +4595,7 @@ public final class VirtualMachinesDeleteSamples { public final class VirtualMachinesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Get.json */ /** @@ -4544,7 +4620,7 @@ public final class VirtualMachinesGetByResourceGroupSamples { public final class VirtualMachinesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_ListBySubscription.json */ /** @@ -4568,7 +4644,7 @@ public final class VirtualMachinesListSamples { public final class VirtualMachinesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_ListByResourceGroup.json */ /** @@ -4595,7 +4671,7 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParam public final class VirtualMachinesPowerOffSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_PowerOff.json */ /** @@ -4621,7 +4697,7 @@ public final class VirtualMachinesPowerOffSamples { public final class VirtualMachinesReimageSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Reimage.json */ /** @@ -4644,7 +4720,7 @@ public final class VirtualMachinesReimageSamples { public final class VirtualMachinesRestartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Restart.json */ /** @@ -4667,7 +4743,7 @@ public final class VirtualMachinesRestartSamples { public final class VirtualMachinesStartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Start.json */ /** @@ -4695,7 +4771,7 @@ import java.util.Map; public final class VirtualMachinesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Patch.json */ /** @@ -4742,7 +4818,7 @@ import java.util.Map; public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Create.json */ /** @@ -4786,7 +4862,7 @@ public final class VolumesCreateOrUpdateSamples { public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Delete.json */ /** @@ -4809,7 +4885,7 @@ public final class VolumesDeleteSamples { public final class VolumesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Get.json */ /** @@ -4833,7 +4909,7 @@ public final class VolumesGetByResourceGroupSamples { public final class VolumesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_ListBySubscription.json */ /** @@ -4856,7 +4932,7 @@ public final class VolumesListSamples { public final class VolumesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_ListByResourceGroup.json */ /** @@ -4883,7 +4959,7 @@ import java.util.Map; public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml index de82ab0b18cfd..33d36de3b3d80 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for NetworkCloud Management - This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. + This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java index 3693f811cf422..d31c7b15d521f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java @@ -282,7 +282,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.networkcloud") .append("/") - .append("1.1.0-beta.1"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java index 2a8783fe99468..3da1bfd043dd9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java @@ -11,6 +11,7 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus; @@ -26,8 +27,10 @@ import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings; import java.io.IOException; import java.util.List; import java.util.Map; @@ -210,8 +213,33 @@ public ClusterInner withAggregatorOrSingleRackDefinition(RackDefinition aggregat } /** - * Get the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for - * storing relevant logs. + * Get the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs + * from this cluster. + * + * @return the analyticsOutputSettings value. + */ + public AnalyticsOutputSettings analyticsOutputSettings() { + return this.innerProperties() == null ? null : this.innerProperties().analyticsOutputSettings(); + } + + /** + * Set the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs + * from this cluster. + * + * @param analyticsOutputSettings the analyticsOutputSettings value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withAnalyticsOutputSettings(analyticsOutputSettings); + return this; + } + + /** + * Get the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics Workspace that will + * be used for storing relevant logs. * * @return the analyticsWorkspaceId value. */ @@ -220,8 +248,8 @@ public String analyticsWorkspaceId() { } /** - * Set the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for - * storing relevant logs. + * Set the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics Workspace that will + * be used for storing relevant logs. * * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. * @return the ClusterInner object itself. @@ -610,6 +638,31 @@ public ClusterInner withSecretArchive(ClusterSecretArchive secretArchive) { return this; } + /** + * Get the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the + * cluster. + * + * @return the secretArchiveSettings value. + */ + public SecretArchiveSettings secretArchiveSettings() { + return this.innerProperties() == null ? null : this.innerProperties().secretArchiveSettings(); + } + + /** + * Set the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the + * cluster. + * + * @param secretArchiveSettings the secretArchiveSettings value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withSecretArchiveSettings(secretArchiveSettings); + return this; + } + /** * Get the supportExpiryDate property: The support end date of the runtime version of the cluster. * @@ -642,6 +695,31 @@ public ClusterInner withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { return this; } + /** + * Get the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied + * to the cluster. + * + * @return the vulnerabilityScanningSettings value. + */ + public VulnerabilityScanningSettings vulnerabilityScanningSettings() { + return this.innerProperties() == null ? null : this.innerProperties().vulnerabilityScanningSettings(); + } + + /** + * Set the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied + * to the cluster. + * + * @param vulnerabilityScanningSettings the vulnerabilityScanningSettings value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withVulnerabilityScanningSettings(VulnerabilityScanningSettings vulnerabilityScanningSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withVulnerabilityScanningSettings(vulnerabilityScanningSettings); + return this; + } + /** * Get the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster. * diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java index 1137581d05072..57b3e15101590 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java @@ -9,13 +9,16 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsPatch; import java.io.IOException; import java.util.List; @@ -30,6 +33,11 @@ public final class ClusterPatchProperties implements JsonSerializable writer.writeJson(element)); jsonWriter.writeJsonField("runtimeProtectionConfiguration", this.runtimeProtectionConfiguration); jsonWriter.writeJsonField("secretArchive", this.secretArchive); + jsonWriter.writeJsonField("secretArchiveSettings", this.secretArchiveSettings); jsonWriter.writeJsonField("updateStrategy", this.updateStrategy); + jsonWriter.writeJsonField("vulnerabilityScanningSettings", this.vulnerabilityScanningSettings); return jsonWriter.writeEndObject(); } @@ -344,6 +441,9 @@ public static ClusterPatchProperties fromJson(JsonReader jsonReader) throws IOEx if ("aggregatorOrSingleRackDefinition".equals(fieldName)) { deserializedClusterPatchProperties.aggregatorOrSingleRackDefinition = RackDefinition.fromJson(reader); + } else if ("analyticsOutputSettings".equals(fieldName)) { + deserializedClusterPatchProperties.analyticsOutputSettings + = AnalyticsOutputSettings.fromJson(reader); } else if ("clusterLocation".equals(fieldName)) { deserializedClusterPatchProperties.clusterLocation = reader.getString(); } else if ("clusterServicePrincipal".equals(fieldName)) { @@ -363,8 +463,13 @@ public static ClusterPatchProperties fromJson(JsonReader jsonReader) throws IOEx = RuntimeProtectionConfiguration.fromJson(reader); } else if ("secretArchive".equals(fieldName)) { deserializedClusterPatchProperties.secretArchive = ClusterSecretArchive.fromJson(reader); + } else if ("secretArchiveSettings".equals(fieldName)) { + deserializedClusterPatchProperties.secretArchiveSettings = SecretArchiveSettings.fromJson(reader); } else if ("updateStrategy".equals(fieldName)) { deserializedClusterPatchProperties.updateStrategy = ClusterUpdateStrategy.fromJson(reader); + } else if ("vulnerabilityScanningSettings".equals(fieldName)) { + deserializedClusterPatchProperties.vulnerabilityScanningSettings + = VulnerabilityScanningSettingsPatch.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java index c3402ea13f408..3e8bbc08eb398 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus; @@ -24,8 +25,10 @@ import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings; import java.io.IOException; import java.util.List; @@ -41,7 +44,12 @@ public final class ClusterProperties implements JsonSerializable e.validate()); } @@ -668,9 +756,15 @@ public void validate() { if (secretArchive() != null) { secretArchive().validate(); } + if (secretArchiveSettings() != null) { + secretArchiveSettings().validate(); + } if (updateStrategy() != null) { updateStrategy().validate(); } + if (vulnerabilityScanningSettings() != null) { + vulnerabilityScanningSettings().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(ClusterProperties.class); @@ -685,6 +779,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("clusterType", this.clusterType == null ? null : this.clusterType.toString()); jsonWriter.writeStringField("clusterVersion", this.clusterVersion); jsonWriter.writeStringField("networkFabricId", this.networkFabricId); + jsonWriter.writeJsonField("analyticsOutputSettings", this.analyticsOutputSettings); jsonWriter.writeStringField("analyticsWorkspaceId", this.analyticsWorkspaceId); jsonWriter.writeStringField("clusterLocation", this.clusterLocation); jsonWriter.writeJsonField("clusterServicePrincipal", this.clusterServicePrincipal); @@ -695,7 +790,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("managedResourceGroupConfiguration", this.managedResourceGroupConfiguration); jsonWriter.writeJsonField("runtimeProtectionConfiguration", this.runtimeProtectionConfiguration); jsonWriter.writeJsonField("secretArchive", this.secretArchive); + jsonWriter.writeJsonField("secretArchiveSettings", this.secretArchiveSettings); jsonWriter.writeJsonField("updateStrategy", this.updateStrategy); + jsonWriter.writeJsonField("vulnerabilityScanningSettings", this.vulnerabilityScanningSettings); return jsonWriter.writeEndObject(); } @@ -723,6 +820,8 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedClusterProperties.clusterVersion = reader.getString(); } else if ("networkFabricId".equals(fieldName)) { deserializedClusterProperties.networkFabricId = reader.getString(); + } else if ("analyticsOutputSettings".equals(fieldName)) { + deserializedClusterProperties.analyticsOutputSettings = AnalyticsOutputSettings.fromJson(reader); } else if ("analyticsWorkspaceId".equals(fieldName)) { deserializedClusterProperties.analyticsWorkspaceId = reader.getString(); } else if ("availableUpgradeVersions".equals(fieldName)) { @@ -773,10 +872,15 @@ public static ClusterProperties fromJson(JsonReader jsonReader) throws IOExcepti = RuntimeProtectionConfiguration.fromJson(reader); } else if ("secretArchive".equals(fieldName)) { deserializedClusterProperties.secretArchive = ClusterSecretArchive.fromJson(reader); + } else if ("secretArchiveSettings".equals(fieldName)) { + deserializedClusterProperties.secretArchiveSettings = SecretArchiveSettings.fromJson(reader); } else if ("supportExpiryDate".equals(fieldName)) { deserializedClusterProperties.supportExpiryDate = reader.getString(); } else if ("updateStrategy".equals(fieldName)) { deserializedClusterProperties.updateStrategy = ClusterUpdateStrategy.fromJson(reader); + } else if ("vulnerabilityScanningSettings".equals(fieldName)) { + deserializedClusterProperties.vulnerabilityScanningSettings + = VulnerabilityScanningSettings.fromJson(reader); } else if ("workloadResourceIds".equals(fieldName)) { List workloadResourceIds = reader.readArray(reader1 -> reader1.getString()); deserializedClusterProperties.workloadResourceIds = workloadResourceIds; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java index 6aa4224847f06..014c7c9c52054 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java @@ -175,7 +175,7 @@ public StorageApplianceInner withAdministratorCredentials(AdministrativeCredenti } /** - * Get the capacity property: The total capacity of the storage appliance. + * Get the capacity property: The total capacity of the storage appliance. Measured in GiB. * * @return the capacity value. */ @@ -193,7 +193,8 @@ public Long capacityUsed() { } /** - * Get the clusterId property: The resource ID of the cluster this storage appliance is associated with. + * Get the clusterId property: The resource ID of the cluster this storage appliance is associated with. Measured in + * GiB. * * @return the clusterId value. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java index bae2a7ae14b29..58b6eb3969ffc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java @@ -30,7 +30,7 @@ public final class StorageApplianceProperties implements JsonSerializable e.validate()); } @@ -629,6 +658,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("storageProfile", this.storageProfile); jsonWriter.writeStringField("vmImage", this.vmImage); jsonWriter.writeStringField("bootMethod", this.bootMethod == null ? null : this.bootMethod.toString()); + jsonWriter.writeJsonField("consoleExtendedLocation", this.consoleExtendedLocation); jsonWriter.writeStringField("isolateEmulatorThread", this.isolateEmulatorThread == null ? null : this.isolateEmulatorThread.toString()); jsonWriter.writeArrayField("networkAttachments", this.networkAttachments, @@ -683,6 +713,8 @@ public static VirtualMachineProperties fromJson(JsonReader jsonReader) throws IO = VirtualMachineBootMethod.fromString(reader.getString()); } else if ("clusterId".equals(fieldName)) { deserializedVirtualMachineProperties.clusterId = reader.getString(); + } else if ("consoleExtendedLocation".equals(fieldName)) { + deserializedVirtualMachineProperties.consoleExtendedLocation = ExtendedLocation.fromJson(reader); } else if ("detailedStatus".equals(fieldName)) { deserializedVirtualMachineProperties.detailedStatus = VirtualMachineDetailedStatus.fromString(reader.getString()); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java index b9a5208b28b64..c96ba5a6d75eb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java @@ -8,6 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.Cluster; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; @@ -30,8 +31,11 @@ import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsPatch; import java.util.Collections; import java.util.List; import java.util.Map; @@ -82,6 +86,10 @@ public RackDefinition aggregatorOrSingleRackDefinition() { return this.innerModel().aggregatorOrSingleRackDefinition(); } + public AnalyticsOutputSettings analyticsOutputSettings() { + return this.innerModel().analyticsOutputSettings(); + } + public String analyticsWorkspaceId() { return this.innerModel().analyticsWorkspaceId(); } @@ -184,6 +192,10 @@ public ClusterSecretArchive secretArchive() { return this.innerModel().secretArchive(); } + public SecretArchiveSettings secretArchiveSettings() { + return this.innerModel().secretArchiveSettings(); + } + public String supportExpiryDate() { return this.innerModel().supportExpiryDate(); } @@ -192,6 +204,10 @@ public ClusterUpdateStrategy updateStrategy() { return this.innerModel().updateStrategy(); } + public VulnerabilityScanningSettings vulnerabilityScanningSettings() { + return this.innerModel().vulnerabilityScanningSettings(); + } + public List workloadResourceIds() { List inner = this.innerModel().workloadResourceIds(); if (inner != null) { @@ -394,6 +410,16 @@ public ClusterImpl withIdentity(ManagedServiceIdentity identity) { } } + public ClusterImpl withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings) { + if (isInCreateMode()) { + this.innerModel().withAnalyticsOutputSettings(analyticsOutputSettings); + return this; + } else { + this.updateClusterUpdateParameters.withAnalyticsOutputSettings(analyticsOutputSettings); + return this; + } + } + public ClusterImpl withAnalyticsWorkspaceId(String analyticsWorkspaceId) { this.innerModel().withAnalyticsWorkspaceId(analyticsWorkspaceId); return this; @@ -476,6 +502,16 @@ public ClusterImpl withSecretArchive(ClusterSecretArchive secretArchive) { } } + public ClusterImpl withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) { + if (isInCreateMode()) { + this.innerModel().withSecretArchiveSettings(secretArchiveSettings); + return this; + } else { + this.updateClusterUpdateParameters.withSecretArchiveSettings(secretArchiveSettings); + return this; + } + } + public ClusterImpl withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { if (isInCreateMode()) { this.innerModel().withUpdateStrategy(updateStrategy); @@ -486,6 +522,17 @@ public ClusterImpl withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { } } + public ClusterImpl withVulnerabilityScanningSettings(VulnerabilityScanningSettings vulnerabilityScanningSettings) { + this.innerModel().withVulnerabilityScanningSettings(vulnerabilityScanningSettings); + return this; + } + + public ClusterImpl + withVulnerabilityScanningSettings(VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings) { + this.updateClusterUpdateParameters.withVulnerabilityScanningSettings(vulnerabilityScanningSettings); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java index a84712d0664c5..d94649122bc17 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java @@ -439,7 +439,7 @@ public ConsolesClient getConsoles() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-06-01-preview"; + this.apiVersion = "2024-10-01-preview"; this.operations = new OperationsClientImpl(this); this.bareMetalMachines = new BareMetalMachinesClientImpl(this); this.cloudServicesNetworks = new CloudServicesNetworksClientImpl(this); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java index f291fc2b02181..901e3dc8864b3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java @@ -91,6 +91,10 @@ public String clusterId() { return this.innerModel().clusterId(); } + public ExtendedLocation consoleExtendedLocation() { + return this.innerModel().consoleExtendedLocation(); + } + public long cpuCores() { return this.innerModel().cpuCores(); } @@ -371,6 +375,11 @@ public VirtualMachineImpl withBootMethod(VirtualMachineBootMethod bootMethod) { return this; } + public VirtualMachineImpl withConsoleExtendedLocation(ExtendedLocation consoleExtendedLocation) { + this.innerModel().withConsoleExtendedLocation(consoleExtendedLocation); + return this; + } + public VirtualMachineImpl withIsolateEmulatorThread(VirtualMachineIsolateEmulatorThread isolateEmulatorThread) { this.innerModel().withIsolateEmulatorThread(isolateEmulatorThread); return this; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AnalyticsOutputSettings.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AnalyticsOutputSettings.java new file mode 100644 index 0000000000000..280c5bf6a4fd5 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AnalyticsOutputSettings.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * AnalyticsOutputSettings represents the settings for the log analytics workspace used for output of logs from this + * cluster. + */ +@Fluent +public final class AnalyticsOutputSettings implements JsonSerializable { + /* + * The resource ID of the analytics workspace that is to be used by the specified identity. + */ + private String analyticsWorkspaceId; + + /* + * The selection of the managed identity to use with this analytics workspace. The identity type must be either + * system assigned or user assigned. + */ + private IdentitySelector associatedIdentity; + + /** + * Creates an instance of AnalyticsOutputSettings class. + */ + public AnalyticsOutputSettings() { + } + + /** + * Get the analyticsWorkspaceId property: The resource ID of the analytics workspace that is to be used by the + * specified identity. + * + * @return the analyticsWorkspaceId value. + */ + public String analyticsWorkspaceId() { + return this.analyticsWorkspaceId; + } + + /** + * Set the analyticsWorkspaceId property: The resource ID of the analytics workspace that is to be used by the + * specified identity. + * + * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. + * @return the AnalyticsOutputSettings object itself. + */ + public AnalyticsOutputSettings withAnalyticsWorkspaceId(String analyticsWorkspaceId) { + this.analyticsWorkspaceId = analyticsWorkspaceId; + return this; + } + + /** + * Get the associatedIdentity property: The selection of the managed identity to use with this analytics workspace. + * The identity type must be either system assigned or user assigned. + * + * @return the associatedIdentity value. + */ + public IdentitySelector associatedIdentity() { + return this.associatedIdentity; + } + + /** + * Set the associatedIdentity property: The selection of the managed identity to use with this analytics workspace. + * The identity type must be either system assigned or user assigned. + * + * @param associatedIdentity the associatedIdentity value to set. + * @return the AnalyticsOutputSettings object itself. + */ + public AnalyticsOutputSettings withAssociatedIdentity(IdentitySelector associatedIdentity) { + this.associatedIdentity = associatedIdentity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (associatedIdentity() != null) { + associatedIdentity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("analyticsWorkspaceId", this.analyticsWorkspaceId); + jsonWriter.writeJsonField("associatedIdentity", this.associatedIdentity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AnalyticsOutputSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AnalyticsOutputSettings if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the AnalyticsOutputSettings. + */ + public static AnalyticsOutputSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AnalyticsOutputSettings deserializedAnalyticsOutputSettings = new AnalyticsOutputSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("analyticsWorkspaceId".equals(fieldName)) { + deserializedAnalyticsOutputSettings.analyticsWorkspaceId = reader.getString(); + } else if ("associatedIdentity".equals(fieldName)) { + deserializedAnalyticsOutputSettings.associatedIdentity = IdentitySelector.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAnalyticsOutputSettings; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java index c8430730e8d8d..77f2f7f0b5932 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java @@ -23,7 +23,9 @@ public final class BareMetalMachineConfigurationData implements JsonSerializable private String bmcConnectionString; /* - * The credentials of the baseboard management controller on this bare metal machine. + * The credentials of the baseboard management controller on this bare metal machine. The password field is expected + * to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the + * secret archive settings, the actual password value should be provided instead. */ private AdministrativeCredentials bmcCredentials; @@ -76,7 +78,9 @@ public String bmcConnectionString() { /** * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal - * machine. + * machine. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to + * utilize managed identity by setting the secret archive settings, the actual password value should be provided + * instead. * * @return the bmcCredentials value. */ @@ -86,7 +90,9 @@ public AdministrativeCredentials bmcCredentials() { /** * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal - * machine. + * machine. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to + * utilize managed identity by setting the secret archive settings, the actual password value should be provided + * instead. * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineConfigurationData object itself. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java index 9c59b9ddb11ec..c88b6f4e6f85d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java @@ -18,7 +18,9 @@ @Fluent public final class BareMetalMachineReplaceParameters implements JsonSerializable { /* - * The credentials of the baseboard management controller on this bare metal machine. + * The credentials of the baseboard management controller on this bare metal machine. The password field is expected + * to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the + * secret archive settings, the actual password value should be provided instead. */ private AdministrativeCredentials bmcCredentials; @@ -50,7 +52,9 @@ public BareMetalMachineReplaceParameters() { /** * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal - * machine. + * machine. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to + * utilize managed identity by setting the secret archive settings, the actual password value should be provided + * instead. * * @return the bmcCredentials value. */ @@ -60,7 +64,9 @@ public AdministrativeCredentials bmcCredentials() { /** * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal - * machine. + * machine. The password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to + * utilize managed identity by setting the secret archive settings, the actual password value should be provided + * instead. * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineReplaceParameters object itself. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java index c824d09a4bb29..2c71901a8b010 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java @@ -80,8 +80,16 @@ public interface Cluster { RackDefinition aggregatorOrSingleRackDefinition(); /** - * Gets the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for - * storing relevant logs. + * Gets the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs + * from this cluster. + * + * @return the analyticsOutputSettings value. + */ + AnalyticsOutputSettings analyticsOutputSettings(); + + /** + * Gets the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics Workspace that + * will be used for storing relevant logs. * * @return the analyticsWorkspaceId value. */ @@ -256,6 +264,14 @@ public interface Cluster { */ ClusterSecretArchive secretArchive(); + /** + * Gets the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the + * cluster. + * + * @return the secretArchiveSettings value. + */ + SecretArchiveSettings secretArchiveSettings(); + /** * Gets the supportExpiryDate property: The support end date of the runtime version of the cluster. * @@ -270,6 +286,14 @@ public interface Cluster { */ ClusterUpdateStrategy updateStrategy(); + /** + * Gets the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied + * to the cluster. + * + * @return the vulnerabilityScanningSettings value. + */ + VulnerabilityScanningSettings vulnerabilityScanningSettings(); + /** * Gets the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster. * @@ -432,11 +456,13 @@ interface WithNetworkFabricId { * created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithAnalyticsWorkspaceId, DefinitionStages.WithClusterLocation, - DefinitionStages.WithClusterServicePrincipal, DefinitionStages.WithCommandOutputSettings, - DefinitionStages.WithComputeDeploymentThreshold, DefinitionStages.WithComputeRackDefinitions, - DefinitionStages.WithManagedResourceGroupConfiguration, DefinitionStages.WithRuntimeProtectionConfiguration, - DefinitionStages.WithSecretArchive, DefinitionStages.WithUpdateStrategy { + DefinitionStages.WithAnalyticsOutputSettings, DefinitionStages.WithAnalyticsWorkspaceId, + DefinitionStages.WithClusterLocation, DefinitionStages.WithClusterServicePrincipal, + DefinitionStages.WithCommandOutputSettings, DefinitionStages.WithComputeDeploymentThreshold, + DefinitionStages.WithComputeRackDefinitions, DefinitionStages.WithManagedResourceGroupConfiguration, + DefinitionStages.WithRuntimeProtectionConfiguration, DefinitionStages.WithSecretArchive, + DefinitionStages.WithSecretArchiveSettings, DefinitionStages.WithUpdateStrategy, + DefinitionStages.WithVulnerabilityScanningSettings { /** * Executes the create request. * @@ -479,16 +505,31 @@ interface WithIdentity { WithCreate withIdentity(ManagedServiceIdentity identity); } + /** + * The stage of the Cluster definition allowing to specify analyticsOutputSettings. + */ + interface WithAnalyticsOutputSettings { + /** + * Specifies the analyticsOutputSettings property: The settings for the log analytics workspace used for + * output of logs from this cluster.. + * + * @param analyticsOutputSettings The settings for the log analytics workspace used for output of logs from + * this cluster. + * @return the next definition stage. + */ + WithCreate withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings); + } + /** * The stage of the Cluster definition allowing to specify analyticsWorkspaceId. */ interface WithAnalyticsWorkspaceId { /** - * Specifies the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be - * used for storing relevant logs.. + * Specifies the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics + * Workspace that will be used for storing relevant logs.. * - * @param analyticsWorkspaceId The resource ID of the Log Analytics Workspace that will be used for storing - * relevant logs. + * @param analyticsWorkspaceId Field Deprecated. The resource ID of the Log Analytics Workspace that will be + * used for storing relevant logs. * @return the next definition stage. */ WithCreate withAnalyticsWorkspaceId(String analyticsWorkspaceId); @@ -614,6 +655,21 @@ interface WithSecretArchive { WithCreate withSecretArchive(ClusterSecretArchive secretArchive); } + /** + * The stage of the Cluster definition allowing to specify secretArchiveSettings. + */ + interface WithSecretArchiveSettings { + /** + * Specifies the secretArchiveSettings property: The settings for the secret archive used to hold + * credentials for the cluster.. + * + * @param secretArchiveSettings The settings for the secret archive used to hold credentials for the + * cluster. + * @return the next definition stage. + */ + WithCreate withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings); + } + /** * The stage of the Cluster definition allowing to specify updateStrategy. */ @@ -626,6 +682,21 @@ interface WithUpdateStrategy { */ WithCreate withUpdateStrategy(ClusterUpdateStrategy updateStrategy); } + + /** + * The stage of the Cluster definition allowing to specify vulnerabilityScanningSettings. + */ + interface WithVulnerabilityScanningSettings { + /** + * Specifies the vulnerabilityScanningSettings property: The settings for how security vulnerability + * scanning is applied to the cluster.. + * + * @param vulnerabilityScanningSettings The settings for how security vulnerability scanning is applied to + * the cluster. + * @return the next definition stage. + */ + WithCreate withVulnerabilityScanningSettings(VulnerabilityScanningSettings vulnerabilityScanningSettings); + } } /** @@ -638,12 +709,13 @@ interface WithUpdateStrategy { /** * The template for Cluster update. */ - interface Update - extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithAggregatorOrSingleRackDefinition, + interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, + UpdateStages.WithAggregatorOrSingleRackDefinition, UpdateStages.WithAnalyticsOutputSettings, UpdateStages.WithClusterLocation, UpdateStages.WithClusterServicePrincipal, UpdateStages.WithCommandOutputSettings, UpdateStages.WithComputeDeploymentThreshold, UpdateStages.WithComputeRackDefinitions, UpdateStages.WithRuntimeProtectionConfiguration, - UpdateStages.WithSecretArchive, UpdateStages.WithUpdateStrategy { + UpdateStages.WithSecretArchive, UpdateStages.WithSecretArchiveSettings, UpdateStages.WithUpdateStrategy, + UpdateStages.WithVulnerabilityScanningSettings { /** * Executes the update request. * @@ -705,6 +777,21 @@ interface WithAggregatorOrSingleRackDefinition { Update withAggregatorOrSingleRackDefinition(RackDefinition aggregatorOrSingleRackDefinition); } + /** + * The stage of the Cluster update allowing to specify analyticsOutputSettings. + */ + interface WithAnalyticsOutputSettings { + /** + * Specifies the analyticsOutputSettings property: The settings for the log analytics workspace used for + * output of logs from this cluster.. + * + * @param analyticsOutputSettings The settings for the log analytics workspace used for output of logs from + * this cluster. + * @return the next definition stage. + */ + Update withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings); + } + /** * The stage of the Cluster update allowing to specify clusterLocation. */ @@ -808,6 +895,21 @@ interface WithSecretArchive { Update withSecretArchive(ClusterSecretArchive secretArchive); } + /** + * The stage of the Cluster update allowing to specify secretArchiveSettings. + */ + interface WithSecretArchiveSettings { + /** + * Specifies the secretArchiveSettings property: The settings for the secret archive used to hold + * credentials for the cluster.. + * + * @param secretArchiveSettings The settings for the secret archive used to hold credentials for the + * cluster. + * @return the next definition stage. + */ + Update withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings); + } + /** * The stage of the Cluster update allowing to specify updateStrategy. */ @@ -820,6 +922,21 @@ interface WithUpdateStrategy { */ Update withUpdateStrategy(ClusterUpdateStrategy updateStrategy); } + + /** + * The stage of the Cluster update allowing to specify vulnerabilityScanningSettings. + */ + interface WithVulnerabilityScanningSettings { + /** + * Specifies the vulnerabilityScanningSettings property: The settings for how security vulnerability + * scanning is applied to the cluster.. + * + * @param vulnerabilityScanningSettings The settings for how security vulnerability scanning is applied to + * the cluster. + * @return the next definition stage. + */ + Update withVulnerabilityScanningSettings(VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings); + } } /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java index 8a36c145506bb..a46701e553700 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java @@ -115,6 +115,31 @@ public RackDefinition aggregatorOrSingleRackDefinition() { return this; } + /** + * Get the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs + * from this cluster. + * + * @return the analyticsOutputSettings value. + */ + public AnalyticsOutputSettings analyticsOutputSettings() { + return this.innerProperties() == null ? null : this.innerProperties().analyticsOutputSettings(); + } + + /** + * Set the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs + * from this cluster. + * + * @param analyticsOutputSettings the analyticsOutputSettings value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withAnalyticsOutputSettings(analyticsOutputSettings); + return this; + } + /** * Get the clusterLocation property: The customer-provided location information to identify where the cluster * resides. @@ -289,6 +314,31 @@ public ClusterPatchParameters withSecretArchive(ClusterSecretArchive secretArchi return this; } + /** + * Get the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the + * cluster. + * + * @return the secretArchiveSettings value. + */ + public SecretArchiveSettings secretArchiveSettings() { + return this.innerProperties() == null ? null : this.innerProperties().secretArchiveSettings(); + } + + /** + * Set the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the + * cluster. + * + * @param secretArchiveSettings the secretArchiveSettings value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withSecretArchiveSettings(secretArchiveSettings); + return this; + } + /** * Get the updateStrategy property: The strategy for updating the cluster. * @@ -312,6 +362,32 @@ public ClusterPatchParameters withUpdateStrategy(ClusterUpdateStrategy updateStr return this; } + /** + * Get the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied + * to the cluster. + * + * @return the vulnerabilityScanningSettings value. + */ + public VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings() { + return this.innerProperties() == null ? null : this.innerProperties().vulnerabilityScanningSettings(); + } + + /** + * Set the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied + * to the cluster. + * + * @param vulnerabilityScanningSettings the vulnerabilityScanningSettings value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters + withVulnerabilityScanningSettings(VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withVulnerabilityScanningSettings(vulnerabilityScanningSettings); + return this; + } + /** * Validates the instance. * diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java index 639de323edc25..e63cc87d1eefc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java @@ -16,6 +16,11 @@ public final class OsDiskCreateOption extends ExpandableStringEnum { + /* + * The selection of the managed identity to use with this vault URI. The identity type must be either system + * assigned or user assigned. + */ + private IdentitySelector associatedIdentity; + + /* + * The URI for the key vault used as the secret archive. + */ + private String vaultUri; + + /** + * Creates an instance of SecretArchiveSettings class. + */ + public SecretArchiveSettings() { + } + + /** + * Get the associatedIdentity property: The selection of the managed identity to use with this vault URI. The + * identity type must be either system assigned or user assigned. + * + * @return the associatedIdentity value. + */ + public IdentitySelector associatedIdentity() { + return this.associatedIdentity; + } + + /** + * Set the associatedIdentity property: The selection of the managed identity to use with this vault URI. The + * identity type must be either system assigned or user assigned. + * + * @param associatedIdentity the associatedIdentity value to set. + * @return the SecretArchiveSettings object itself. + */ + public SecretArchiveSettings withAssociatedIdentity(IdentitySelector associatedIdentity) { + this.associatedIdentity = associatedIdentity; + return this; + } + + /** + * Get the vaultUri property: The URI for the key vault used as the secret archive. + * + * @return the vaultUri value. + */ + public String vaultUri() { + return this.vaultUri; + } + + /** + * Set the vaultUri property: The URI for the key vault used as the secret archive. + * + * @param vaultUri the vaultUri value to set. + * @return the SecretArchiveSettings object itself. + */ + public SecretArchiveSettings withVaultUri(String vaultUri) { + this.vaultUri = vaultUri; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (associatedIdentity() != null) { + associatedIdentity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("associatedIdentity", this.associatedIdentity); + jsonWriter.writeStringField("vaultUri", this.vaultUri); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecretArchiveSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecretArchiveSettings if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the SecretArchiveSettings. + */ + public static SecretArchiveSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecretArchiveSettings deserializedSecretArchiveSettings = new SecretArchiveSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("associatedIdentity".equals(fieldName)) { + deserializedSecretArchiveSettings.associatedIdentity = IdentitySelector.fromJson(reader); + } else if ("vaultUri".equals(fieldName)) { + deserializedSecretArchiveSettings.vaultUri = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSecretArchiveSettings; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java index 9eb6a39d46e5a..a62151cf54bc7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java @@ -73,7 +73,7 @@ public interface StorageAppliance { AdministrativeCredentials administratorCredentials(); /** - * Gets the capacity property: The total capacity of the storage appliance. + * Gets the capacity property: The total capacity of the storage appliance. Measured in GiB. * * @return the capacity value. */ @@ -87,7 +87,8 @@ public interface StorageAppliance { Long capacityUsed(); /** - * Gets the clusterId property: The resource ID of the cluster this storage appliance is associated with. + * Gets the clusterId property: The resource ID of the cluster this storage appliance is associated with. Measured + * in GiB. * * @return the clusterId value. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java index 6569cafe080a7..17c81727a2035 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java @@ -18,7 +18,9 @@ @Fluent public final class StorageApplianceConfigurationData implements JsonSerializable { /* - * The credentials of the administrative interface on this storage appliance. + * The credentials of the administrative interface on this storage appliance. The password field is expected to be + * an Azure Key Vault key URL. Until the cluster is converted to utilize managed identity by setting the secret + * archive settings, the actual password value should be provided instead. */ private AdministrativeCredentials adminCredentials; @@ -44,7 +46,9 @@ public StorageApplianceConfigurationData() { } /** - * Get the adminCredentials property: The credentials of the administrative interface on this storage appliance. + * Get the adminCredentials property: The credentials of the administrative interface on this storage appliance. The + * password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed + * identity by setting the secret archive settings, the actual password value should be provided instead. * * @return the adminCredentials value. */ @@ -53,7 +57,9 @@ public AdministrativeCredentials adminCredentials() { } /** - * Set the adminCredentials property: The credentials of the administrative interface on this storage appliance. + * Set the adminCredentials property: The credentials of the administrative interface on this storage appliance. The + * password field is expected to be an Azure Key Vault key URL. Until the cluster is converted to utilize managed + * identity by setting the secret archive settings, the actual password value should be provided instead. * * @param adminCredentials the adminCredentials value to set. * @return the StorageApplianceConfigurationData object itself. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java index 7b4997a1d102b..d5652ae77f815 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java @@ -12,14 +12,19 @@ */ public final class StorageApplianceDetailedStatus extends ExpandableStringEnum { /** - * Static value Error for StorageApplianceDetailedStatus. + * Static value Available for StorageApplianceDetailedStatus. */ - public static final StorageApplianceDetailedStatus ERROR = fromString("Error"); + public static final StorageApplianceDetailedStatus AVAILABLE = fromString("Available"); /** - * Static value Available for StorageApplianceDetailedStatus. + * Static value Degraded for StorageApplianceDetailedStatus. */ - public static final StorageApplianceDetailedStatus AVAILABLE = fromString("Available"); + public static final StorageApplianceDetailedStatus DEGRADED = fromString("Degraded"); + + /** + * Static value Error for StorageApplianceDetailedStatus. + */ + public static final StorageApplianceDetailedStatus ERROR = fromString("Error"); /** * Static value Provisioning for StorageApplianceDetailedStatus. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java index 783550e739cf2..b363d5cf046d6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java @@ -108,6 +108,13 @@ public interface VirtualMachine { */ String clusterId(); + /** + * Gets the consoleExtendedLocation property: The extended location to use for creation of a VM console resource. + * + * @return the consoleExtendedLocation value. + */ + ExtendedLocation consoleExtendedLocation(); + /** * Gets the cpuCores property: The number of CPU cores in the virtual machine. * @@ -428,9 +435,10 @@ interface WithVmImage { * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithBootMethod, - DefinitionStages.WithIsolateEmulatorThread, DefinitionStages.WithNetworkAttachments, - DefinitionStages.WithNetworkData, DefinitionStages.WithPlacementHints, DefinitionStages.WithSshPublicKeys, - DefinitionStages.WithUserData, DefinitionStages.WithVirtioInterface, DefinitionStages.WithVmDeviceModel, + DefinitionStages.WithConsoleExtendedLocation, DefinitionStages.WithIsolateEmulatorThread, + DefinitionStages.WithNetworkAttachments, DefinitionStages.WithNetworkData, + DefinitionStages.WithPlacementHints, DefinitionStages.WithSshPublicKeys, DefinitionStages.WithUserData, + DefinitionStages.WithVirtioInterface, DefinitionStages.WithVmDeviceModel, DefinitionStages.WithVmImageRepositoryCredentials { /** * Executes the create request. @@ -474,6 +482,20 @@ interface WithBootMethod { WithCreate withBootMethod(VirtualMachineBootMethod bootMethod); } + /** + * The stage of the VirtualMachine definition allowing to specify consoleExtendedLocation. + */ + interface WithConsoleExtendedLocation { + /** + * Specifies the consoleExtendedLocation property: The extended location to use for creation of a VM console + * resource.. + * + * @param consoleExtendedLocation The extended location to use for creation of a VM console resource. + * @return the next definition stage. + */ + WithCreate withConsoleExtendedLocation(ExtendedLocation consoleExtendedLocation); + } + /** * The stage of the VirtualMachine definition allowing to specify isolateEmulatorThread. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java index 7bf2b6cf82123..63bde2c2ad60d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java @@ -21,6 +21,11 @@ public final class VirtualMachineDeviceModelType extends ExpandableStringEnum { + /* + * The mode selection for container vulnerability scanning. + */ + private VulnerabilityScanningSettingsContainerScan containerScan; + + /** + * Creates an instance of VulnerabilityScanningSettings class. + */ + public VulnerabilityScanningSettings() { + } + + /** + * Get the containerScan property: The mode selection for container vulnerability scanning. + * + * @return the containerScan value. + */ + public VulnerabilityScanningSettingsContainerScan containerScan() { + return this.containerScan; + } + + /** + * Set the containerScan property: The mode selection for container vulnerability scanning. + * + * @param containerScan the containerScan value to set. + * @return the VulnerabilityScanningSettings object itself. + */ + public VulnerabilityScanningSettings withContainerScan(VulnerabilityScanningSettingsContainerScan containerScan) { + this.containerScan = containerScan; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("containerScan", this.containerScan == null ? null : this.containerScan.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VulnerabilityScanningSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VulnerabilityScanningSettings if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VulnerabilityScanningSettings. + */ + public static VulnerabilityScanningSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VulnerabilityScanningSettings deserializedVulnerabilityScanningSettings + = new VulnerabilityScanningSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("containerScan".equals(fieldName)) { + deserializedVulnerabilityScanningSettings.containerScan + = VulnerabilityScanningSettingsContainerScan.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedVulnerabilityScanningSettings; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsContainerScan.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsContainerScan.java new file mode 100644 index 0000000000000..afae3c89c5918 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsContainerScan.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The mode selection for container vulnerability scanning. + */ +public final class VulnerabilityScanningSettingsContainerScan + extends ExpandableStringEnum { + /** + * Static value Disabled for VulnerabilityScanningSettingsContainerScan. + */ + public static final VulnerabilityScanningSettingsContainerScan DISABLED = fromString("Disabled"); + + /** + * Static value Enabled for VulnerabilityScanningSettingsContainerScan. + */ + public static final VulnerabilityScanningSettingsContainerScan ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of VulnerabilityScanningSettingsContainerScan value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VulnerabilityScanningSettingsContainerScan() { + } + + /** + * Creates or finds a VulnerabilityScanningSettingsContainerScan from its string representation. + * + * @param name a name to look for. + * @return the corresponding VulnerabilityScanningSettingsContainerScan. + */ + public static VulnerabilityScanningSettingsContainerScan fromString(String name) { + return fromString(name, VulnerabilityScanningSettingsContainerScan.class); + } + + /** + * Gets known VulnerabilityScanningSettingsContainerScan values. + * + * @return known VulnerabilityScanningSettingsContainerScan values. + */ + public static Collection values() { + return values(VulnerabilityScanningSettingsContainerScan.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsPatch.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsPatch.java new file mode 100644 index 0000000000000..d42319cf9b521 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VulnerabilityScanningSettingsPatch.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * VulnerabilityScanningSettingsPatch represents the settings for how security vulnerability scanning is applied to the + * cluster. + */ +@Fluent +public final class VulnerabilityScanningSettingsPatch implements JsonSerializable { + /* + * The mode selection for container vulnerability scanning. + */ + private VulnerabilityScanningSettingsContainerScan containerScan; + + /** + * Creates an instance of VulnerabilityScanningSettingsPatch class. + */ + public VulnerabilityScanningSettingsPatch() { + } + + /** + * Get the containerScan property: The mode selection for container vulnerability scanning. + * + * @return the containerScan value. + */ + public VulnerabilityScanningSettingsContainerScan containerScan() { + return this.containerScan; + } + + /** + * Set the containerScan property: The mode selection for container vulnerability scanning. + * + * @param containerScan the containerScan value to set. + * @return the VulnerabilityScanningSettingsPatch object itself. + */ + public VulnerabilityScanningSettingsPatch + withContainerScan(VulnerabilityScanningSettingsContainerScan containerScan) { + this.containerScan = containerScan; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("containerScan", this.containerScan == null ? null : this.containerScan.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VulnerabilityScanningSettingsPatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VulnerabilityScanningSettingsPatch if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VulnerabilityScanningSettingsPatch. + */ + public static VulnerabilityScanningSettingsPatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VulnerabilityScanningSettingsPatch deserializedVulnerabilityScanningSettingsPatch + = new VulnerabilityScanningSettingsPatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("containerScan".equals(fieldName)) { + deserializedVulnerabilityScanningSettingsPatch.containerScan + = VulnerabilityScanningSettingsContainerScan.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedVulnerabilityScanningSettingsPatch; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java index a85624b3d475f..080113bfa02df 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java @@ -28,7 +28,7 @@ public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Create.json */ /** @@ -44,7 +44,7 @@ public final class AgentPoolsCreateOrUpdateSamples { .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") .withCount(3L) .withMode(AgentPoolMode.SYSTEM) - .withVmSkuName("NC_XXXX") + .withVmSkuName("NC_P46_224_v1") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExtendedLocation(new ExtendedLocation().withName( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") @@ -66,7 +66,8 @@ public final class AgentPoolsCreateOrUpdateSamples { .withPluginType(KubernetesPluginType.MACVLAN)))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java index 8f1ff69168cd1..e7cd98ae65aa9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java index a113ec47351cf..11abc122e44f7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java index c2554256efce4..afceae0c034ad 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsListByKubernetesClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_ListByKubernetesCluster.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java index b65d485bcab90..61fcbf227fd3c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java @@ -18,7 +18,7 @@ public final class AgentPoolsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * AgentPools_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java index 68b9cc0376db5..ea3f4890ca8ab 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ public final class BareMetalMachineKeySetsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java index 5a86ddec420b2..47b2715544815 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachineKeySetsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java index 1edf5a7e55fed..89bfef5aa3eaa 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachineKeySetsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java index b6367c3254408..d11114235122f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachineKeySetsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_ListByCluster.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java index f8fa89e851cf8..b46359fe66499 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java @@ -18,7 +18,7 @@ public final class BareMetalMachineKeySetsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachineKeySets_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java index a1fcc895a3ecd..3530b11f91f66 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java @@ -13,7 +13,7 @@ public final class BareMetalMachinesCordonSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Cordon.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java index edeeac9d0dbc1..2bf481f29c545 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class BareMetalMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java index c6fd3ac1f352c..58a9e91aa863d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java index ff233106e80ab..7edf3db3a1fe0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java index b97ab16628f90..06f128cacbada 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java index 7edf0fe075e1f..037f028882899 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java index e6bbc4bb09b83..9fa16787605f4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java @@ -13,7 +13,7 @@ public final class BareMetalMachinesPowerOffSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_PowerOff.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java index 933089a5faaa8..6ffff6eba4858 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesReimageSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Reimage.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java index ebc0593c507d0..9d3e9f4354df3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java @@ -13,7 +13,7 @@ public final class BareMetalMachinesReplaceSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Replace.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java index 282ea2c7281a4..629a73fca156d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesRestartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Restart.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java index d60b648afabbe..c2f0d873ee1ff 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java @@ -13,7 +13,7 @@ public final class BareMetalMachinesRunCommandSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunCommand.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java index 61e7cfc239596..e9506b600c4e1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java @@ -14,7 +14,7 @@ public final class BareMetalMachinesRunDataExtractsSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunDataExtracts.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java index 74d7be2e4388c..eb5e28da09735 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java @@ -14,7 +14,7 @@ public final class BareMetalMachinesRunReadCommandsSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_RunReadCommands.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java index 66464eef3b22f..de4f18be350eb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesStartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Start.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java index 21b73acd60033..93532340ad0ac 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java @@ -10,7 +10,7 @@ public final class BareMetalMachinesUncordonSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Uncordon.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java index b65d304736357..bbd5bacee6d77 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java @@ -14,7 +14,7 @@ public final class BareMetalMachinesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BareMetalMachines_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java index 8a72e03493e81..ef2995b9c69b1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ public final class BmcKeySetsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java index dbc3b8a53c7fe..6b7bd787db810 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java @@ -10,7 +10,7 @@ public final class BmcKeySetsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java index 45927aef22e45..376cf3c777522 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java @@ -10,7 +10,7 @@ public final class BmcKeySetsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java index d6bdf5004e7bd..b95a67f57fe95 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java @@ -10,7 +10,7 @@ public final class BmcKeySetsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_ListByCluster.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java index 255eacf817b58..974179ffad865 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java @@ -18,7 +18,7 @@ public final class BmcKeySetsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * BmcKeySets_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java index 2ca2214447c58..081673f4fa13c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ public final class CloudServicesNetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java index 669f93845a1f8..55bd606182f70 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java @@ -10,7 +10,7 @@ public final class CloudServicesNetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java index 787688c28d6a0..3949527df029e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CloudServicesNetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java index 5c710067b7875..b4037678e1091 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CloudServicesNetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java index ef37977b1f353..458f7bdc7a233 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java @@ -10,7 +10,7 @@ public final class CloudServicesNetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java index ef41b86173fe6..a5f439735ea5b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java @@ -18,7 +18,7 @@ public final class CloudServicesNetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * CloudServicesNetworks_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java index 8ad1bd3f19e79..13a994454fb82 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ public final class ClusterManagersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Create.json */ /** @@ -44,7 +44,7 @@ public final class ClusterManagersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Create_Uami.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java index 6c5264c484ef2..adb104531d95c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ClusterManagersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java index f478983d86841..c663794792d2d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ClusterManagersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java index 4874bfb52e495..bde159955e48f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ClusterManagersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java index 4d2feeedfe451..0f2b9253b63e7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java @@ -10,7 +10,7 @@ public final class ClusterManagersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java index bbea735ccf752..6553de9ca0fbb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java @@ -17,7 +17,7 @@ public final class ClusterManagersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterManagers_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java index 7d7288e1ba39b..d5aeb14a982e5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java @@ -13,7 +13,7 @@ public final class ClustersContinueUpdateVersionSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ContinueUpdateVersion.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java index f48517d11fa60..ac0f18196c87e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java @@ -5,9 +5,8 @@ package com.azure.resourcemanager.networkcloud.generated; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterType; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; @@ -21,12 +20,15 @@ import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsContainerScan; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -37,7 +39,7 @@ public final class ClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Create.json */ /** @@ -53,37 +55,41 @@ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud. .withExtendedLocation(new ExtendedLocation().withName( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") .withType("CustomLocation")) - .withAggregatorOrSingleRackDefinition(new RackDefinition() - .withBareMetalMachineConfigurationData(Arrays.asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withAggregatorOrSingleRackDefinition( + new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials( + new AdministrativeCredentials() + .withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData().withBmcCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withClusterType(ClusterType.SINGLE_RACK) .withClusterVersion("1.0.0") .withNetworkFabricId( @@ -93,8 +99,12 @@ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud. .withUserAssignedIdentities(mapOf( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId( + .withAnalyticsOutputSettings(new AnalyticsOutputSettings().withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"))) .withClusterLocation("Foo Street, 3rd Floor, row 9") .withClusterServicePrincipal( new ServicePrincipalInformation().withApplicationId("12345678-1234-1234-1234-123456789012") @@ -112,8 +122,9 @@ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud. .withValue(90L)) .withComputeRackDefinitions(Arrays.asList(new RackDefinition() .withBareMetalMachineConfigurationData(Arrays.asList( - new BareMetalMachineConfigurationData().withBmcCredentials( - new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) .withBmcMacAddress("AA:BB:CC:DD:EE:FF") .withBootMacAddress("00:BB:CC:DD:EE:FF") .withMachineDetails("extraDetails") @@ -145,13 +156,18 @@ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud. new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) .withRuntimeProtectionConfiguration( new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) - .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") - .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withVaultUri("https://keyvaultname.vault.azure.net/")) .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) .withStrategyType(ClusterUpdateStrategyType.RACK) .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) .withThresholdValue(4L) .withWaitTimeMinutes(10L)) + .withVulnerabilityScanningSettings(new VulnerabilityScanningSettings() + .withContainerScan(VulnerabilityScanningSettingsContainerScan.ENABLED)) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java index 1dad5dce90940..22304d363f126 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ClustersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java index 6ba036921bb5c..4b935ddf7989d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java @@ -13,7 +13,7 @@ public final class ClustersDeploySamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Deploy.json */ /** @@ -29,7 +29,7 @@ public static void deployCluster(com.azure.resourcemanager.networkcloud.NetworkC /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Deploy_SkipValidation.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java index b1eaa5e8eb475..75fe7a08e4082 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java index aaeffd6f20575..382f349dd0e52 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java index 3fb9f4db1a5d0..b0c0621c51af1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java @@ -10,7 +10,7 @@ public final class ClustersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java index c330c8c90a91c..406731dbb10fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java @@ -13,7 +13,7 @@ public final class ClustersScanRuntimeSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_ScanRuntime.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java index b2f9738584b79..04b5714634b36 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java @@ -5,10 +5,9 @@ package com.azure.resourcemanager.networkcloud.generated; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; +import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; import com.azure.resourcemanager.networkcloud.models.Cluster; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; -import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; @@ -19,11 +18,14 @@ import com.azure.resourcemanager.networkcloud.models.RackDefinition; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; +import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsContainerScan; +import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsPatch; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -34,7 +36,7 @@ public final class ClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_UpdateStrategy.json */ /** @@ -58,7 +60,28 @@ public static void patchUpdateStrategy(com.azure.resourcemanager.networkcloud.Ne /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ + * Clusters_Patch_VulnerabilityScanning.json + */ + /** + * Sample code: Patch vulnerability scanning. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchVulnerabilityScanning(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withVulnerabilityScanningSettings(new VulnerabilityScanningSettingsPatch() + .withContainerScan(VulnerabilityScanningSettingsContainerScan.ENABLED)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_Location.json */ /** @@ -78,7 +101,7 @@ public static void patchClusterLocation(com.azure.resourcemanager.networkcloud.N /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_AggregatorOrSingleRackDefinition.json */ /** @@ -137,7 +160,7 @@ public static void patchClusterAggregatorOrSingleRackDefinition( /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_CommandOutput.json */ /** @@ -167,7 +190,7 @@ public static void patchClusterCommandOutput(com.azure.resourcemanager.networkcl /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_RuntimeProtectionConfiguration.json */ /** @@ -189,7 +212,7 @@ public static void patchClusterCommandOutput(com.azure.resourcemanager.networkcl /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_Patch_SecretArchive.json */ /** @@ -203,8 +226,42 @@ public static void patchSecretArchive(com.azure.resourcemanager.networkcloud.Net .getValue(); resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") - .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withVaultUri("https://keyvaultname.vault.azure.net/")) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ + * Clusters_Patch_AnalyticsOutput.json + */ + /** + * Sample code: Patch cluster analytics output. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchClusterAnalyticsOutput(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .withAnalyticsOutputSettings(new AnalyticsOutputSettings().withAnalyticsWorkspaceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"))) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java index a7458b185b73f..e4081921576cb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java @@ -12,7 +12,7 @@ public final class ClustersUpdateVersionSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Clusters_UpdateVersion.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java index 59a4a7a892af5..f5a84ee4e9133 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ public final class ConsolesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java index 293fd27334e35..93045d2672233 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java @@ -10,7 +10,7 @@ public final class ConsolesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java index ecc8924b4a1bc..f38610491b504 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java @@ -10,7 +10,7 @@ public final class ConsolesGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java index bb379943671d2..4e6b8876e41f1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java @@ -10,7 +10,7 @@ public final class ConsolesListByVirtualMachineSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_ListByVirtualMachine.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java index b0236f90fc2a5..8dc831e8f5397 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java @@ -17,7 +17,7 @@ public final class ConsolesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Consoles_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java index 193c6eaf24857..085601a1c7384 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class KubernetesClusterFeaturesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java index bee647bebc48a..ebcf697db7503 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClusterFeaturesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java index 3c4da68720bf4..7b86c455b73e1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClusterFeaturesGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java index d9c00d9617189..79f566cf3c636 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClusterFeaturesListByKubernetesClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_ListByKubernetesCluster.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java index ff5169500d1cb..a99eba35d3a32 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java @@ -16,7 +16,7 @@ public final class KubernetesClusterFeaturesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusterFeatures_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java index 720fb01978256..a086847af8394 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java @@ -42,7 +42,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Create.json */ /** @@ -64,7 +64,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withCount(3L) - .withVmSkuName("NC_XXXX")) + .withVmSkuName("NC_G6_28_v1")) .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) @@ -86,9 +86,10 @@ public final class KubernetesClustersCreateOrUpdateSamples { .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withMode(AgentPoolMode.SYSTEM) .withName("SystemPool-1") - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_XXXX"))) + .withVmSkuName("NC_P46_224_v1"))) .withKubernetesVersion("1.XX.Y") .withNetworkConfiguration(new NetworkConfiguration() .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() @@ -143,7 +144,7 @@ public final class KubernetesClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_L2LoadBalancer_Create.json */ /** @@ -165,7 +166,7 @@ public static void createOrUpdateKubernetesClusterWithALayer2LoadBalancer( .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withCount(3L) - .withVmSkuName("NC_XXXX")) + .withVmSkuName("NC_G6_28_v1")) .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) @@ -187,9 +188,10 @@ public static void createOrUpdateKubernetesClusterWithALayer2LoadBalancer( .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withMode(AgentPoolMode.SYSTEM) .withName("SystemPool-1") - .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withTaints( + Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule"))) .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_XXXX"))) + .withVmSkuName("NC_P46_224_v1"))) .withKubernetesVersion("1.XX.Y") .withNetworkConfiguration(new NetworkConfiguration() .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java index 2c77946d04b6e..5d8e4898f4bbf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClustersDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java index 59e2bc5178968..e1f6230c390fd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java index 3b5fced0f5d92..f7ae5aebbbfd4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java index b79ba2a10c730..a1048f7935c1e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java @@ -10,7 +10,7 @@ public final class KubernetesClustersListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java index 228ee4b523957..635e63a7e6139 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java @@ -12,7 +12,7 @@ public final class KubernetesClustersRestartNodeSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_RestartNode.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java index cbbff2ab4e645..edcf489bb613b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java @@ -18,7 +18,7 @@ public final class KubernetesClustersUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * KubernetesClusters_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java index 73904034051a8..672eb41ecbdfb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class L2NetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java index 16573f649bd94..26fe9a106f83f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java @@ -10,7 +10,7 @@ public final class L2NetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java index 2224dc3f679e0..9746b9eff3eba 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class L2NetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java index b56af27dba6f2..7869ff0011cd2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class L2NetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java index d02f88c57eba6..bc850f03fb9a0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java @@ -10,7 +10,7 @@ public final class L2NetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java index 57b8da64b21d6..f4879301e6182 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java @@ -14,7 +14,7 @@ public final class L2NetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L2Networks_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java index b8f4f65b76ebd..537dd0584eca8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class L3NetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java index e4aab59817a43..ca2dd73beab55 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java @@ -10,7 +10,7 @@ public final class L3NetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java index e61acb9f18a19..306995ad6b8ae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class L3NetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java index e9eaa95794f41..f6793d6f8661b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class L3NetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java index 4f024a189fbce..05a780e8a0f1f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java @@ -10,7 +10,7 @@ public final class L3NetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java index 27628db4ae28d..f1b49c94405ff 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java @@ -14,7 +14,7 @@ public final class L3NetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * L3Networks_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java index 67a1a4c1a64f7..3bf1c499af976 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class MetricsConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java index c0899ad042a5b..888ee98b43165 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java @@ -10,7 +10,7 @@ public final class MetricsConfigurationsDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java index 21199c14e02b6..d89173409d3e5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java @@ -10,7 +10,7 @@ public final class MetricsConfigurationsGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java index 87395b1106713..55e8713e66d27 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java @@ -10,7 +10,7 @@ public final class MetricsConfigurationsListByClusterSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_ListByCluster.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java index e78dc095f2267..e6b558227e7c6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java @@ -15,7 +15,7 @@ public final class MetricsConfigurationsUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * ClusterMetricsConfigurations_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java index eae38b4d6bba6..660d13ed0806b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Operations_List.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java index 0916178b5e2c8..4f37da736d331 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java @@ -10,7 +10,7 @@ public final class RackSkusGetSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * RackSkus_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java index f9e02040cdba4..e44483754dd88 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java @@ -10,7 +10,7 @@ public final class RackSkusListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * RackSkus_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java index fd2e334ed294d..80561b90db357 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ public final class RacksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java index 96b0ad12399fe..25b731b462012 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java @@ -10,7 +10,7 @@ public final class RacksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java index c097254f575ea..d1da4816a0557 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class RacksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get. + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/Racks_Get. * json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java index f742f0c192aa0..5c9d64d23e88f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class RacksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java index 795971b538715..0caee07921aec 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java @@ -10,7 +10,7 @@ public final class RacksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java index 2c001b2309b9a..e525022025de9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java @@ -14,7 +14,7 @@ public final class RacksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Racks_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java index 081fbf8b0f914..4e58f4d7ae135 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class StorageAppliancesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java index 168a8db0ddc69..09bf00058bfdc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java @@ -10,7 +10,7 @@ public final class StorageAppliancesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java index 39bee69ce5c29..2a13a245660ae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java @@ -10,7 +10,7 @@ public final class StorageAppliancesDisableRemoteVendorManagementSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_DisableRemoteVendorManagement.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java index 418415f742c5f..f8372607d32c2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java @@ -13,7 +13,7 @@ public final class StorageAppliancesEnableRemoteVendorManagementSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_EnableRemoteVendorManagement.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java index 8c38f9ffd8614..f2eebd86e9017 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class StorageAppliancesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java index 2401178370aad..c271ded34fb68 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class StorageAppliancesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java index 0b9b8393bac27..4cb830d769773 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java @@ -10,7 +10,7 @@ public final class StorageAppliancesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java index 95aa0ea89cdf7..e8bc73b0d9dae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java @@ -14,7 +14,7 @@ public final class StorageAppliancesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * StorageAppliances_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java index 4360a730e94ef..8ad98143d7903 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class TrunkedNetworksCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java index 69eb97a5f6287..b6bdd316cd25e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java @@ -10,7 +10,7 @@ public final class TrunkedNetworksDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java index e036c1c364071..4c0419a2674b4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class TrunkedNetworksGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java index 146e73ae89a5d..6e2628478484a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class TrunkedNetworksListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java index 182087096e616..571df240b20e0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java @@ -10,7 +10,7 @@ public final class TrunkedNetworksListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java index 6e1385f6ace8a..987bd7679c6dd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java @@ -14,7 +14,7 @@ public final class TrunkedNetworksUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * TrunkedNetworks_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java index cf54a362006ca..eedb1f71a6cee 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java @@ -30,7 +30,7 @@ public final class VirtualMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java index 0aae3c8b47e00..3e53c43a162de 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java index 159c8540c67c9..25783c08311e9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java index d187bc0863d6f..37228f642f773 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java index 73a16d3c89122..0320ab5736b4d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java index bbcd17e091f64..134caab234df8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachinesPowerOffSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_PowerOff.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java index 0a8b25bd617c1..484bbcc7e513d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesReimageSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Reimage.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java index db6ac8bc160b4..4559f868be6d8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesRestartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Restart.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java index 268776aeb17d5..86e5d0df26efb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachinesStartSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Start.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java index db65c5d5fff85..f6584c995a49a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java @@ -15,7 +15,7 @@ public final class VirtualMachinesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * VirtualMachines_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java index bddeb308cf9fd..cc5183d7d420c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ public final class VolumesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Create.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java index 842b4722af6ee..b96d8936eecc0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java @@ -10,7 +10,7 @@ public final class VolumesDeleteSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Delete.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java index 1df6dcc05d3b4..83eb9f1febd18 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class VolumesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Get.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java index 5b40a4e2557cb..30c1f6fb0eefa 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class VolumesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_ListByResourceGroup.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java index 194694ba2f01b..5d731efca7fb1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java @@ -10,7 +10,7 @@ public final class VolumesListSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_ListBySubscription.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java index 835670f35f31e..8f3b07eadff55 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java @@ -14,7 +14,7 @@ public final class VolumesUpdateSamples { /* * x-ms-original-file: - * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-10-01-preview/examples/ * Volumes_Patch.json */ /** diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java deleted file mode 100644 index d032eb1f8fc20..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AadConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AadConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AadConfiguration model = BinaryData.fromString("{\"adminGroupObjectIds\":[\"nayrhyrnxxmueedn\"]}") - .toObject(AadConfiguration.class); - Assertions.assertEquals("nayrhyrnxxmueedn", model.adminGroupObjectIds().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AadConfiguration model = new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("nayrhyrnxxmueedn")); - model = BinaryData.fromObject(model).toObject(AadConfiguration.class); - Assertions.assertEquals("nayrhyrnxxmueedn", model.adminGroupObjectIds().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java deleted file mode 100644 index 67ee0cec14da6..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AgentOptions; -import com.azure.resourcemanager.networkcloud.models.HugepagesSize; -import org.junit.jupiter.api.Assertions; - -public final class AgentOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentOptions model = BinaryData.fromString("{\"hugepagesCount\":7011411072062298960,\"hugepagesSize\":\"1G\"}") - .toObject(AgentOptions.class); - Assertions.assertEquals(7011411072062298960L, model.hugepagesCount()); - Assertions.assertEquals(HugepagesSize.ONEG, model.hugepagesSize()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentOptions model - = new AgentOptions().withHugepagesCount(7011411072062298960L).withHugepagesSize(HugepagesSize.ONEG); - model = BinaryData.fromObject(model).toObject(AgentOptions.class); - Assertions.assertEquals(7011411072062298960L, model.hugepagesCount()); - Assertions.assertEquals(HugepagesSize.ONEG, model.hugepagesSize()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java deleted file mode 100644 index 2512a41bcd6ea..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; -import org.junit.jupiter.api.Assertions; - -public final class AgentPoolUpgradeSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentPoolUpgradeSettings model = BinaryData - .fromString( - "{\"drainTimeout\":6269428665110751573,\"maxSurge\":\"moadsuvarmy\",\"maxUnavailable\":\"mjsjqb\"}") - .toObject(AgentPoolUpgradeSettings.class); - Assertions.assertEquals(6269428665110751573L, model.drainTimeout()); - Assertions.assertEquals("moadsuvarmy", model.maxSurge()); - Assertions.assertEquals("mjsjqb", model.maxUnavailable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentPoolUpgradeSettings model = new AgentPoolUpgradeSettings().withDrainTimeout(6269428665110751573L) - .withMaxSurge("moadsuvarmy") - .withMaxUnavailable("mjsjqb"); - model = BinaryData.fromObject(model).toObject(AgentPoolUpgradeSettings.class); - Assertions.assertEquals(6269428665110751573L, model.drainTimeout()); - Assertions.assertEquals("moadsuvarmy", model.maxSurge()); - Assertions.assertEquals("mjsjqb", model.maxUnavailable()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java deleted file mode 100644 index eabaf251dd944..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java +++ /dev/null @@ -1,55 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AttachedNetworkConfiguration; -import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; -import com.azure.resourcemanager.networkcloud.models.L2NetworkAttachmentConfiguration; -import com.azure.resourcemanager.networkcloud.models.L3NetworkAttachmentConfiguration; -import com.azure.resourcemanager.networkcloud.models.L3NetworkConfigurationIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkAttachmentConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedNetworkConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedNetworkConfiguration model = BinaryData.fromString( - "{\"l2Networks\":[{\"networkId\":\"lddxbjhwua\",\"pluginType\":\"OSDevice\"}],\"l3Networks\":[{\"ipamEnabled\":\"False\",\"networkId\":\"ph\",\"pluginType\":\"SRIOV\"}],\"trunkedNetworks\":[{\"networkId\":\"jrvxaglrv\",\"pluginType\":\"DPDK\"},{\"networkId\":\"wosytxitcskf\",\"pluginType\":\"MACVLAN\"}]}") - .toObject(AttachedNetworkConfiguration.class); - Assertions.assertEquals("lddxbjhwua", model.l2Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.OSDEVICE, model.l2Networks().get(0).pluginType()); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.FALSE, model.l3Networks().get(0).ipamEnabled()); - Assertions.assertEquals("ph", model.l3Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l3Networks().get(0).pluginType()); - Assertions.assertEquals("jrvxaglrv", model.trunkedNetworks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.DPDK, model.trunkedNetworks().get(0).pluginType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedNetworkConfiguration model = new AttachedNetworkConfiguration() - .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId("lddxbjhwua") - .withPluginType(KubernetesPluginType.OSDEVICE))) - .withL3Networks(Arrays - .asList(new L3NetworkAttachmentConfiguration().withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId("ph") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks(Arrays.asList( - new TrunkedNetworkAttachmentConfiguration().withNetworkId("jrvxaglrv") - .withPluginType(KubernetesPluginType.DPDK), - new TrunkedNetworkAttachmentConfiguration().withNetworkId("wosytxitcskf") - .withPluginType(KubernetesPluginType.MACVLAN))); - model = BinaryData.fromObject(model).toObject(AttachedNetworkConfiguration.class); - Assertions.assertEquals("lddxbjhwua", model.l2Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.OSDEVICE, model.l2Networks().get(0).pluginType()); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.FALSE, model.l3Networks().get(0).ipamEnabled()); - Assertions.assertEquals("ph", model.l3Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l3Networks().get(0).pluginType()); - Assertions.assertEquals("jrvxaglrv", model.trunkedNetworks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.DPDK, model.trunkedNetworks().get(0).pluginType()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java deleted file mode 100644 index ac5f7db54e14e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AvailableUpgrade; - -public final class AvailableUpgradeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableUpgrade model = BinaryData - .fromString("{\"availabilityLifecycle\":\"GenerallyAvailable\",\"version\":\"ohgwxrtfudxepxg\"}") - .toObject(AvailableUpgrade.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableUpgrade model = new AvailableUpgrade(); - model = BinaryData.fromObject(model).toObject(AvailableUpgrade.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java deleted file mode 100644 index 2e38309921c72..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachineCommandSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachineCommandSpecification model - = BinaryData.fromString("{\"arguments\":[\"iixtmkzj\"],\"command\":\"kv\"}") - .toObject(BareMetalMachineCommandSpecification.class); - Assertions.assertEquals("iixtmkzj", model.arguments().get(0)); - Assertions.assertEquals("kv", model.command()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachineCommandSpecification model - = new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("iixtmkzj")).withCommand("kv"); - model = BinaryData.fromObject(model).toObject(BareMetalMachineCommandSpecification.class); - Assertions.assertEquals("iixtmkzj", model.arguments().get(0)); - Assertions.assertEquals("kv", model.command()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCordonParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCordonParametersTests.java deleted file mode 100644 index 27ba79d969ee1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCordonParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonParameters; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachineCordonParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachineCordonParameters model - = BinaryData.fromString("{\"evacuate\":\"False\"}").toObject(BareMetalMachineCordonParameters.class); - Assertions.assertEquals(BareMetalMachineEvacuate.FALSE, model.evacuate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachineCordonParameters model - = new BareMetalMachineCordonParameters().withEvacuate(BareMetalMachineEvacuate.FALSE); - model = BinaryData.fromObject(model).toObject(BareMetalMachineCordonParameters.class); - Assertions.assertEquals(BareMetalMachineEvacuate.FALSE, model.evacuate()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java deleted file mode 100644 index f4bdfa316e4b0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachinePatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachinePatchParameters model = BinaryData.fromString( - "{\"properties\":{\"machineDetails\":\"cil\"},\"tags\":{\"t\":\"aykggnoxu\",\"cpfnznthjtwkja\":\"ksxwpnd\",\"tcqiosmg\":\"srxuzvoam\"}}") - .toObject(BareMetalMachinePatchParameters.class); - Assertions.assertEquals("aykggnoxu", model.tags().get("t")); - Assertions.assertEquals("cil", model.machineDetails()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachinePatchParameters model = new BareMetalMachinePatchParameters() - .withTags(mapOf("t", "aykggnoxu", "cpfnznthjtwkja", "ksxwpnd", "tcqiosmg", "srxuzvoam")) - .withMachineDetails("cil"); - model = BinaryData.fromObject(model).toObject(BareMetalMachinePatchParameters.class); - Assertions.assertEquals("aykggnoxu", model.tags().get("t")); - Assertions.assertEquals("cil", model.machineDetails()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java deleted file mode 100644 index 2622f674e691f..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachinePatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachinePatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachinePatchProperties model - = BinaryData.fromString("{\"machineDetails\":\"ahgx\"}").toObject(BareMetalMachinePatchProperties.class); - Assertions.assertEquals("ahgx", model.machineDetails()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachinePatchProperties model = new BareMetalMachinePatchProperties().withMachineDetails("ahgx"); - model = BinaryData.fromObject(model).toObject(BareMetalMachinePatchProperties.class); - Assertions.assertEquals("ahgx", model.machineDetails()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePowerOffParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePowerOffParametersTests.java deleted file mode 100644 index bc14aaa3aa7a7..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePowerOffParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePowerOffParameters; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdown; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachinePowerOffParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachinePowerOffParameters model - = BinaryData.fromString("{\"skipShutdown\":\"True\"}").toObject(BareMetalMachinePowerOffParameters.class); - Assertions.assertEquals(BareMetalMachineSkipShutdown.TRUE, model.skipShutdown()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachinePowerOffParameters model - = new BareMetalMachinePowerOffParameters().withSkipShutdown(BareMetalMachineSkipShutdown.TRUE); - model = BinaryData.fromObject(model).toObject(BareMetalMachinePowerOffParameters.class); - Assertions.assertEquals(BareMetalMachineSkipShutdown.TRUE, model.skipShutdown()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java deleted file mode 100644 index 72ec064448cc3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunCommandParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachineRunCommandParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachineRunCommandParameters model = BinaryData.fromString( - "{\"arguments\":[\"nbsoqeqalarv\",\"agunbtgfebw\",\"nbmhyree\"],\"limitTimeSeconds\":8991110670896119735,\"script\":\"qavbpdqmj\"}") - .toObject(BareMetalMachineRunCommandParameters.class); - Assertions.assertEquals("nbsoqeqalarv", model.arguments().get(0)); - Assertions.assertEquals(8991110670896119735L, model.limitTimeSeconds()); - Assertions.assertEquals("qavbpdqmj", model.script()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachineRunCommandParameters model = new BareMetalMachineRunCommandParameters() - .withArguments(Arrays.asList("nbsoqeqalarv", "agunbtgfebw", "nbmhyree")) - .withLimitTimeSeconds(8991110670896119735L) - .withScript("qavbpdqmj"); - model = BinaryData.fromObject(model).toObject(BareMetalMachineRunCommandParameters.class); - Assertions.assertEquals("nbsoqeqalarv", model.arguments().get(0)); - Assertions.assertEquals(8991110670896119735L, model.limitTimeSeconds()); - Assertions.assertEquals("qavbpdqmj", model.script()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java deleted file mode 100644 index 41d473b3b43c0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpecification; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachineRunDataExtractsParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachineRunDataExtractsParameters model = BinaryData.fromString( - "{\"commands\":[{\"arguments\":[\"zg\",\"gouwtlmj\"],\"command\":\"yuojqtobaxk\"},{\"arguments\":[\"tu\",\"lbfjkwr\",\"snkq\"],\"command\":\"hsyrqunj\"},{\"arguments\":[\"enx\",\"ulkpakd\"],\"command\":\"ifmjnn\"},{\"arguments\":[\"qabpxuckpggqow\",\"yirdhlisngwflqq\",\"pizruwnpqxpxiw\"],\"command\":\"cng\"}],\"limitTimeSeconds\":4191063095737064569}") - .toObject(BareMetalMachineRunDataExtractsParameters.class); - Assertions.assertEquals("zg", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("yuojqtobaxk", model.commands().get(0).command()); - Assertions.assertEquals(4191063095737064569L, model.limitTimeSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachineRunDataExtractsParameters model - = new BareMetalMachineRunDataExtractsParameters().withCommands(Arrays.asList( - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("zg", "gouwtlmj")) - .withCommand("yuojqtobaxk"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("tu", "lbfjkwr", "snkq")) - .withCommand("hsyrqunj"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("enx", "ulkpakd")) - .withCommand("ifmjnn"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("qabpxuckpggqow", "yirdhlisngwflqq", "pizruwnpqxpxiw")) - .withCommand("cng"))) - .withLimitTimeSeconds(4191063095737064569L); - model = BinaryData.fromObject(model).toObject(BareMetalMachineRunDataExtractsParameters.class); - Assertions.assertEquals("zg", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("yuojqtobaxk", model.commands().get(0).command()); - Assertions.assertEquals(4191063095737064569L, model.limitTimeSeconds()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java deleted file mode 100644 index e16d559f78cbb..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpecification; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BareMetalMachineRunReadCommandsParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BareMetalMachineRunReadCommandsParameters model = BinaryData.fromString( - "{\"commands\":[{\"arguments\":[\"gfgrwsdp\",\"ra\"],\"command\":\"zvzbglbyv\"},{\"arguments\":[\"ctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\",\"yg\"],\"command\":\"ugjknf\"},{\"arguments\":[\"cttuxuu\",\"i\",\"flqo\",\"quvre\"],\"command\":\"mrnjh\"}],\"limitTimeSeconds\":4607580078285985289}") - .toObject(BareMetalMachineRunReadCommandsParameters.class); - Assertions.assertEquals("gfgrwsdp", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("zvzbglbyv", model.commands().get(0).command()); - Assertions.assertEquals(4607580078285985289L, model.limitTimeSeconds()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BareMetalMachineRunReadCommandsParameters model - = new BareMetalMachineRunReadCommandsParameters().withCommands(Arrays.asList( - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("gfgrwsdp", "ra")) - .withCommand("zvzbglbyv"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("ctbrxkjzwrgxffm", "hkwfbkgozxwop", "bydpizqaclnapxb", "yg")) - .withCommand("ugjknf"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("cttuxuu", "i", "flqo", "quvre")) - .withCommand("mrnjh"))) - .withLimitTimeSeconds(4607580078285985289L); - model = BinaryData.fromObject(model).toObject(BareMetalMachineRunReadCommandsParameters.class); - Assertions.assertEquals("gfgrwsdp", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("zvzbglbyv", model.commands().get(0).command()); - Assertions.assertEquals(4607580078285985289L, model.limitTimeSeconds()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java deleted file mode 100644 index fb8322517b570..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java +++ /dev/null @@ -1,37 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AdvertiseToFabric; -import com.azure.resourcemanager.networkcloud.models.BgpAdvertisement; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BgpAdvertisementTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BgpAdvertisement model = BinaryData.fromString( - "{\"advertiseToFabric\":\"True\",\"communities\":[\"riolxorjalt\",\"lmncw\"],\"ipAddressPools\":[\"bqwcsdbnwdcf\",\"ucqdpfuvglsb\",\"jcanvxbvtvudut\",\"cormr\"],\"peers\":[\"tvcof\",\"dflvkg\",\"u\",\"gdknnqv\"]}") - .toObject(BgpAdvertisement.class); - Assertions.assertEquals(AdvertiseToFabric.TRUE, model.advertiseToFabric()); - Assertions.assertEquals("riolxorjalt", model.communities().get(0)); - Assertions.assertEquals("bqwcsdbnwdcf", model.ipAddressPools().get(0)); - Assertions.assertEquals("tvcof", model.peers().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BgpAdvertisement model = new BgpAdvertisement().withAdvertiseToFabric(AdvertiseToFabric.TRUE) - .withCommunities(Arrays.asList("riolxorjalt", "lmncw")) - .withIpAddressPools(Arrays.asList("bqwcsdbnwdcf", "ucqdpfuvglsb", "jcanvxbvtvudut", "cormr")) - .withPeers(Arrays.asList("tvcof", "dflvkg", "u", "gdknnqv")); - model = BinaryData.fromObject(model).toObject(BgpAdvertisement.class); - Assertions.assertEquals(AdvertiseToFabric.TRUE, model.advertiseToFabric()); - Assertions.assertEquals("riolxorjalt", model.communities().get(0)); - Assertions.assertEquals("bqwcsdbnwdcf", model.ipAddressPools().get(0)); - Assertions.assertEquals("tvcof", model.peers().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java deleted file mode 100644 index 3e819d5f6b7c1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java +++ /dev/null @@ -1,89 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudServicesNetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudServicesNetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"bin\",\"type\":\"eputtmrywnuzoqf\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"zrnkcqvyxlwh\",\"endpoints\":[{\"domainName\":\"sicohoqqnwvlry\",\"port\":1033785149258539896},{\"domainName\":\"heun\",\"port\":7996518599825489896},{\"domainName\":\"gyxzk\",\"port\":2239983988505664153}]},{\"category\":\"uko\",\"endpoints\":[{\"domainName\":\"yaxuconuqszfkb\",\"port\":3729389788227031079},{\"domainName\":\"wrmjmwvvjektc\",\"port\":7747887617171116604}]},{\"category\":\"hwlrsf\",\"endpoints\":[{\"domainName\":\"zpwv\",\"port\":7697228564428335839},{\"domainName\":\"gbiqylihkaet\",\"port\":1147871738774279486},{\"domainName\":\"fcivfsnkym\",\"port\":4551899341292561087},{\"domainName\":\"hjfbebrjcxe\",\"port\":4815130126943847717}]},{\"category\":\"utttxfvjrbirp\",\"endpoints\":[{\"domainName\":\"epcyvahfnlj\",\"port\":2409777355538454717},{\"domainName\":\"j\",\"port\":8484849300760600701},{\"domainName\":\"qgidokgjljyo\",\"port\":2789821608954910023}]}],\"associatedResourceIds\":[\"bgsncghkjeszzhb\",\"jhtxfvgxbfsmxne\",\"mpvecxgodebfqk\"],\"clusterId\":\"bmpukgriwflz\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"zpuzycisp\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"mgkbrpyydhibn\",\"endpoints\":[{\"domainName\":\"qkpikadrgvtqagnb\",\"port\":3675079843223974775},{\"domainName\":\"ijggmebfsiar\",\"port\":3371222467349281870},{\"domainName\":\"cvpnazzmhjrunmpx\",\"port\":3473682696656885235}]},{\"category\":\"hrbnlankxmyskpbh\",\"endpoints\":[{\"domainName\":\"btkcxywnytnrsyn\",\"port\":531733013424860873},{\"domainName\":\"ybyxc\",\"port\":3688624800948339893},{\"domainName\":\"haaxdbabphl\",\"port\":331591758229611872},{\"domainName\":\"fkts\",\"port\":8279092425079677109}]},{\"category\":\"cocmnyyaztt\",\"endpoints\":[{\"domainName\":\"wwrq\",\"port\":7876922791898544073},{\"domainName\":\"ckzywbiexzfeyue\",\"port\":2309761991490604961}]}],\"hybridAksClustersAssociatedIds\":[\"jwbhqwalmuz\"],\"interfaceName\":\"xaepdkzjancuxr\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"v\",\"bniwdj\",\"wz\",\"s\"]},\"location\":\"pgn\",\"tags\":{\"pzxbz\":\"x\"},\"id\":\"fzab\",\"name\":\"lcuhxwtctyqiklb\",\"type\":\"ovplw\"}") - .toObject(CloudServicesNetworkInner.class); - Assertions.assertEquals("pgn", model.location()); - Assertions.assertEquals("x", model.tags().get("pzxbz")); - Assertions.assertEquals("bin", model.extendedLocation().name()); - Assertions.assertEquals("eputtmrywnuzoqf", model.extendedLocation().type()); - Assertions.assertEquals("zrnkcqvyxlwh", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("sicohoqqnwvlry", - model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(1033785149258539896L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.enableDefaultEgressEndpoints()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudServicesNetworkInner model = new CloudServicesNetworkInner().withLocation("pgn") - .withTags(mapOf("pzxbz", "x")) - .withExtendedLocation(new ExtendedLocation().withName("bin").withType("eputtmrywnuzoqf")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("zrnkcqvyxlwh") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("sicohoqqnwvlry").withPort(1033785149258539896L), - new EndpointDependency().withDomainName("heun").withPort(7996518599825489896L), - new EndpointDependency().withDomainName("gyxzk").withPort(2239983988505664153L))), - new EgressEndpoint().withCategory("uko") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("yaxuconuqszfkb").withPort(3729389788227031079L), - new EndpointDependency().withDomainName("wrmjmwvvjektc").withPort(7747887617171116604L))), - new EgressEndpoint().withCategory("hwlrsf") - .withEndpoints( - Arrays.asList(new EndpointDependency().withDomainName("zpwv").withPort(7697228564428335839L), - new EndpointDependency().withDomainName("gbiqylihkaet").withPort(1147871738774279486L), - new EndpointDependency().withDomainName("fcivfsnkym").withPort(4551899341292561087L), - new EndpointDependency().withDomainName("hjfbebrjcxe").withPort(4815130126943847717L))), - new EgressEndpoint().withCategory("utttxfvjrbirp") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("epcyvahfnlj").withPort(2409777355538454717L), - new EndpointDependency().withDomainName("j").withPort(8484849300760600701L), - new EndpointDependency().withDomainName("qgidokgjljyo").withPort(2789821608954910023L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE); - model = BinaryData.fromObject(model).toObject(CloudServicesNetworkInner.class); - Assertions.assertEquals("pgn", model.location()); - Assertions.assertEquals("x", model.tags().get("pzxbz")); - Assertions.assertEquals("bin", model.extendedLocation().name()); - Assertions.assertEquals("eputtmrywnuzoqf", model.extendedLocation().type()); - Assertions.assertEquals("zrnkcqvyxlwh", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("sicohoqqnwvlry", - model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(1033785149258539896L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.enableDefaultEgressEndpoints()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java deleted file mode 100644 index 2950eccf1b5b1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java +++ /dev/null @@ -1,131 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkList; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudServicesNetworkListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudServicesNetworkList model = BinaryData.fromString( - "{\"nextLink\":\"yb\",\"value\":[{\"extendedLocation\":{\"name\":\"e\",\"type\":\"qytbciq\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"lmmnkzsmodmglo\",\"endpoints\":[{\"domainName\":\"pbkwtmu\"},{\"domainName\":\"duqkt\"},{\"domainName\":\"pspwgcuertu\"}]},{\"category\":\"kdosvqw\",\"endpoints\":[{\"domainName\":\"mdgbbjfdd\"}]}],\"associatedResourceIds\":[\"mbe\",\"ppbhtqqrolfp\",\"psalgbqux\",\"gjyjgzjaoyfhrtxi\"],\"clusterId\":\"erkujys\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"uvfqawrlyxwj\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"nwbxgjvtbvpyssz\",\"endpoints\":[{\"domainName\":\"rujqg\"}]},{\"category\":\"hmuouqfprwzwbn\",\"endpoints\":[{\"domainName\":\"itnwuizgazxufi\"},{\"domainName\":\"uckyf\"}]},{\"category\":\"hr\",\"endpoints\":[{\"domainName\":\"dfvzwdzuhty\"}]},{\"category\":\"wisdkft\",\"endpoints\":[{\"domainName\":\"xmnteiwaop\"},{\"domainName\":\"km\"},{\"domainName\":\"jcmmxdcufufsrp\"}]}],\"hybridAksClustersAssociatedIds\":[\"idnsezcxtb\",\"sgfyccsnew\",\"dwzjeiach\",\"oosflnr\"],\"interfaceName\":\"fqpte\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"ypyqrimzinp\",\"swjdkirso\",\"dqxhcrmnohjtckwh\",\"soifiyipjxsqw\"]},\"location\":\"rjb\",\"tags\":{\"ocpcy\":\"rcjxvsnbyxqabn\",\"gpbtoqcjmklj\":\"hurzafblj\",\"qajzyulpkudjkr\":\"vbqid\"},\"id\":\"khbzhfepgzg\",\"name\":\"e\",\"type\":\"zloc\"},{\"extendedLocation\":{\"name\":\"scpai\",\"type\":\"rhhbcs\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"majtjaod\",\"endpoints\":[{\"domainName\":\"bnbdxkqpxokajion\"},{\"domainName\":\"imexgstxgcpodgma\"},{\"domainName\":\"jrmvdjwzrlo\"},{\"domainName\":\"mcl\"}]},{\"category\":\"hijco\",\"endpoints\":[{\"domainName\":\"ctbzaq\"},{\"domainName\":\"qsycbkbfkgu\"}]},{\"category\":\"dkexxppofm\",\"endpoints\":[{\"domainName\":\"x\"},{\"domainName\":\"fjpgddtocjjxhvp\"},{\"domainName\":\"o\"},{\"domainName\":\"exhd\"}]}],\"associatedResourceIds\":[\"bqe\"],\"clusterId\":\"nxqbzvddn\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"eic\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"zao\",\"endpoints\":[{\"domainName\":\"uhrhcffcyddgl\"},{\"domainName\":\"jthjqkwpyei\"},{\"domainName\":\"xmqci\"},{\"domainName\":\"q\"}]},{\"category\":\"hkh\",\"endpoints\":[{\"domainName\":\"uigdtopbobjog\"},{\"domainName\":\"m\"},{\"domainName\":\"w\"}]},{\"category\":\"a\",\"endpoints\":[{\"domainName\":\"uhrzayvvt\"}]}],\"hybridAksClustersAssociatedIds\":[\"dfgiot\",\"ftutqxlngxlefgu\"],\"interfaceName\":\"xkrxdqmi\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"rvqdra\",\"hjybigehoqfbo\"]},\"location\":\"kanyktzlcuiywg\",\"tags\":{\"gpphrcgyn\":\"gndrvynh\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\"},\"id\":\"qbqqwxr\",\"name\":\"feallnwsu\",\"type\":\"isnjampmngnz\"},{\"extendedLocation\":{\"name\":\"c\",\"type\":\"aqw\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"cbonqvpk\",\"endpoints\":[{\"domainName\":\"rxnjeaseipheofl\"},{\"domainName\":\"keyyi\"},{\"domainName\":\"nj\"},{\"domainName\":\"dlwtgrhpdj\"}]},{\"category\":\"jumasx\",\"endpoints\":[{\"domainName\":\"jpqyegu\"}]},{\"category\":\"lhbxxhejjzzvdud\",\"endpoints\":[{\"domainName\":\"dslfhotwmcy\"},{\"domainName\":\"pwlbjnpg\"},{\"domainName\":\"cftadeh\"}]}],\"associatedResourceIds\":[\"tyfsoppusuesn\",\"wd\"],\"clusterId\":\"bavo\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"mohctb\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"xdn\",\"endpoints\":[{\"domainName\":\"vo\"},{\"domainName\":\"gujjugwdkcglh\"},{\"domainName\":\"lazjdyggdtjixhbk\"}]},{\"category\":\"ofqweykhmenevfye\",\"endpoints\":[{\"domainName\":\"whybcib\"},{\"domainName\":\"yvdcsitynnaa\"},{\"domainName\":\"dectehfiqsc\"}]},{\"category\":\"eypvhezrkg\",\"endpoints\":[{\"domainName\":\"c\"},{\"domainName\":\"refovgmkqsleyyvx\"},{\"domainName\":\"qjpkcattpngjcrc\"}]},{\"category\":\"zsqpjhvmdajvny\",\"endpoints\":[{\"domainName\":\"unqecanoae\"},{\"domainName\":\"pfhyhl\"},{\"domainName\":\"rpmopjmc\"}]}],\"hybridAksClustersAssociatedIds\":[\"u\"],\"interfaceName\":\"thfuiuaodsfcpkvx\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"zmyzydagf\",\"axbezyiuo\",\"ktwh\"]},\"location\":\"xw\",\"tags\":{\"mbsureximo\":\"q\",\"fksymddystki\":\"yocf\"},\"id\":\"uxh\",\"name\":\"yudxorrqnbp\",\"type\":\"czvyifq\"},{\"extendedLocation\":{\"name\":\"vkd\",\"type\":\"jsllrmv\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"atkpnp\",\"endpoints\":[{\"domainName\":\"exxbczwtr\"},{\"domainName\":\"wiqzbqjvsovmyo\"},{\"domainName\":\"acspkwl\"}]},{\"category\":\"zdobpxjmflbvvnch\",\"endpoints\":[{\"domainName\":\"cciw\"},{\"domainName\":\"zjuqkhrsaj\"},{\"domainName\":\"wkuofoskghsauu\"},{\"domainName\":\"mjmvxieduugidyjr\"}]},{\"category\":\"f\",\"endpoints\":[{\"domainName\":\"aos\"}]},{\"category\":\"e\",\"endpoints\":[{\"domainName\":\"sonpclhocohs\"},{\"domainName\":\"kevle\"},{\"domainName\":\"gz\"}]}],\"associatedResourceIds\":[\"hfmvfaxkffe\"],\"clusterId\":\"th\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"zy\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"zsbbzoggigrxwb\",\"endpoints\":[{\"domainName\":\"vjxxjnsp\"}]}],\"hybridAksClustersAssociatedIds\":[\"tko\",\"nkoukn\",\"udwtiukbl\"],\"interfaceName\":\"gkpocipazyxoe\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"npiucgygevqznty\",\"mrbpizcdrqj\",\"dpydn\"]},\"location\":\"hxdeoejz\",\"tags\":{\"hajdeyeamdpha\":\"ifsjttgzfbishcb\"},\"id\":\"alpbuxwgipwhon\",\"name\":\"wkgshwa\",\"type\":\"kix\"}]}") - .toObject(CloudServicesNetworkList.class); - Assertions.assertEquals("yb", model.nextLink()); - Assertions.assertEquals("rjb", model.value().get(0).location()); - Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).tags().get("ocpcy")); - Assertions.assertEquals("e", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("qytbciq", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("lmmnkzsmodmglo", model.value().get(0).additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("pbkwtmu", - model.value().get(0).additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.value().get(0).enableDefaultEgressEndpoints()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudServicesNetworkList model = new CloudServicesNetworkList().withNextLink("yb") - .withValue(Arrays.asList( - new CloudServicesNetworkInner().withLocation("rjb") - .withTags(mapOf("ocpcy", "rcjxvsnbyxqabn", "gpbtoqcjmklj", "hurzafblj", "qajzyulpkudjkr", "vbqid")) - .withExtendedLocation(new ExtendedLocation().withName("e").withType("qytbciq")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("lmmnkzsmodmglo") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("pbkwtmu"), - new EndpointDependency().withDomainName("duqkt"), - new EndpointDependency().withDomainName("pspwgcuertu"))), - new EgressEndpoint().withCategory("kdosvqw") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("mdgbbjfdd"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE), - new CloudServicesNetworkInner().withLocation("kanyktzlcuiywg") - .withTags(mapOf("gpphrcgyn", "gndrvynh", "fsxlzevgbmqjqa", "ocpecfvmmco", "pmivkwlzu", "c", - "ebxetqgtzxdp", "ccfwnfnbacfion")) - .withExtendedLocation(new ExtendedLocation().withName("scpai").withType("rhhbcs")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("majtjaod") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("bnbdxkqpxokajion"), - new EndpointDependency().withDomainName("imexgstxgcpodgma"), - new EndpointDependency().withDomainName("jrmvdjwzrlo"), - new EndpointDependency().withDomainName("mcl"))), - new EgressEndpoint().withCategory("hijco") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("ctbzaq"), - new EndpointDependency().withDomainName("qsycbkbfkgu"))), - new EgressEndpoint().withCategory("dkexxppofm") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("x"), - new EndpointDependency().withDomainName("fjpgddtocjjxhvp"), - new EndpointDependency().withDomainName("o"), - new EndpointDependency().withDomainName("exhd"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE), - new CloudServicesNetworkInner().withLocation("xw") - .withTags(mapOf("mbsureximo", "q", "fksymddystki", "yocf")) - .withExtendedLocation(new ExtendedLocation().withName("c").withType("aqw")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("cbonqvpk") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("rxnjeaseipheofl"), - new EndpointDependency().withDomainName("keyyi"), - new EndpointDependency().withDomainName("nj"), - new EndpointDependency().withDomainName("dlwtgrhpdj"))), - new EgressEndpoint().withCategory("jumasx") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("jpqyegu"))), - new EgressEndpoint().withCategory("lhbxxhejjzzvdud") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("dslfhotwmcy"), - new EndpointDependency().withDomainName("pwlbjnpg"), - new EndpointDependency().withDomainName("cftadeh"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE), - new CloudServicesNetworkInner().withLocation("hxdeoejz") - .withTags(mapOf("hajdeyeamdpha", "ifsjttgzfbishcb")) - .withExtendedLocation(new ExtendedLocation().withName("vkd").withType("jsllrmv")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("atkpnp") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("exxbczwtr"), - new EndpointDependency().withDomainName("wiqzbqjvsovmyo"), - new EndpointDependency().withDomainName("acspkwl"))), - new EgressEndpoint().withCategory("zdobpxjmflbvvnch") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("cciw"), - new EndpointDependency().withDomainName("zjuqkhrsaj"), - new EndpointDependency().withDomainName("wkuofoskghsauu"), - new EndpointDependency().withDomainName("mjmvxieduugidyjr"))), - new EgressEndpoint().withCategory("f") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("aos"))), - new EgressEndpoint().withCategory("e") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("sonpclhocohs"), - new EndpointDependency().withDomainName("kevle"), - new EndpointDependency().withDomainName("gz"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE))); - model = BinaryData.fromObject(model).toObject(CloudServicesNetworkList.class); - Assertions.assertEquals("yb", model.nextLink()); - Assertions.assertEquals("rjb", model.value().get(0).location()); - Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).tags().get("ocpcy")); - Assertions.assertEquals("e", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("qytbciq", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("lmmnkzsmodmglo", model.value().get(0).additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("pbkwtmu", - model.value().get(0).additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.value().get(0).enableDefaultEgressEndpoints()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java deleted file mode 100644 index cdf5f4b4faed9..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java +++ /dev/null @@ -1,76 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkPatchParameters; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudServicesNetworkPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudServicesNetworkPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"czytqjtwhauunfpr\",\"endpoints\":[{\"domainName\":\"letlx\",\"port\":2409915169148121323},{\"domainName\":\"ddoui\",\"port\":8874077654693108380},{\"domainName\":\"waziy\",\"port\":3801503264233403815},{\"domainName\":\"qwzdvpiwhxq\",\"port\":4710676640752400099}]},{\"category\":\"maajquhuxylr\",\"endpoints\":[{\"domainName\":\"m\",\"port\":869139068386354509},{\"domainName\":\"bmzyospsps\",\"port\":5969049516566939665}]},{\"category\":\"kyjpmspbps\",\"endpoints\":[{\"domainName\":\"fppyogtieyujtvcz\",\"port\":1126499421836361150}]}],\"enableDefaultEgressEndpoints\":\"False\"},\"tags\":{\"glnkvxlxpagl\":\"unjdx\",\"hpzvuqdflvoniyp\":\"ivbgkcv\",\"idibgqjxgpn\":\"pubcpzgpxtivhjk\",\"kqmhhaowjr\":\"hgovfgp\"}}") - .toObject(CloudServicesNetworkPatchParameters.class); - Assertions.assertEquals("unjdx", model.tags().get("glnkvxlxpagl")); - Assertions.assertEquals("czytqjtwhauunfpr", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("letlx", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(2409915169148121323L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.enableDefaultEgressEndpoints()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudServicesNetworkPatchParameters model - = new CloudServicesNetworkPatchParameters() - .withTags(mapOf("glnkvxlxpagl", "unjdx", "hpzvuqdflvoniyp", "ivbgkcv", "idibgqjxgpn", "pubcpzgpxtivhjk", - "kqmhhaowjr", "hgovfgp")) - .withAdditionalEgressEndpoints(Arrays - .asList( - new EgressEndpoint().withCategory("czytqjtwhauunfpr") - .withEndpoints(Arrays - .asList(new EndpointDependency().withDomainName("letlx").withPort(2409915169148121323L), - new EndpointDependency().withDomainName("ddoui").withPort(8874077654693108380L), - new EndpointDependency().withDomainName("waziy").withPort(3801503264233403815L), - new EndpointDependency().withDomainName("qwzdvpiwhxq") - .withPort(4710676640752400099L))), - new EgressEndpoint().withCategory("maajquhuxylr") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("m").withPort(869139068386354509L), - new EndpointDependency().withDomainName("bmzyospsps").withPort(5969049516566939665L))), - new EgressEndpoint().withCategory("kyjpmspbps") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("fppyogtieyujtvcz") - .withPort(1126499421836361150L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE); - model = BinaryData.fromObject(model).toObject(CloudServicesNetworkPatchParameters.class); - Assertions.assertEquals("unjdx", model.tags().get("glnkvxlxpagl")); - Assertions.assertEquals("czytqjtwhauunfpr", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("letlx", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(2409915169148121323L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - model.enableDefaultEgressEndpoints()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java deleted file mode 100644 index edc24819d8d30..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java +++ /dev/null @@ -1,60 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkPatchProperties; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CloudServicesNetworkPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudServicesNetworkPatchProperties model = BinaryData.fromString( - "{\"additionalEgressEndpoints\":[{\"category\":\"uporqzdfu\",\"endpoints\":[{\"domainName\":\"zvkfv\",\"port\":1214899172154978502},{\"domainName\":\"mx\",\"port\":4727714807604035752},{\"domainName\":\"okmvkhlggd\",\"port\":2004260246553251332},{\"domainName\":\"zqkzszuwi\",\"port\":4666972978332386288}]},{\"category\":\"xxhljfpgpic\",\"endpoints\":[{\"domainName\":\"nzhrgmqgjsxvpqcb\",\"port\":4991473010028453976},{\"domainName\":\"odth\",\"port\":4486642012912512601},{\"domainName\":\"vriibakclacjfr\",\"port\":6094624010388997656}]},{\"category\":\"sxauzlwvsgmwohqf\",\"endpoints\":[{\"domainName\":\"zvuxm\",\"port\":5429285928052285759}]},{\"category\":\"vthn\",\"endpoints\":[{\"domainName\":\"zt\",\"port\":2859990961700396101}]}],\"enableDefaultEgressEndpoints\":\"True\"}") - .toObject(CloudServicesNetworkPatchProperties.class); - Assertions.assertEquals("uporqzdfu", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("zvkfv", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(1214899172154978502L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - model.enableDefaultEgressEndpoints()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudServicesNetworkPatchProperties model - = new CloudServicesNetworkPatchProperties() - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("uporqzdfu") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("zvkfv").withPort(1214899172154978502L), - new EndpointDependency().withDomainName("mx").withPort(4727714807604035752L), - new EndpointDependency().withDomainName("okmvkhlggd").withPort(2004260246553251332L), - new EndpointDependency().withDomainName("zqkzszuwi").withPort(4666972978332386288L))), - new EgressEndpoint().withCategory("xxhljfpgpic") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("nzhrgmqgjsxvpqcb").withPort(4991473010028453976L), - new EndpointDependency().withDomainName("odth").withPort(4486642012912512601L), - new EndpointDependency().withDomainName("vriibakclacjfr").withPort(6094624010388997656L))), - new EgressEndpoint().withCategory("sxauzlwvsgmwohqf") - .withEndpoints(Arrays - .asList(new EndpointDependency().withDomainName("zvuxm").withPort(5429285928052285759L))), - new EgressEndpoint().withCategory("vthn") - .withEndpoints(Arrays - .asList(new EndpointDependency().withDomainName("zt").withPort(2859990961700396101L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); - model = BinaryData.fromObject(model).toObject(CloudServicesNetworkPatchProperties.class); - Assertions.assertEquals("uporqzdfu", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("zvkfv", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(1214899172154978502L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - model.enableDefaultEgressEndpoints()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java deleted file mode 100644 index de0eca7a4257b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java +++ /dev/null @@ -1,61 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkProperties; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CloudServicesNetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudServicesNetworkProperties model = BinaryData.fromString( - "{\"additionalEgressEndpoints\":[{\"category\":\"vgyuguos\",\"endpoints\":[{\"domainName\":\"kfssxqukkf\",\"port\":4186813659074842761},{\"domainName\":\"gsxnkjzkdeslpv\",\"port\":6216827827800062431},{\"domainName\":\"i\",\"port\":7595800404721280957},{\"domainName\":\"xpkd\",\"port\":4555004603900701815}]},{\"category\":\"iuebbaumny\",\"endpoints\":[{\"domainName\":\"ped\",\"port\":2245881351334058994},{\"domainName\":\"a\",\"port\":4279977584762450949},{\"domainName\":\"smtxpsieb\",\"port\":4922743900723589322},{\"domainName\":\"pesapskrdqmhjj\",\"port\":3744961131672427134}]},{\"category\":\"dwkyzxuu\",\"endpoints\":[{\"domainName\":\"ncwscwsvlxoto\",\"port\":8759230338879353208}]}],\"associatedResourceIds\":[\"qsx\",\"nmic\",\"kvceoveilovnotyf\"],\"clusterId\":\"cnjbkcnxdhbt\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ywpnvjt\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"mclfplphoxuscr\",\"endpoints\":[{\"domainName\":\"bgyepsbj\",\"port\":1292231161047660234}]},{\"category\":\"ugxywpmueef\",\"endpoints\":[{\"domainName\":\"wfqkquj\",\"port\":4933297733628720564},{\"domainName\":\"yonobgl\",\"port\":2037860481850907584},{\"domainName\":\"xtccmg\",\"port\":4531156159452032810},{\"domainName\":\"ytlmoyrxvwfud\",\"port\":7047535531175801519}]},{\"category\":\"txhdzh\",\"endpoints\":[{\"domainName\":\"qj\",\"port\":1196903059215633177},{\"domainName\":\"frlh\",\"port\":6356911616351908297},{\"domainName\":\"kyv\",\"port\":1245497822937083948}]}],\"hybridAksClustersAssociatedIds\":[\"z\",\"p\",\"kafkuwbcrnwbm\"],\"interfaceName\":\"hseyvju\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"hspkdeemao\",\"mx\"]}") - .toObject(CloudServicesNetworkProperties.class); - Assertions.assertEquals("vgyuguos", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("kfssxqukkf", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(4186813659074842761L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - model.enableDefaultEgressEndpoints()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudServicesNetworkProperties model - = new CloudServicesNetworkProperties() - .withAdditionalEgressEndpoints( - Arrays.asList( - new EgressEndpoint().withCategory("vgyuguos") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("kfssxqukkf").withPort(4186813659074842761L), - new EndpointDependency().withDomainName("gsxnkjzkdeslpv") - .withPort(6216827827800062431L), - new EndpointDependency().withDomainName("i").withPort(7595800404721280957L), - new EndpointDependency().withDomainName("xpkd").withPort(4555004603900701815L))), - new EgressEndpoint().withCategory("iuebbaumny") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("ped").withPort(2245881351334058994L), - new EndpointDependency().withDomainName("a").withPort(4279977584762450949L), - new EndpointDependency().withDomainName("smtxpsieb").withPort(4922743900723589322L), - new EndpointDependency().withDomainName("pesapskrdqmhjj") - .withPort(3744961131672427134L))), - new EgressEndpoint().withCategory("dwkyzxuu") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("ncwscwsvlxoto") - .withPort(8759230338879353208L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); - model = BinaryData.fromObject(model).toObject(CloudServicesNetworkProperties.class); - Assertions.assertEquals("vgyuguos", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("kfssxqukkf", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(4186813659074842761L, - model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - model.enableDefaultEgressEndpoints()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java deleted file mode 100644 index 2a56cc2185640..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,84 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -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 CloudServicesNetworksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"ev\",\"type\":\"sxivzrrryvei\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"kdyzatvfuzk\",\"endpoints\":[{\"domainName\":\"tjvv\"},{\"domainName\":\"uxwigsyeipqdsm\"},{\"domainName\":\"tgrqgdgkkile\"},{\"domainName\":\"lkcsmknhwtbbae\"}]}],\"associatedResourceIds\":[\"vv\",\"qfloygbdgwum\",\"xdgd\"],\"clusterId\":\"abgdexj\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"saq\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"wllcolsr\",\"endpoints\":[{\"domainName\":\"apte\"},{\"domainName\":\"hexcgjokj\"},{\"domainName\":\"jnhvlqjbekpeeks\"},{\"domainName\":\"bksdqhjvyklxesl\"}]},{\"category\":\"hhus\",\"endpoints\":[{\"domainName\":\"poq\"}]},{\"category\":\"avnwqj\",\"endpoints\":[{\"domainName\":\"o\"}]},{\"category\":\"nlejjjkxybwf\",\"endpoints\":[{\"domainName\":\"kjbztensvkzykj\"},{\"domainName\":\"jknsxfwu\"}]}],\"hybridAksClustersAssociatedIds\":[\"dpkupnqrmgjf\"],\"interfaceName\":\"kuwxeoiojfizfavk\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"cyayk\",\"mfzsbf\",\"xrzxmdewsrsxkrp\"]},\"location\":\"jazejwwviyoyp\",\"tags\":{\"hqkb\":\"brnnhjxsqw\",\"zycyqiqyhg\":\"wetp\"},\"id\":\"se\",\"name\":\"zlex\",\"type\":\"sfledyn\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudServicesNetwork response = manager.cloudServicesNetworks() - .define("mclujyxkyxlzgs") - .withRegion("ssmzhhkuui") - .withExistingResourceGroup("uusioycblev") - .withExtendedLocation(new ExtendedLocation().withName("gkzz").withType("taf")) - .withTags(mapOf("ctekval", "q")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("fovwmbjlzqsczpg") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("wnapfdq"), - new EndpointDependency().withDomainName("owftptnuwjtks"))), - new EgressEndpoint().withCategory("h") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("gqy"), - new EndpointDependency().withDomainName("leseyqrhvyeldo"), - new EndpointDependency().withDomainName("jv"))), - new EgressEndpoint().withCategory("kwiswskukjtas") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("wispkxk"), - new EndpointDependency().withDomainName("txfkndlqvt"))), - new EgressEndpoint().withCategory("knvgmmbugtywat") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("aqkue"), - new EndpointDependency().withDomainName("tgroesh"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE) - .create(); - - Assertions.assertEquals("jazejwwviyoyp", response.location()); - Assertions.assertEquals("brnnhjxsqw", response.tags().get("hqkb")); - Assertions.assertEquals("ev", response.extendedLocation().name()); - Assertions.assertEquals("sxivzrrryvei", response.extendedLocation().type()); - Assertions.assertEquals("kdyzatvfuzk", response.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("tjvv", response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - response.enableDefaultEgressEndpoints()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 310a37905696e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -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 CloudServicesNetworksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"w\",\"type\":\"vcacoyv\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"izus\",\"endpoints\":[{\"domainName\":\"zlbscmnlziji\"},{\"domainName\":\"fehgmv\"}]}],\"associatedResourceIds\":[\"wyvq\",\"xrerlniylylyf\"],\"clusterId\":\"zutgqztwhghmupg\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cdxa\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"tabenbbk\",\"endpoints\":[{\"domainName\":\"pxzuca\"},{\"domainName\":\"e\"},{\"domainName\":\"dwwnl\"},{\"domainName\":\"a\"}]},{\"category\":\"wxudgn\",\"endpoints\":[{\"domainName\":\"ookrtalvnbw\"},{\"domainName\":\"pbeme\"},{\"domainName\":\"uclvdjj\"}]},{\"category\":\"kyrdnqodx\",\"endpoints\":[{\"domainName\":\"h\"},{\"domainName\":\"hqfaqnvz\"}]}],\"hybridAksClustersAssociatedIds\":[\"yipemchgavsczuej\",\"txptlghw\"],\"interfaceName\":\"omew\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"iuh\",\"awmo\",\"ia\",\"cz\"]},\"location\":\"odrrslblxyd\",\"tags\":{\"xiwkgfbql\":\"xvv\",\"c\":\"nqkhych\"},\"id\":\"kulehurqlrq\",\"name\":\"fawey\",\"type\":\"rkphyjdxr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudServicesNetwork response = manager.cloudServicesNetworks() - .getByResourceGroupWithResponse("qxfx", "elgcmpzqjhhhqx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("odrrslblxyd", response.location()); - Assertions.assertEquals("xvv", response.tags().get("xiwkgfbql")); - Assertions.assertEquals("w", response.extendedLocation().name()); - Assertions.assertEquals("vcacoyv", response.extendedLocation().type()); - Assertions.assertEquals("izus", response.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("zlbscmnlziji", - response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, - response.enableDefaultEgressEndpoints()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java deleted file mode 100644 index 84f2539fc3553..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java +++ /dev/null @@ -1,49 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -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 CloudServicesNetworksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"lz\",\"type\":\"zjknyuxg\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"pnrupzaamrdi\",\"endpoints\":[{\"domainName\":\"rekidswysk\"},{\"domainName\":\"ruffgllukk\"},{\"domainName\":\"tvlxhrpqh\"}]}],\"associatedResourceIds\":[\"lcouqehbhbcdszir\",\"randoypmb\",\"t\",\"ormkfqlwxldyk\"],\"clusterId\":\"sy\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"njpnnbmj\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"gsjjxxahmrna\",\"endpoints\":[{\"domainName\":\"yqegx\"},{\"domainName\":\"iv\"},{\"domainName\":\"inbmh\"}]},{\"category\":\"bjijkgqxnh\",\"endpoints\":[{\"domainName\":\"keznjaujvaa\"},{\"domainName\":\"nggiycwkdtaa\"}]},{\"category\":\"xw\",\"endpoints\":[{\"domainName\":\"ka\"},{\"domainName\":\"mrrqmbzmqkratb\"}]}],\"hybridAksClustersAssociatedIds\":[\"bjsidb\",\"rkfpks\",\"kd\"],\"interfaceName\":\"gewi\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"bguzozky\",\"wnf\"]},\"location\":\"hhhqosm\",\"tags\":{\"zoghktdpyczhc\":\"kutycyarnroohgua\",\"cfyjzp\":\"eocnhzqrottj\",\"qdhmrjzralcxpjby\":\"wrlohapqinfszpyg\"},\"id\":\"psjoqcjenk\",\"name\":\"hf\",\"type\":\"zv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.cloudServicesNetworks().listByResourceGroup("akpoldtvevbo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hhhqosm", response.iterator().next().location()); - Assertions.assertEquals("kutycyarnroohgua", response.iterator().next().tags().get("zoghktdpyczhc")); - Assertions.assertEquals("lz", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("zjknyuxg", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("pnrupzaamrdi", - response.iterator().next().additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("rekidswysk", - response.iterator().next().additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - response.iterator().next().enableDefaultEgressEndpoints()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java deleted file mode 100644 index 09667526eb9fe..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; -import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -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 CloudServicesNetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"b\",\"type\":\"vnwsw\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"yctww\",\"endpoints\":[{\"domainName\":\"wxjlmec\"},{\"domainName\":\"og\"}]}],\"associatedResourceIds\":[\"yvneeza\",\"fg\",\"tmoqqtlffhzb\",\"rkjjjavfqnvhnq\"],\"clusterId\":\"wdogiyetesyp\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ztjhqtfbovnynkbw\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"hpsprkzyaupiac\",\"endpoints\":[{\"domainName\":\"n\"},{\"domainName\":\"fbwqrooht\"}]},{\"category\":\"ovmaonurjtum\",\"endpoints\":[{\"domainName\":\"ihpvecmslclblyj\"},{\"domainName\":\"lt\"},{\"domainName\":\"sjuscvsfxigctmg\"}]},{\"category\":\"uupb\",\"endpoints\":[{\"domainName\":\"qccydrtceukdq\"},{\"domainName\":\"ky\"},{\"domainName\":\"hztgeqmgqzgwld\"}]},{\"category\":\"ychillcecfe\",\"endpoints\":[{\"domainName\":\"waoaguhi\"},{\"domainName\":\"qllizstac\"},{\"domainName\":\"jvhrweft\"},{\"domainName\":\"wqejpmvsse\"}]}],\"hybridAksClustersAssociatedIds\":[\"pwamcxtczhupeuk\",\"ijdu\",\"yespydjfbocyv\"],\"interfaceName\":\"ulrtywikdmh\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"lgbhgauacdi\",\"mxu\"]},\"location\":\"sryjqgdkfno\",\"tags\":{\"hntasfaymx\":\"oqbvjhvefgwbmqj\",\"qkyojwyvf\":\"ulpzealb\",\"jcmmzrrscub\":\"mbtsuahxsg\",\"jxcjrmmuabwib\":\"wsdrnpxqwodif\"},\"id\":\"jogjonmc\",\"name\":\"e\",\"type\":\"oyzbamwineofvf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.cloudServicesNetworks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sryjqgdkfno", response.iterator().next().location()); - Assertions.assertEquals("oqbvjhvefgwbmqj", response.iterator().next().tags().get("hntasfaymx")); - Assertions.assertEquals("b", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("vnwsw", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("yctww", response.iterator().next().additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("wxjlmec", - response.iterator().next().additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, - response.iterator().next().enableDefaultEgressEndpoints()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java deleted file mode 100644 index 082ea214a9ae0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; - -public final class ClusterAvailableUpgradeVersionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterAvailableUpgradeVersion model = BinaryData.fromString( - "{\"controlImpact\":\"False\",\"expectedDuration\":\"qiiobyuqer\",\"impactDescription\":\"lp\",\"supportExpiryDate\":\"cciuqgbdbutau\",\"targetClusterVersion\":\"btkuwhh\",\"workloadImpact\":\"False\"}") - .toObject(ClusterAvailableUpgradeVersion.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterAvailableUpgradeVersion model = new ClusterAvailableUpgradeVersion(); - model = BinaryData.fromObject(model).toObject(ClusterAvailableUpgradeVersion.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java deleted file mode 100644 index 2b2db3c632bf1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterAvailableVersion; - -public final class ClusterAvailableVersionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterAvailableVersion model - = BinaryData.fromString("{\"supportExpiryDate\":\"tbobz\",\"targetClusterVersion\":\"pcjwv\"}") - .toObject(ClusterAvailableVersion.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterAvailableVersion model = new ClusterAvailableVersion(); - model = BinaryData.fromObject(model).toObject(ClusterAvailableVersion.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java deleted file mode 100644 index 422c986db41b5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java +++ /dev/null @@ -1,47 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; -import org.junit.jupiter.api.Assertions; - -public final class ClusterCapacityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterCapacity model = BinaryData.fromString( - "{\"availableApplianceStorageGB\":2308997283285722741,\"availableCoreCount\":5565068943906276094,\"availableHostStorageGB\":1160187571716366266,\"availableMemoryGB\":6257621363214543247,\"totalApplianceStorageGB\":3311442512942014453,\"totalCoreCount\":735752608656011593,\"totalHostStorageGB\":8335274886610479577,\"totalMemoryGB\":8200965629156318432}") - .toObject(ClusterCapacity.class); - Assertions.assertEquals(2308997283285722741L, model.availableApplianceStorageGB()); - Assertions.assertEquals(5565068943906276094L, model.availableCoreCount()); - Assertions.assertEquals(1160187571716366266L, model.availableHostStorageGB()); - Assertions.assertEquals(6257621363214543247L, model.availableMemoryGB()); - Assertions.assertEquals(3311442512942014453L, model.totalApplianceStorageGB()); - Assertions.assertEquals(735752608656011593L, model.totalCoreCount()); - Assertions.assertEquals(8335274886610479577L, model.totalHostStorageGB()); - Assertions.assertEquals(8200965629156318432L, model.totalMemoryGB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterCapacity model = new ClusterCapacity().withAvailableApplianceStorageGB(2308997283285722741L) - .withAvailableCoreCount(5565068943906276094L) - .withAvailableHostStorageGB(1160187571716366266L) - .withAvailableMemoryGB(6257621363214543247L) - .withTotalApplianceStorageGB(3311442512942014453L) - .withTotalCoreCount(735752608656011593L) - .withTotalHostStorageGB(8335274886610479577L) - .withTotalMemoryGB(8200965629156318432L); - model = BinaryData.fromObject(model).toObject(ClusterCapacity.class); - Assertions.assertEquals(2308997283285722741L, model.availableApplianceStorageGB()); - Assertions.assertEquals(5565068943906276094L, model.availableCoreCount()); - Assertions.assertEquals(1160187571716366266L, model.availableHostStorageGB()); - Assertions.assertEquals(6257621363214543247L, model.availableMemoryGB()); - Assertions.assertEquals(3311442512942014453L, model.totalApplianceStorageGB()); - Assertions.assertEquals(735752608656011593L, model.totalCoreCount()); - Assertions.assertEquals(8335274886610479577L, model.totalHostStorageGB()); - Assertions.assertEquals(8200965629156318432L, model.totalMemoryGB()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java deleted file mode 100644 index e1037066f9e3c..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionMachineGroupTargetingMode; -import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; -import org.junit.jupiter.api.Assertions; - -public final class ClusterContinueUpdateVersionParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterContinueUpdateVersionParameters model - = BinaryData.fromString("{\"machineGroupTargetingMode\":\"AlphaByRack\"}") - .toObject(ClusterContinueUpdateVersionParameters.class); - Assertions.assertEquals(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK, - model.machineGroupTargetingMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterContinueUpdateVersionParameters model = new ClusterContinueUpdateVersionParameters() - .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK); - model = BinaryData.fromObject(model).toObject(ClusterContinueUpdateVersionParameters.class); - Assertions.assertEquals(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK, - model.machineGroupTargetingMode()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java deleted file mode 100644 index e91ebd0d1f1f0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterDeployParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterDeployParameters model - = BinaryData.fromString("{\"skipValidationsForMachines\":[\"w\",\"ehtuevrhr\",\"jyoogwxh\"]}") - .toObject(ClusterDeployParameters.class); - Assertions.assertEquals("w", model.skipValidationsForMachines().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterDeployParameters model - = new ClusterDeployParameters().withSkipValidationsForMachines(Arrays.asList("w", "ehtuevrhr", "jyoogwxh")); - model = BinaryData.fromObject(model).toObject(ClusterDeployParameters.class); - Assertions.assertEquals("w", model.skipValidationsForMachines().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java deleted file mode 100644 index 7c974428c151c..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java +++ /dev/null @@ -1,71 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; -import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterManagerInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterManagerInner model = BinaryData.fromString( - "{\"identity\":{\"principalId\":\"6a219ae8-bf79-4c1d-ad7c-710d9c4e4572\",\"tenantId\":\"9394c260-5644-4f16-b350-200dccfdf47e\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ndslgnayqigynduh\":{\"principalId\":\"067013cc-6ca8-413b-a8e9-6669afb17f10\",\"clientId\":\"0e2d10a9-5d5a-431c-8327-890f1e2547cd\"},\"qlkth\":{\"principalId\":\"5c5d5f50-fa35-488d-bb1c-c262471d1d76\",\"clientId\":\"5ced5514-81e1-4ce7-8f48-ad7e3e4871d1\"},\"qolbgyc\":{\"principalId\":\"473245fd-e236-4482-9a2a-6c557d13d760\",\"clientId\":\"f42102df-3377-4e68-a42a-992ff3574173\"}}},\"properties\":{\"analyticsWorkspaceId\":\"iertgccymvaolp\",\"availabilityZones\":[\"qlfmmdnbb\",\"lzpswiydm\"],\"clusterVersions\":[{\"supportExpiryDate\":\"zdxss\",\"targetClusterVersion\":\"bzmnvdfznud\"}],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"xzb\",\"fabricControllerId\":\"cblylpstdbhhxsr\",\"managedResourceGroupConfiguration\":{\"location\":\"ucerscdntnevfi\",\"name\":\"mygtdssls\"},\"managerExtendedLocation\":{\"name\":\"mweriofzpy\",\"type\":\"semwabnet\"},\"provisioningState\":\"Failed\",\"vmSize\":\"zhedplvwiw\"},\"location\":\"mwmbes\",\"tags\":{\"wtppjflcxogaoko\":\"k\"},\"id\":\"z\",\"name\":\"nsikvmkqzeqqkdl\",\"type\":\"fzxmhhvhgureodkw\"}") - .toObject(ClusterManagerInner.class); - Assertions.assertEquals("mwmbes", model.location()); - Assertions.assertEquals("k", model.tags().get("wtppjflcxogaoko")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("iertgccymvaolp", model.analyticsWorkspaceId()); - Assertions.assertEquals("qlfmmdnbb", model.availabilityZones().get(0)); - Assertions.assertEquals("cblylpstdbhhxsr", model.fabricControllerId()); - Assertions.assertEquals("ucerscdntnevfi", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("mygtdssls", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("zhedplvwiw", model.vmSize()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterManagerInner model = new ClusterManagerInner().withLocation("mwmbes") - .withTags(mapOf("wtppjflcxogaoko", "k")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("ndslgnayqigynduh", new UserAssignedIdentity(), "qlkth", - new UserAssignedIdentity(), "qolbgyc", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId("iertgccymvaolp") - .withAvailabilityZones(Arrays.asList("qlfmmdnbb", "lzpswiydm")) - .withFabricControllerId("cblylpstdbhhxsr") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("ucerscdntnevfi").withName("mygtdssls")) - .withVmSize("zhedplvwiw"); - model = BinaryData.fromObject(model).toObject(ClusterManagerInner.class); - Assertions.assertEquals("mwmbes", model.location()); - Assertions.assertEquals("k", model.tags().get("wtppjflcxogaoko")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("iertgccymvaolp", model.analyticsWorkspaceId()); - Assertions.assertEquals("qlfmmdnbb", model.availabilityZones().get(0)); - Assertions.assertEquals("cblylpstdbhhxsr", model.fabricControllerId()); - Assertions.assertEquals("ucerscdntnevfi", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("mygtdssls", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("zhedplvwiw", model.vmSize()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java deleted file mode 100644 index 1f5bd05a1a60c..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java +++ /dev/null @@ -1,98 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; -import com.azure.resourcemanager.networkcloud.models.ClusterManagerList; -import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterManagerListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterManagerList model = BinaryData.fromString( - "{\"nextLink\":\"ali\",\"value\":[{\"identity\":{\"principalId\":\"49a09063-aa36-479d-9551-00187b1b7428\",\"tenantId\":\"758d0c53-3250-4f27-9968-90f643842156\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"shsfwxosowzxcu\":{\"principalId\":\"38774de8-4b88-4148-9feb-4b6b8b7b9229\",\"clientId\":\"d45b640d-e10c-4488-b5c4-15edd9d6958c\"},\"jooxdjebw\":{\"principalId\":\"548464c7-fe28-4dae-96e7-fa92bf6cfc2f\",\"clientId\":\"7e90a6ce-b44d-4a28-9ddc-cdc8c4489c0e\"},\"wwfvov\":{\"principalId\":\"fe58d95f-95d5-4696-b0ab-5726d560f651\",\"clientId\":\"b5675bdf-17af-47b4-b08b-8895f0381054\"}}},\"properties\":{\"analyticsWorkspaceId\":\"meue\",\"availabilityZones\":[\"yhz\",\"euojgjrwju\",\"iotwmcdytdxwit\",\"nrjawgqwg\"],\"clusterVersions\":[{\"supportExpiryDate\":\"skxfbk\",\"targetClusterVersion\":\"cg\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"dnhjdauwhvylw\",\"fabricControllerId\":\"btdhxujznbm\",\"managedResourceGroupConfiguration\":{\"location\":\"uwprzql\",\"name\":\"ualupjmkh\"},\"managerExtendedLocation\":{\"name\":\"obbc\",\"type\":\"wsrtjriplrbpbe\"},\"provisioningState\":\"Updating\",\"vmSize\":\"fgb\"},\"location\":\"gw\",\"tags\":{\"ebwwaloayqc\":\"lvqhjkbegibtnmx\",\"uzgwyzmhtx\":\"wrtz\",\"wxqpsrknftguvri\":\"ngmtsavjcb\"},\"id\":\"hprwmdyv\",\"name\":\"qtayri\",\"type\":\"wroyqbexrmcq\"},{\"identity\":{\"principalId\":\"19dad387-8a89-4baf-a63f-080001245d99\",\"tenantId\":\"b5e2ee71-4ebb-4e56-95c1-359f53c88932\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nmefqsgzvahapj\":{\"principalId\":\"6965eb73-482e-4d14-ae32-1d0518d079e5\",\"clientId\":\"d01d9d87-5bdb-4a6a-a324-c58d6969f07c\"}}},\"properties\":{\"analyticsWorkspaceId\":\"hpvgqz\",\"availabilityZones\":[\"vxdjzlmwlxkvugf\",\"zovawjvz\",\"nluthnnp\"],\"clusterVersions\":[{\"supportExpiryDate\":\"peilpjzuaejxdu\",\"targetClusterVersion\":\"skzbb\"},{\"supportExpiryDate\":\"zumveekgpwo\",\"targetClusterVersion\":\"hkfpbs\"},{\"supportExpiryDate\":\"ofd\",\"targetClusterVersion\":\"uusdttouwa\"},{\"supportExpiryDate\":\"ekqvkeln\",\"targetClusterVersion\":\"vbxwyjsflhh\"}],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"n\",\"fabricControllerId\":\"ixisxyawjoy\",\"managedResourceGroupConfiguration\":{\"location\":\"slyjpkiid\",\"name\":\"exznelixhnr\"},\"managerExtendedLocation\":{\"name\":\"folhbnxknal\",\"type\":\"ulppggdtpnapnyir\"},\"provisioningState\":\"Updating\",\"vmSize\":\"pigvpgylgqgitx\"},\"location\":\"djvcsl\",\"tags\":{\"rmgucnap\":\"wwncwzzhxgk\",\"oellwp\":\"t\"},\"id\":\"fdygpfqbuaceopz\",\"name\":\"qrhhu\",\"type\":\"opppcqeq\"},{\"identity\":{\"principalId\":\"5c4cab3e-f69e-4a03-aa69-262b1c3080cb\",\"tenantId\":\"d1adf45f-a687-4007-90d1-8ca7aa58b89e\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ctobg\":{\"principalId\":\"6c643165-fa7b-4736-a580-5ced82c851a8\",\"clientId\":\"c49b4da3-628d-4dc8-88fb-13afa8f8eb7d\"},\"moizpos\":{\"principalId\":\"87f1646e-cc50-4f67-ad47-9eb4a0ce7860\",\"clientId\":\"085bb405-4662-46df-b524-7228ff57db76\"}}},\"properties\":{\"analyticsWorkspaceId\":\"grcfb\",\"availabilityZones\":[\"mfqjhhkxbp\",\"jy\",\"jhxxjyn\",\"u\"],\"clusterVersions\":[{\"supportExpiryDate\":\"r\",\"targetClusterVersion\":\"wbxqzvszjfau\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"xxivetv\",\"fabricControllerId\":\"cqaqtdoqmcbx\",\"managedResourceGroupConfiguration\":{\"location\":\"xyslqbh\",\"name\":\"xoblytkbl\"},\"managerExtendedLocation\":{\"name\":\"ewwwfbkrvrnsv\",\"type\":\"hqjohxcrsbfova\"},\"provisioningState\":\"Failed\",\"vmSize\":\"v\"},\"location\":\"hsqfsubcgjbirxbp\",\"tags\":{\"twss\":\"rfbjf\",\"tpvjzbexilzznfqq\":\"t\",\"taruoujmkcj\":\"vwpm\"},\"id\":\"wqytjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"type\":\"doy\"}]}") - .toObject(ClusterManagerList.class); - Assertions.assertEquals("ali", model.nextLink()); - Assertions.assertEquals("gw", model.value().get(0).location()); - Assertions.assertEquals("lvqhjkbegibtnmx", model.value().get(0).tags().get("ebwwaloayqc")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("meue", model.value().get(0).analyticsWorkspaceId()); - Assertions.assertEquals("yhz", model.value().get(0).availabilityZones().get(0)); - Assertions.assertEquals("btdhxujznbm", model.value().get(0).fabricControllerId()); - Assertions.assertEquals("uwprzql", model.value().get(0).managedResourceGroupConfiguration().location()); - Assertions.assertEquals("ualupjmkh", model.value().get(0).managedResourceGroupConfiguration().name()); - Assertions.assertEquals("fgb", model.value().get(0).vmSize()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterManagerList model = new ClusterManagerList().withNextLink("ali") - .withValue(Arrays.asList( - new ClusterManagerInner().withLocation("gw") - .withTags( - mapOf("ebwwaloayqc", "lvqhjkbegibtnmx", "uzgwyzmhtx", "wrtz", "wxqpsrknftguvri", "ngmtsavjcb")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("shsfwxosowzxcu", new UserAssignedIdentity(), "jooxdjebw", - new UserAssignedIdentity(), "wwfvov", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId("meue") - .withAvailabilityZones(Arrays.asList("yhz", "euojgjrwju", "iotwmcdytdxwit", "nrjawgqwg")) - .withFabricControllerId("btdhxujznbm") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("uwprzql").withName("ualupjmkh")) - .withVmSize("fgb"), - new ClusterManagerInner().withLocation("djvcsl") - .withTags(mapOf("rmgucnap", "wwncwzzhxgk", "oellwp", "t")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("nmefqsgzvahapj", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId("hpvgqz") - .withAvailabilityZones(Arrays.asList("vxdjzlmwlxkvugf", "zovawjvz", "nluthnnp")) - .withFabricControllerId("ixisxyawjoy") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("slyjpkiid").withName("exznelixhnr")) - .withVmSize("pigvpgylgqgitx"), - new ClusterManagerInner().withLocation("hsqfsubcgjbirxbp") - .withTags(mapOf("twss", "rfbjf", "tpvjzbexilzznfqq", "t", "taruoujmkcj", "vwpm")) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("ctobg", new UserAssignedIdentity(), "moizpos", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId("grcfb") - .withAvailabilityZones(Arrays.asList("mfqjhhkxbp", "jy", "jhxxjyn", "u")) - .withFabricControllerId("cqaqtdoqmcbx") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("xyslqbh").withName("xoblytkbl")) - .withVmSize("v"))); - model = BinaryData.fromObject(model).toObject(ClusterManagerList.class); - Assertions.assertEquals("ali", model.nextLink()); - Assertions.assertEquals("gw", model.value().get(0).location()); - Assertions.assertEquals("lvqhjkbegibtnmx", model.value().get(0).tags().get("ebwwaloayqc")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); - Assertions.assertEquals("meue", model.value().get(0).analyticsWorkspaceId()); - Assertions.assertEquals("yhz", model.value().get(0).availabilityZones().get(0)); - Assertions.assertEquals("btdhxujznbm", model.value().get(0).fabricControllerId()); - Assertions.assertEquals("uwprzql", model.value().get(0).managedResourceGroupConfiguration().location()); - Assertions.assertEquals("ualupjmkh", model.value().get(0).managedResourceGroupConfiguration().name()); - Assertions.assertEquals("fgb", model.value().get(0).vmSize()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java deleted file mode 100644 index 8ce2e86f0da3a..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java +++ /dev/null @@ -1,49 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterManagerPatchParameters; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterManagerPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterManagerPatchParameters model = BinaryData.fromString( - "{\"identity\":{\"principalId\":\"7b4a5a81-f88a-4c6d-a5db-35a0641bdf90\",\"tenantId\":\"40f9ac5e-c21c-4158-831d-d3569e891df6\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"lu\":{\"principalId\":\"050ddab3-f26f-4462-bff3-aaf69d12a188\",\"clientId\":\"dbf82f40-a210-425c-a5aa-aa54a3e7a689\"},\"tangcfhnykzcu\":{\"principalId\":\"e1e3d571-6385-4a48-9ee6-c0c5df9cfce2\",\"clientId\":\"020f20f7-8027-4f55-8dac-929382302c9c\"},\"vxwlmzqwmvtxnj\":{\"principalId\":\"fa0aec32-dc1c-414f-a1fa-dbf7a8a7f8ce\",\"clientId\":\"59682341-4e23-4639-9f51-5b4830c091b6\"}}},\"tags\":{\"pdkvg\":\"cuqudtcvclxy\",\"ibuz\":\"abuiy\",\"xgjiuqh\":\"hdugneiknpg\"}}") - .toObject(ClusterManagerPatchParameters.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("cuqudtcvclxy", model.tags().get("pdkvg")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterManagerPatchParameters model = new ClusterManagerPatchParameters() - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("lu", new UserAssignedIdentity(), "tangcfhnykzcu", - new UserAssignedIdentity(), "vxwlmzqwmvtxnj", new UserAssignedIdentity()))) - .withTags(mapOf("pdkvg", "cuqudtcvclxy", "ibuz", "abuiy", "xgjiuqh", "hdugneiknpg")); - model = BinaryData.fromObject(model).toObject(ClusterManagerPatchParameters.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); - Assertions.assertEquals("cuqudtcvclxy", model.tags().get("pdkvg")); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java deleted file mode 100644 index 31825bdf24467..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerProperties; -import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterManagerPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterManagerProperties model = BinaryData.fromString( - "{\"analyticsWorkspaceId\":\"evseotgqrlltmuwl\",\"availabilityZones\":[\"zizxbmpgcj\",\"fuzmuvpbtt\",\"um\",\"rp\"],\"clusterVersions\":[{\"supportExpiryDate\":\"mnzb\",\"targetClusterVersion\":\"hjpglkf\"},{\"supportExpiryDate\":\"hdneuelfph\",\"targetClusterVersion\":\"yhtozfikdowwqu\"},{\"supportExpiryDate\":\"xzxcl\",\"targetClusterVersion\":\"thhqzonosggbh\"},{\"supportExpiryDate\":\"hfwdsjnkaljutiis\",\"targetClusterVersion\":\"cffgdkzzewk\"}],\"detailedStatus\":\"UpdateFailed\",\"detailedStatusMessage\":\"crailvpn\",\"fabricControllerId\":\"pfuflrw\",\"managedResourceGroupConfiguration\":{\"location\":\"dlxyjrxs\",\"name\":\"afcnih\"},\"managerExtendedLocation\":{\"name\":\"qapnedgfbcv\",\"type\":\"cvqvpkeqdcv\"},\"provisioningState\":\"Updating\",\"vmSize\":\"ood\"}") - .toObject(ClusterManagerProperties.class); - Assertions.assertEquals("evseotgqrlltmuwl", model.analyticsWorkspaceId()); - Assertions.assertEquals("zizxbmpgcj", model.availabilityZones().get(0)); - Assertions.assertEquals("pfuflrw", model.fabricControllerId()); - Assertions.assertEquals("dlxyjrxs", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("afcnih", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("ood", model.vmSize()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterManagerProperties model = new ClusterManagerProperties().withAnalyticsWorkspaceId("evseotgqrlltmuwl") - .withAvailabilityZones(Arrays.asList("zizxbmpgcj", "fuzmuvpbtt", "um", "rp")) - .withFabricControllerId("pfuflrw") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("dlxyjrxs").withName("afcnih")) - .withVmSize("ood"); - model = BinaryData.fromObject(model).toObject(ClusterManagerProperties.class); - Assertions.assertEquals("evseotgqrlltmuwl", model.analyticsWorkspaceId()); - Assertions.assertEquals("zizxbmpgcj", model.availabilityZones().get(0)); - Assertions.assertEquals("pfuflrw", model.fabricControllerId()); - Assertions.assertEquals("dlxyjrxs", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("afcnih", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("ood", model.vmSize()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java deleted file mode 100644 index 7a8478fac1904..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java +++ /dev/null @@ -1,81 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -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 ClusterManagersCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"identity\":{\"principalId\":\"e268ac60-edd9-4fab-9292-3acd76011c78\",\"tenantId\":\"1615f97b-1321-4f0a-8b71-872bbb4fede2\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"dnaienhqhskndnel\":{\"principalId\":\"005c1ee7-f0ec-4faa-96f9-0377b7224ef7\",\"clientId\":\"16f1a90c-acd1-446d-9656-a59ed1137a47\"},\"adlknwfoanni\":{\"principalId\":\"32ae87aa-3137-47d4-80f0-66fe56d4933e\",\"clientId\":\"daa7a91a-dfd1-4ea6-9c9e-dea4fe198728\"}}},\"properties\":{\"analyticsWorkspaceId\":\"petxivcnrlyxnu\",\"availabilityZones\":[\"p\",\"blkwqpatvbqs\",\"tcjb\",\"tvivuzqym\"],\"clusterVersions\":[{\"supportExpiryDate\":\"o\",\"targetClusterVersion\":\"gitsqh\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"zcdba\",\"fabricControllerId\":\"fzndscxmxeatkd\",\"managedResourceGroupConfiguration\":{\"location\":\"nrd\",\"name\":\"ibqbnaomhjrm\"},\"managerExtendedLocation\":{\"name\":\"hmaxljalfi\",\"type\":\"cjmobcanc\"},\"provisioningState\":\"Succeeded\",\"vmSize\":\"qcwgaxfgvaknokz\"},\"location\":\"jzrltixldzy\",\"tags\":{\"ixymmpujivyql\":\"tpq\",\"dbpqvybefgvm\":\"juvsmbmslzoyovw\",\"lubses\":\"nokcv\",\"pirykycndzfqiv\":\"vcuartrhun\"},\"id\":\"reuykbbmnwagl\",\"name\":\"bxoeeonql\",\"type\":\"fwmyymv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterManager response = manager.clusterManagers() - .define("mcqmiciijqp") - .withRegion("sfayorpravkjoges") - .withExistingResourceGroup("ywbo") - .withFabricControllerId("sauzpjlx") - .withTags(mapOf("kvwjtqpkevmy", "nsmjkwynqxaekqs", "gxannnoytzposewx", "tjcrspxklurccl", "dfaifyzyzeyuube", - "gpxvkqmaupxvpi", "l", "ds")) - .withIdentity( - new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("cs", new UserAssignedIdentity(), "wixvcpwnkwywzw", new UserAssignedIdentity(), - "lickduoi", new UserAssignedIdentity(), "mt", new UserAssignedIdentity()))) - .withAnalyticsWorkspaceId("sknxrwzawnvsbcf") - .withAvailabilityZones(Arrays.asList("gxnvhyc", "dimwrzregzgyu", "utrwpweryekz", "dhme")) - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("uxiqhzlraymezxl").withName("ihmxrfdsajredn")) - .withVmSize("ipxgzdy") - .create(); - - Assertions.assertEquals("jzrltixldzy", response.location()); - Assertions.assertEquals("tpq", response.tags().get("ixymmpujivyql")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("petxivcnrlyxnu", response.analyticsWorkspaceId()); - Assertions.assertEquals("p", response.availabilityZones().get(0)); - Assertions.assertEquals("fzndscxmxeatkd", response.fabricControllerId()); - Assertions.assertEquals("nrd", response.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("ibqbnaomhjrm", response.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("qcwgaxfgvaknokz", response.vmSize()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 430a89e442d97..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -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 ClusterManagersGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"identity\":{\"principalId\":\"453b87f5-f3fe-4e4e-8723-1c80d857bbe7\",\"tenantId\":\"2ea81332-bd17-44c5-95b5-afd76520ffd2\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"qnzmnhiil\":{\"principalId\":\"6133586e-eb63-4217-b204-04a52b432c07\",\"clientId\":\"f65aef5d-bd78-43f3-b682-bb8f78469262\"},\"w\":{\"principalId\":\"858b76c1-c8c5-4eb2-a0c8-dc169dba1383\",\"clientId\":\"d80e91b8-cc09-4844-9681-6a1a8f47e937\"},\"ckbbcc\":{\"principalId\":\"c630ecaa-d778-402c-a023-7d29f1394d0d\",\"clientId\":\"993e74e3-e74b-47b8-912e-ea8c1741f39c\"}}},\"properties\":{\"analyticsWorkspaceId\":\"zpraoxn\",\"availabilityZones\":[\"fa\",\"sgftipwc\",\"byubhiqdxyurnpn\"],\"clusterVersions\":[{\"supportExpiryDate\":\"fccnuhiigb\",\"targetClusterVersion\":\"bui\"},{\"supportExpiryDate\":\"xvatvcr\",\"targetClusterVersion\":\"lbnb\"},{\"supportExpiryDate\":\"vhcs\",\"targetClusterVersion\":\"zlwxaeaovur\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"d\",\"fabricControllerId\":\"bdweade\",\"managedResourceGroupConfiguration\":{\"location\":\"wntopag\",\"name\":\"mvmmagoaqylkjz\"},\"managerExtendedLocation\":{\"name\":\"iua\",\"type\":\"jcg\"},\"provisioningState\":\"Updating\",\"vmSize\":\"pfinzcpdltkrlg\"},\"location\":\"tbdrvcqgue\",\"tags\":{\"lyujlfyoump\":\"ompheqdur\",\"brzmqxucycijoclx\":\"kyeclcdigpta\",\"zjd\":\"utgjcyz\",\"jb\":\"r\"},\"id\":\"xjeaoqaqbzgyh\",\"name\":\"w\",\"type\":\"v\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterManager response = manager.clusterManagers() - .getByResourceGroupWithResponse("iuxegth", "rtudawlpjfel", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("tbdrvcqgue", response.location()); - Assertions.assertEquals("ompheqdur", response.tags().get("lyujlfyoump")); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("zpraoxn", response.analyticsWorkspaceId()); - Assertions.assertEquals("fa", response.availabilityZones().get(0)); - Assertions.assertEquals("bdweade", response.fabricControllerId()); - Assertions.assertEquals("wntopag", response.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("mvmmagoaqylkjz", response.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("pfinzcpdltkrlg", response.vmSize()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java deleted file mode 100644 index 411f2a19279ee..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -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 ClusterManagersListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"identity\":{\"principalId\":\"ee09de5e-0b08-4077-a972-e27caad4a133\",\"tenantId\":\"2aaba3bc-371e-4ade-8b3d-73b670498c78\",\"type\":\"None\",\"userAssignedIdentities\":{\"zuqnwsithuqo\":{\"principalId\":\"26a21559-c5cf-4ae8-a241-9e197a7bd553\",\"clientId\":\"5d113e77-1142-452e-ab6b-cac4377743af\"}}},\"properties\":{\"analyticsWorkspaceId\":\"ah\",\"availabilityZones\":[\"wqulsutrjbhxykf\",\"y\"],\"clusterVersions\":[{\"supportExpiryDate\":\"qqug\",\"targetClusterVersion\":\"ftbcvexreuquow\"},{\"supportExpiryDate\":\"jv\",\"targetClusterVersion\":\"hreagk\"},{\"supportExpiryDate\":\"xv\",\"targetClusterVersion\":\"tvbczsulm\"},{\"supportExpiryDate\":\"glmep\",\"targetClusterVersion\":\"fs\"}],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"sa\",\"fabricControllerId\":\"gpszngafpg\",\"managedResourceGroupConfiguration\":{\"location\":\"vecjujcn\",\"name\":\"adyedmzrgjfok\"},\"managerExtendedLocation\":{\"name\":\"bnoit\",\"type\":\"kpztrgd\"},\"provisioningState\":\"Provisioning\",\"vmSize\":\"oqraswugyxpqi\"},\"location\":\"eialwvskb\",\"tags\":{\"pdsxzakuejkm\":\"acaqtyltcoqcu\"},\"id\":\"bizt\",\"name\":\"ofqcvovjufycsjm\",\"type\":\"bemyeji\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.clusterManagers().listByResourceGroup("phlkksnm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("eialwvskb", response.iterator().next().location()); - Assertions.assertEquals("acaqtyltcoqcu", response.iterator().next().tags().get("pdsxzakuejkm")); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("ah", response.iterator().next().analyticsWorkspaceId()); - Assertions.assertEquals("wqulsutrjbhxykf", response.iterator().next().availabilityZones().get(0)); - Assertions.assertEquals("gpszngafpg", response.iterator().next().fabricControllerId()); - Assertions.assertEquals("vecjujcn", response.iterator().next().managedResourceGroupConfiguration().location()); - Assertions.assertEquals("adyedmzrgjfok", response.iterator().next().managedResourceGroupConfiguration().name()); - Assertions.assertEquals("oqraswugyxpqi", response.iterator().next().vmSize()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java deleted file mode 100644 index 335f0706737b0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -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 ClusterManagersListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"identity\":{\"principalId\":\"a303995d-39d1-4709-ad26-984194e7e717\",\"tenantId\":\"9a26af15-17df-45aa-9ddb-8ce2e8dd266f\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"zkkdtnhqs\":{\"principalId\":\"d547ea19-a2f8-432f-afa3-18ff9d3c4885\",\"clientId\":\"6af7925a-d5da-4836-8263-138718258e04\"},\"jselpkpbafvafh\":{\"principalId\":\"90e4e34c-111a-4a66-8d72-a04d074a4f74\",\"clientId\":\"32daae6b-0565-4e8c-b1b5-d00dd47c6301\"}}},\"properties\":{\"analyticsWorkspaceId\":\"ylcc\",\"availabilityZones\":[\"xrhyzdfwrsofplt\"],\"clusterVersions\":[{\"supportExpiryDate\":\"irrhv\",\"targetClusterVersion\":\"nracw\"},{\"supportExpiryDate\":\"qigtuujwouhdaws\",\"targetClusterVersion\":\"rb\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"jybvit\",\"fabricControllerId\":\"qkj\",\"managedResourceGroupConfiguration\":{\"location\":\"nu\",\"name\":\"ggmuwdcho\"},\"managerExtendedLocation\":{\"name\":\"nkf\",\"type\":\"xlvxnoakiz\"},\"provisioningState\":\"Canceled\",\"vmSize\":\"knaqlnuwig\"},\"location\":\"xly\",\"tags\":{\"jtlkexaonwivkcqh\":\"hvxzcwxhmp\",\"rmmkyupiju\":\"xhxknlc\"},\"id\":\"yqjf\",\"name\":\"akfqfrkemyildud\",\"type\":\"jascowvfdjkpd\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.clusterManagers().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xly", response.iterator().next().location()); - Assertions.assertEquals("hvxzcwxhmp", response.iterator().next().tags().get("jtlkexaonwivkcqh")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); - Assertions.assertEquals("ylcc", response.iterator().next().analyticsWorkspaceId()); - Assertions.assertEquals("xrhyzdfwrsofplt", response.iterator().next().availabilityZones().get(0)); - Assertions.assertEquals("qkj", response.iterator().next().fabricControllerId()); - Assertions.assertEquals("nu", response.iterator().next().managedResourceGroupConfiguration().location()); - Assertions.assertEquals("ggmuwdcho", response.iterator().next().managedResourceGroupConfiguration().name()); - Assertions.assertEquals("knaqlnuwig", response.iterator().next().vmSize()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java deleted file mode 100644 index dfd818ec469ae..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterMetricsConfigurationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterMetricsConfigurationInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"kxxpvbrd\",\"type\":\"jmzsyzfh\"},\"properties\":{\"collectionInterval\":4218059828246905287,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"cyychunsjlp\",\"disabledMetrics\":[\"wszhvvuicphvtrr\",\"hwrbfdpyflubh\",\"jgl\"],\"enabledMetrics\":[\"uyzlw\",\"hmem\",\"ooclutnp\",\"memczjkmmyk\"],\"provisioningState\":\"Succeeded\"},\"location\":\"sglhsr\",\"tags\":{\"nigrfihotjewl\":\"ejylmbkzu\",\"hqo\":\"xuzzjgnrefq\",\"diw\":\"oihiqak\",\"hcspo\":\"brkwpzdqt\"},\"id\":\"aqa\",\"name\":\"sipi\",\"type\":\"tgbebj\"}") - .toObject(ClusterMetricsConfigurationInner.class); - Assertions.assertEquals("sglhsr", model.location()); - Assertions.assertEquals("ejylmbkzu", model.tags().get("nigrfihotjewl")); - Assertions.assertEquals("kxxpvbrd", model.extendedLocation().name()); - Assertions.assertEquals("jmzsyzfh", model.extendedLocation().type()); - Assertions.assertEquals(4218059828246905287L, model.collectionInterval()); - Assertions.assertEquals("uyzlw", model.enabledMetrics().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterMetricsConfigurationInner model = new ClusterMetricsConfigurationInner().withLocation("sglhsr") - .withTags(mapOf("nigrfihotjewl", "ejylmbkzu", "hqo", "xuzzjgnrefq", "diw", "oihiqak", "hcspo", "brkwpzdqt")) - .withExtendedLocation(new ExtendedLocation().withName("kxxpvbrd").withType("jmzsyzfh")) - .withCollectionInterval(4218059828246905287L) - .withEnabledMetrics(Arrays.asList("uyzlw", "hmem", "ooclutnp", "memczjkmmyk")); - model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationInner.class); - Assertions.assertEquals("sglhsr", model.location()); - Assertions.assertEquals("ejylmbkzu", model.tags().get("nigrfihotjewl")); - Assertions.assertEquals("kxxpvbrd", model.extendedLocation().name()); - Assertions.assertEquals("jmzsyzfh", model.extendedLocation().type()); - Assertions.assertEquals(4218059828246905287L, model.collectionInterval()); - Assertions.assertEquals("uyzlw", model.enabledMetrics().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java deleted file mode 100644 index e019deb14a304..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java +++ /dev/null @@ -1,72 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; -import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationList; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterMetricsConfigurationListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterMetricsConfigurationList model = BinaryData.fromString( - "{\"nextLink\":\"duugwbsre\",\"value\":[{\"extendedLocation\":{\"name\":\"q\",\"type\":\"fuarenlvhht\"},\"properties\":{\"collectionInterval\":8022511139260982610,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"fvv\",\"disabledMetrics\":[\"edev\"],\"enabledMetrics\":[\"slcqxypokkh\"],\"provisioningState\":\"Succeeded\"},\"location\":\"cymczngn\",\"tags\":{\"wuninv\":\"x\",\"h\":\"db\"},\"id\":\"qdtvqecrqctmxx\",\"name\":\"tddmf\",\"type\":\"huytxzvtzn\"},{\"extendedLocation\":{\"name\":\"pxbannovvoxc\",\"type\":\"ytprwnwvroev\"},\"properties\":{\"collectionInterval\":3836787591700110270,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"rrrouuxvnsa\",\"disabledMetrics\":[\"rymo\",\"izrxklob\",\"xnazpmkml\",\"vevfxz\"],\"enabledMetrics\":[\"hbzxli\",\"hrdd\",\"tfgxqbawpcb\",\"nzqcy\"],\"provisioningState\":\"Failed\"},\"location\":\"qofyuicdhzbdy\",\"tags\":{\"lfmu\":\"gbdvibidmhmwff\",\"yoxoy\":\"apckccrrvw\",\"oshbragapyy\":\"ukphaimmoiroq\",\"opfppdbwnupgah\":\"mfsvbpav\"},\"id\":\"kuma\",\"name\":\"jcaacfdmmcpugm\",\"type\":\"hqepvufhbzehewh\"},{\"extendedLocation\":{\"name\":\"qhnlbqnbld\",\"type\":\"eaclgschorimk\"},\"properties\":{\"collectionInterval\":3947758974496733605,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"ucsofldpuviyf\",\"disabledMetrics\":[\"beolh\",\"hlvbmxu\",\"ibsxtkcud\"],\"enabledMetrics\":[\"farfs\"],\"provisioningState\":\"Provisioning\"},\"location\":\"kjxnqpvwgfstmhq\",\"tags\":{\"aoaf\":\"zmdk\",\"gc\":\"luqvoxmycjimryv\"},\"id\":\"wpbmzgwesydsxwef\",\"name\":\"hecbvopwndyq\",\"type\":\"eallklmtkhlo\"}]}") - .toObject(ClusterMetricsConfigurationList.class); - Assertions.assertEquals("duugwbsre", model.nextLink()); - Assertions.assertEquals("cymczngn", model.value().get(0).location()); - Assertions.assertEquals("x", model.value().get(0).tags().get("wuninv")); - Assertions.assertEquals("q", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("fuarenlvhht", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(8022511139260982610L, model.value().get(0).collectionInterval()); - Assertions.assertEquals("slcqxypokkh", model.value().get(0).enabledMetrics().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterMetricsConfigurationList model = new ClusterMetricsConfigurationList().withNextLink("duugwbsre") - .withValue(Arrays.asList( - new ClusterMetricsConfigurationInner().withLocation("cymczngn") - .withTags(mapOf("wuninv", "x", "h", "db")) - .withExtendedLocation(new ExtendedLocation().withName("q").withType("fuarenlvhht")) - .withCollectionInterval(8022511139260982610L) - .withEnabledMetrics(Arrays.asList("slcqxypokkh")), - new ClusterMetricsConfigurationInner().withLocation("qofyuicdhzbdy") - .withTags(mapOf("lfmu", "gbdvibidmhmwff", "yoxoy", "apckccrrvw", "oshbragapyy", "ukphaimmoiroq", - "opfppdbwnupgah", "mfsvbpav")) - .withExtendedLocation(new ExtendedLocation().withName("pxbannovvoxc").withType("ytprwnwvroev")) - .withCollectionInterval(3836787591700110270L) - .withEnabledMetrics(Arrays.asList("hbzxli", "hrdd", "tfgxqbawpcb", "nzqcy")), - new ClusterMetricsConfigurationInner().withLocation("kjxnqpvwgfstmhq") - .withTags(mapOf("aoaf", "zmdk", "gc", "luqvoxmycjimryv")) - .withExtendedLocation(new ExtendedLocation().withName("qhnlbqnbld").withType("eaclgschorimk")) - .withCollectionInterval(3947758974496733605L) - .withEnabledMetrics(Arrays.asList("farfs")))); - model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationList.class); - Assertions.assertEquals("duugwbsre", model.nextLink()); - Assertions.assertEquals("cymczngn", model.value().get(0).location()); - Assertions.assertEquals("x", model.value().get(0).tags().get("wuninv")); - Assertions.assertEquals("q", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("fuarenlvhht", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(8022511139260982610L, model.value().get(0).collectionInterval()); - Assertions.assertEquals("slcqxypokkh", model.value().get(0).enabledMetrics().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java deleted file mode 100644 index 83015e8755b22..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationPatchParameters; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ClusterMetricsConfigurationPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterMetricsConfigurationPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"collectionInterval\":4287701652301675834,\"enabledMetrics\":[\"uztlvtmva\"]},\"tags\":{\"oveofizrvjfnmj\":\"idqlvhu\"}}") - .toObject(ClusterMetricsConfigurationPatchParameters.class); - Assertions.assertEquals("idqlvhu", model.tags().get("oveofizrvjfnmj")); - Assertions.assertEquals(4287701652301675834L, model.collectionInterval()); - Assertions.assertEquals("uztlvtmva", model.enabledMetrics().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterMetricsConfigurationPatchParameters model - = new ClusterMetricsConfigurationPatchParameters().withTags(mapOf("oveofizrvjfnmj", "idqlvhu")) - .withCollectionInterval(4287701652301675834L) - .withEnabledMetrics(Arrays.asList("uztlvtmva")); - model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationPatchParameters.class); - Assertions.assertEquals("idqlvhu", model.tags().get("oveofizrvjfnmj")); - Assertions.assertEquals(4287701652301675834L, model.collectionInterval()); - Assertions.assertEquals("uztlvtmva", model.enabledMetrics().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java deleted file mode 100644 index f6cc1e2f6a6cf..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java +++ /dev/null @@ -1,31 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationPatchProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterMetricsConfigurationPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterMetricsConfigurationPatchProperties model - = BinaryData.fromString("{\"collectionInterval\":7248546755237746462,\"enabledMetrics\":[\"giblkujrllf\"]}") - .toObject(ClusterMetricsConfigurationPatchProperties.class); - Assertions.assertEquals(7248546755237746462L, model.collectionInterval()); - Assertions.assertEquals("giblkujrllf", model.enabledMetrics().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterMetricsConfigurationPatchProperties model - = new ClusterMetricsConfigurationPatchProperties().withCollectionInterval(7248546755237746462L) - .withEnabledMetrics(Arrays.asList("giblkujrllf")); - model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationPatchProperties.class); - Assertions.assertEquals(7248546755237746462L, model.collectionInterval()); - Assertions.assertEquals("giblkujrllf", model.enabledMetrics().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java deleted file mode 100644 index 3247a173c3e5b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java +++ /dev/null @@ -1,31 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterMetricsConfigurationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterMetricsConfigurationProperties model = BinaryData.fromString( - "{\"collectionInterval\":2386815230831470756,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ichdlpn\",\"disabledMetrics\":[\"b\",\"tnbatzvi\",\"sowsaael\",\"attcju\"],\"enabledMetrics\":[\"rvkmjcwmjvlgfggc\",\"kyylizr\"],\"provisioningState\":\"Provisioning\"}") - .toObject(ClusterMetricsConfigurationProperties.class); - Assertions.assertEquals(2386815230831470756L, model.collectionInterval()); - Assertions.assertEquals("rvkmjcwmjvlgfggc", model.enabledMetrics().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterMetricsConfigurationProperties model - = new ClusterMetricsConfigurationProperties().withCollectionInterval(2386815230831470756L) - .withEnabledMetrics(Arrays.asList("rvkmjcwmjvlgfggc", "kyylizr")); - model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationProperties.class); - Assertions.assertEquals(2386815230831470756L, model.collectionInterval()); - Assertions.assertEquals("rvkmjcwmjvlgfggc", model.enabledMetrics().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java deleted file mode 100644 index 66a897e97a826..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; -import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParametersScanActivity; -import org.junit.jupiter.api.Assertions; - -public final class ClusterScanRuntimeParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterScanRuntimeParameters model - = BinaryData.fromString("{\"scanActivity\":\"Skip\"}").toObject(ClusterScanRuntimeParameters.class); - Assertions.assertEquals(ClusterScanRuntimeParametersScanActivity.SKIP, model.scanActivity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterScanRuntimeParameters model - = new ClusterScanRuntimeParameters().withScanActivity(ClusterScanRuntimeParametersScanActivity.SKIP); - model = BinaryData.fromObject(model).toObject(ClusterScanRuntimeParameters.class); - Assertions.assertEquals(ClusterScanRuntimeParametersScanActivity.SKIP, model.scanActivity()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java deleted file mode 100644 index 8414560d2c4cc..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java +++ /dev/null @@ -1,40 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; -import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; -import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterUpdateStrategyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterUpdateStrategy model = BinaryData.fromString( - "{\"maxUnavailable\":8183486072070109381,\"strategyType\":\"Rack\",\"thresholdType\":\"PercentSuccess\",\"thresholdValue\":1965197725763741075,\"waitTimeMinutes\":4275294117153207447}") - .toObject(ClusterUpdateStrategy.class); - Assertions.assertEquals(8183486072070109381L, model.maxUnavailable()); - Assertions.assertEquals(ClusterUpdateStrategyType.RACK, model.strategyType()); - Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.thresholdType()); - Assertions.assertEquals(1965197725763741075L, model.thresholdValue()); - Assertions.assertEquals(4275294117153207447L, model.waitTimeMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterUpdateStrategy model = new ClusterUpdateStrategy().withMaxUnavailable(8183486072070109381L) - .withStrategyType(ClusterUpdateStrategyType.RACK) - .withThresholdType(ValidationThresholdType.PERCENT_SUCCESS) - .withThresholdValue(1965197725763741075L) - .withWaitTimeMinutes(4275294117153207447L); - model = BinaryData.fromObject(model).toObject(ClusterUpdateStrategy.class); - Assertions.assertEquals(8183486072070109381L, model.maxUnavailable()); - Assertions.assertEquals(ClusterUpdateStrategyType.RACK, model.strategyType()); - Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.thresholdType()); - Assertions.assertEquals(1965197725763741075L, model.thresholdValue()); - Assertions.assertEquals(4275294117153207447L, model.waitTimeMinutes()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java deleted file mode 100644 index 94a47ae4685fe..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; -import org.junit.jupiter.api.Assertions; - -public final class ClusterUpdateVersionParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterUpdateVersionParameters model = BinaryData.fromString("{\"targetClusterVersion\":\"idjpuuyju\"}") - .toObject(ClusterUpdateVersionParameters.class); - Assertions.assertEquals("idjpuuyju", model.targetClusterVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterUpdateVersionParameters model - = new ClusterUpdateVersionParameters().withTargetClusterVersion("idjpuuyju"); - model = BinaryData.fromObject(model).toObject(ClusterUpdateVersionParameters.class); - Assertions.assertEquals("idjpuuyju", model.targetClusterVersion()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java deleted file mode 100644 index 6d75673e9ca10..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; -import com.azure.resourcemanager.networkcloud.models.IdentitySelector; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; -import org.junit.jupiter.api.Assertions; - -public final class CommandOutputSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CommandOutputSettings model = BinaryData.fromString( - "{\"associatedIdentity\":{\"identityType\":\"SystemAssignedIdentity\",\"userAssignedIdentityResourceId\":\"yrs\"},\"containerUrl\":\"sytgadgvraea\"}") - .toObject(CommandOutputSettings.class); - Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, - model.associatedIdentity().identityType()); - Assertions.assertEquals("yrs", model.associatedIdentity().userAssignedIdentityResourceId()); - Assertions.assertEquals("sytgadgvraea", model.containerUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CommandOutputSettings model - = new CommandOutputSettings() - .withAssociatedIdentity( - new IdentitySelector().withIdentityType(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY) - .withUserAssignedIdentityResourceId("yrs")) - .withContainerUrl("sytgadgvraea"); - model = BinaryData.fromObject(model).toObject(CommandOutputSettings.class); - Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, - model.associatedIdentity().identityType()); - Assertions.assertEquals("yrs", model.associatedIdentity().userAssignedIdentityResourceId()); - Assertions.assertEquals("sytgadgvraea", model.containerUrl()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java deleted file mode 100644 index c01d3e198f549..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java +++ /dev/null @@ -1,37 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class EgressEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EgressEndpoint model = BinaryData.fromString( - "{\"category\":\"gkvtmelmqkrhah\",\"endpoints\":[{\"domainName\":\"juahaquhcdhmdual\",\"port\":495813413204095798},{\"domainName\":\"pvfadmwsrcr\",\"port\":5411587900664634399},{\"domainName\":\"vgomz\",\"port\":8511094552590420060}]}") - .toObject(EgressEndpoint.class); - Assertions.assertEquals("gkvtmelmqkrhah", model.category()); - Assertions.assertEquals("juahaquhcdhmdual", model.endpoints().get(0).domainName()); - Assertions.assertEquals(495813413204095798L, model.endpoints().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EgressEndpoint model - = new EgressEndpoint().withCategory("gkvtmelmqkrhah") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("juahaquhcdhmdual").withPort(495813413204095798L), - new EndpointDependency().withDomainName("pvfadmwsrcr").withPort(5411587900664634399L), - new EndpointDependency().withDomainName("vgomz").withPort(8511094552590420060L))); - model = BinaryData.fromObject(model).toObject(EgressEndpoint.class); - Assertions.assertEquals("gkvtmelmqkrhah", model.category()); - Assertions.assertEquals("juahaquhcdhmdual", model.endpoints().get(0).domainName()); - Assertions.assertEquals(495813413204095798L, model.endpoints().get(0).port()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java deleted file mode 100644 index ead9b9eb82880..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.EndpointDependency; -import org.junit.jupiter.api.Assertions; - -public final class EndpointDependencyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EndpointDependency model = BinaryData.fromString("{\"domainName\":\"sgwbnbbeld\",\"port\":547140611004295932}") - .toObject(EndpointDependency.class); - Assertions.assertEquals("sgwbnbbeld", model.domainName()); - Assertions.assertEquals(547140611004295932L, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EndpointDependency model = new EndpointDependency().withDomainName("sgwbnbbeld").withPort(547140611004295932L); - model = BinaryData.fromObject(model).toObject(EndpointDependency.class); - Assertions.assertEquals("sgwbnbbeld", model.domainName()); - Assertions.assertEquals(547140611004295932L, model.port()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ExtendedLocationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ExtendedLocationTests.java deleted file mode 100644 index 6a19ce3f7e501..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.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("{\"name\":\"uuvmkjozkrwfnd\",\"type\":\"odjpslwejd\"}") - .toObject(ExtendedLocation.class); - Assertions.assertEquals("uuvmkjozkrwfnd", model.name()); - Assertions.assertEquals("odjpslwejd", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExtendedLocation model = new ExtendedLocation().withName("uuvmkjozkrwfnd").withType("odjpslwejd"); - model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("uuvmkjozkrwfnd", model.name()); - Assertions.assertEquals("odjpslwejd", model.type()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java deleted file mode 100644 index 0c1f210e57118..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.FeatureStatus; - -public final class FeatureStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureStatus model = BinaryData.fromString( - "{\"detailedStatus\":\"Running\",\"detailedStatusMessage\":\"xgwim\",\"name\":\"jhfjxwm\",\"version\":\"kkfoqr\"}") - .toObject(FeatureStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureStatus model = new FeatureStatus(); - model = BinaryData.fromObject(model).toObject(FeatureStatus.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryNetworkInterfaceTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryNetworkInterfaceTests.java deleted file mode 100644 index 2c62eb6ae2062..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryNetworkInterfaceTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.HardwareInventoryNetworkInterface; - -public final class HardwareInventoryNetworkInterfaceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HardwareInventoryNetworkInterface model = BinaryData.fromString( - "{\"linkStatus\":\"gxsabkyq\",\"macAddress\":\"ujitcjcz\",\"name\":\"evndh\",\"networkInterfaceId\":\"wpdappdsbdkv\"}") - .toObject(HardwareInventoryNetworkInterface.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HardwareInventoryNetworkInterface model = new HardwareInventoryNetworkInterface(); - model = BinaryData.fromObject(model).toObject(HardwareInventoryNetworkInterface.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryTests.java deleted file mode 100644 index 9ec911fa5ce2a..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareInventoryTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.HardwareInventory; - -public final class HardwareInventoryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HardwareInventory model = BinaryData.fromString( - "{\"additionalHostInformation\":\"s\",\"interfaces\":[{\"linkStatus\":\"v\",\"macAddress\":\"jrwzox\",\"name\":\"tfell\",\"networkInterfaceId\":\"fziton\"},{\"linkStatus\":\"qfpjk\",\"macAddress\":\"xofpdvhpfxxypi\",\"name\":\"nmayhuybb\",\"networkInterfaceId\":\"odepoogin\"},{\"linkStatus\":\"amiheognarxz\",\"macAddress\":\"heotusiv\",\"name\":\"v\",\"networkInterfaceId\":\"iqihn\"}],\"nics\":[{\"lldpNeighbor\":{\"portDescription\":\"wjzrnfygxgisp\",\"portName\":\"vtz\",\"systemDescription\":\"ufubl\",\"systemName\":\"fxqeof\"},\"macAddress\":\"e\",\"name\":\"hqjbasvmsmj\"},{\"lldpNeighbor\":{\"portDescription\":\"ngsntnbybk\",\"portName\":\"cwrwclxxwrljdous\",\"systemDescription\":\"qvkoc\",\"systemName\":\"jdkwtnhxbnjb\"},\"macAddress\":\"sqrglssainq\",\"name\":\"wnzlljfmppeeb\"}]}") - .toObject(HardwareInventory.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HardwareInventory model = new HardwareInventory(); - model = BinaryData.fromObject(model).toObject(HardwareInventory.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareValidationStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareValidationStatusTests.java deleted file mode 100644 index 020a09aafe0a3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/HardwareValidationStatusTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.HardwareValidationStatus; - -public final class HardwareValidationStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HardwareValidationStatus model - = BinaryData.fromString("{\"lastValidationTime\":\"2021-10-07T14:36:38Z\",\"result\":\"Pass\"}") - .toObject(HardwareValidationStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HardwareValidationStatus model = new HardwareValidationStatus(); - model = BinaryData.fromObject(model).toObject(HardwareValidationStatus.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java deleted file mode 100644 index 89641840c38b1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java +++ /dev/null @@ -1,31 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.IdentitySelector; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; -import org.junit.jupiter.api.Assertions; - -public final class IdentitySelectorTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IdentitySelector model = BinaryData - .fromString("{\"identityType\":\"SystemAssignedIdentity\",\"userAssignedIdentityResourceId\":\"nzar\"}") - .toObject(IdentitySelector.class); - Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); - Assertions.assertEquals("nzar", model.userAssignedIdentityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IdentitySelector model - = new IdentitySelector().withIdentityType(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY) - .withUserAssignedIdentityResourceId("nzar"); - model = BinaryData.fromObject(model).toObject(IdentitySelector.class); - Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); - Assertions.assertEquals("nzar", model.userAssignedIdentityResourceId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java deleted file mode 100644 index eb523d8e63493..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java +++ /dev/null @@ -1,37 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BfdEnabled; -import com.azure.resourcemanager.networkcloud.models.IpAddressPool; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IpAddressPoolTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpAddressPool model = BinaryData.fromString( - "{\"addresses\":[\"zlxwabmqoefkifr\"],\"autoAssign\":\"False\",\"name\":\"u\",\"onlyUseHostIps\":\"True\"}") - .toObject(IpAddressPool.class); - Assertions.assertEquals("zlxwabmqoefkifr", model.addresses().get(0)); - Assertions.assertEquals(BfdEnabled.FALSE, model.autoAssign()); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals(BfdEnabled.TRUE, model.onlyUseHostIps()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpAddressPool model = new IpAddressPool().withAddresses(Arrays.asList("zlxwabmqoefkifr")) - .withAutoAssign(BfdEnabled.FALSE) - .withName("u") - .withOnlyUseHostIps(BfdEnabled.TRUE); - model = BinaryData.fromObject(model).toObject(IpAddressPool.class); - Assertions.assertEquals("zlxwabmqoefkifr", model.addresses().get(0)); - Assertions.assertEquals(BfdEnabled.FALSE, model.autoAssign()); - Assertions.assertEquals("u", model.name()); - Assertions.assertEquals(BfdEnabled.TRUE, model.onlyUseHostIps()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java deleted file mode 100644 index 3d831c46d3256..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.KeySetUserStatus; - -public final class KeySetUserStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KeySetUserStatus model = BinaryData - .fromString("{\"azureUserName\":\"lqbctqhamzjrw\",\"status\":\"Invalid\",\"statusMessage\":\"eqyj\"}") - .toObject(KeySetUserStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KeySetUserStatus model = new KeySetUserStatus(); - model = BinaryData.fromObject(model).toObject(KeySetUserStatus.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java deleted file mode 100644 index 80901ed821a43..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNodeParameters; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterRestartNodeParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterRestartNodeParameters model = BinaryData.fromString("{\"nodeName\":\"qjjyslurl\"}") - .toObject(KubernetesClusterRestartNodeParameters.class); - Assertions.assertEquals("qjjyslurl", model.nodeName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterRestartNodeParameters model - = new KubernetesClusterRestartNodeParameters().withNodeName("qjjyslurl"); - model = BinaryData.fromObject(model).toObject(KubernetesClusterRestartNodeParameters.class); - Assertions.assertEquals("qjjyslurl", model.nodeName()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java deleted file mode 100644 index 4d40a3fd89134..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; -import com.azure.resourcemanager.networkcloud.models.L2NetworkAttachmentConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class L2NetworkAttachmentConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2NetworkAttachmentConfiguration model - = BinaryData.fromString("{\"networkId\":\"qumiek\",\"pluginType\":\"MACVLAN\"}") - .toObject(L2NetworkAttachmentConfiguration.class); - Assertions.assertEquals("qumiek", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.pluginType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2NetworkAttachmentConfiguration model = new L2NetworkAttachmentConfiguration().withNetworkId("qumiek") - .withPluginType(KubernetesPluginType.MACVLAN); - model = BinaryData.fromObject(model).toObject(L2NetworkAttachmentConfiguration.class); - Assertions.assertEquals("qumiek", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.pluginType()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java deleted file mode 100644 index d2bfe25001d97..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L2NetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2NetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"jnalghf\",\"type\":\"vtvsexsowueluq\"},\"properties\":{\"associatedResourceIds\":[\"hhxvrhmzkwpj\",\"wws\"],\"clusterId\":\"ghftqsxhqxujxuk\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"igrjguufzdm\",\"hybridAksClustersAssociatedIds\":[\"tfih\",\"hbotzingamvppho\",\"zqzudph\",\"amvdkfwynwcvtbv\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"mtnvyq\",\"l2IsolationDomainId\":\"atkzwpcnpw\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"sgvvsccyajguq\",\"hwyg\",\"lvdnkfx\"]},\"location\":\"emdwzrmuhapfc\",\"tags\":{\"vuoy\":\"sqxqvp\",\"elvezrypq\":\"gc\"},\"id\":\"mfe\",\"name\":\"kerqwkyh\",\"type\":\"ob\"}") - .toObject(L2NetworkInner.class); - Assertions.assertEquals("emdwzrmuhapfc", model.location()); - Assertions.assertEquals("sqxqvp", model.tags().get("vuoy")); - Assertions.assertEquals("jnalghf", model.extendedLocation().name()); - Assertions.assertEquals("vtvsexsowueluq", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("mtnvyq", model.interfaceName()); - Assertions.assertEquals("atkzwpcnpw", model.l2IsolationDomainId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2NetworkInner model = new L2NetworkInner().withLocation("emdwzrmuhapfc") - .withTags(mapOf("vuoy", "sqxqvp", "elvezrypq", "gc")) - .withExtendedLocation(new ExtendedLocation().withName("jnalghf").withType("vtvsexsowueluq")) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("mtnvyq") - .withL2IsolationDomainId("atkzwpcnpw"); - model = BinaryData.fromObject(model).toObject(L2NetworkInner.class); - Assertions.assertEquals("emdwzrmuhapfc", model.location()); - Assertions.assertEquals("sqxqvp", model.tags().get("vuoy")); - Assertions.assertEquals("jnalghf", model.extendedLocation().name()); - Assertions.assertEquals("vtvsexsowueluq", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("mtnvyq", model.interfaceName()); - Assertions.assertEquals("atkzwpcnpw", model.l2IsolationDomainId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java deleted file mode 100644 index 54768237dbc70..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java +++ /dev/null @@ -1,82 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.L2NetworkList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L2NetworkListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2NetworkList model = BinaryData.fromString( - "{\"nextLink\":\"hewpusdsttwv\",\"value\":[{\"extendedLocation\":{\"name\":\"bbejdcngqqm\",\"type\":\"akufgmjz\"},\"properties\":{\"associatedResourceIds\":[\"dgrtwaenuuzkopbm\",\"nrfdw\"],\"clusterId\":\"uhhziuiefozbhdm\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"zqhof\",\"hybridAksClustersAssociatedIds\":[\"ae\",\"u\",\"ah\",\"icslfaoq\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"ylhalnswhcc\",\"l2IsolationDomainId\":\"ph\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"itqscywuggwoluhc\",\"bwemhairs\",\"rgzdwmsweyp\",\"w\"]},\"location\":\"ggicccnxqhue\",\"tags\":{\"ncsdtclusiyp\":\"ttlstvlzywemhz\"},\"id\":\"sfgytguslfead\",\"name\":\"ygqukyhejh\",\"type\":\"isxgfp\"},{\"extendedLocation\":{\"name\":\"lolp\",\"type\":\"vk\"},\"properties\":{\"associatedResourceIds\":[\"qvujzraehtwdwrf\",\"swibyr\",\"dl\",\"h\"],\"clusterId\":\"fwpracstwi\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"evxccedcp\",\"hybridAksClustersAssociatedIds\":[\"yodnwzxltj\",\"vnhltiugcx\",\"avvwxqi\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"nyowxwlmdjrkvfg\",\"l2IsolationDomainId\":\"vfvpdbodaciz\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"krribdeibqi\"]},\"location\":\"kghv\",\"tags\":{\"efajpj\":\"zwmk\",\"yhgbijtjivfx\":\"rwkq\",\"stawfsdjpvkv\":\"sjabibs\"},\"id\":\"bjxbkzbzk\",\"name\":\"vncjabudurgk\",\"type\":\"kmokz\"},{\"extendedLocation\":{\"name\":\"jjklff\",\"type\":\"mouwqlgzrfzeey\"},\"properties\":{\"associatedResourceIds\":[\"zi\",\"ayuhqlbjbsy\",\"bqwrvtldgm\"],\"clusterId\":\"gvmpipaslthaqfx\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"u\",\"hybridAksClustersAssociatedIds\":[\"dsrezpdrhneuyow\",\"kdw\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"ib\",\"l2IsolationDomainId\":\"rcgp\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"mejzanlfzxia\",\"rmbzo\"]},\"location\":\"kixrj\",\"tags\":{\"frl\":\"rgz\",\"jylwbtlhflsj\":\"zszrnwoiindfpw\"},\"id\":\"dhszfjv\",\"name\":\"bgofeljag\",\"type\":\"qmqhldvriii\"}]}") - .toObject(L2NetworkList.class); - Assertions.assertEquals("hewpusdsttwv", model.nextLink()); - Assertions.assertEquals("ggicccnxqhue", model.value().get(0).location()); - Assertions.assertEquals("ttlstvlzywemhz", model.value().get(0).tags().get("ncsdtclusiyp")); - Assertions.assertEquals("bbejdcngqqm", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("akufgmjz", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("ylhalnswhcc", model.value().get(0).interfaceName()); - Assertions.assertEquals("ph", model.value().get(0).l2IsolationDomainId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2NetworkList model - = new L2NetworkList().withNextLink("hewpusdsttwv") - .withValue( - Arrays - .asList( - new L2NetworkInner().withLocation("ggicccnxqhue") - .withTags(mapOf("ncsdtclusiyp", "ttlstvlzywemhz")) - .withExtendedLocation( - new ExtendedLocation().withName("bbejdcngqqm").withType("akufgmjz")) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("ylhalnswhcc") - .withL2IsolationDomainId("ph"), - new L2NetworkInner().withLocation("kghv") - .withTags(mapOf("efajpj", "zwmk", "yhgbijtjivfx", "rwkq", "stawfsdjpvkv", "sjabibs")) - .withExtendedLocation(new ExtendedLocation().withName("lolp").withType("vk")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("nyowxwlmdjrkvfg") - .withL2IsolationDomainId("vfvpdbodaciz"), - new L2NetworkInner().withLocation("kixrj") - .withTags(mapOf("frl", "rgz", "jylwbtlhflsj", "zszrnwoiindfpw")) - .withExtendedLocation( - new ExtendedLocation().withName("jjklff").withType("mouwqlgzrfzeey")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("ib") - .withL2IsolationDomainId("rcgp"))); - model = BinaryData.fromObject(model).toObject(L2NetworkList.class); - Assertions.assertEquals("hewpusdsttwv", model.nextLink()); - Assertions.assertEquals("ggicccnxqhue", model.value().get(0).location()); - Assertions.assertEquals("ttlstvlzywemhz", model.value().get(0).tags().get("ncsdtclusiyp")); - Assertions.assertEquals("bbejdcngqqm", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("akufgmjz", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("ylhalnswhcc", model.value().get(0).interfaceName()); - Assertions.assertEquals("ph", model.value().get(0).l2IsolationDomainId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java deleted file mode 100644 index 1a3e3b23ee6fd..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java +++ /dev/null @@ -1,42 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.L2NetworkPatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L2NetworkPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2NetworkPatchParameters model = BinaryData - .fromString( - "{\"tags\":{\"hmpqvw\":\"hkvpedwqsls\",\"qejo\":\"skondcbrwimu\",\"tljqobbpih\":\"ovyrrleaesinu\"}}") - .toObject(L2NetworkPatchParameters.class); - Assertions.assertEquals("hkvpedwqsls", model.tags().get("hmpqvw")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2NetworkPatchParameters model = new L2NetworkPatchParameters() - .withTags(mapOf("hmpqvw", "hkvpedwqsls", "qejo", "skondcbrwimu", "tljqobbpih", "ovyrrleaesinu")); - model = BinaryData.fromObject(model).toObject(L2NetworkPatchParameters.class); - Assertions.assertEquals("hkvpedwqsls", model.tags().get("hmpqvw")); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java deleted file mode 100644 index 6a4219efd3003..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkProperties; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import org.junit.jupiter.api.Assertions; - -public final class L2NetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2NetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"xedk\",\"wep\"],\"clusterId\":\"pc\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"wccsnjvcdwxlpqek\",\"hybridAksClustersAssociatedIds\":[\"khtj\",\"y\",\"ngwfqatm\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"mdvy\",\"l2IsolationDomainId\":\"gikdgsz\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"rryuzhlhkjo\",\"rvqqaatj\",\"nrvgoupmfiibfgg\"]}") - .toObject(L2NetworkProperties.class); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("mdvy", model.interfaceName()); - Assertions.assertEquals("gikdgsz", model.l2IsolationDomainId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2NetworkProperties model = new L2NetworkProperties().withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("mdvy") - .withL2IsolationDomainId("gikdgsz"); - model = BinaryData.fromObject(model).toObject(L2NetworkProperties.class); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("mdvy", model.interfaceName()); - Assertions.assertEquals("gikdgsz", model.l2IsolationDomainId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java deleted file mode 100644 index 60c25368c0f5f..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.L2Network; -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 L2NetworksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"izjixlq\",\"type\":\"hefkwabsolronqq\"},\"properties\":{\"associatedResourceIds\":[\"nlqxsjxtele\"],\"clusterId\":\"vuqbozoo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"carkuzlb\",\"hybridAksClustersAssociatedIds\":[\"dtsnxawqytllhdyz\",\"yckzex\",\"xak\",\"kywymxgaabj\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"ohfaog\",\"l2IsolationDomainId\":\"vkiwrsiwdyjqu\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"raueekcsueh\"]},\"location\":\"ddacbcbgydlqidy\",\"tags\":{\"tpbnfnqtxjtoma\":\"mptyrilkfbnrqqxv\",\"zygleexahvm\":\"swbnfddepldwqjns\",\"sjjzyvoaqajuveh\":\"whsbrcary\"},\"id\":\"ptdmkrrbhmpful\",\"name\":\"be\",\"type\":\"gybpmfb\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - L2Network response = manager.l2Networks() - .define("khgsnxuwwkpphefs") - .withRegion("nrexkxbhxv") - .withExistingResourceGroup("r") - .withExtendedLocation(new ExtendedLocation().withName("zxlb").withType("xomeikjclwzacn")) - .withL2IsolationDomainId("ftibtyibuyvpirfq") - .withTags(mapOf("hjevd", "ulgm")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("xaurs") - .create(); - - Assertions.assertEquals("ddacbcbgydlqidy", response.location()); - Assertions.assertEquals("mptyrilkfbnrqqxv", response.tags().get("tpbnfnqtxjtoma")); - Assertions.assertEquals("izjixlq", response.extendedLocation().name()); - Assertions.assertEquals("hefkwabsolronqq", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); - Assertions.assertEquals("ohfaog", response.interfaceName()); - Assertions.assertEquals("vkiwrsiwdyjqu", response.l2IsolationDomainId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 63d63a8f5479e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,46 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.L2Network; -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 L2NetworksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"yqgxhlus\",\"type\":\"vxisimjcea\"},\"properties\":{\"associatedResourceIds\":[\"qvlsumywzas\",\"xgo\",\"oyjfqipu\"],\"clusterId\":\"znclkfkeebgv\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"tuoqujlyegqavni\",\"hybridAksClustersAssociatedIds\":[\"qqbtny\",\"pylx\",\"bf\",\"abmvmsxbaevwjc\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"tlwuhvaj\",\"l2IsolationDomainId\":\"ailfemjjzak\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"ullqxbdmvrscm\",\"erndbrnyeofltfnn\",\"rkadjfynnfmuiiir\",\"pfoh\"]},\"location\":\"fkx\",\"tags\":{\"ewoi\":\"brwjiutgnjizb\",\"juyrsrziuctixg\":\"mrvz\",\"uifr\":\"d\",\"pezkis\":\"vka\"},\"id\":\"qjm\",\"name\":\"g\",\"type\":\"syparybjufp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - L2Network response = manager.l2Networks() - .getByResourceGroupWithResponse("qmje", "jcx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fkx", response.location()); - Assertions.assertEquals("brwjiutgnjizb", response.tags().get("ewoi")); - Assertions.assertEquals("yqgxhlus", response.extendedLocation().name()); - Assertions.assertEquals("vxisimjcea", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); - Assertions.assertEquals("tlwuhvaj", response.interfaceName()); - Assertions.assertEquals("ailfemjjzak", response.l2IsolationDomainId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java deleted file mode 100644 index 28fd4837116cf..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java +++ /dev/null @@ -1,46 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.L2Network; -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 L2NetworksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"akeciqchx\",\"type\":\"tuicds\"},\"properties\":{\"associatedResourceIds\":[\"fmmp\",\"hzzwvywrgyngy\",\"grpxncakiqaondjr\"],\"clusterId\":\"lamgglvlmfejdo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"gltygxhqfgq\",\"hybridAksClustersAssociatedIds\":[\"ejsxt\",\"gflwfgziiucijj\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"lijjjrtvam\",\"l2IsolationDomainId\":\"a\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"kvccxetyvkunmig\"]},\"location\":\"hi\",\"tags\":{\"jwpindedvabbxbh\":\"qo\",\"ywfcfxzi\":\"edeilb\",\"usuv\":\"zzihvwy\",\"yvdmvx\":\"slczwciidjsllf\"},\"id\":\"dqacfrgnawbabgf\",\"name\":\"ktyjmf\",\"type\":\"zlfsyqkfrbzgowo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.l2Networks().listByResourceGroup("wxdcvjwcyz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hi", response.iterator().next().location()); - Assertions.assertEquals("qo", response.iterator().next().tags().get("jwpindedvabbxbh")); - Assertions.assertEquals("akeciqchx", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("tuicds", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("lijjjrtvam", response.iterator().next().interfaceName()); - Assertions.assertEquals("a", response.iterator().next().l2IsolationDomainId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java deleted file mode 100644 index 2a30d37da7cdc..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.L2Network; -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 L2NetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"ksqd\",\"type\":\"iw\"},\"properties\":{\"associatedResourceIds\":[\"lboncqbazqicqc\",\"ygtvxbyjanepub\"],\"clusterId\":\"kxyqvgxiaodetv\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"dxuwsaifm\",\"hybridAksClustersAssociatedIds\":[\"osbz\",\"ehgcvkbcknjo\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"yxpvelszerqze\",\"l2IsolationDomainId\":\"xoqeintxwalj\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"lqwa\",\"frqulhmzyqbhd\",\"afjrqpjiyrqjcrg\",\"xwmzwdfkbnrz\"]},\"location\":\"pdltbq\",\"tags\":{\"dgvpyig\":\"jfgxxsaetg\"},\"id\":\"aqqilzdcduwjoed\",\"name\":\"ngucaifpaurww\",\"type\":\"ilfjqqacdmk\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.l2Networks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pdltbq", response.iterator().next().location()); - Assertions.assertEquals("jfgxxsaetg", response.iterator().next().tags().get("dgvpyig")); - Assertions.assertEquals("ksqd", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("iw", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.DPDK, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("yxpvelszerqze", response.iterator().next().interfaceName()); - Assertions.assertEquals("xoqeintxwalj", response.iterator().next().l2IsolationDomainId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java deleted file mode 100644 index 6a9f1f926fbe2..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.BfdEnabled; -import com.azure.resourcemanager.networkcloud.models.IpAddressPool; -import com.azure.resourcemanager.networkcloud.models.L2ServiceLoadBalancerConfiguration; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class L2ServiceLoadBalancerConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L2ServiceLoadBalancerConfiguration model = BinaryData.fromString( - "{\"ipAddressPools\":[{\"addresses\":[\"gkfbtndoaong\",\"jcntuj\"],\"autoAssign\":\"True\",\"name\":\"jed\",\"onlyUseHostIps\":\"True\"},{\"addresses\":[\"ae\",\"kojvd\",\"pzfoqoui\"],\"autoAssign\":\"False\",\"name\":\"xarzgszufoxciq\",\"onlyUseHostIps\":\"False\"}]}") - .toObject(L2ServiceLoadBalancerConfiguration.class); - Assertions.assertEquals("gkfbtndoaong", model.ipAddressPools().get(0).addresses().get(0)); - Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).autoAssign()); - Assertions.assertEquals("jed", model.ipAddressPools().get(0).name()); - Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).onlyUseHostIps()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L2ServiceLoadBalancerConfiguration model - = new L2ServiceLoadBalancerConfiguration().withIpAddressPools(Arrays.asList( - new IpAddressPool().withAddresses(Arrays.asList("gkfbtndoaong", "jcntuj")) - .withAutoAssign(BfdEnabled.TRUE) - .withName("jed") - .withOnlyUseHostIps(BfdEnabled.TRUE), - new IpAddressPool().withAddresses(Arrays.asList("ae", "kojvd", "pzfoqoui")) - .withAutoAssign(BfdEnabled.FALSE) - .withName("xarzgszufoxciq") - .withOnlyUseHostIps(BfdEnabled.FALSE))); - model = BinaryData.fromObject(model).toObject(L2ServiceLoadBalancerConfiguration.class); - Assertions.assertEquals("gkfbtndoaong", model.ipAddressPools().get(0).addresses().get(0)); - Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).autoAssign()); - Assertions.assertEquals("jed", model.ipAddressPools().get(0).name()); - Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).onlyUseHostIps()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java deleted file mode 100644 index e5a00eaf27ea7..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; -import com.azure.resourcemanager.networkcloud.models.L3NetworkAttachmentConfiguration; -import com.azure.resourcemanager.networkcloud.models.L3NetworkConfigurationIpamEnabled; -import org.junit.jupiter.api.Assertions; - -public final class L3NetworkAttachmentConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L3NetworkAttachmentConfiguration model - = BinaryData.fromString("{\"ipamEnabled\":\"True\",\"networkId\":\"khly\",\"pluginType\":\"IPVLAN\"}") - .toObject(L3NetworkAttachmentConfiguration.class); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.ipamEnabled()); - Assertions.assertEquals("khly", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L3NetworkAttachmentConfiguration model - = new L3NetworkAttachmentConfiguration().withIpamEnabled(L3NetworkConfigurationIpamEnabled.TRUE) - .withNetworkId("khly") - .withPluginType(KubernetesPluginType.IPVLAN); - model = BinaryData.fromObject(model).toObject(L3NetworkAttachmentConfiguration.class); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.ipamEnabled()); - Assertions.assertEquals("khly", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java deleted file mode 100644 index 3b0d78148e799..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java +++ /dev/null @@ -1,76 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L3NetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L3NetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"ybycnunvj\",\"type\":\"rtkfawnopq\"},\"properties\":{\"associatedResourceIds\":[\"yzirtxdyuxzejn\",\"psew\",\"ioilqukrydxtq\"],\"clusterId\":\"eoxorggufhyao\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"hhavgrvkffovjz\",\"hybridAksClustersAssociatedIds\":[\"bibgjmfxumv\",\"cluyovwxnbkf\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"yhwzdgiruj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"mvzzbtdcqvp\",\"ipv6ConnectedPrefix\":\"yujviylwdshfssn\",\"l3IsolationDomainId\":\"bgye\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"gaojf\",\"wncot\",\"rfh\"],\"vlan\":4929010454105023595},\"location\":\"ymoxoftpipiwyczu\",\"tags\":{\"pskasdvlmfwdg\":\"cpqjlihhyu\"},\"id\":\"x\",\"name\":\"lucvpam\",\"type\":\"sreuzvxurisjnh\"}") - .toObject(L3NetworkInner.class); - Assertions.assertEquals("ymoxoftpipiwyczu", model.location()); - Assertions.assertEquals("cpqjlihhyu", model.tags().get("pskasdvlmfwdg")); - Assertions.assertEquals("ybycnunvj", model.extendedLocation().name()); - Assertions.assertEquals("rtkfawnopq", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); - Assertions.assertEquals("yhwzdgiruj", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV4, model.ipAllocationType()); - Assertions.assertEquals("mvzzbtdcqvp", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("yujviylwdshfssn", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("bgye", model.l3IsolationDomainId()); - Assertions.assertEquals(4929010454105023595L, model.vlan()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L3NetworkInner model = new L3NetworkInner().withLocation("ymoxoftpipiwyczu") - .withTags(mapOf("pskasdvlmfwdg", "cpqjlihhyu")) - .withExtendedLocation(new ExtendedLocation().withName("ybycnunvj").withType("rtkfawnopq")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("yhwzdgiruj") - .withIpAllocationType(IpAllocationType.IPV4) - .withIpv4ConnectedPrefix("mvzzbtdcqvp") - .withIpv6ConnectedPrefix("yujviylwdshfssn") - .withL3IsolationDomainId("bgye") - .withVlan(4929010454105023595L); - model = BinaryData.fromObject(model).toObject(L3NetworkInner.class); - Assertions.assertEquals("ymoxoftpipiwyczu", model.location()); - Assertions.assertEquals("cpqjlihhyu", model.tags().get("pskasdvlmfwdg")); - Assertions.assertEquals("ybycnunvj", model.extendedLocation().name()); - Assertions.assertEquals("rtkfawnopq", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); - Assertions.assertEquals("yhwzdgiruj", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV4, model.ipAllocationType()); - Assertions.assertEquals("mvzzbtdcqvp", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("yujviylwdshfssn", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("bgye", model.l3IsolationDomainId()); - Assertions.assertEquals(4929010454105023595L, model.vlan()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java deleted file mode 100644 index 6aa79bdf69a95..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java +++ /dev/null @@ -1,104 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import com.azure.resourcemanager.networkcloud.models.L3NetworkList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L3NetworkListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L3NetworkList model = BinaryData.fromString( - "{\"nextLink\":\"ool\",\"value\":[{\"extendedLocation\":{\"name\":\"x\",\"type\":\"v\"},\"properties\":{\"associatedResourceIds\":[\"gllqwjy\"],\"clusterId\":\"jayvblmhv\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"bxvvyhg\",\"hybridAksClustersAssociatedIds\":[\"byrqufeg\",\"uvwzfbnh\",\"mctlpdngitv\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"xkw\",\"ipAllocationType\":\"DualStack\",\"ipv4ConnectedPrefix\":\"ejvegrhbpnaixex\",\"ipv6ConnectedPrefix\":\"b\",\"l3IsolationDomainId\":\"reaxhcexdr\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"qkghtpwijnhy\"],\"vlan\":1896207356770709532},\"location\":\"ycxzbfvoo\",\"tags\":{\"s\":\"vmtgjqppy\",\"sxkm\":\"ronzmyhgfip\"},\"id\":\"waekrrjreafxtsgu\",\"name\":\"hjglikk\",\"type\":\"wslolbqp\"},{\"extendedLocation\":{\"name\":\"uzlm\",\"type\":\"felfktg\"},\"properties\":{\"associatedResourceIds\":[\"rpw\"],\"clusterId\":\"eznoig\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"w\",\"hybridAksClustersAssociatedIds\":[\"pn\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"joqkagfhsxt\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"zxnfaaz\",\"ipv6ConnectedPrefix\":\"dtnkdmkq\",\"l3IsolationDomainId\":\"jlwuenvrkp\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"bre\",\"qaaysjkixqt\"],\"vlan\":8668201172705247496},\"location\":\"ezl\",\"tags\":{\"edltmmjihyeozp\":\"fiakpjpqqm\",\"qncygupkvi\":\"vwau\"},\"id\":\"mdscwxqupev\",\"name\":\"hfstotxhojujbyp\",\"type\":\"lmcuvhixb\"},{\"extendedLocation\":{\"name\":\"xyfwnylrcool\",\"type\":\"ttpkiwkkbnujrywv\"},\"properties\":{\"associatedResourceIds\":[\"bfpncurdo\",\"wiithtywub\",\"cbihwqk\"],\"clusterId\":\"dntwjchrdgo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"mwctondzjluudfd\",\"hybridAksClustersAssociatedIds\":[\"gytsbwtovv\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"qfi\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"knpirgnepttwq\",\"ipv6ConnectedPrefix\":\"niffcdmqnroj\",\"l3IsolationDomainId\":\"pij\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"rddh\",\"ratiz\",\"ronasxift\"],\"vlan\":1507601090527968063},\"location\":\"zh\",\"tags\":{\"honnxkrlgnyhmos\":\"esgogc\",\"thrrgh\":\"xkk\",\"gf\":\"jbdhqxvc\"},\"id\":\"pdso\",\"name\":\"bshrnsvbuswd\",\"type\":\"z\"}]}") - .toObject(L3NetworkList.class); - Assertions.assertEquals("ool", model.nextLink()); - Assertions.assertEquals("ycxzbfvoo", model.value().get(0).location()); - Assertions.assertEquals("vmtgjqppy", model.value().get(0).tags().get("s")); - Assertions.assertEquals("x", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("v", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.value().get(0).hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("xkw", model.value().get(0).interfaceName()); - Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.value().get(0).ipAllocationType()); - Assertions.assertEquals("ejvegrhbpnaixex", model.value().get(0).ipv4ConnectedPrefix()); - Assertions.assertEquals("b", model.value().get(0).ipv6ConnectedPrefix()); - Assertions.assertEquals("reaxhcexdr", model.value().get(0).l3IsolationDomainId()); - Assertions.assertEquals(1896207356770709532L, model.value().get(0).vlan()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L3NetworkList model = new L3NetworkList().withNextLink("ool") - .withValue(Arrays.asList( - new L3NetworkInner().withLocation("ycxzbfvoo") - .withTags(mapOf("s", "vmtgjqppy", "sxkm", "ronzmyhgfip")) - .withExtendedLocation(new ExtendedLocation().withName("x").withType("v")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("xkw") - .withIpAllocationType(IpAllocationType.DUAL_STACK) - .withIpv4ConnectedPrefix("ejvegrhbpnaixex") - .withIpv6ConnectedPrefix("b") - .withL3IsolationDomainId("reaxhcexdr") - .withVlan(1896207356770709532L), - new L3NetworkInner().withLocation("ezl") - .withTags(mapOf("edltmmjihyeozp", "fiakpjpqqm", "qncygupkvi", "vwau")) - .withExtendedLocation(new ExtendedLocation().withName("uzlm").withType("felfktg")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("joqkagfhsxt") - .withIpAllocationType(IpAllocationType.IPV4) - .withIpv4ConnectedPrefix("zxnfaaz") - .withIpv6ConnectedPrefix("dtnkdmkq") - .withL3IsolationDomainId("jlwuenvrkp") - .withVlan(8668201172705247496L), - new L3NetworkInner().withLocation("zh") - .withTags(mapOf("honnxkrlgnyhmos", "esgogc", "thrrgh", "xkk", "gf", "jbdhqxvc")) - .withExtendedLocation(new ExtendedLocation().withName("xyfwnylrcool").withType("ttpkiwkkbnujrywv")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("qfi") - .withIpAllocationType(IpAllocationType.IPV6) - .withIpv4ConnectedPrefix("knpirgnepttwq") - .withIpv6ConnectedPrefix("niffcdmqnroj") - .withL3IsolationDomainId("pij") - .withVlan(1507601090527968063L))); - model = BinaryData.fromObject(model).toObject(L3NetworkList.class); - Assertions.assertEquals("ool", model.nextLink()); - Assertions.assertEquals("ycxzbfvoo", model.value().get(0).location()); - Assertions.assertEquals("vmtgjqppy", model.value().get(0).tags().get("s")); - Assertions.assertEquals("x", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("v", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.value().get(0).hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("xkw", model.value().get(0).interfaceName()); - Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.value().get(0).ipAllocationType()); - Assertions.assertEquals("ejvegrhbpnaixex", model.value().get(0).ipv4ConnectedPrefix()); - Assertions.assertEquals("b", model.value().get(0).ipv6ConnectedPrefix()); - Assertions.assertEquals("reaxhcexdr", model.value().get(0).l3IsolationDomainId()); - Assertions.assertEquals(1896207356770709532L, model.value().get(0).vlan()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java deleted file mode 100644 index 7a5833193a42b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.L3NetworkPatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class L3NetworkPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L3NetworkPatchParameters model = BinaryData.fromString( - "{\"tags\":{\"bmpxdlvykfrexc\":\"ecybmrqbrj\",\"qwjksghudgz\":\"s\",\"ggsvoujkxibdaf\":\"xog\",\"xfbvfb\":\"rkmdyom\"}}") - .toObject(L3NetworkPatchParameters.class); - Assertions.assertEquals("ecybmrqbrj", model.tags().get("bmpxdlvykfrexc")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L3NetworkPatchParameters model = new L3NetworkPatchParameters().withTags( - mapOf("bmpxdlvykfrexc", "ecybmrqbrj", "qwjksghudgz", "s", "ggsvoujkxibdaf", "xog", "xfbvfb", "rkmdyom")); - model = BinaryData.fromObject(model).toObject(L3NetworkPatchParameters.class); - Assertions.assertEquals("ecybmrqbrj", model.tags().get("bmpxdlvykfrexc")); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java deleted file mode 100644 index 5ac4b00f9fc13..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkProperties; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import org.junit.jupiter.api.Assertions; - -public final class L3NetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - L3NetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"xifqjzgxm\",\"hu\"],\"clusterId\":\"wp\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"trgjupauutpwoqh\",\"hybridAksClustersAssociatedIds\":[\"jqgwzp\",\"fqntcyp\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"imwkslircizj\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"fceacvlhvygd\",\"ipv6ConnectedPrefix\":\"t\",\"l3IsolationDomainId\":\"mrtwna\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"iw\",\"ojgcyzt\",\"fmznba\"],\"vlan\":8800744111431443801}") - .toObject(L3NetworkProperties.class); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("imwkslircizj", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, model.ipAllocationType()); - Assertions.assertEquals("fceacvlhvygd", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("t", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("mrtwna", model.l3IsolationDomainId()); - Assertions.assertEquals(8800744111431443801L, model.vlan()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - L3NetworkProperties model = new L3NetworkProperties().withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("imwkslircizj") - .withIpAllocationType(IpAllocationType.IPV6) - .withIpv4ConnectedPrefix("fceacvlhvygd") - .withIpv6ConnectedPrefix("t") - .withL3IsolationDomainId("mrtwna") - .withVlan(8800744111431443801L); - model = BinaryData.fromObject(model).toObject(L3NetworkProperties.class); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("imwkslircizj", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, model.ipAllocationType()); - Assertions.assertEquals("fceacvlhvygd", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("t", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("mrtwna", model.l3IsolationDomainId()); - Assertions.assertEquals(8800744111431443801L, model.vlan()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java deleted file mode 100644 index 9d431a2c1106b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,80 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import com.azure.resourcemanager.networkcloud.models.L3Network; -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 L3NetworksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"odlikcdrdaasax\",\"type\":\"obsmf\"},\"properties\":{\"associatedResourceIds\":[\"yjvzukosr\",\"awn\"],\"clusterId\":\"mlnkoywsxv\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"qqax\",\"hybridAksClustersAssociatedIds\":[\"y\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"doabhj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"weuipmpvksmi\",\"ipv6ConnectedPrefix\":\"sqxtltclkrdpq\",\"l3IsolationDomainId\":\"fhyrfrakk\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"wfcmfcnr\"],\"vlan\":6199502759615666213},\"location\":\"matxjti\",\"tags\":{\"fbbmtlp\":\"zqgxx\",\"rnzcalinc\":\"agynoi\",\"ymqruqguhfupet\":\"yqxzxaqzibmqim\",\"xsyaowuzowpuoh\":\"svvoqsbpkflanfk\"},\"id\":\"kc\",\"name\":\"rgukxrztio\",\"type\":\"hlutixmqrudjizc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - L3Network response = manager.l3Networks() - .define("vfejvqnttmbqda") - .withRegion("ekscbctnanqimwbz") - .withExistingResourceGroup("oka") - .withExtendedLocation(new ExtendedLocation().withName("zfivfokpysthhzag").withType("fwy")) - .withL3IsolationDomainId("waokbavlytta") - .withVlan(7333016694568690931L) - .withTags(mapOf("nlaimouxwksqmudm", "cldpkawn", "qsj", "coibicziuswswjrk", "yrfwbivq", "btqqvyfs")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("mm") - .withIpAllocationType(IpAllocationType.IPV6) - .withIpv4ConnectedPrefix("fgtdmbvx") - .withIpv6ConnectedPrefix("raokqkbudb") - .create(); - - Assertions.assertEquals("matxjti", response.location()); - Assertions.assertEquals("zqgxx", response.tags().get("fbbmtlp")); - Assertions.assertEquals("odlikcdrdaasax", response.extendedLocation().name()); - Assertions.assertEquals("obsmf", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("doabhj", response.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV4, response.ipAllocationType()); - Assertions.assertEquals("weuipmpvksmi", response.ipv4ConnectedPrefix()); - Assertions.assertEquals("sqxtltclkrdpq", response.ipv6ConnectedPrefix()); - Assertions.assertEquals("fhyrfrakk", response.l3IsolationDomainId()); - Assertions.assertEquals(6199502759615666213L, response.vlan()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 780c0fe6db66b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import com.azure.resourcemanager.networkcloud.models.L3Network; -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 L3NetworksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"wtthaokgksk\",\"type\":\"i\"},\"properties\":{\"associatedResourceIds\":[\"shajqf\",\"kpeexpgeumilh\",\"uitrdexyiono\"],\"clusterId\":\"inbd\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cw\",\"hybridAksClustersAssociatedIds\":[\"smpcbbp\",\"tugav\",\"zbcyksiv\",\"fogdrtbfcm\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"cwjjxsgmbawvif\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"cifhocjxwkl\",\"ipv6ConnectedPrefix\":\"zrvtx\",\"l3IsolationDomainId\":\"cmufunlcpxxv\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"ngjgvrquvpyg\",\"lpmcrdc\",\"eljtiahxmfqryarv\",\"x\"],\"vlan\":2751363587305463813},\"location\":\"lcjkayspthzodub\",\"tags\":{\"kfmkmfdjxyxgbk\":\"jtgblios\",\"l\":\"qvjcteoe\",\"xv\":\"slskkz\",\"hpcnabxzfsn\":\"nzdpvoco\"},\"id\":\"gyte\",\"name\":\"vzilmhiv\",\"type\":\"kwwwnckn\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - L3Network response = manager.l3Networks() - .getByResourceGroupWithResponse("xhmt", "tvegwqiukvzwy", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lcjkayspthzodub", response.location()); - Assertions.assertEquals("jtgblios", response.tags().get("kfmkmfdjxyxgbk")); - Assertions.assertEquals("wtthaokgksk", response.extendedLocation().name()); - Assertions.assertEquals("i", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); - Assertions.assertEquals("cwjjxsgmbawvif", response.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, response.ipAllocationType()); - Assertions.assertEquals("cifhocjxwkl", response.ipv4ConnectedPrefix()); - Assertions.assertEquals("zrvtx", response.ipv6ConnectedPrefix()); - Assertions.assertEquals("cmufunlcpxxv", response.l3IsolationDomainId()); - Assertions.assertEquals(2751363587305463813L, response.vlan()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java deleted file mode 100644 index 00ddc7d4914ae..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import com.azure.resourcemanager.networkcloud.models.L3Network; -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 L3NetworksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"qxjhqxcsqhtkbtnq\",\"type\":\"rngl\"},\"properties\":{\"associatedResourceIds\":[\"iipsnawwlqkz\",\"xhhllxricct\",\"wmuqqoajxeiygle\",\"rwvaexhdc\"],\"clusterId\":\"ceqnkbrupobehd\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"acvumepj\",\"hybridAksClustersAssociatedIds\":[\"bn\",\"pphepifexl\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"jclykcg\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"jlvczu\",\"ipv6ConnectedPrefix\":\"ac\",\"l3IsolationDomainId\":\"u\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"pdjxqeskoynu\",\"ylpckaewsedv\",\"skwxe\"],\"vlan\":3769854061594278101},\"location\":\"rgfnz\",\"tags\":{\"bcbcpz\":\"mjtsgh\",\"ldtzmpypefcp\":\"rpzeqac\"},\"id\":\"zshnuqndaizup\",\"name\":\"kh\",\"type\":\"ytus\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.l3Networks().listByResourceGroup("slojfkqidnqt", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rgfnz", response.iterator().next().location()); - Assertions.assertEquals("mjtsgh", response.iterator().next().tags().get("bcbcpz")); - Assertions.assertEquals("qxjhqxcsqhtkbtnq", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("rngl", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.iterator().next().hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("jclykcg", response.iterator().next().interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV4, response.iterator().next().ipAllocationType()); - Assertions.assertEquals("jlvczu", response.iterator().next().ipv4ConnectedPrefix()); - Assertions.assertEquals("ac", response.iterator().next().ipv6ConnectedPrefix()); - Assertions.assertEquals("u", response.iterator().next().l3IsolationDomainId()); - Assertions.assertEquals(3769854061594278101L, response.iterator().next().vlan()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java deleted file mode 100644 index e74273c2529de..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java +++ /dev/null @@ -1,52 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.IpAllocationType; -import com.azure.resourcemanager.networkcloud.models.L3Network; -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 L3NetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"ununm\",\"type\":\"zkrvfyi\"},\"properties\":{\"associatedResourceIds\":[\"schlzvfictnkj\",\"wgcwnp\",\"bkgfyrtogmhmjpjs\",\"dfpdqwtygevg\"],\"clusterId\":\"sehar\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"qnrxtmbpjptn\",\"hybridAksClustersAssociatedIds\":[\"hrsidq\",\"xlbtp\",\"kft\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"ykyutrymdwmfj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"vjqdvdwkq\",\"ipv6ConnectedPrefix\":\"drlefgnaavuag\",\"l3IsolationDomainId\":\"tetaoutnpdctuhs\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"i\"],\"vlan\":7575593636037986210},\"location\":\"euyldphmt\",\"tags\":{\"wynefx\":\"cgsuthhlln\",\"fciatxtjrr\":\"x\",\"ajfoxc\":\"kmdskjhhxd\"},\"id\":\"scv\",\"name\":\"lxlhuavkrm\",\"type\":\"kmyjmkxett\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.l3Networks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("euyldphmt", response.iterator().next().location()); - Assertions.assertEquals("cgsuthhlln", response.iterator().next().tags().get("wynefx")); - Assertions.assertEquals("ununm", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("zkrvfyi", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.iterator().next().hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("ykyutrymdwmfj", response.iterator().next().interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV4, response.iterator().next().ipAllocationType()); - Assertions.assertEquals("vjqdvdwkq", response.iterator().next().ipv4ConnectedPrefix()); - Assertions.assertEquals("drlefgnaavuag", response.iterator().next().ipv6ConnectedPrefix()); - Assertions.assertEquals("tetaoutnpdctuhs", response.iterator().next().l3IsolationDomainId()); - Assertions.assertEquals(7575593636037986210L, response.iterator().next().vlan()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/LldpNeighborTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/LldpNeighborTests.java deleted file mode 100644 index 24e6a43127a6b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/LldpNeighborTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.LldpNeighbor; - -public final class LldpNeighborTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LldpNeighbor model = BinaryData.fromString( - "{\"portDescription\":\"ozwyiftyhxhuro\",\"portName\":\"tyxolniwpwc\",\"systemDescription\":\"jfkgiawxk\",\"systemName\":\"ypl\"}") - .toObject(LldpNeighbor.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LldpNeighbor model = new LldpNeighbor(); - model = BinaryData.fromObject(model).toObject(LldpNeighbor.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java deleted file mode 100644 index 356314ab47928..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.MachineDisk; - -public final class MachineDiskTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MachineDisk model - = BinaryData.fromString("{\"capacityGB\":3874364038517940811,\"connection\":\"SATA\",\"type\":\"SSD\"}") - .toObject(MachineDisk.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MachineDisk model = new MachineDisk(); - model = BinaryData.fromObject(model).toObject(MachineDisk.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java deleted file mode 100644 index 65ab29167df85..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.MachineSkuProperties; - -public final class MachineSkuPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MachineSkuProperties model = BinaryData.fromString( - "{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":8363769759075681134,\"cpuSockets\":3611469908670095920,\"disks\":[{\"capacityGB\":6054984412383572813,\"connection\":\"SATA\",\"type\":\"SSD\"},{\"capacityGB\":189738325553867740,\"connection\":\"RAID\",\"type\":\"HDD\"}],\"generation\":\"wgck\",\"hardwareVersion\":\"cxvdfffwafqrouda\",\"memoryCapacityGB\":5249211644397946556,\"model\":\"h\",\"networkInterfaces\":[{\"address\":\"bunzozudh\",\"deviceConnectionType\":\"PCI\",\"model\":\"moy\",\"physicalSlot\":5518974152844939947,\"portCount\":6989479455559512040,\"portSpeed\":4304469233132949889,\"vendor\":\"nbzydvfvfcj\"},{\"address\":\"eoisrvhmgor\",\"deviceConnectionType\":\"PCI\",\"model\":\"is\",\"physicalSlot\":485076229692339772,\"portCount\":1866063520897299166,\"portSpeed\":5855537162726309030,\"vendor\":\"a\"},{\"address\":\"xilcbtgnhnzey\",\"deviceConnectionType\":\"PCI\",\"model\":\"jfzqlqhycavodgg\",\"physicalSlot\":4279783517540718218,\"portCount\":195420941787005324,\"portSpeed\":5853456136608072876,\"vendor\":\"lrariaawiu\"}],\"totalThreads\":2737212263841825681,\"vendor\":\"qfby\"}") - .toObject(MachineSkuProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MachineSkuProperties model = new MachineSkuProperties(); - model = BinaryData.fromObject(model).toObject(MachineSkuProperties.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java deleted file mode 100644 index 00cd03a8ee9a3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.MachineSkuSlot; - -public final class MachineSkuSlotTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MachineSkuSlot model = BinaryData.fromString( - "{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":674651506955755757,\"cpuSockets\":650828533296238528,\"disks\":[{\"capacityGB\":1029165319168997984,\"connection\":\"SATA\",\"type\":\"SSD\"}],\"generation\":\"csttijfybvpoekr\",\"hardwareVersion\":\"sgbdhuz\",\"memoryCapacityGB\":4425006145416997575,\"model\":\"gkynscliqh\",\"networkInterfaces\":[{\"address\":\"nk\",\"deviceConnectionType\":\"PCI\",\"model\":\"u\",\"physicalSlot\":4043359579426698154,\"portCount\":6694882023681039919,\"portSpeed\":1479306936525030102,\"vendor\":\"hihfrbbcevqagtlt\"}],\"totalThreads\":9015448282305825378,\"vendor\":\"qojpy\"},\"rackSlot\":3485711592453889453}") - .toObject(MachineSkuSlot.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MachineSkuSlot model = new MachineSkuSlot(); - model = BinaryData.fromObject(model).toObject(MachineSkuSlot.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java deleted file mode 100644 index f388d35ecff1e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class ManagedResourceGroupConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedResourceGroupConfiguration model - = BinaryData.fromString("{\"location\":\"dldwmgxc\",\"name\":\"slpmutwuo\"}") - .toObject(ManagedResourceGroupConfiguration.class); - Assertions.assertEquals("dldwmgxc", model.location()); - Assertions.assertEquals("slpmutwuo", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedResourceGroupConfiguration model - = new ManagedResourceGroupConfiguration().withLocation("dldwmgxc").withName("slpmutwuo"); - model = BinaryData.fromObject(model).toObject(ManagedResourceGroupConfiguration.class); - Assertions.assertEquals("dldwmgxc", model.location()); - Assertions.assertEquals("slpmutwuo", model.name()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java deleted file mode 100644 index e7ce0894a5db7..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; -import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"5f1efe55-ed9a-4338-b1c8-6eb7307e3a35\",\"tenantId\":\"45fb55fa-8c2f-4b63-8ab6-df515b9abada\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"bqdxbx\":{\"principalId\":\"9cb7ff49-3db9-4e2b-9168-faf70f8cb95c\",\"clientId\":\"75cd94db-42cd-49a9-93c1-88b3ffca57fc\"},\"bogqxndlkzgxhu\":{\"principalId\":\"5bbd7b15-f7df-4fff-87c4-366c8362fbeb\",\"clientId\":\"04212cfc-e886-45bd-9f3a-1c792d5641ec\"},\"lbpodxunk\":{\"principalId\":\"33edc721-8ec0-4e2c-896d-636280f0606c\",\"clientId\":\"a36c8268-efeb-489a-9a97-cd5d9467fadf\"},\"xmubyyntwlrbq\":{\"principalId\":\"0bc664ab-1c77-427a-aa00-cafde0c06823\",\"clientId\":\"c1018d5a-8dd3-4766-b268-f0bb1934ae96\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("bqdxbx", new UserAssignedIdentity(), "bogqxndlkzgxhu", new UserAssignedIdentity(), "lbpodxunk", - new UserAssignedIdentity(), "xmubyyntwlrbq", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java deleted file mode 100644 index ffcba5e7a0d13..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -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 MetricsConfigurationsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"q\",\"type\":\"btimpkjblor\"},\"properties\":{\"collectionInterval\":89470103286938544,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"uds\",\"disabledMetrics\":[\"uaawja\",\"xwjnfcz\"],\"enabledMetrics\":[\"iixyxvqbanosj\"],\"provisioningState\":\"Succeeded\"},\"location\":\"nbg\",\"tags\":{\"foeajogsy\":\"ddorgmynltwmpft\"},\"id\":\"wetamfddrvlk\",\"name\":\"zwbhnrecc\",\"type\":\"d\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterMetricsConfiguration response = manager.metricsConfigurations() - .define("tvdxxhe") - .withRegion("mlnfyz") - .withExistingCluster("polzkgysdgzyy", "zoxlvoc") - .withExtendedLocation(new ExtendedLocation().withName("gmlilwzghjhjvmab").withType("zbwaybfmdafbgym")) - .withCollectionInterval(1745929206373036946L) - .withTags(mapOf("dbkp", "rbypi", "njhx", "jtaqhsmqazpdg")) - .withEnabledMetrics(Arrays.asList("sgnwdxzedpq", "rfbo")) - .create(); - - Assertions.assertEquals("nbg", response.location()); - Assertions.assertEquals("ddorgmynltwmpft", response.tags().get("foeajogsy")); - Assertions.assertEquals("q", response.extendedLocation().name()); - Assertions.assertEquals("btimpkjblor", response.extendedLocation().type()); - Assertions.assertEquals(89470103286938544L, response.collectionInterval()); - Assertions.assertEquals("iixyxvqbanosj", response.enabledMetrics().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index ed15b82dce01b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; -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 MetricsConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"mlhxdfbklcii\",\"type\":\"hgjsysmvxo\"},\"properties\":{\"collectionInterval\":8084012969495195501,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"zsifcuvbdujgcwx\",\"disabledMetrics\":[\"bbwjtrdxrizagb\",\"giarksykpgdqxw\",\"b\"],\"enabledMetrics\":[\"iqrxhaclcdosq\",\"ptjq\",\"kifmmainw\",\"edxkpbqwuntob\"],\"provisioningState\":\"Succeeded\"},\"location\":\"zz\",\"tags\":{\"gjwdab\":\"gvydjufbnklblaxp\",\"ytlbtlqhopxouvm\":\"lfdxaglz\",\"fmy\":\"siflikyypzkgxf\"},\"id\":\"qsdb\",\"name\":\"oksz\",\"type\":\"nm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterMetricsConfiguration response = manager.metricsConfigurations() - .getWithResponse("fpjbqggwe", "iwdhdmncgbfzu", "cstu", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zz", response.location()); - Assertions.assertEquals("gvydjufbnklblaxp", response.tags().get("gjwdab")); - Assertions.assertEquals("mlhxdfbklcii", response.extendedLocation().name()); - Assertions.assertEquals("hgjsysmvxo", response.extendedLocation().type()); - Assertions.assertEquals(8084012969495195501L, response.collectionInterval()); - Assertions.assertEquals("iqrxhaclcdosq", response.enabledMetrics().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java deleted file mode 100644 index b0aab32ec57a8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; -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 MetricsConfigurationsListByClusterMockTests { - @Test - public void testListByCluster() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"xej\",\"type\":\"wecy\"},\"properties\":{\"collectionInterval\":798943047394239126,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"za\",\"disabledMetrics\":[\"inqbdnddbbozs\",\"vrmkjmyitrchwu\",\"lxeeiht\",\"mnoejhqlfmsib\"],\"enabledMetrics\":[\"rfgxkyd\",\"mypgfqvmty\"],\"provisioningState\":\"Canceled\"},\"location\":\"kxp\",\"tags\":{\"jlfxampqcrzgeuq\":\"ewp\",\"iatwfaujegqdtadr\":\"b\"},\"id\":\"kgd\",\"name\":\"hjkrukizyhgs\",\"type\":\"tnqsktx\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.metricsConfigurations().listByCluster("odfcbjq", "wmtqsmoxsaz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kxp", response.iterator().next().location()); - Assertions.assertEquals("ewp", response.iterator().next().tags().get("jlfxampqcrzgeuq")); - Assertions.assertEquals("xej", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("wecy", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(798943047394239126L, response.iterator().next().collectionInterval()); - Assertions.assertEquals("rfgxkyd", response.iterator().next().enabledMetrics().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java deleted file mode 100644 index 817fb776142ff..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.DefaultGateway; -import com.azure.resourcemanager.networkcloud.models.NetworkAttachment; -import com.azure.resourcemanager.networkcloud.models.VirtualMachineIpAllocationMethod; -import org.junit.jupiter.api.Assertions; - -public final class NetworkAttachmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkAttachment model = BinaryData.fromString( - "{\"attachedNetworkId\":\"aldsy\",\"defaultGateway\":\"False\",\"ipAllocationMethod\":\"Disabled\",\"ipv4Address\":\"erqf\",\"ipv6Address\":\"wyznkbyku\",\"macAddress\":\"pfhpagmhrskdsnfd\",\"networkAttachmentName\":\"oakgtdlmkkzev\"}") - .toObject(NetworkAttachment.class); - Assertions.assertEquals("aldsy", model.attachedNetworkId()); - Assertions.assertEquals(DefaultGateway.FALSE, model.defaultGateway()); - Assertions.assertEquals(VirtualMachineIpAllocationMethod.DISABLED, model.ipAllocationMethod()); - Assertions.assertEquals("erqf", model.ipv4Address()); - Assertions.assertEquals("wyznkbyku", model.ipv6Address()); - Assertions.assertEquals("oakgtdlmkkzev", model.networkAttachmentName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkAttachment model = new NetworkAttachment().withAttachedNetworkId("aldsy") - .withDefaultGateway(DefaultGateway.FALSE) - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DISABLED) - .withIpv4Address("erqf") - .withIpv6Address("wyznkbyku") - .withNetworkAttachmentName("oakgtdlmkkzev"); - model = BinaryData.fromObject(model).toObject(NetworkAttachment.class); - Assertions.assertEquals("aldsy", model.attachedNetworkId()); - Assertions.assertEquals(DefaultGateway.FALSE, model.defaultGateway()); - Assertions.assertEquals(VirtualMachineIpAllocationMethod.DISABLED, model.ipAllocationMethod()); - Assertions.assertEquals("erqf", model.ipv4Address()); - Assertions.assertEquals("wyznkbyku", model.ipv6Address()); - Assertions.assertEquals("oakgtdlmkkzev", model.networkAttachmentName()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java deleted file mode 100644 index d8db3851c81b9..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.NetworkInterface; - -public final class NetworkInterfaceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NetworkInterface model = BinaryData.fromString( - "{\"address\":\"cojocqwogfnzjvus\",\"deviceConnectionType\":\"PCI\",\"model\":\"mozuxylfsb\",\"physicalSlot\":1611950859305469556,\"portCount\":3915146544894242968,\"portSpeed\":1856181923182418144,\"vendor\":\"tgkbugrjqctojc\"}") - .toObject(NetworkInterface.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NetworkInterface model = new NetworkInterface(); - model = BinaryData.fromObject(model).toObject(NetworkInterface.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NicTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NicTests.java deleted file mode 100644 index 372932a4ad7ab..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NicTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.Nic; - -public final class NicTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Nic model = BinaryData.fromString( - "{\"lldpNeighbor\":{\"portDescription\":\"jfeusnh\",\"portName\":\"je\",\"systemDescription\":\"mrldhu\",\"systemName\":\"zzd\"},\"macAddress\":\"qxhocdgeablgphut\",\"name\":\"ndv\"}") - .toObject(Nic.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Nic model = new Nic(); - model = BinaryData.fromObject(model).toObject(Nic.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationDisplayTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationDisplayTests.java deleted file mode 100644 index 2eaf21cfe9fcc..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationDisplayTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") - .toObject(OperationDisplay.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = new OperationDisplay(); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationInnerTests.java deleted file mode 100644 index 70835e2a94b06..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationInnerTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.OperationInner; -import com.azure.resourcemanager.networkcloud.models.OperationDisplay; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = new OperationInner().withDisplay(new OperationDisplay()); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationListResultTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationListResultTests.java deleted file mode 100644 index 4a869218698b3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationListResultTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") - .toObject(OperationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = new OperationListResult(); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java deleted file mode 100644 index 787e2404ca355..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.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\":\"yqwcabvnuil\",\"isDataAction\":true,\"display\":{\"provider\":\"wlpaugmrmfjlrxwt\",\"resource\":\"ukhfkvc\",\"operation\":\"izmoaeds\",\"description\":\"wuived\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java deleted file mode 100644 index afaaded1ffa90..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.OsDisk; -import com.azure.resourcemanager.networkcloud.models.OsDiskCreateOption; -import com.azure.resourcemanager.networkcloud.models.OsDiskDeleteOption; -import org.junit.jupiter.api.Assertions; - -public final class OsDiskTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OsDisk model = BinaryData - .fromString( - "{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":564508410758471876}") - .toObject(OsDisk.class); - Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.createOption()); - Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.deleteOption()); - Assertions.assertEquals(564508410758471876L, model.diskSizeGB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OsDisk model = new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) - .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(564508410758471876L); - model = BinaryData.fromObject(model).toObject(OsDisk.class); - Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.createOption()); - Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.deleteOption()); - Assertions.assertEquals(564508410758471876L, model.diskSizeGB()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java deleted file mode 100644 index 3efb74b7cdd04..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java +++ /dev/null @@ -1,61 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RackInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"fiwrxgkn\",\"type\":\"uvyinzqodfvpgs\"},\"properties\":{\"availabilityZone\":\"oxgsgbpfgzdjtx\",\"clusterId\":\"flbqvgaq\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"fcq\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"dvetnws\",\"rackSerialNumber\":\"tutnwlduycvuzhyr\",\"rackSkuId\":\"ewipm\"},\"location\":\"k\",\"tags\":{\"zhhzjhfjmhvvmu\":\"kuqgsjjxundxgket\",\"yihsasbhudypohyu\":\"gpmuneqsxvmhfbuz\"},\"id\":\"ms\",\"name\":\"ynsqyrpfoobr\",\"type\":\"ttymsjny\"}") - .toObject(RackInner.class); - Assertions.assertEquals("k", model.location()); - Assertions.assertEquals("kuqgsjjxundxgket", model.tags().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("fiwrxgkn", model.extendedLocation().name()); - Assertions.assertEquals("uvyinzqodfvpgs", model.extendedLocation().type()); - Assertions.assertEquals("oxgsgbpfgzdjtx", model.availabilityZone()); - Assertions.assertEquals("dvetnws", model.rackLocation()); - Assertions.assertEquals("tutnwlduycvuzhyr", model.rackSerialNumber()); - Assertions.assertEquals("ewipm", model.rackSkuId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackInner model = new RackInner().withLocation("k") - .withTags(mapOf("zhhzjhfjmhvvmu", "kuqgsjjxundxgket", "yihsasbhudypohyu", "gpmuneqsxvmhfbuz")) - .withExtendedLocation(new ExtendedLocation().withName("fiwrxgkn").withType("uvyinzqodfvpgs")) - .withAvailabilityZone("oxgsgbpfgzdjtx") - .withRackLocation("dvetnws") - .withRackSerialNumber("tutnwlduycvuzhyr") - .withRackSkuId("ewipm"); - model = BinaryData.fromObject(model).toObject(RackInner.class); - Assertions.assertEquals("k", model.location()); - Assertions.assertEquals("kuqgsjjxundxgket", model.tags().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("fiwrxgkn", model.extendedLocation().name()); - Assertions.assertEquals("uvyinzqodfvpgs", model.extendedLocation().type()); - Assertions.assertEquals("oxgsgbpfgzdjtx", model.availabilityZone()); - Assertions.assertEquals("dvetnws", model.rackLocation()); - Assertions.assertEquals("tutnwlduycvuzhyr", model.rackSerialNumber()); - Assertions.assertEquals("ewipm", model.rackSkuId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java deleted file mode 100644 index 3d7f90475be47..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java +++ /dev/null @@ -1,81 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.RackList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RackListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackList model = BinaryData.fromString( - "{\"nextLink\":\"hzdsqtzbsrgnow\",\"value\":[{\"extendedLocation\":{\"name\":\"fgmvecactxmwo\",\"type\":\"e\"},\"properties\":{\"availabilityZone\":\"owcluqo\",\"clusterId\":\"kqvgqouw\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"pjwyiv\",\"provisioningState\":\"Failed\",\"rackLocation\":\"f\",\"rackSerialNumber\":\"cvhrfsp\",\"rackSkuId\":\"uagrttikteusqc\"},\"location\":\"vyklxuby\",\"tags\":{\"bgq\":\"fmmfblcqcu\"},\"id\":\"brta\",\"name\":\"metttwgd\",\"type\":\"lqxihhrmooiz\"},{\"extendedLocation\":{\"name\":\"seypxiutcxapz\",\"type\":\"y\"},\"properties\":{\"availabilityZone\":\"petogebjox\",\"clusterId\":\"hvnh\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"q\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"zjcjbtr\",\"rackSerialNumber\":\"aehvvibrxjjstoq\",\"rackSkuId\":\"eitpkxztmo\"},\"location\":\"klf\",\"tags\":{\"yhohujswtwkozzwc\":\"gfcwqmpimaqxzhem\",\"wpfaj\":\"lkb\"},\"id\":\"jwltlwtjjgu\",\"name\":\"talhsnvkcdmxzr\",\"type\":\"oaimlnw\"},{\"extendedLocation\":{\"name\":\"aaomylweazu\",\"type\":\"cse\"},\"properties\":{\"availabilityZone\":\"hwwn\",\"clusterId\":\"hlf\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ch\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"fb\",\"rackSerialNumber\":\"usnfepgfewet\",\"rackSkuId\":\"l\"},\"location\":\"gncxykxhdj\",\"tags\":{\"rxvxcjzh\":\"mmbcxfhbcp\",\"qscjavftjuh\":\"izxfpxt\"},\"id\":\"qaz\",\"name\":\"mtggu\",\"type\":\"pijrajcivmmghf\"}]}") - .toObject(RackList.class); - Assertions.assertEquals("hzdsqtzbsrgnow", model.nextLink()); - Assertions.assertEquals("vyklxuby", model.value().get(0).location()); - Assertions.assertEquals("fmmfblcqcu", model.value().get(0).tags().get("bgq")); - Assertions.assertEquals("fgmvecactxmwo", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("e", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("owcluqo", model.value().get(0).availabilityZone()); - Assertions.assertEquals("f", model.value().get(0).rackLocation()); - Assertions.assertEquals("cvhrfsp", model.value().get(0).rackSerialNumber()); - Assertions.assertEquals("uagrttikteusqc", model.value().get(0).rackSkuId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackList model = new RackList().withNextLink("hzdsqtzbsrgnow") - .withValue(Arrays.asList( - new RackInner().withLocation("vyklxuby") - .withTags(mapOf("bgq", "fmmfblcqcu")) - .withExtendedLocation(new ExtendedLocation().withName("fgmvecactxmwo").withType("e")) - .withAvailabilityZone("owcluqo") - .withRackLocation("f") - .withRackSerialNumber("cvhrfsp") - .withRackSkuId("uagrttikteusqc"), - new RackInner().withLocation("klf") - .withTags(mapOf("yhohujswtwkozzwc", "gfcwqmpimaqxzhem", "wpfaj", "lkb")) - .withExtendedLocation(new ExtendedLocation().withName("seypxiutcxapz").withType("y")) - .withAvailabilityZone("petogebjox") - .withRackLocation("zjcjbtr") - .withRackSerialNumber("aehvvibrxjjstoq") - .withRackSkuId("eitpkxztmo"), - new RackInner().withLocation("gncxykxhdj") - .withTags(mapOf("rxvxcjzh", "mmbcxfhbcp", "qscjavftjuh", "izxfpxt")) - .withExtendedLocation(new ExtendedLocation().withName("aaomylweazu").withType("cse")) - .withAvailabilityZone("hwwn") - .withRackLocation("fb") - .withRackSerialNumber("usnfepgfewet") - .withRackSkuId("l"))); - model = BinaryData.fromObject(model).toObject(RackList.class); - Assertions.assertEquals("hzdsqtzbsrgnow", model.nextLink()); - Assertions.assertEquals("vyklxuby", model.value().get(0).location()); - Assertions.assertEquals("fmmfblcqcu", model.value().get(0).tags().get("bgq")); - Assertions.assertEquals("fgmvecactxmwo", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("e", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("owcluqo", model.value().get(0).availabilityZone()); - Assertions.assertEquals("f", model.value().get(0).rackLocation()); - Assertions.assertEquals("cvhrfsp", model.value().get(0).rackSerialNumber()); - Assertions.assertEquals("uagrttikteusqc", model.value().get(0).rackSkuId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java deleted file mode 100644 index 45a9f4be80a02..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java +++ /dev/null @@ -1,47 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.RackPatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class RackPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"rackLocation\":\"i\",\"rackSerialNumber\":\"pwpgddei\"},\"tags\":{\"jcazt\":\"zovgkkumuikj\",\"comlikytwvczc\":\"wsnsqowx\"}}") - .toObject(RackPatchParameters.class); - Assertions.assertEquals("zovgkkumuikj", model.tags().get("jcazt")); - Assertions.assertEquals("i", model.rackLocation()); - Assertions.assertEquals("pwpgddei", model.rackSerialNumber()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackPatchParameters model - = new RackPatchParameters().withTags(mapOf("jcazt", "zovgkkumuikj", "comlikytwvczc", "wsnsqowx")) - .withRackLocation("i") - .withRackSerialNumber("pwpgddei"); - model = BinaryData.fromObject(model).toObject(RackPatchParameters.class); - Assertions.assertEquals("zovgkkumuikj", model.tags().get("jcazt")); - Assertions.assertEquals("i", model.rackLocation()); - Assertions.assertEquals("pwpgddei", model.rackSerialNumber()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java deleted file mode 100644 index 6a3c9dc6f04d7..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackProperties; -import org.junit.jupiter.api.Assertions; - -public final class RackPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackProperties model = BinaryData.fromString( - "{\"availabilityZone\":\"qdnfwqzdz\",\"clusterId\":\"ilaxhn\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"yvi\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"wivkxo\",\"rackSerialNumber\":\"zunbixx\",\"rackSkuId\":\"ti\"}") - .toObject(RackProperties.class); - Assertions.assertEquals("qdnfwqzdz", model.availabilityZone()); - Assertions.assertEquals("wivkxo", model.rackLocation()); - Assertions.assertEquals("zunbixx", model.rackSerialNumber()); - Assertions.assertEquals("ti", model.rackSkuId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackProperties model = new RackProperties().withAvailabilityZone("qdnfwqzdz") - .withRackLocation("wivkxo") - .withRackSerialNumber("zunbixx") - .withRackSkuId("ti"); - model = BinaryData.fromObject(model).toObject(RackProperties.class); - Assertions.assertEquals("qdnfwqzdz", model.availabilityZone()); - Assertions.assertEquals("wivkxo", model.rackLocation()); - Assertions.assertEquals("zunbixx", model.rackSerialNumber()); - Assertions.assertEquals("ti", model.rackSkuId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java deleted file mode 100644 index 2e6ce1c966e8e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner; - -public final class RackSkuInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackSkuInner model = BinaryData.fromString( - "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1580641323855513114,\"cpuSockets\":3554459404592540938,\"disks\":[{},{},{},{}],\"generation\":\"dqkdlwwqfbu\",\"hardwareVersion\":\"kxtrq\",\"memoryCapacityGB\":8916570711298227997,\"model\":\"mbtxhwgf\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":77859916992999912,\"vendor\":\"oezbrhubsk\"},\"rackSlot\":2353090484810813231},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1410009075037068900,\"cpuSockets\":9221028808795014470,\"disks\":[{},{},{},{}],\"generation\":\"leorfmluiqtqz\",\"hardwareVersion\":\"vyvnqqyb\",\"memoryCapacityGB\":4523449621729539400,\"model\":\"ayjkqa\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":4660884604586469413,\"vendor\":\"sjc\"},\"rackSlot\":9014783078965490836}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2309752602993772179,\"cpuSockets\":6158704597688718378,\"disks\":[{},{},{}],\"generation\":\"rbe\",\"hardwareVersion\":\"agohbuff\",\"memoryCapacityGB\":1676485595028012634,\"model\":\"mvvhmxtdrjfuta\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5288556587713663943,\"vendor\":\"wzcjznmwcpmgua\"},\"rackSlot\":6174770568857951171},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6719264529493509311,\"cpuSockets\":6614649944771130302,\"disks\":[{}],\"generation\":\"jjziuxxpsh\",\"hardwareVersion\":\"e\",\"memoryCapacityGB\":2979275467216366207,\"model\":\"slqubkwdl\",\"networkInterfaces\":[{}],\"totalThreads\":7442673812899592968,\"vendor\":\"ujbazpjuohminyfl\"},\"rackSlot\":3372671534162877362}],\"description\":\"duvwpklvxwmygd\",\"maxClusterSlots\":5636888396415086824,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":3778167690103643206,\"model\":\"jcrxgibbdaxcon\"},\"rackSlot\":8794909142926460051}],\"supportedRackSkuIds\":[\"rsukokwbqplh\",\"vnuuepzl\",\"phwzsoldweyuqdu\"]},\"id\":\"mnnrwr\",\"name\":\"i\",\"type\":\"rk\"}") - .toObject(RackSkuInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackSkuInner model = new RackSkuInner(); - model = BinaryData.fromObject(model).toObject(RackSkuInner.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java deleted file mode 100644 index a78ad624733d8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner; -import com.azure.resourcemanager.networkcloud.models.RackSkuList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RackSkuListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackSkuList model = BinaryData.fromString( - "{\"nextLink\":\"chqnrnrpxehuwry\",\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":5665330056607746255},{\"properties\":{},\"rackSlot\":2688572351682698683},{\"properties\":{},\"rackSlot\":1190594445033285188}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":7000960461087087639}],\"description\":\"cvdsrhnj\",\"maxClusterSlots\":4416106020884010184,\"provisioningState\":\"Canceled\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":6306081624028853584},{\"properties\":{},\"rackSlot\":4588468813568796443},{\"properties\":{},\"rackSlot\":1336842829926635678}],\"supportedRackSkuIds\":[\"duceamtmc\",\"u\"]},\"id\":\"ejwcwwqiok\",\"name\":\"ssxmojms\",\"type\":\"p\"},{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":4154522920427564372},{\"properties\":{},\"rackSlot\":3304199408665245635},{\"properties\":{},\"rackSlot\":7914641295182789725},{\"properties\":{},\"rackSlot\":6420176499277047633}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":8137125616448530907},{\"properties\":{},\"rackSlot\":2443497935152545403}],\"description\":\"xmaehvbbxu\",\"maxClusterSlots\":1143259338746177654,\"provisioningState\":\"Failed\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":6787000307588779868}],\"supportedRackSkuIds\":[\"wrck\",\"yklyhpluodpvruud\"]},\"id\":\"zibt\",\"name\":\"ostgkts\",\"type\":\"vdxec\"}]}") - .toObject(RackSkuList.class); - Assertions.assertEquals("chqnrnrpxehuwry", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackSkuList model = new RackSkuList().withNextLink("chqnrnrpxehuwry") - .withValue(Arrays.asList(new RackSkuInner(), new RackSkuInner())); - model = BinaryData.fromObject(model).toObject(RackSkuList.class); - Assertions.assertEquals("chqnrnrpxehuwry", model.nextLink()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java deleted file mode 100644 index 00298b88c6252..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuProperties; - -public final class RackSkuPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RackSkuProperties model = BinaryData.fromString( - "{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4458522526150344918,\"cpuSockets\":6322848214394065275,\"disks\":[{\"capacityGB\":2349971895731760213,\"connection\":\"PCIE\",\"type\":\"SSD\"}],\"generation\":\"ox\",\"hardwareVersion\":\"dufiq\",\"memoryCapacityGB\":7091381548429253436,\"model\":\"zaofjchvcyy\",\"networkInterfaces\":[{\"address\":\"dotcubiipuip\",\"deviceConnectionType\":\"PCI\",\"model\":\"nmacj\",\"physicalSlot\":2045062341145189898,\"portCount\":1517216245064921581,\"portSpeed\":7133413366116679058,\"vendor\":\"m\"}],\"totalThreads\":4510672218626509110,\"vendor\":\"mblrrilbywd\"},\"rackSlot\":7966238893835264976},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7667244387685987692,\"cpuSockets\":2093232112026387768,\"disks\":[{\"capacityGB\":8491036925624729778,\"connection\":\"SATA\",\"type\":\"SSD\"}],\"generation\":\"zdvoqytibyowbb\",\"hardwareVersion\":\"yavutpthjoxois\",\"memoryCapacityGB\":3662268656068136217,\"model\":\"pi\",\"networkInterfaces\":[{\"address\":\"ljxkcgxxlx\",\"deviceConnectionType\":\"PCI\",\"model\":\"cvizqzdwlvw\",\"physicalSlot\":7995359679400580024,\"portCount\":4149594913386983887,\"portSpeed\":7840356601497751767,\"vendor\":\"ubdyhgk\"}],\"totalThreads\":1589948135137351109,\"vendor\":\"g\"},\"rackSlot\":5465402510748989819}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6054514895875943598,\"cpuSockets\":2710800768496556807,\"disks\":[{\"capacityGB\":2084936073486724926,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":2418220883067284526,\"connection\":\"RAID\",\"type\":\"SSD\"},{\"capacityGB\":5954431271796698360,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":463648669708471359,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"uisavokq\",\"hardwareVersion\":\"fvazivjlfrqttba\",\"memoryCapacityGB\":8928541127382622137,\"model\":\"nwxyiop\",\"networkInterfaces\":[{\"address\":\"qfkuvscxkdmli\",\"deviceConnectionType\":\"PCI\",\"model\":\"brxk\",\"physicalSlot\":5344178861543099367,\"portCount\":539445643734318038,\"portSpeed\":777703187723077472,\"vendor\":\"bgo\"},{\"address\":\"bteoybf\",\"deviceConnectionType\":\"PCI\",\"model\":\"kvvjgslordilmyww\",\"physicalSlot\":2257431826333496773,\"portCount\":2506224870318199526,\"portSpeed\":3602711689175641143,\"vendor\":\"gyvudtjuewbc\"}],\"totalThreads\":8039712506260471031,\"vendor\":\"whcjyxcc\"},\"rackSlot\":4169856614299930706},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":790800476635117716,\"cpuSockets\":1219920941847170863,\"disks\":[{\"capacityGB\":1853682069039855587,\"connection\":\"PCIE\",\"type\":\"SSD\"},{\"capacityGB\":2687213839004826243,\"connection\":\"SAS\",\"type\":\"SSD\"}],\"generation\":\"kyrk\",\"hardwareVersion\":\"dg\",\"memoryCapacityGB\":2788413184397812768,\"model\":\"kmnwqjnobaiyhddv\",\"networkInterfaces\":[{\"address\":\"gfnmntfpmvmemfnc\",\"deviceConnectionType\":\"PCI\",\"model\":\"vbalxlllc\",\"physicalSlot\":4227859694996581960,\"portCount\":5164618573145789870,\"portSpeed\":2808701299898037313,\"vendor\":\"nhf\"},{\"address\":\"uvsj\",\"deviceConnectionType\":\"PCI\",\"model\":\"myst\",\"physicalSlot\":885610274962208064,\"portCount\":8029535700877069739,\"portSpeed\":7660460034004399095,\"vendor\":\"rchpqbmfpjbabwid\"},{\"address\":\"xsspuunnoxyhk\",\"deviceConnectionType\":\"PCI\",\"model\":\"drihpfhoqcaaewda\",\"physicalSlot\":5845013539879611462,\"portCount\":292325002250309298,\"portSpeed\":341419793256539323,\"vendor\":\"zb\"}],\"totalThreads\":8619272980248621233,\"vendor\":\"ivsiy\"},\"rackSlot\":5582812927114641945},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6084294436773049191,\"cpuSockets\":3360815390541581755,\"disks\":[{\"capacityGB\":7561499091677686324,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":1071380814256215504,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"qxepnylbfuaj\",\"hardwareVersion\":\"jtlvofqzhvfciby\",\"memoryCapacityGB\":3860000272436496584,\"model\":\"xrkjpvdw\",\"networkInterfaces\":[{\"address\":\"iivwzjbhyzsxjrka\",\"deviceConnectionType\":\"PCI\",\"model\":\"negvmnvuqe\",\"physicalSlot\":2749298665245055731,\"portCount\":1248601732189082431,\"portSpeed\":2614672104032561871,\"vendor\":\"kkdmfl\"},{\"address\":\"stmjlxrri\",\"deviceConnectionType\":\"PCI\",\"model\":\"peewchpxlkt\",\"physicalSlot\":6958921108876978916,\"portCount\":8522250892915577508,\"portSpeed\":5945101429864174422,\"vendor\":\"ufuztcktyhjtq\"},{\"address\":\"cgzulwmmrqzzr\",\"deviceConnectionType\":\"PCI\",\"model\":\"gl\",\"physicalSlot\":7516675391759114962,\"portCount\":7459676734569055259,\"portSpeed\":3562873593739937241,\"vendor\":\"toepryu\"},{\"address\":\"wytpzdmovz\",\"deviceConnectionType\":\"PCI\",\"model\":\"awzqadfl\",\"physicalSlot\":1367124749691079801,\"portCount\":4584433852798118541,\"portSpeed\":4544236688410248601,\"vendor\":\"ndtic\"}],\"totalThreads\":2952144912587821446,\"vendor\":\"mlqtmldgxob\"},\"rackSlot\":7072690516883017331}],\"description\":\"npkc\",\"maxClusterSlots\":8297039045609901437,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":6511377951455717171,\"model\":\"lboxqvkjl\"},\"rackSlot\":2141969261254430963},{\"properties\":{\"capacityGB\":1283948358684815684,\"model\":\"dwdigumb\"},\"rackSlot\":5397574850963533069},{\"properties\":{\"capacityGB\":736045201414311047,\"model\":\"jazysdzhezwwvaiq\"},\"rackSlot\":1757411505006165051}],\"supportedRackSkuIds\":[\"nk\"]}") - .toObject(RackSkuProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RackSkuProperties model = new RackSkuProperties(); - model = BinaryData.fromObject(model).toObject(RackSkuProperties.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java deleted file mode 100644 index 45f801b82384f..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.RackSku; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class RackSkusGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2398401370038293392,\"cpuSockets\":773077908768619322,\"disks\":[{},{},{},{}],\"generation\":\"ythqkkwhbgxvel\",\"hardwareVersion\":\"ulnxdmnit\",\"memoryCapacityGB\":7153993027316867734,\"model\":\"vm\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":9170293239268750189,\"vendor\":\"hmjpdd\"},\"rackSlot\":4887935228971472703},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1391759677432765278,\"cpuSockets\":5859163145308729080,\"disks\":[{},{},{}],\"generation\":\"rb\",\"hardwareVersion\":\"vnmdyfoeboj\",\"memoryCapacityGB\":1712887140024927262,\"model\":\"laohoqkp\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":8975384716451531599,\"vendor\":\"aywkdcwmqsyril\"},\"rackSlot\":4916420758463812143},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2668410258268015115,\"cpuSockets\":9105198942584777690,\"disks\":[{},{}],\"generation\":\"pjvlywltmfwo\",\"hardwareVersion\":\"jw\",\"memoryCapacityGB\":8092831001739180785,\"model\":\"fnqzocr\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5466782004694588483,\"vendor\":\"ntgxdncaqttie\"},\"rackSlot\":898720806881744509},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5365319943747419602,\"cpuSockets\":2341521604116230972,\"disks\":[{},{}],\"generation\":\"rihl\",\"hardwareVersion\":\"gbehlqtxnr\",\"memoryCapacityGB\":3359334541259238748,\"model\":\"rndpgfjodhdaqotw\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":5671639836096350098,\"vendor\":\"sabvcip\"},\"rackSlot\":4295475425882126275}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":8029274061738843914,\"cpuSockets\":3066581275680046584,\"disks\":[{},{}],\"generation\":\"fycd\",\"hardwareVersion\":\"ititjnsxza\",\"memoryCapacityGB\":2412450494903973562,\"model\":\"hwjuyxxbxqvmvua\",\"networkInterfaces\":[{}],\"totalThreads\":2506282520754540951,\"vendor\":\"xeqbwp\"},\"rackSlot\":4830044105671850632},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7718083308011624626,\"cpuSockets\":3610824562956585519,\"disks\":[{},{},{},{}],\"generation\":\"u\",\"hardwareVersion\":\"zladltxkpbq\",\"memoryCapacityGB\":3216403021820124598,\"model\":\"qjwkrhwz\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":8460229893949881794,\"vendor\":\"gglmvoka\"},\"rackSlot\":4846544570194172966},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7834682716691474423,\"cpuSockets\":1959569751739607426,\"disks\":[{},{},{},{}],\"generation\":\"xsmzygdf\",\"hardwareVersion\":\"kwseivmakxhyso\",\"memoryCapacityGB\":6564199153915955059,\"model\":\"lkbectvtfjmskd\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":4242661988090883660,\"vendor\":\"avlzwpvgmfalkz\"},\"rackSlot\":3753007374917287428}],\"description\":\"kedgj\",\"maxClusterSlots\":8156948302704192486,\"provisioningState\":\"Succeeded\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":4159859572579531882,\"model\":\"twpqrtva\"},\"rackSlot\":6309926613546163791},{\"properties\":{\"capacityGB\":3750355652175573402,\"model\":\"zeagmceituuge\"},\"rackSlot\":766874447070999275}],\"supportedRackSkuIds\":[\"tlzm\",\"lsyj\"]},\"id\":\"olctae\",\"name\":\"fsyrledjc\",\"type\":\"stbvtqig\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RackSku response = manager.rackSkus().getWithResponse("uwj", com.azure.core.util.Context.NONE).getValue(); - - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java deleted file mode 100644 index 6c183c274bcb5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.RackSku; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class RackSkusListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4447584205030241350,\"cpuSockets\":8400553503584817648,\"disks\":[{},{}],\"generation\":\"fbcpaqktkrumzu\",\"hardwareVersion\":\"kyzbfvxovqkxiux\",\"memoryCapacityGB\":3898839867810665296,\"model\":\"r\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5111061650661934202,\"vendor\":\"j\"},\"rackSlot\":3529609816658157113},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":252470490725581030,\"cpuSockets\":1020368857816332436,\"disks\":[{},{}],\"generation\":\"peuqlsdxeqztvxwm\",\"hardwareVersion\":\"mjswenawwamecle\",\"memoryCapacityGB\":7889615004017663344,\"model\":\"ndhzyoeojh\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":419638915472834751,\"vendor\":\"idmytzln\"},\"rackSlot\":3612129698740546682},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5364304877177881109,\"cpuSockets\":1190636804378021682,\"disks\":[{},{},{},{}],\"generation\":\"qagywvtxig\",\"hardwareVersion\":\"rktpgaeu\",\"memoryCapacityGB\":7037523579524480136,\"model\":\"hpmwhqnucsk\",\"networkInterfaces\":[{},{}],\"totalThreads\":1929910213223359934,\"vendor\":\"tdlpbn\"},\"rackSlot\":5256685083551946475},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1725865742600423630,\"cpuSockets\":4463353598628976338,\"disks\":[{},{},{}],\"generation\":\"eedwjccik\",\"hardwareVersion\":\"syekrdrenxol\",\"memoryCapacityGB\":7163548671113747724,\"model\":\"qbeiv\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":404736553810911578,\"vendor\":\"dbfgrlp\"},\"rackSlot\":4865507495234910412}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1632345465424234568,\"cpuSockets\":3094184412082080082,\"disks\":[{},{},{}],\"generation\":\"ah\",\"hardwareVersion\":\"an\",\"memoryCapacityGB\":5051562653156994764,\"model\":\"bvgwzsff\",\"networkInterfaces\":[{},{}],\"totalThreads\":2240206997813754764,\"vendor\":\"ktjtgra\"},\"rackSlot\":8990018598728079093},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1888260015025911012,\"cpuSockets\":902044973101727713,\"disks\":[{},{}],\"generation\":\"txxwpfh\",\"hardwareVersion\":\"zudrtpzk\",\"memoryCapacityGB\":5509117550074125109,\"model\":\"ywhczzq\",\"networkInterfaces\":[{},{}],\"totalThreads\":9153821152021789996,\"vendor\":\"edygisrzwnykdi\"},\"rackSlot\":2347230216812317496}],\"description\":\"rmpwctofld\",\"maxClusterSlots\":1576220923773173717,\"provisioningState\":\"Canceled\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":1294853518041934738,\"model\":\"rwjiyew\"},\"rackSlot\":1774410443251418310},{\"properties\":{\"capacityGB\":2375531653636204708,\"model\":\"etfgcwvrrmdqntyc\"},\"rackSlot\":3858359410262703624},{\"properties\":{\"capacityGB\":8823202937724335004,\"model\":\"gnuyeamcmhu\"},\"rackSlot\":457361942179826962}],\"supportedRackSkuIds\":[\"h\"]},\"id\":\"wcpqtwl\",\"name\":\"esq\",\"type\":\"ggvrbnyrukoilaci\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.rackSkus().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java deleted file mode 100644 index aa688ad90a8d3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.Rack; -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 RacksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"pwolgisubxb\",\"type\":\"eogfgfiijrykwl\"},\"properties\":{\"availabilityZone\":\"fksxqce\",\"clusterId\":\"fpxgnmqvz\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"q\",\"provisioningState\":\"Succeeded\",\"rackLocation\":\"ossscyva\",\"rackSerialNumber\":\"fppuacvfye\",\"rackSkuId\":\"w\"},\"location\":\"fxtjdhsoym\",\"tags\":{\"ehdpboujstkfvvds\":\"tyqft\"},\"id\":\"xcdedsu\",\"name\":\"nygnxcgjtfrnquk\",\"type\":\"rf\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Rack response = manager.racks() - .define("ptpqayamkn") - .withRegion("xdhilz") - .withExistingResourceGroup("yfejyvdwtf") - .withExtendedLocation(new ExtendedLocation().withName("fgybmxs").withType("xocuullojkpoyhgw")) - .withAvailabilityZone("djuxdbdljzgd") - .withRackLocation("jnqogdxwbsfpyx") - .withRackSerialNumber("tjlflecomi") - .withRackSkuId("xojjl") - .withTags(mapOf("ovribq", "zqjmueza", "qww", "otokhtvwtaznk")) - .create(); - - Assertions.assertEquals("fxtjdhsoym", response.location()); - Assertions.assertEquals("tyqft", response.tags().get("ehdpboujstkfvvds")); - Assertions.assertEquals("pwolgisubxb", response.extendedLocation().name()); - Assertions.assertEquals("eogfgfiijrykwl", response.extendedLocation().type()); - Assertions.assertEquals("fksxqce", response.availabilityZone()); - Assertions.assertEquals("ossscyva", response.rackLocation()); - Assertions.assertEquals("fppuacvfye", response.rackSerialNumber()); - Assertions.assertEquals("w", response.rackSkuId()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 8bf57aa58338f..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,46 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Rack; -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 RacksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"npd\",\"type\":\"zigjsugswhgsaodk\"},\"properties\":{\"availabilityZone\":\"wnbaf\",\"clusterId\":\"to\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"quvwsxbgn\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"rvqchoadhrsxqvzv\",\"rackSerialNumber\":\"pabdsrg\",\"rackSkuId\":\"ajglzrsubklr\"},\"location\":\"jnltcetjdvqydi\",\"tags\":{\"ruwdxvqzxoebwgj\":\"kw\",\"wtzvpakloz\":\"bibanbau\"},\"id\":\"xbzrpejplssanb\",\"name\":\"ttkgsux\",\"type\":\"nrswgkpjhboyik\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Rack response = manager.racks() - .getByResourceGroupWithResponse("zp", "admskx", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jnltcetjdvqydi", response.location()); - Assertions.assertEquals("kw", response.tags().get("ruwdxvqzxoebwgj")); - Assertions.assertEquals("npd", response.extendedLocation().name()); - Assertions.assertEquals("zigjsugswhgsaodk", response.extendedLocation().type()); - Assertions.assertEquals("wnbaf", response.availabilityZone()); - Assertions.assertEquals("rvqchoadhrsxqvzv", response.rackLocation()); - Assertions.assertEquals("pabdsrg", response.rackSerialNumber()); - Assertions.assertEquals("ajglzrsubklr", response.rackSkuId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java deleted file mode 100644 index 92ee594ccd05e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Rack; -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 RacksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"dveksbuhoduch\",\"type\":\"lscrdpibfdyjduss\"},\"properties\":{\"availabilityZone\":\"yszekbhwlka\",\"clusterId\":\"gkrehbf\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"bffljfiimreoag\",\"provisioningState\":\"Failed\",\"rackLocation\":\"aadusrexxfa\",\"rackSerialNumber\":\"sqwudohzilfmnli\",\"rackSkuId\":\"psimsf\"},\"location\":\"pofqpmbhy\",\"tags\":{\"erhsmvgohtw\":\"drmmttjxoph\",\"wwmhkruwae\":\"mqilrixysfnimsqy\",\"in\":\"rympmlq\",\"njdiqfliejhpcl\":\"zduewihapfjii\"},\"id\":\"iedfsbwcei\",\"name\":\"bv\",\"type\":\"ipbwxgooo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.racks().listByResourceGroup("cu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pofqpmbhy", response.iterator().next().location()); - Assertions.assertEquals("drmmttjxoph", response.iterator().next().tags().get("erhsmvgohtw")); - Assertions.assertEquals("dveksbuhoduch", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("lscrdpibfdyjduss", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("yszekbhwlka", response.iterator().next().availabilityZone()); - Assertions.assertEquals("aadusrexxfa", response.iterator().next().rackLocation()); - Assertions.assertEquals("sqwudohzilfmnli", response.iterator().next().rackSerialNumber()); - Assertions.assertEquals("psimsf", response.iterator().next().rackSkuId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java deleted file mode 100644 index dfbb9ce77e5d3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Rack; -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 RacksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"xzvsgeafgf\",\"type\":\"sehxlzsxezp\"},\"properties\":{\"availabilityZone\":\"kkwa\",\"clusterId\":\"skyfjlpzeqto\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"ixlajmllpquevham\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"gwb\",\"rackSerialNumber\":\"mkekxpkzwaqxo\",\"rackSkuId\":\"qovchiqbp\"},\"location\":\"fidusztekxbyjgm\",\"tags\":{\"rdi\":\"pxyihpqadagr\"},\"id\":\"x\",\"name\":\"wyjfowxwyovcxjs\",\"type\":\"bi\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.racks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fidusztekxbyjgm", response.iterator().next().location()); - Assertions.assertEquals("pxyihpqadagr", response.iterator().next().tags().get("rdi")); - Assertions.assertEquals("xzvsgeafgf", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("sehxlzsxezp", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("kkwa", response.iterator().next().availabilityZone()); - Assertions.assertEquals("gwb", response.iterator().next().rackLocation()); - Assertions.assertEquals("mkekxpkzwaqxo", response.iterator().next().rackSerialNumber()); - Assertions.assertEquals("qovchiqbp", response.iterator().next().rackSkuId()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java deleted file mode 100644 index a6a420b1cf96e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.RacksPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class RacksPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RacksPatchProperties model = BinaryData.fromString("{\"rackLocation\":\"k\",\"rackSerialNumber\":\"ve\"}") - .toObject(RacksPatchProperties.class); - Assertions.assertEquals("k", model.rackLocation()); - Assertions.assertEquals("ve", model.rackSerialNumber()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RacksPatchProperties model = new RacksPatchProperties().withRackLocation("k").withRackSerialNumber("ve"); - model = BinaryData.fromObject(model).toObject(RacksPatchProperties.class); - Assertions.assertEquals("k", model.rackLocation()); - Assertions.assertEquals("ve", model.rackSerialNumber()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java deleted file mode 100644 index 4190a00d1e141..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; -import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; -import org.junit.jupiter.api.Assertions; - -public final class RuntimeProtectionConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeProtectionConfiguration model = BinaryData.fromString("{\"enforcementLevel\":\"Disabled\"}") - .toObject(RuntimeProtectionConfiguration.class); - Assertions.assertEquals(RuntimeProtectionEnforcementLevel.DISABLED, model.enforcementLevel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeProtectionConfiguration model - = new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.DISABLED); - model = BinaryData.fromObject(model).toObject(RuntimeProtectionConfiguration.class); - Assertions.assertEquals(RuntimeProtectionEnforcementLevel.DISABLED, model.enforcementLevel()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java deleted file mode 100644 index d06626b8d0523..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionStatus; - -public final class RuntimeProtectionStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RuntimeProtectionStatus model = BinaryData.fromString( - "{\"definitionsLastUpdated\":\"2021-11-03T18:10:18Z\",\"definitionsVersion\":\"pnddhsgcbacphejk\",\"scanCompletedTime\":\"2021-06-08T17:38:25Z\",\"scanScheduledTime\":\"2021-05-11T13:05:51Z\",\"scanStartedTime\":\"2021-02-05T05:14:14Z\"}") - .toObject(RuntimeProtectionStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RuntimeProtectionStatus model = new RuntimeProtectionStatus(); - model = BinaryData.fromObject(model).toObject(RuntimeProtectionStatus.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java deleted file mode 100644 index c45890060be53..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StorageApplianceEnableRemoteVendorManagementParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageApplianceEnableRemoteVendorManagementParameters model - = BinaryData.fromString("{\"supportEndpoints\":[\"sggux\",\"eml\",\"ywaeeczgf\"]}") - .toObject(StorageApplianceEnableRemoteVendorManagementParameters.class); - Assertions.assertEquals("sggux", model.supportEndpoints().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageApplianceEnableRemoteVendorManagementParameters model - = new StorageApplianceEnableRemoteVendorManagementParameters() - .withSupportEndpoints(Arrays.asList("sggux", "eml", "ywaeeczgf")); - model = BinaryData.fromObject(model).toObject(StorageApplianceEnableRemoteVendorManagementParameters.class); - Assertions.assertEquals("sggux", model.supportEndpoints().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java deleted file mode 100644 index 9d1f5fbe27dc6..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.StorageAppliancePatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class StorageAppliancePatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAppliancePatchParameters model = BinaryData - .fromString( - "{\"properties\":{\"serialNumber\":\"dvlvhbwrnfxtgdd\"},\"tags\":{\"kcoeqswank\":\"hehnmnaoya\"}}") - .toObject(StorageAppliancePatchParameters.class); - Assertions.assertEquals("hehnmnaoya", model.tags().get("kcoeqswank")); - Assertions.assertEquals("dvlvhbwrnfxtgdd", model.serialNumber()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAppliancePatchParameters model - = new StorageAppliancePatchParameters().withTags(mapOf("kcoeqswank", "hehnmnaoya")) - .withSerialNumber("dvlvhbwrnfxtgdd"); - model = BinaryData.fromObject(model).toObject(StorageAppliancePatchParameters.class); - Assertions.assertEquals("hehnmnaoya", model.tags().get("kcoeqswank")); - Assertions.assertEquals("dvlvhbwrnfxtgdd", model.serialNumber()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java deleted file mode 100644 index 6dac1e95e6a7e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.StorageAppliancePatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class StorageAppliancePatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageAppliancePatchProperties model = BinaryData.fromString("{\"serialNumber\":\"ytmhdroznnhdrlkt\"}") - .toObject(StorageAppliancePatchProperties.class); - Assertions.assertEquals("ytmhdroznnhdrlkt", model.serialNumber()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageAppliancePatchProperties model - = new StorageAppliancePatchProperties().withSerialNumber("ytmhdroznnhdrlkt"); - model = BinaryData.fromObject(model).toObject(StorageAppliancePatchProperties.class); - Assertions.assertEquals("ytmhdroznnhdrlkt", model.serialNumber()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java deleted file mode 100644 index a465a093e0091..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.StorageApplianceSkuProperties; - -public final class StorageApplianceSkuPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageApplianceSkuProperties model - = BinaryData.fromString("{\"capacityGB\":1211550739035183737,\"model\":\"cwkhihi\"}") - .toObject(StorageApplianceSkuProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageApplianceSkuProperties model = new StorageApplianceSkuProperties(); - model = BinaryData.fromObject(model).toObject(StorageApplianceSkuProperties.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java deleted file mode 100644 index 33045b5e36d9f..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.StorageApplianceSkuSlot; - -public final class StorageApplianceSkuSlotTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageApplianceSkuSlot model = BinaryData.fromString( - "{\"properties\":{\"capacityGB\":2261435778916561512,\"model\":\"eypefojyqd\"},\"rackSlot\":941187367545225864}") - .toObject(StorageApplianceSkuSlot.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageApplianceSkuSlot model = new StorageApplianceSkuSlot(); - model = BinaryData.fromObject(model).toObject(StorageApplianceSkuSlot.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java deleted file mode 100644 index d51d44dcb1b23..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java +++ /dev/null @@ -1,40 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.OsDisk; -import com.azure.resourcemanager.networkcloud.models.OsDiskCreateOption; -import com.azure.resourcemanager.networkcloud.models.OsDiskDeleteOption; -import com.azure.resourcemanager.networkcloud.models.StorageProfile; -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( - "{\"osDisk\":{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":1492840844437190897},\"volumeAttachments\":[\"ptgoeiybbabp\",\"hv\",\"slkvntjl\"]}") - .toObject(StorageProfile.class); - Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.osDisk().createOption()); - Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals(1492840844437190897L, model.osDisk().diskSizeGB()); - Assertions.assertEquals("ptgoeiybbabp", model.volumeAttachments().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageProfile model = new StorageProfile() - .withOsDisk(new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) - .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(1492840844437190897L)) - .withVolumeAttachments(Arrays.asList("ptgoeiybbabp", "hv", "slkvntjl")); - model = BinaryData.fromObject(model).toObject(StorageProfile.class); - Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.osDisk().createOption()); - Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals(1492840844437190897L, model.osDisk().diskSizeGB()); - Assertions.assertEquals("ptgoeiybbabp", model.volumeAttachments().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java deleted file mode 100644 index 659bdc73c7979..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java +++ /dev/null @@ -1,31 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkAttachmentConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class TrunkedNetworkAttachmentConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrunkedNetworkAttachmentConfiguration model - = BinaryData.fromString("{\"networkId\":\"dgqggebdu\",\"pluginType\":\"IPVLAN\"}") - .toObject(TrunkedNetworkAttachmentConfiguration.class); - Assertions.assertEquals("dgqggebdu", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrunkedNetworkAttachmentConfiguration model - = new TrunkedNetworkAttachmentConfiguration().withNetworkId("dgqggebdu") - .withPluginType(KubernetesPluginType.IPVLAN); - model = BinaryData.fromObject(model).toObject(TrunkedNetworkAttachmentConfiguration.class); - Assertions.assertEquals("dgqggebdu", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java deleted file mode 100644 index d291ca2a4cdc2..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java +++ /dev/null @@ -1,63 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TrunkedNetworkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrunkedNetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"oajvgcxtxjcs\",\"type\":\"eafidltugsresm\"},\"properties\":{\"associatedResourceIds\":[\"jhoiftxfkfweg\",\"rhptilluc\",\"iqtgdqoh\",\"cwsldri\"],\"clusterId\":\"tpwb\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"libph\",\"hybridAksClustersAssociatedIds\":[\"mizak\",\"kan\",\"jpdn\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"joylh\",\"isolationDomainIds\":[\"muoyxprimr\",\"opteecj\",\"eislstvasylwx\",\"zaum\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"guufuzboyjathwtz\",\"lbaemwmdxmeb\"],\"vlans\":[34566941819509688,519489935498937566]},\"location\":\"hlxvea\",\"tags\":{\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\",\"eqw\":\"ekpndzaapmudq\"},\"id\":\"gp\",\"name\":\"bu\",\"type\":\"qwyxebeybpm\"}") - .toObject(TrunkedNetworkInner.class); - Assertions.assertEquals("hlxvea", model.location()); - Assertions.assertEquals("xnmwmqtibxyijddt", model.tags().get("qcttadijaeukmrsi")); - Assertions.assertEquals("oajvgcxtxjcs", model.extendedLocation().name()); - Assertions.assertEquals("eafidltugsresm", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); - Assertions.assertEquals("joylh", model.interfaceName()); - Assertions.assertEquals("muoyxprimr", model.isolationDomainIds().get(0)); - Assertions.assertEquals(34566941819509688L, model.vlans().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrunkedNetworkInner model = new TrunkedNetworkInner().withLocation("hlxvea") - .withTags(mapOf("qcttadijaeukmrsi", "xnmwmqtibxyijddt", "eqw", "ekpndzaapmudq")) - .withExtendedLocation(new ExtendedLocation().withName("oajvgcxtxjcs").withType("eafidltugsresm")) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("joylh") - .withIsolationDomainIds(Arrays.asList("muoyxprimr", "opteecj", "eislstvasylwx", "zaum")) - .withVlans(Arrays.asList(34566941819509688L, 519489935498937566L)); - model = BinaryData.fromObject(model).toObject(TrunkedNetworkInner.class); - Assertions.assertEquals("hlxvea", model.location()); - Assertions.assertEquals("xnmwmqtibxyijddt", model.tags().get("qcttadijaeukmrsi")); - Assertions.assertEquals("oajvgcxtxjcs", model.extendedLocation().name()); - Assertions.assertEquals("eafidltugsresm", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); - Assertions.assertEquals("joylh", model.interfaceName()); - Assertions.assertEquals("muoyxprimr", model.isolationDomainIds().get(0)); - Assertions.assertEquals(34566941819509688L, model.vlans().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java deleted file mode 100644 index 4a1a087babe47..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java +++ /dev/null @@ -1,78 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TrunkedNetworkListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrunkedNetworkList model = BinaryData.fromString( - "{\"nextLink\":\"qhlwigdivbkbxgo\",\"value\":[{\"extendedLocation\":{\"name\":\"juwasqvdaeyyguxa\",\"type\":\"jsqzhzbezk\"},\"properties\":{\"associatedResourceIds\":[\"sidxasicdd\",\"vvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"],\"clusterId\":\"zybbj\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"ksyxkyxvxevblbje\",\"hybridAksClustersAssociatedIds\":[\"jlageu\",\"ulxunsmjbnkpp\",\"ynenlsvxeizz\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"nsrmffeycx\",\"isolationDomainIds\":[\"tpiymerteea\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"ekkkzd\",\"rtkgdojbmxvavref\",\"eesvecu\",\"jpxtxsuwprtuj\"],\"vlans\":[1050877553799063641,5348158048255223643,8069918205295574931,706270715429567578]},\"location\":\"xvititvtz\",\"tags\":{\"ecdmdqbwpy\":\"avoxtfg\"},\"id\":\"q\",\"name\":\"gsfjac\",\"type\":\"slhhxudbxv\"},{\"extendedLocation\":{\"name\":\"d\",\"type\":\"tnsi\"},\"properties\":{\"associatedResourceIds\":[\"hzmme\",\"ckdlpag\",\"rcxfailcfxwmdb\"],\"clusterId\":\"dfgsftufqobrj\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"gcckknhxkizvytn\",\"hybridAksClustersAssociatedIds\":[\"uljraae\",\"anokqgu\",\"kjq\",\"vbroylaxxu\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"sdosfjbjsvgjr\",\"isolationDomainIds\":[\"r\",\"vyc\"],\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"xgccknfnw\",\"btmvpdvjdhttza\",\"fedxihchrphkm\",\"rjdqnsdfzp\"],\"vlans\":[2004934098005574571,560621963294403573,6433171258277978694]},\"location\":\"ghrjeuutl\",\"tags\":{\"zhokvbwnhh\":\"z\"},\"id\":\"qlgehg\",\"name\":\"pipifh\",\"type\":\"f\"}]}") - .toObject(TrunkedNetworkList.class); - Assertions.assertEquals("qhlwigdivbkbxgo", model.nextLink()); - Assertions.assertEquals("xvititvtz", model.value().get(0).location()); - Assertions.assertEquals("avoxtfg", model.value().get(0).tags().get("ecdmdqbwpy")); - Assertions.assertEquals("juwasqvdaeyyguxa", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("jsqzhzbezk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("nsrmffeycx", model.value().get(0).interfaceName()); - Assertions.assertEquals("tpiymerteea", model.value().get(0).isolationDomainIds().get(0)); - Assertions.assertEquals(1050877553799063641L, model.value().get(0).vlans().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrunkedNetworkList model - = new TrunkedNetworkList().withNextLink("qhlwigdivbkbxgo") - .withValue(Arrays.asList( - new TrunkedNetworkInner().withLocation("xvititvtz") - .withTags(mapOf("ecdmdqbwpy", "avoxtfg")) - .withExtendedLocation( - new ExtendedLocation().withName("juwasqvdaeyyguxa").withType("jsqzhzbezk")) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("nsrmffeycx") - .withIsolationDomainIds(Arrays.asList("tpiymerteea")) - .withVlans(Arrays.asList(1050877553799063641L, 5348158048255223643L, 8069918205295574931L, - 706270715429567578L)), - new TrunkedNetworkInner().withLocation("ghrjeuutl") - .withTags(mapOf("zhokvbwnhh", "z")) - .withExtendedLocation(new ExtendedLocation().withName("d").withType("tnsi")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("sdosfjbjsvgjr") - .withIsolationDomainIds(Arrays.asList("r", "vyc")) - .withVlans(Arrays.asList(2004934098005574571L, 560621963294403573L, 6433171258277978694L)))); - model = BinaryData.fromObject(model).toObject(TrunkedNetworkList.class); - Assertions.assertEquals("qhlwigdivbkbxgo", model.nextLink()); - Assertions.assertEquals("xvititvtz", model.value().get(0).location()); - Assertions.assertEquals("avoxtfg", model.value().get(0).tags().get("ecdmdqbwpy")); - Assertions.assertEquals("juwasqvdaeyyguxa", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("jsqzhzbezk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("nsrmffeycx", model.value().get(0).interfaceName()); - Assertions.assertEquals("tpiymerteea", model.value().get(0).isolationDomainIds().get(0)); - Assertions.assertEquals(1050877553799063641L, model.value().get(0).vlans().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java deleted file mode 100644 index 5514b3ff61e8e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkPatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class TrunkedNetworkPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrunkedNetworkPatchParameters model = BinaryData.fromString( - "{\"tags\":{\"ycsxzu\":\"klelssxb\",\"mdesqp\":\"ksrl\",\"vteo\":\"pvmjcdoewbid\",\"gfsxzec\":\"xvgpiude\"}}") - .toObject(TrunkedNetworkPatchParameters.class); - Assertions.assertEquals("klelssxb", model.tags().get("ycsxzu")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrunkedNetworkPatchParameters model = new TrunkedNetworkPatchParameters() - .withTags(mapOf("ycsxzu", "klelssxb", "mdesqp", "ksrl", "vteo", "pvmjcdoewbid", "gfsxzec", "xvgpiude")); - model = BinaryData.fromObject(model).toObject(TrunkedNetworkPatchParameters.class); - Assertions.assertEquals("klelssxb", model.tags().get("ycsxzu")); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java deleted file mode 100644 index 77a68dc2ed20b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java +++ /dev/null @@ -1,38 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkProperties; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TrunkedNetworkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TrunkedNetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"rtffyaqitmh\",\"eioqaqhvse\",\"fuqyrxpdlcgqlsi\"],\"clusterId\":\"jqfrddgamquh\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"sjuivfcdisyir\",\"hybridAksClustersAssociatedIds\":[\"hcz\",\"xrxzbujrtr\",\"qvwre\",\"khgn\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"nzlrpiqywncvjt\",\"isolationDomainIds\":[\"cof\"],\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"dhgbjkvre\",\"jeamurv\",\"mlovuanashcxl\"],\"vlans\":[8237777567310895411,2636756459622918306]}") - .toObject(TrunkedNetworkProperties.class); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("nzlrpiqywncvjt", model.interfaceName()); - Assertions.assertEquals("cof", model.isolationDomainIds().get(0)); - Assertions.assertEquals(8237777567310895411L, model.vlans().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TrunkedNetworkProperties model - = new TrunkedNetworkProperties().withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("nzlrpiqywncvjt") - .withIsolationDomainIds(Arrays.asList("cof")) - .withVlans(Arrays.asList(8237777567310895411L, 2636756459622918306L)); - model = BinaryData.fromObject(model).toObject(TrunkedNetworkProperties.class); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("nzlrpiqywncvjt", model.interfaceName()); - Assertions.assertEquals("cof", model.isolationDomainIds().get(0)); - Assertions.assertEquals(8237777567310895411L, model.vlans().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java deleted file mode 100644 index 3e4efc2e53391..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java +++ /dev/null @@ -1,71 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -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 TrunkedNetworksCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"nfee\",\"type\":\"gpkrie\"},\"properties\":{\"associatedResourceIds\":[\"nixxo\",\"wzkyf\",\"nwpiwxeiicrm\",\"e\"],\"clusterId\":\"ldmaxxijvskwsdgk\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cwrase\",\"hybridAksClustersAssociatedIds\":[\"fcvoinwoqar\",\"wyxqiclad\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"avuqmcbymsfobjlq\",\"isolationDomainIds\":[\"jezcjumvps\",\"mioyo\",\"glkmiqwnnr\",\"clibbfqpsp\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"dgnhautw\",\"kexzgpmnmabeddqi\"],\"vlans\":[4313424007444767733]},\"location\":\"pfqfpc\",\"tags\":{\"rvwerfwxbsmtb\":\"clg\"},\"id\":\"jj\",\"name\":\"h\",\"type\":\"ci\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TrunkedNetwork response = manager.trunkedNetworks() - .define("exkydfb") - .withRegion("nctagfyvrtpqpem") - .withExistingResourceGroup("bowcpjqduqgi") - .withExtendedLocation(new ExtendedLocation().withName("lj").withType("vhuerkjddvrglieg")) - .withIsolationDomainIds(Arrays.asList("lobvv", "bhvhdiqay", "luiyuosnuudte")) - .withVlans(Arrays.asList(1842583766553813115L, 3706472874283772066L)) - .withTags(mapOf("wemvxqabckmze", "gkrepdqhqyhw", "greohtwhlpuzjp", "xin", "angp", "eezn")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("gmnzjotvmrx") - .create(); - - Assertions.assertEquals("pfqfpc", response.location()); - Assertions.assertEquals("clg", response.tags().get("rvwerfwxbsmtb")); - Assertions.assertEquals("nfee", response.extendedLocation().name()); - Assertions.assertEquals("gpkrie", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("avuqmcbymsfobjlq", response.interfaceName()); - Assertions.assertEquals("jezcjumvps", response.isolationDomainIds().get(0)); - Assertions.assertEquals(4313424007444767733L, response.vlans().get(0)); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index c236f943b4992..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,47 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -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 TrunkedNetworksGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"rulfuct\",\"type\":\"jrthcfjzhx\"},\"properties\":{\"associatedResourceIds\":[\"bqjr\",\"stvrjeqmt\"],\"clusterId\":\"beqrztrx\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"d\",\"hybridAksClustersAssociatedIds\":[\"srwrsnrhpqati\",\"kkvyanxk\",\"vcsemsvuvdj\",\"qxetqmmlivrjjx\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"chp\",\"isolationDomainIds\":[\"xlehzlxpgfquwzp\",\"iibelwcerw\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"xljtxbusqtbxxn\",\"uisdzhgbdgz\",\"agsecnadbuw\"],\"vlans\":[7056354407453453620]},\"location\":\"llmqiyne\",\"tags\":{\"kiiwvmtu\":\"lln\",\"vqpilrguncanldu\":\"xpymdjfuaxro\"},\"id\":\"zorxsb\",\"name\":\"x\",\"type\":\"qk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TrunkedNetwork response = manager.trunkedNetworks() - .getByResourceGroupWithResponse("sbvr", "aqgvto", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("llmqiyne", response.location()); - Assertions.assertEquals("lln", response.tags().get("kiiwvmtu")); - Assertions.assertEquals("rulfuct", response.extendedLocation().name()); - Assertions.assertEquals("jrthcfjzhx", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("chp", response.interfaceName()); - Assertions.assertEquals("xlehzlxpgfquwzp", response.isolationDomainIds().get(0)); - Assertions.assertEquals(7056354407453453620L, response.vlans().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java deleted file mode 100644 index 24a3d9a56ca58..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java +++ /dev/null @@ -1,47 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -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 TrunkedNetworksListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"qhnmhk\",\"type\":\"ezsdsuxheq\"},\"properties\":{\"associatedResourceIds\":[\"ruxspinymmqgwok\",\"ikpazf\",\"mjxuvjipfdvhaxd\"],\"clusterId\":\"zaehpphthd\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"etatlakf\",\"hybridAksClustersAssociatedIds\":[\"xwgiks\",\"bvtooxrpogwp\",\"chgjtnhtukfacih\",\"bfntumeezbxvq\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"vwcga\",\"isolationDomainIds\":[\"omtmjzwxuqgov\",\"xpwwzt\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"htgfred\",\"ls\",\"grllcc\",\"aovjow\"],\"vlans\":[2662581133111301135,6125335634113559684]},\"location\":\"comlyotgkwsx\",\"tags\":{\"genmvceb\":\"qor\",\"dcqjkedwqurc\":\"eetqujxcxxq\"},\"id\":\"ojmrvvxwjongzse\",\"name\":\"qqrsil\",\"type\":\"chskxxka\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.trunkedNetworks().listByResourceGroup("pqht", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("comlyotgkwsx", response.iterator().next().location()); - Assertions.assertEquals("qor", response.iterator().next().tags().get("genmvceb")); - Assertions.assertEquals("qhnmhk", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("ezsdsuxheq", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("vwcga", response.iterator().next().interfaceName()); - Assertions.assertEquals("omtmjzwxuqgov", response.iterator().next().isolationDomainIds().get(0)); - Assertions.assertEquals(2662581133111301135L, response.iterator().next().vlans().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java deleted file mode 100644 index e3bc7c2f02e20..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java +++ /dev/null @@ -1,46 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; -import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -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 TrunkedNetworksListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"tmojhvrztnvgyshq\",\"type\":\"dgrtwmew\"},\"properties\":{\"associatedResourceIds\":[\"py\"],\"clusterId\":\"fa\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"cayer\",\"hybridAksClustersAssociatedIds\":[\"ansyb\",\"lpolwzrghsrle\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"scjfncjwvuagf\",\"isolationDomainIds\":[\"tltng\",\"m\",\"e\",\"ptrklzmija\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"fsvagh\"],\"vlans\":[7469250402982686005,1276863809676580780,548743314358762108,4282149181142160943]},\"location\":\"gtzjcv\",\"tags\":{\"yxpavidnie\":\"lapsnsso\",\"slpuxgcbdsva\":\"wffcvvye\",\"rkxgpazwugxyqvnj\":\"pnptw\"},\"id\":\"bfe\",\"name\":\"hldiuhzzgqlm\",\"type\":\"aewzgiudjp\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.trunkedNetworks().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gtzjcv", response.iterator().next().location()); - Assertions.assertEquals("lapsnsso", response.iterator().next().tags().get("yxpavidnie")); - Assertions.assertEquals("tmojhvrztnvgyshq", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("dgrtwmew", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("scjfncjwvuagf", response.iterator().next().interfaceName()); - Assertions.assertEquals("tltng", response.iterator().next().isolationDomainIds().get(0)); - Assertions.assertEquals(7469250402982686005L, response.iterator().next().vlans().get(0)); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java deleted file mode 100644 index a5d6a55dae58b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"ef93c325-8cf8-4a49-9cd9-82efc5355b76\",\"clientId\":\"18c9709e-b2c4-40bb-9622-5071a7849b5c\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java deleted file mode 100644 index d3ac585a351c8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; -import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; -import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; -import org.junit.jupiter.api.Assertions; - -public final class ValidationThresholdTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidationThreshold model = BinaryData - .fromString("{\"grouping\":\"PerRack\",\"type\":\"PercentSuccess\",\"value\":1125965714665499028}") - .toObject(ValidationThreshold.class); - Assertions.assertEquals(ValidationThresholdGrouping.PER_RACK, model.grouping()); - Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.type()); - Assertions.assertEquals(1125965714665499028L, model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidationThreshold model = new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_RACK) - .withType(ValidationThresholdType.PERCENT_SUCCESS) - .withValue(1125965714665499028L); - model = BinaryData.fromObject(model).toObject(ValidationThreshold.class); - Assertions.assertEquals(ValidationThresholdGrouping.PER_RACK, model.grouping()); - Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.type()); - Assertions.assertEquals(1125965714665499028L, model.value()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java deleted file mode 100644 index ca30bffebb574..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.VirtualMachinePlacementHint; -import com.azure.resourcemanager.networkcloud.models.VirtualMachinePlacementHintPodAffinityScope; -import com.azure.resourcemanager.networkcloud.models.VirtualMachinePlacementHintType; -import com.azure.resourcemanager.networkcloud.models.VirtualMachineSchedulingExecution; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachinePlacementHintTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachinePlacementHint model = BinaryData.fromString( - "{\"hintType\":\"Affinity\",\"resourceId\":\"rqryxynqn\",\"schedulingExecution\":\"Hard\",\"scope\":\"Machine\"}") - .toObject(VirtualMachinePlacementHint.class); - Assertions.assertEquals(VirtualMachinePlacementHintType.AFFINITY, model.hintType()); - Assertions.assertEquals("rqryxynqn", model.resourceId()); - Assertions.assertEquals(VirtualMachineSchedulingExecution.HARD, model.schedulingExecution()); - Assertions.assertEquals(VirtualMachinePlacementHintPodAffinityScope.MACHINE, model.scope()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachinePlacementHint model - = new VirtualMachinePlacementHint().withHintType(VirtualMachinePlacementHintType.AFFINITY) - .withResourceId("rqryxynqn") - .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) - .withScope(VirtualMachinePlacementHintPodAffinityScope.MACHINE); - model = BinaryData.fromObject(model).toObject(VirtualMachinePlacementHint.class); - Assertions.assertEquals(VirtualMachinePlacementHintType.AFFINITY, model.hintType()); - Assertions.assertEquals("rqryxynqn", model.resourceId()); - Assertions.assertEquals(VirtualMachineSchedulingExecution.HARD, model.schedulingExecution()); - Assertions.assertEquals(VirtualMachinePlacementHintPodAffinityScope.MACHINE, model.scope()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java deleted file mode 100644 index 11f0982c2bea9..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.SkipShutdown; -import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParameters; -import org.junit.jupiter.api.Assertions; - -public final class VirtualMachinePowerOffParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualMachinePowerOffParameters model - = BinaryData.fromString("{\"skipShutdown\":\"False\"}").toObject(VirtualMachinePowerOffParameters.class); - Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualMachinePowerOffParameters model - = new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.FALSE); - model = BinaryData.fromObject(model).toObject(VirtualMachinePowerOffParameters.class); - Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java deleted file mode 100644 index 8a96fc6d8d286..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java +++ /dev/null @@ -1,52 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"zzjgehkfki\",\"type\":\"rtixokff\"},\"properties\":{\"attachedTo\":[\"nljqepqwhixmons\",\"shiy\",\"gvelfc\",\"du\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"rds\",\"provisioningState\":\"Canceled\",\"serialNumber\":\"o\",\"sizeMiB\":6517518115426729228},\"location\":\"stmninwjizcilng\",\"tags\":{\"jjtbxqmuluxlxqz\":\"h\",\"cucrwnamikze\":\"nersb\",\"fuhok\":\"rqbsmswziq\"},\"id\":\"ruswhv\",\"name\":\"czznvfbycjsxj\",\"type\":\"wix\"}") - .toObject(VolumeInner.class); - Assertions.assertEquals("stmninwjizcilng", model.location()); - Assertions.assertEquals("h", model.tags().get("jjtbxqmuluxlxqz")); - Assertions.assertEquals("zzjgehkfki", model.extendedLocation().name()); - Assertions.assertEquals("rtixokff", model.extendedLocation().type()); - Assertions.assertEquals(6517518115426729228L, model.sizeMiB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeInner model = new VolumeInner().withLocation("stmninwjizcilng") - .withTags(mapOf("jjtbxqmuluxlxqz", "h", "cucrwnamikze", "nersb", "fuhok", "rqbsmswziq")) - .withExtendedLocation(new ExtendedLocation().withName("zzjgehkfki").withType("rtixokff")) - .withSizeMiB(6517518115426729228L); - model = BinaryData.fromObject(model).toObject(VolumeInner.class); - Assertions.assertEquals("stmninwjizcilng", model.location()); - Assertions.assertEquals("h", model.tags().get("jjtbxqmuluxlxqz")); - Assertions.assertEquals("zzjgehkfki", model.extendedLocation().name()); - Assertions.assertEquals("rtixokff", model.extendedLocation().type()); - Assertions.assertEquals(6517518115426729228L, model.sizeMiB()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java deleted file mode 100644 index d3174ca37f2db..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java +++ /dev/null @@ -1,75 +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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.VolumeList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumeListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeList model = BinaryData.fromString( - "{\"nextLink\":\"zid\",\"value\":[{\"extendedLocation\":{\"name\":\"aabzmif\",\"type\":\"ygznmmaxrizk\"},\"properties\":{\"attachedTo\":[\"gopxlhslnelxie\",\"xynl\",\"xecwcro\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"lhc\",\"provisioningState\":\"Failed\",\"serialNumber\":\"tifdwfmvi\",\"sizeMiB\":2572871112622021825},\"location\":\"jbt\",\"tags\":{\"fhonqjujeickpzvc\":\"raglk\"},\"id\":\"opmx\",\"name\":\"lnwcltyjed\",\"type\":\"xxmlfmkqscazua\"},{\"extendedLocation\":{\"name\":\"xtzx\",\"type\":\"uamwabzxrvxc\"},\"properties\":{\"attachedTo\":[\"sphaivmxyasflvg\",\"gzwywak\",\"ihknsmjbl\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"lnymzotqy\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"cbm\",\"sizeMiB\":2876121281979781425},\"location\":\"mv\",\"tags\":{\"nsup\":\"tayx\",\"oibgsxg\":\"ujlzqnhcvsqltn\",\"dbxiqx\":\"xfyqonmpqoxwdo\",\"htmwwinh\":\"iiqbi\"},\"id\":\"hfqpofv\",\"name\":\"bcblemb\",\"type\":\"kbwvqvxkdiv\"},{\"extendedLocation\":{\"name\":\"ihebwtsw\",\"type\":\"zuwfmdur\"},\"properties\":{\"attachedTo\":[\"gi\",\"vcjfelisdjubggb\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"xkbsazgakgac\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"jdmspofapvuhryln\",\"sizeMiB\":5973350387675876264},\"location\":\"zgb\",\"tags\":{\"nlvxbcuii\":\"dmstk\"},\"id\":\"nktwfansnvpdibmi\",\"name\":\"ostbzbkiwb\",\"type\":\"qnyophzfyls\"},{\"extendedLocation\":{\"name\":\"crpfbcunez\",\"type\":\"cez\"},\"properties\":{\"attachedTo\":[\"w\",\"fwlwxjwetnps\",\"hclafzvaylptrs\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"tcmwqkchc\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"fewz\",\"sizeMiB\":2734356009177202328},\"location\":\"xfdeqvhpsyl\",\"tags\":{\"zjrgyww\":\"hkbffmbm\"},\"id\":\"gjxsnptfu\",\"name\":\"gicgaaoepttaq\",\"type\":\"tdewemxswvruu\"}]}") - .toObject(VolumeList.class); - Assertions.assertEquals("zid", model.nextLink()); - Assertions.assertEquals("jbt", model.value().get(0).location()); - Assertions.assertEquals("raglk", model.value().get(0).tags().get("fhonqjujeickpzvc")); - Assertions.assertEquals("aabzmif", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ygznmmaxrizk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(2572871112622021825L, model.value().get(0).sizeMiB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeList model - = new VolumeList().withNextLink("zid") - .withValue( - Arrays - .asList( - new VolumeInner().withLocation("jbt") - .withTags(mapOf("fhonqjujeickpzvc", "raglk")) - .withExtendedLocation( - new ExtendedLocation().withName("aabzmif").withType("ygznmmaxrizk")) - .withSizeMiB(2572871112622021825L), - new VolumeInner().withLocation("mv") - .withTags(mapOf("nsup", "tayx", "oibgsxg", "ujlzqnhcvsqltn", "dbxiqx", "xfyqonmpqoxwdo", - "htmwwinh", "iiqbi")) - .withExtendedLocation(new ExtendedLocation().withName("xtzx").withType("uamwabzxrvxc")) - .withSizeMiB(2876121281979781425L), - new VolumeInner().withLocation("zgb") - .withTags(mapOf("nlvxbcuii", "dmstk")) - .withExtendedLocation(new ExtendedLocation().withName("ihebwtsw").withType("zuwfmdur")) - .withSizeMiB(5973350387675876264L), - new VolumeInner().withLocation("xfdeqvhpsyl") - .withTags(mapOf("zjrgyww", "hkbffmbm")) - .withExtendedLocation(new ExtendedLocation().withName("crpfbcunez").withType("cez")) - .withSizeMiB(2734356009177202328L))); - model = BinaryData.fromObject(model).toObject(VolumeList.class); - Assertions.assertEquals("zid", model.nextLink()); - Assertions.assertEquals("jbt", model.value().get(0).location()); - Assertions.assertEquals("raglk", model.value().get(0).tags().get("fhonqjujeickpzvc")); - Assertions.assertEquals("aabzmif", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ygznmmaxrizk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(2572871112622021825L, model.value().get(0).sizeMiB()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java deleted file mode 100644 index c0fc9af6ed9cb..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.VolumePatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class VolumePatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumePatchParameters model = BinaryData.fromString( - "{\"tags\":{\"efjokn\":\"vpbbt\",\"biqmrjgei\":\"sqyzqedikdfr\",\"iwzcxmjpbyeph\":\"fqlggw\",\"ljvrcmyfqipgxhnp\":\"gt\"}}") - .toObject(VolumePatchParameters.class); - Assertions.assertEquals("vpbbt", model.tags().get("efjokn")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumePatchParameters model = new VolumePatchParameters().withTags( - mapOf("efjokn", "vpbbt", "biqmrjgei", "sqyzqedikdfr", "iwzcxmjpbyeph", "fqlggw", "ljvrcmyfqipgxhnp", "gt")); - model = BinaryData.fromObject(model).toObject(VolumePatchParameters.class); - Assertions.assertEquals("vpbbt", model.tags().get("efjokn")); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java deleted file mode 100644 index 99200a5bb9e0c..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.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.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.VolumeProperties; -import org.junit.jupiter.api.Assertions; - -public final class VolumePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VolumeProperties model = BinaryData.fromString( - "{\"attachedTo\":[\"mwmxqhndvnoamld\",\"ehaohdjhh\",\"lzok\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"pelnjetag\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"oatftgzpnpbswvef\",\"sizeMiB\":4618412568298030001}") - .toObject(VolumeProperties.class); - Assertions.assertEquals(4618412568298030001L, model.sizeMiB()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VolumeProperties model = new VolumeProperties().withSizeMiB(4618412568298030001L); - model = BinaryData.fromObject(model).toObject(VolumeProperties.class); - Assertions.assertEquals(4618412568298030001L, model.sizeMiB()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java deleted file mode 100644 index 3cf7c2fb9146a..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,63 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.azure.resourcemanager.networkcloud.models.Volume; -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 VolumesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"ypdvrbkerdkdkga\",\"type\":\"qwjxi\"},\"properties\":{\"attachedTo\":[\"kc\",\"feygzqp\",\"oisfmnaybdjn\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ntqontwhym\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"lwivqt\",\"sizeMiB\":7032795320572505561},\"location\":\"lsycoyb\",\"tags\":{\"qwmchqohtfxc\":\"squbfajcywh\"},\"id\":\"up\",\"name\":\"kiymjzpwd\",\"type\":\"vwtiwsmosa\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Volume response = manager.volumes() - .define("h") - .withRegion("ftr") - .withExistingResourceGroup("eqfky") - .withExtendedLocation(new ExtendedLocation().withName("wvjaq").withType("pbyynvskpajbm")) - .withSizeMiB(2532382634180545589L) - .withTags(mapOf("muifmuadjnfsn", "jdaahuqimldahlfx", "gztlcgc", "skiioshjgczetybn", "hfjv", "j")) - .create(); - - Assertions.assertEquals("lsycoyb", response.location()); - Assertions.assertEquals("squbfajcywh", response.tags().get("qwmchqohtfxc")); - Assertions.assertEquals("ypdvrbkerdkdkga", response.extendedLocation().name()); - Assertions.assertEquals("qwjxi", response.extendedLocation().type()); - Assertions.assertEquals(7032795320572505561L, response.sizeMiB()); - } - - // 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/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index bed3fb88815b1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Volume; -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 VolumesGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"extendedLocation\":{\"name\":\"tlepowavvqxua\",\"type\":\"g\"},\"properties\":{\"attachedTo\":[\"ulynkgfcfd\",\"uws\",\"kxx\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"uulriqbyokvj\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"x\",\"sizeMiB\":1914561130405499807},\"location\":\"lttfyhc\",\"tags\":{\"fpbpgnrholhujbfw\":\"suoardnagttp\",\"whdmcvhtbbz\":\"iplkysolsyjprxs\",\"ihotjecohmxv\":\"hfvhuwzbxpcqz\",\"xwieexuyade\":\"lrrskap\"},\"id\":\"ltfokyksyim\",\"name\":\"ccgrvkcxzznn\",\"type\":\"i\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Volume response = manager.volumes() - .getByResourceGroupWithResponse("ucbdaom", "wiinjdllw", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lttfyhc", response.location()); - Assertions.assertEquals("suoardnagttp", response.tags().get("fpbpgnrholhujbfw")); - Assertions.assertEquals("tlepowavvqxua", response.extendedLocation().name()); - Assertions.assertEquals("g", response.extendedLocation().type()); - Assertions.assertEquals(1914561130405499807L, response.sizeMiB()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java deleted file mode 100644 index 159d16ed302e8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java +++ /dev/null @@ -1,42 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Volume; -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 VolumesListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"bwwzvdajf\",\"type\":\"nncfmaciqgjjrlhi\"},\"properties\":{\"attachedTo\":[\"ixvt\",\"ougu\",\"tnd\",\"pg\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"asualapdlndbea\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"xvvlwyn\",\"sizeMiB\":1187250674252870070},\"location\":\"qvzfj\",\"tags\":{\"mphfkyezolgjzm\":\"ugzfeuzjl\"},\"id\":\"cuydoccnxshanz\",\"name\":\"uiadhbatecaatsdo\",\"type\":\"zn\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.volumes().listByResourceGroup("jsb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qvzfj", response.iterator().next().location()); - Assertions.assertEquals("ugzfeuzjl", response.iterator().next().tags().get("mphfkyezolgjzm")); - Assertions.assertEquals("bwwzvdajf", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("nncfmaciqgjjrlhi", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(1187250674252870070L, response.iterator().next().sizeMiB()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java deleted file mode 100644 index 5bb61feb28696..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java +++ /dev/null @@ -1,42 +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.networkcloud.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.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.Volume; -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 VolumesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"yvdgxlyzk\",\"type\":\"itdshezsvkolru\"},\"properties\":{\"attachedTo\":[\"vmozsayebrazwz\",\"pzbtzuyk\",\"kipfsdyepf\",\"ocmbezacf\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"azwyqejgaaokctgk\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"qzkcyzm\",\"sizeMiB\":1437328628753102819},\"location\":\"dyfcix\",\"tags\":{\"a\":\"cqvhoejgoiutgwrm\",\"hazyntacihnco\":\"p\",\"mliqmvlb\":\"mip\",\"eaqgrvgpomxpupd\":\"i\"},\"id\":\"sdfjyiesoc\",\"name\":\"iqbuou\",\"type\":\"mpyzgleo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.volumes().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dyfcix", response.iterator().next().location()); - Assertions.assertEquals("cqvhoejgoiutgwrm", response.iterator().next().tags().get("a")); - Assertions.assertEquals("yvdgxlyzk", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("itdshezsvkolru", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(1437328628753102819L, response.iterator().next().sizeMiB()); - } -}