diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md
index 9f30d53b8ab6..5b899a2f8c99 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md
@@ -1,14 +1,888 @@
# Release History
-## 2.2.0-beta.1 (Unreleased)
+## 2.2.0-beta.1 (2026-05-06)
-### 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 api-version 2026-05-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.BareMetalMachineKeySetList` was removed
+
+#### `models.BmcKeySetList` was removed
+
+#### `models.KubernetesClusterList` was removed
+
+#### `models.CloudServicesNetworkList` was removed
+
+#### `models.BareMetalMachineList` was removed
+
+#### `models.StorageApplianceList` was removed
+
+#### `models.RackList` was removed
+
+#### `models.VirtualMachineList` was removed
+
+#### `models.ClusterList` was removed
+
+#### `models.KubernetesClusterFeatureList` was removed
+
+#### `models.L2NetworkList` was removed
+
+#### `models.ClusterMetricsConfigurationList` was removed
+
+#### `models.ClusterManagerList` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.TrunkedNetworkList` was removed
+
+#### `models.VolumeList` was removed
+
+#### `models.RackSkuList` was removed
+
+#### `models.ConsoleList` was removed
+
+#### `models.AgentPoolList` was removed
+
+#### `models.L3NetworkList` was removed
+
+#### `models.VirtualMachineAssignRelayParameters` was modified
+
+* `validate()` was removed
+
+#### `models.VirtualMachinePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachinePowerOffParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Nic` was modified
+
+* `Nic()` was changed to private access
+* `validate()` was removed
+
+#### `models.ClusterContinueUpdateVersionParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ServicePrincipalInformation` was modified
+
+* `validate()` was removed
+
+#### `models.RuntimeProtectionConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.StorageApplianceEnableRemoteVendorManagementParameters` was modified
+
+* `validate()` was removed
+
+#### `models.KeySetUserStatus` was modified
+
+* `KeySetUserStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.ClusterDeployParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterCapacity` was modified
+
+* `ClusterCapacity()` was changed to private access
+* `withAvailableMemoryGB(java.lang.Long)` was removed
+* `withAvailableHostStorageGB(java.lang.Long)` was removed
+* `withTotalApplianceStorageGB(java.lang.Long)` was removed
+* `withTotalMemoryGB(java.lang.Long)` was removed
+* `validate()` was removed
+* `withAvailableApplianceStorageGB(java.lang.Long)` was removed
+* `withTotalHostStorageGB(java.lang.Long)` was removed
+* `withAvailableCoreCount(java.lang.Long)` was removed
+* `withTotalCoreCount(java.lang.Long)` was removed
+
+#### `models.ClusterAvailableUpgradeVersion` was modified
+
+* `ClusterAvailableUpgradeVersion()` was changed to private access
+* `validate()` was removed
+
+#### `models.StorageProfile` was modified
+
+* `validate()` was removed
+
+#### `models.MachineDisk` was modified
+
+* `MachineDisk()` was changed to private access
+* `validate()` was removed
+
+#### `models.BareMetalMachineKeySetPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.IpAddressPool` was modified
+
+* `validate()` was removed
+
+#### `models.RackPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.CloudServicesNetworkStorageOptionsPatch` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineRunReadCommandsParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ControlPlaneNodeConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.BgpAdvertisement` was modified
+
+* `validate()` was removed
+
+#### `models.KubernetesLabel` was modified
+
+* `validate()` was removed
+
+#### `models.OperationStatusResult` was modified
+
+* `java.lang.String status()` -> `java.lang.String status()`
+* `java.lang.Float percentComplete()` -> `java.lang.Double percentComplete()`
+* `java.lang.String resultRef()` -> `java.lang.String resultRef()`
+* `java.lang.String id()` -> `java.lang.String id()`
+* `java.lang.String outputHead()` -> `java.lang.String outputHead()`
+* `java.time.OffsetDateTime startTime()` -> `java.time.OffsetDateTime startTime()`
+* `java.time.OffsetDateTime endTime()` -> `java.time.OffsetDateTime endTime()`
+* `java.lang.String name()` -> `java.lang.String name()`
+* `java.lang.String resultUrl()` -> `java.lang.String resultUrl()`
+* `java.lang.String resourceId()` -> `java.lang.String resourceId()`
+* `com.azure.core.management.exception.ManagementError error()` -> `com.azure.core.management.exception.ManagementError error()`
+* `java.lang.String exitCode()` -> `java.lang.String exitCode()`
+* `innerModel()` was removed
+* `java.util.List operations()` -> `java.util.List operations()`
+
+#### `models.LldpNeighbor` was modified
+
+* `LldpNeighbor()` was changed to private access
+* `validate()` was removed
+
+#### `models.IdentitySelector` was modified
+
+* `validate()` was removed
+
+#### `models.FeatureStatus` was modified
+
+* `FeatureStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.KubernetesClusterFeatures` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void delete(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.ClusterUpdateStrategy` was modified
+
+* `validate()` was removed
+
+#### `models.TrunkedNetworkPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ImageRepositoryCredentials` was modified
+
+* `validate()` was removed
+
+#### `models.OsDisk` was modified
+
+* `validate()` was removed
+
+#### `models.ControlPlaneNodePatchConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.AdministratorConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterAvailableVersion` was modified
+
+* `ClusterAvailableVersion()` was changed to private access
+* `validate()` was removed
+
+#### `models.StorageApplianceSkuSlot` was modified
+
+* `StorageApplianceSkuSlot()` was changed to private access
+* `validate()` was removed
+
+#### `models.AdministrativeCredentials` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineConfigurationData` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterManagers` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+
+#### `models.AgentPools` was modified
+
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void delete(java.lang.String,java.lang.String,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)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+
+#### `models.StringKeyValuePair` was modified
+
+* `validate()` was removed
+
+#### `models.VulnerabilityScanningSettings` was modified
+
+* `validate()` was removed
+
+#### `models.NetworkAttachment` was modified
+
+* `validate()` was removed
+
+#### `models.SecretArchiveReference` was modified
+
+* `SecretArchiveReference()` was changed to private access
+* `validate()` was removed
+
+#### `models.HardwareInventoryNetworkInterface` was modified
+
+* `HardwareInventoryNetworkInterface()` was changed to private access
+* `validate()` was removed
+
+#### `models.SecretArchiveSettings` was modified
+
+* `validate()` was removed
+
+#### `models.AvailableUpgrade` was modified
+
+* `AvailableUpgrade()` was changed to private access
+* `validate()` was removed
+
+#### `models.EgressEndpoint` was modified
+
+* `validate()` was removed
+
+#### `models.CommandOutputSettings` was modified
+
+* `validate()` was removed
+
+#### `models.AttachedNetworkConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.L2NetworkPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.StepState` was modified
+
+* `StepState()` was changed to private access
+* `validate()` was removed
+
+#### `models.StorageAppliancePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.RuntimeProtectionStatus` was modified
+
+* `RuntimeProtectionStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.RackDefinition` was modified
+
+* `validate()` was removed
+
+#### `models.L2NetworkAttachmentConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.KubernetesClusterNode` was modified
+
+* `KubernetesClusterNode()` was changed to private access
+* `validate()` was removed
+
+#### `models.StorageApplianceRunReadCommandsParameters` was modified
+
+* `validate()` was removed
+
+#### `models.NetworkInterface` was modified
+
+* `NetworkInterface()` was changed to private access
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `validate()` was removed
+
+#### `models.ServiceLoadBalancerBgpPeer` was modified
+
+* `validate()` was removed
+
+#### `models.InitialAgentPoolConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.StorageApplianceCommandSpecification` was modified
+
+* `validate()` was removed
+
+#### `models.L2Networks` was modified
+
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.EndpointDependency` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineCordonParameters` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachine` was modified
+
+* `reimage(com.azure.core.util.Context)` was removed
+
+#### `models.TrunkedNetworkAttachmentConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.CloudServicesNetworkStorageStatus` was modified
+
+* `CloudServicesNetworkStorageStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.VulnerabilityScanningSettingsPatch` was modified
+
+* `validate()` was removed
+
+#### `models.NodePoolAdministratorConfigurationPatch` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineKeySets` was modified
+
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,java.lang.String,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,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+
+#### `models.NetworkConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.AgentOptions` was modified
+
+* `validate()` was removed
+
+#### `models.Racks` was modified
+
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.ClusterManagerPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineCommandSpecification` was modified
+
+* `validate()` was removed
+
+#### `models.StorageAppliances` was modified
+
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.UserAssignedIdentity` was modified
+
+* `java.util.UUID clientId()` -> `java.lang.String clientId()`
+* `validate()` was removed
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+
+#### `models.AadConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.ConsolePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Clusters` was modified
+
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.HardwareValidationStatus` was modified
+
+* `HardwareValidationStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.BareMetalMachineReplaceParameters` was modified
+
+* `validate()` was removed
+
+#### `models.AgentPoolPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.VirtualMachinePowerOffParameters` was modified
+
+* `validate()` was removed
+
+#### `models.CloudServicesNetworkPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.AdministratorConfigurationPatch` was modified
+
+* `validate()` was removed
+
+#### `models.ValidationThreshold` was modified
+
+* `validate()` was removed
+
+#### `models.MetricsConfigurations` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,java.lang.String,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,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+
+#### `models.ActionState` was modified
+
+* `ActionState()` was changed to private access
+* `validate()` was removed
+
+#### `models.CommandOutputOverride` was modified
+
+* `validate()` was removed
+
+#### `models.Volumes` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+
+#### `models.KubernetesClusters` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+
+#### `models.L2ServiceLoadBalancerConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachinePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ExtendedLocation` was modified
+
+* `java.lang.String type()` -> `models.ExtendedLocationType type()`
+* `withType(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.ManagedResourceGroupConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.KubernetesClusterFeaturePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Consoles` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,java.lang.String,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,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+
+#### `models.HardwareInventory` was modified
+
+* `HardwareInventory()` was changed to private access
+* `validate()` was removed
+
+#### `models.BareMetalMachineRunDataExtractsParameters` was modified
+
+* `validate()` was removed
+
+#### `models.BareMetalMachineRunCommandParameters` was modified
+
+* `validate()` was removed
+
+#### `models.L3Networks` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+
+#### `models.ClusterPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ManagedServiceIdentity` was modified
+
+* `java.util.UUID tenantId()` -> `java.lang.String tenantId()`
+* `java.util.UUID principalId()` -> `java.lang.String principalId()`
+* `validate()` was removed
+
+#### `models.L3NetworkPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `NetworkCloudManager` was modified
+
+* `fluent.NetworkCloud serviceClient()` -> `fluent.NetworkCloudManagementClient serviceClient()`
+
+#### `models.BgpServiceLoadBalancerConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.CloudServicesNetworks` was modified
+
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.ClusterScanRuntimeParameters` was modified
+
+* `validate()` was removed
+
+#### `models.BmcKeySetPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.SshPublicKey` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterUpdateVersionParameters` was modified
+
+* `validate()` was removed
+
+#### `models.SecretRotationStatus` was modified
+
+* `SecretRotationStatus()` was changed to private access
+* `validate()` was removed
+
+#### `models.AgentPoolUpgradeSettings` was modified
+
+* `validate()` was removed
+
+#### `models.KeySetUser` was modified
+
+* `validate()` was removed
+
+#### `models.VolumePatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.KubernetesClusterRestartNodeParameters` was modified
+
+* `validate()` was removed
+
+#### `models.L3NetworkAttachmentConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.StorageApplianceConfigurationData` was modified
+
+* `validate()` was removed
+
+#### `models.MachineSkuSlot` was modified
+
+* `MachineSkuSlot()` was changed to private access
+* `validate()` was removed
+
+#### `models.BmcKeySets` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,java.lang.String,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,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(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)` -> `void delete(java.lang.String,java.lang.String,java.lang.String)`
+
+#### `models.BareMetalMachines` was modified
+
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `reimage(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.VirtualMachines` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+
+#### `models.AnalyticsOutputSettings` was modified
+
+* `validate()` was removed
+
+#### `models.KubernetesClusterPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.VirtualMachinePlacementHint` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterMetricsConfigurationPatchParameters` was modified
+
+* `validate()` was removed
+
+#### `models.ClusterSecretArchive` was modified
+
+* `validate()` was removed
+
+#### `models.CertificateInfo` was modified
+
+* `CertificateInfo()` was changed to private access
+* `validate()` was removed
+
+#### `models.TrunkedNetworks` was modified
+
+* `models.OperationStatusResult delete(java.lang.String,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,java.lang.String,com.azure.core.util.Context)`
+* `models.OperationStatusResult deleteById(java.lang.String)` -> `void deleteById(java.lang.String)`
+* `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` -> `void deleteByResourceGroup(java.lang.String,java.lang.String)`
+* `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `void deleteByIdWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.CloudServicesNetworkStorageOptions` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.ClusterManagerUpdateRelayPrivateEndpointConnectionParameters` was added
+
+* `models.BareMetalMachineMetricsConfigurationStatusLogLevel` was added
+
+* `models.ClusterContinueUpdateVersionSafeguardMode` was added
+
+* `models.ExtendedLocationType` was added
+
+* `models.KubernetesVersions` was added
+
+* `models.AccessBridgeProvisioningState` was added
+
+* `models.AccessBridgePatchProperties` was added
+
+* `models.DeploymentType` was added
+
+* `models.ClusterUpdateVersionSafeguardMode` was added
+
+* `models.StorageApplianceMetricsConfigurationStatusLogLevel` was added
+
+* `models.KubernetesVersion$Update` was added
+
+* `models.FilterDevices` was added
+
+* `models.AccessBridgeEndpoint` was added
+
+* `models.AccessBridge$UpdateStages` was added
+
+* `models.AccessBridgeDetailedStatus` was added
+
+* `models.RelayPrivateEndpointConnectionState` was added
+
+* `models.KubernetesVersion$Definition` was added
+
+* `models.AccessBridge$DefinitionStages` was added
+
+* `models.StorageApplianceMetricsConfigurationStatusMetricsLevel` was added
+
+* `models.BareMetalMachineReimageParameters` was added
+
+* `models.AccessBridge$Definition` was added
+
+* `models.StorageApplianceExpansionShelf` was added
+
+* `models.RuntimeProtectionAgentLicenseStatus` was added
+
+* `models.BareMetalMachineMonitoringConfigurationStatus` was added
+
+* `models.KubernetesVersion$DefinitionStages` was added
+
+* `models.ClusterInspectParameters` was added
+
+* `models.AccessBridge$Update` was added
+
+* `models.RuntimeProtectionDefinitionUpdateMode` was added
+
+* `models.TransportProtocol` was added
+
+* `models.SecurityRuleDirection` was added
+
+* `models.RuntimeProtectionAgentHealthStatus` was added
+
+* `models.BareMetalMachineMetricsConfigurationStatusMetricsLevel` was added
+
+* `models.StorageApplianceMonitoringConfigurationStatus` was added
+
+* `models.ClusterRotateCredentialParameters` was added
+
+* `models.KubernetesVersionProvisioningState` was added
+
+* `models.AccessBridge` was added
+
+* `models.AccessBridgeSecurityRule` was added
+
+* `models.ClusterManagerRelayConfiguration` was added
+
+* `models.KubernetesVersion$UpdateStages` was added
+
+* `models.BareMetalMachineReimageSafeguardMode` was added
+
+* `models.AccessBridgeAllowedName` was added
+
+* `models.KubernetesVersionValue` was added
+
+* `models.KubernetesVersionPatchParameters` was added
+
+* `models.AccessBridges` was added
+
+* `models.KubernetesVersion` was added
+
+* `models.ClusterInspectAdditionalAction` was added
+
+* `models.AccessBridgePatchParameters` was added
+
+#### `models.ClusterContinueUpdateVersionParameters` was modified
+
+* `safeguardMode()` was added
+* `withSafeguardMode(models.ClusterContinueUpdateVersionSafeguardMode)` was added
+
+#### `models.RuntimeProtectionConfiguration` was modified
+
+* `withDefinitionUpdateMode(models.RuntimeProtectionDefinitionUpdateMode)` was added
+* `definitionUpdateMode()` was added
+
+#### `models.OperationStatusResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StorageAppliance` was modified
+
+* `expansionShelves()` was added
+* `monitoringConfigurationStatus()` was added
+
+#### `models.CloudServicesNetworkStorageStatusStatus` was modified
+
+* `REPAIRING` was added
+* `INITIALIZING` was added
+* `NONE` was added
+
+#### `models.ClusterManagers` was modified
+
+* `updateRelayPrivateEndpointConnection(java.lang.String,java.lang.String)` was added
+* `updateRelayPrivateEndpointConnection(java.lang.String,java.lang.String,models.ClusterManagerUpdateRelayPrivateEndpointConnectionParameters,com.azure.core.util.Context)` was added
+
+#### `models.ClusterManager$Definition` was modified
+
+* `withKind(models.DeploymentType)` was added
+
+#### `models.RuntimeProtectionStatus` was modified
+
+* `agentHealthStatus()` was added
+* `agentHealthStatusIssues()` was added
+* `enforcementLevel()` was added
+* `definitionUpdateMode()` was added
+* `agentLicenseStatus()` was added
+
+#### `models.ClusterManager` was modified
+
+* `kind()` was added
+* `relayConfiguration()` was added
+* `updateRelayPrivateEndpointConnection()` was added
+* `updateRelayPrivateEndpointConnection(models.ClusterManagerUpdateRelayPrivateEndpointConnectionParameters,com.azure.core.util.Context)` was added
+
+#### `models.BareMetalMachine` was modified
+
+* `reimage(models.BareMetalMachineReimageParameters,com.azure.core.util.Context)` was added
+* `bmcIpv6Address()` was added
+* `monitoringConfigurationStatus()` was added
+* `bmcIpv4Address()` was added
+
+#### `models.CommandOutputType` was modified
+
+* `CLUSTER_SUPPORT_ADMINISTRATIVE_ACTIONS` was added
+
+#### `models.Cluster` was modified
+
+* `inspect()` was added
+* `rotateCredential(models.ClusterRotateCredentialParameters,com.azure.core.util.Context)` was added
+* `inspect(models.ClusterInspectParameters,com.azure.core.util.Context)` was added
+* `managedCredentials()` was added
+* `lastSuccessfulVersionUpdateTime()` was added
+* `kind()` was added
+* `rotateCredential(models.ClusterRotateCredentialParameters)` was added
+
+#### `models.Clusters` was modified
+
+* `rotateCredential(java.lang.String,java.lang.String,models.ClusterRotateCredentialParameters)` was added
+* `rotateCredential(java.lang.String,java.lang.String,models.ClusterRotateCredentialParameters,com.azure.core.util.Context)` was added
+* `inspect(java.lang.String,java.lang.String)` was added
+* `inspect(java.lang.String,java.lang.String,models.ClusterInspectParameters,com.azure.core.util.Context)` was added
+
+#### `models.Volume` was modified
+
+* `assignedStorageApplianceId()` was added
+
+#### `models.ExtendedLocation` was modified
+
+* `withType(models.ExtendedLocationType)` was added
+
+#### `NetworkCloudManager` was modified
+
+* `accessBridges()` was added
+* `kubernetesVersions()` was added
+
+#### `models.ClusterUpdateVersionParameters` was modified
+
+* `safeguardMode()` was added
+* `withSafeguardMode(models.ClusterUpdateVersionSafeguardMode)` was added
+
+#### `models.Cluster$Definition` was modified
+
+* `withKind(models.DeploymentType)` was added
+
+#### `models.BareMetalMachines` was modified
+
+* `reimage(java.lang.String,java.lang.String,models.BareMetalMachineReimageParameters,com.azure.core.util.Context)` was added
+
+#### `models.RackSku` was modified
-### Other Changes
+* `deploymentType()` was added
## 2.1.0 (2025-12-17)
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md
index b7eb6d80708b..c198d626ae29 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-2025-09-01. 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 api-version 2026-05-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
- 2.1.0
+ 2.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md
index 09025d09eddb..25c311d4e5f7 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md
@@ -1,6 +1,15 @@
# Code snippets and samples
+## AccessBridges
+
+- [CreateOrUpdate](#accessbridges_createorupdate)
+- [Delete](#accessbridges_delete)
+- [GetByResourceGroup](#accessbridges_getbyresourcegroup)
+- [List](#accessbridges_list)
+- [ListByResourceGroup](#accessbridges_listbyresourcegroup)
+- [Update](#accessbridges_update)
+
## AgentPools
- [CreateOrUpdate](#agentpools_createorupdate)
@@ -62,6 +71,7 @@
- [List](#clustermanagers_list)
- [ListByResourceGroup](#clustermanagers_listbyresourcegroup)
- [Update](#clustermanagers_update)
+- [UpdateRelayPrivateEndpointConnection](#clustermanagers_updaterelayprivateendpointconnection)
## Clusters
@@ -70,8 +80,10 @@
- [Delete](#clusters_delete)
- [Deploy](#clusters_deploy)
- [GetByResourceGroup](#clusters_getbyresourcegroup)
+- [Inspect](#clusters_inspect)
- [List](#clusters_list)
- [ListByResourceGroup](#clusters_listbyresourcegroup)
+- [RotateCredential](#clusters_rotatecredential)
- [ScanRuntime](#clusters_scanruntime)
- [Update](#clusters_update)
- [UpdateVersion](#clusters_updateversion)
@@ -102,6 +114,15 @@
- [RestartNode](#kubernetesclusters_restartnode)
- [Update](#kubernetesclusters_update)
+## KubernetesVersions
+
+- [CreateOrUpdate](#kubernetesversions_createorupdate)
+- [Delete](#kubernetesversions_delete)
+- [GetByResourceGroup](#kubernetesversions_getbyresourcegroup)
+- [List](#kubernetesversions_list)
+- [ListByResourceGroup](#kubernetesversions_listbyresourcegroup)
+- [Update](#kubernetesversions_update)
+
## L2Networks
- [CreateOrUpdate](#l2networks_createorupdate)
@@ -189,6 +210,213 @@
- [List](#volumes_list)
- [ListByResourceGroup](#volumes_listbyresourcegroup)
- [Update](#volumes_update)
+### AccessBridges_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeAllowedName;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeSecurityRule;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
+import com.azure.resourcemanager.networkcloud.models.SecurityRuleDirection;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AccessBridges CreateOrUpdate.
+ */
+public final class AccessBridgesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create or update access bridge.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void createOrUpdateAccessBridge(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.accessBridges()
+ .define(AccessBridgeAllowedName.BASTION)
+ .withRegion("location")
+ .withExistingResourceGroup("resourceGroupName")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
+ .withNetworkId(
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName/internalNetworks/internalNetworkName")
+ .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
+ .withIpv4ConnectedPrefix("198.51.100.0/24")
+ .withIpv6ConnectedPrefix("2001:db8::/64")
+ .withSecurityRules(
+ Arrays.asList(new AccessBridgeSecurityRule().withDescription("Allow management plane egress")
+ .withDirection(SecurityRuleDirection.OUTBOUND)
+ .withIpv4Addresses(Arrays.asList("10.10.20.10-10.10.20.20"))
+ .withIpv6Addresses(Arrays.asList("2001:db8:abcd:12::1000-2001:db8:abcd:12::1fff"))
+ .withPort("24562-24570")))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### AccessBridges_Delete
+
+```java
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeAllowedName;
+
+/**
+ * Samples for AccessBridges Delete.
+ */
+public final class AccessBridgesDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_Delete.json
+ */
+ /**
+ * Sample code: Delete access bridge.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void deleteAccessBridge(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.accessBridges()
+ .delete("resourceGroupName", AccessBridgeAllowedName.BASTION, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessBridges_GetByResourceGroup
+
+```java
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeAllowedName;
+
+/**
+ * Samples for AccessBridges GetByResourceGroup.
+ */
+public final class AccessBridgesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_Get.json
+ */
+ /**
+ * Sample code: Get access bridge.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void getAccessBridge(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.accessBridges()
+ .getByResourceGroupWithResponse("resourceGroupName", AccessBridgeAllowedName.BASTION,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessBridges_List
+
+```java
+/**
+ * Samples for AccessBridges List.
+ */
+public final class AccessBridgesListSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_ListBySubscription.json
+ */
+ /**
+ * Sample code: List access bridges for subscription.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ listAccessBridgesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.accessBridges().list(null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessBridges_ListByResourceGroup
+
+```java
+/**
+ * Samples for AccessBridges ListByResourceGroup.
+ */
+public final class AccessBridgesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List access bridges for resource group.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ listAccessBridgesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.accessBridges().listByResourceGroup("resourceGroupName", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### AccessBridges_Update
+
+```java
+import com.azure.resourcemanager.networkcloud.models.AccessBridge;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeAllowedName;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgePatchProperties;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeSecurityRule;
+import com.azure.resourcemanager.networkcloud.models.SecurityRuleDirection;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for AccessBridges Update.
+ */
+public final class AccessBridgesUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/AccessBridges_Patch.json
+ */
+ /**
+ * Sample code: Patch access bridge.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void patchAccessBridge(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ AccessBridge resource = manager.accessBridges()
+ .getByResourceGroupWithResponse("resourceGroupName", AccessBridgeAllowedName.BASTION,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
+ .withProperties(new AccessBridgePatchProperties().withSecurityRules(
+ Arrays.asList(new AccessBridgeSecurityRule().withDescription("Allow management plane egress")
+ .withDirection(SecurityRuleDirection.OUTBOUND)
+ .withIpv4Addresses(Arrays.asList("10.10.20.10-10.10.20.20"))
+ .withIpv6Addresses(Arrays.asList("2001:db8:abcd:12::1000-2001:db8:abcd:12::1fff"))
+ .withPort("24562-24570"))))
+ .apply();
+ }
+
+ // 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;
+ }
+}
+```
+
### AgentPools_CreateOrUpdate
```java
@@ -198,6 +426,7 @@ import com.azure.resourcemanager.networkcloud.models.AgentPoolMode;
import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings;
import com.azure.resourcemanager.networkcloud.models.AttachedNetworkConfiguration;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.HugepagesSize;
import com.azure.resourcemanager.networkcloud.models.KubernetesLabel;
import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType;
@@ -215,9 +444,7 @@ import java.util.Map;
*/
public final class AgentPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/AgentPools_Create.json
*/
/**
* Sample code: Create or update Kubernetes cluster agent pool.
@@ -236,7 +463,7 @@ public final class AgentPoolsCreateOrUpdateSamples {
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure")
.withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))))
.withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG))
@@ -282,9 +509,7 @@ public final class AgentPoolsCreateOrUpdateSamples {
*/
public final class AgentPoolsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/AgentPools_Delete.json
*/
/**
* Sample code: Delete Kubernetes cluster agent pool.
@@ -308,8 +533,7 @@ public final class AgentPoolsDeleteSamples {
*/
public final class AgentPoolsGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Get.json
+ * x-ms-original-file: 2026-05-01-preview/AgentPools_Get.json
*/
/**
* Sample code: Get Kubernetes cluster agent pool.
@@ -333,9 +557,7 @@ public final class AgentPoolsGetSamples {
*/
public final class AgentPoolsListByKubernetesClusterSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * AgentPools_ListByKubernetesCluster.json
+ * x-ms-original-file: 2026-05-01-preview/AgentPools_ListByKubernetesCluster.json
*/
/**
* Sample code: List agent pools of the Kubernetes cluster.
@@ -367,9 +589,7 @@ import java.util.Map;
*/
public final class AgentPoolsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/AgentPools_Patch.
- * json
+ * x-ms-original-file: 2026-05-01-preview/AgentPools_Patch.json
*/
/**
* Sample code: Patch Kubernetes cluster agent pool.
@@ -411,6 +631,7 @@ public final class AgentPoolsUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPrivilegeLevel;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.KeySetUser;
import com.azure.resourcemanager.networkcloud.models.SshPublicKey;
import java.time.OffsetDateTime;
@@ -423,9 +644,7 @@ import java.util.Map;
*/
public final class BareMetalMachineKeySetsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachineKeySets_Create.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Create.json
*/
/**
* Sample code: Create or update bare metal machine key set of cluster.
@@ -440,7 +659,7 @@ public final class BareMetalMachineKeySetsCreateOrUpdateSamples {
.withExistingCluster("resourceGroupName", "clusterName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e")
.withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z"))
.withJumpHostsAllowed(Arrays.asList("192.0.2.1", "192.0.2.5"))
@@ -482,9 +701,7 @@ public final class BareMetalMachineKeySetsCreateOrUpdateSamples {
*/
public final class BareMetalMachineKeySetsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachineKeySets_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Delete.json
*/
/**
* Sample code: Delete bare metal machine key set of cluster.
@@ -508,9 +725,7 @@ public final class BareMetalMachineKeySetsDeleteSamples {
*/
public final class BareMetalMachineKeySetsGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachineKeySets_Get.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Get.json
*/
/**
* Sample code: Get bare metal machine key set of cluster.
@@ -534,9 +749,7 @@ public final class BareMetalMachineKeySetsGetSamples {
*/
public final class BareMetalMachineKeySetsListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachineKeySets_ListByCluster.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_ListByCluster.json
*/
/**
* Sample code: List bare metal machine key sets of the cluster.
@@ -567,9 +780,7 @@ import java.util.Map;
*/
public final class BareMetalMachineKeySetsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachineKeySets_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachineKeySets_Patch.json
*/
/**
* Sample code: Patch bare metal machine key set of cluster.
@@ -623,9 +834,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate;
*/
public final class BareMetalMachinesCordonSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Cordon.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Cordon.json
*/
/**
* Sample code: Cordon bare metal machine.
@@ -646,6 +855,7 @@ public final class BareMetalMachinesCordonSamples {
```java
import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.HashMap;
import java.util.Map;
@@ -654,9 +864,7 @@ import java.util.Map;
*/
public final class BareMetalMachinesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Create.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Create.json
*/
/**
* Sample code: Create or update bare metal machine.
@@ -671,8 +879,8 @@ public final class BareMetalMachinesCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
- .withBmcConnectionString("bmcconnectionstring")
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
+ .withBmcConnectionString("redfish+https://10.10.10.16/redfish/v1/Systems/System.Embedded.1")
.withBmcCredentials(
new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("bmcuser"))
.withBmcMacAddress("00:00:4f:00:57:00")
@@ -710,9 +918,7 @@ public final class BareMetalMachinesCreateOrUpdateSamples {
*/
public final class BareMetalMachinesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Delete.json
*/
/**
* Sample code: Delete bare metal machine.
@@ -734,9 +940,7 @@ public final class BareMetalMachinesDeleteSamples {
*/
public final class BareMetalMachinesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Get.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Get.json
*/
/**
* Sample code: Get bare metal machine.
@@ -759,9 +963,7 @@ public final class BareMetalMachinesGetByResourceGroupSamples {
*/
public final class BareMetalMachinesListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_ListBySubscription.json
*/
/**
* Sample code: List bare metal machines for subscription.
@@ -783,9 +985,7 @@ public final class BareMetalMachinesListSamples {
*/
public final class BareMetalMachinesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_ListByResourceGroup.json
*/
/**
* Sample code: List bare metal machines for resource group.
@@ -811,9 +1011,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdow
*/
public final class BareMetalMachinesPowerOffSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_PowerOff.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_PowerOff.json
*/
/**
* Sample code: Power off bare metal machine.
@@ -832,14 +1030,15 @@ public final class BareMetalMachinesPowerOffSamples {
### BareMetalMachines_Reimage
```java
+import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReimageParameters;
+import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReimageSafeguardMode;
+
/**
* Samples for BareMetalMachines Reimage.
*/
public final class BareMetalMachinesReimageSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Reimage.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Reimage.json
*/
/**
* Sample code: Reimage bare metal machine.
@@ -848,7 +1047,9 @@ public final class BareMetalMachinesReimageSamples {
*/
public static void reimageBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
manager.bareMetalMachines()
- .reimage("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE);
+ .reimage("resourceGroupName", "bareMetalMachineName",
+ new BareMetalMachineReimageParameters().withSafeguardMode(BareMetalMachineReimageSafeguardMode.ALL),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -866,9 +1067,7 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReplaceStor
*/
public final class BareMetalMachinesReplaceSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Replace.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Replace.json
*/
/**
* Sample code: Replace bare metal machine.
@@ -900,9 +1099,7 @@ public final class BareMetalMachinesReplaceSamples {
*/
public final class BareMetalMachinesRestartSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Restart.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Restart.json
*/
/**
* Sample code: Restart bare metal machine.
@@ -927,9 +1124,7 @@ import java.util.Arrays;
*/
public final class BareMetalMachinesRunCommandSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_RunCommand.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunCommand.json
*/
/**
* Sample code: Run command on bare metal machine.
@@ -960,9 +1155,7 @@ import java.util.Arrays;
*/
public final class BareMetalMachinesRunDataExtractsSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_RunDataExtracts.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunDataExtracts.json
*/
/**
* Sample code: Run data extraction on bare metal machine.
@@ -994,9 +1187,7 @@ import java.util.Arrays;
*/
public final class BareMetalMachinesRunDataExtractsRestrictedSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_RunDataExtractsRestricted.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunDataExtractsRestricted.json
*/
/**
* Sample code: Run restricted data extraction on bare metal machine.
@@ -1028,9 +1219,7 @@ import java.util.Arrays;
*/
public final class BareMetalMachinesRunReadCommandsSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_RunReadCommands_Hostname.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunReadCommands_Hostname.json
*/
/**
* Sample code: Run and retrieve output from a single read only command on bare metal machine.
@@ -1048,9 +1237,7 @@ public final class BareMetalMachinesRunReadCommandsSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_RunReadCommands_Multiple.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_RunReadCommands_Multiple.json
*/
/**
* Sample code: Run and retrieve output from read only commands on bare metal machine.
@@ -1080,9 +1267,7 @@ public final class BareMetalMachinesRunReadCommandsSamples {
*/
public final class BareMetalMachinesStartSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Start.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Start.json
*/
/**
* Sample code: Start bare metal machine.
@@ -1104,9 +1289,7 @@ public final class BareMetalMachinesStartSamples {
*/
public final class BareMetalMachinesUncordonSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Uncordon.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Uncordon.json
*/
/**
* Sample code: Uncordon bare metal machine.
@@ -1132,9 +1315,7 @@ import java.util.Map;
*/
public final class BareMetalMachinesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BareMetalMachines_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/BareMetalMachines_Patch.json
*/
/**
* Sample code: Patch bare metal machine.
@@ -1171,6 +1352,7 @@ public final class BareMetalMachinesUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.BmcKeySetPrivilegeLevel;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.KeySetUser;
import com.azure.resourcemanager.networkcloud.models.SshPublicKey;
import java.time.OffsetDateTime;
@@ -1183,9 +1365,7 @@ import java.util.Map;
*/
public final class BmcKeySetsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/BmcKeySets_Create.json
*/
/**
* Sample code: Create or update baseboard management controller key set of cluster.
@@ -1200,7 +1380,7 @@ public final class BmcKeySetsCreateOrUpdateSamples {
.withExistingCluster("resourceGroupName", "clusterName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e")
.withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z"))
.withPrivilegeLevel(BmcKeySetPrivilegeLevel.ADMINISTRATOR)
@@ -1239,9 +1419,7 @@ public final class BmcKeySetsCreateOrUpdateSamples {
*/
public final class BmcKeySetsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/BmcKeySets_Delete.json
*/
/**
* Sample code: Delete baseboard management controller key set of cluster.
@@ -1264,8 +1442,7 @@ public final class BmcKeySetsDeleteSamples {
*/
public final class BmcKeySetsGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Get.json
+ * x-ms-original-file: 2026-05-01-preview/BmcKeySets_Get.json
*/
/**
* Sample code: Get baseboard management controller key set of cluster.
@@ -1288,9 +1465,7 @@ public final class BmcKeySetsGetSamples {
*/
public final class BmcKeySetsListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * BmcKeySets_ListByCluster.json
+ * x-ms-original-file: 2026-05-01-preview/BmcKeySets_ListByCluster.json
*/
/**
* Sample code: List baseboard management controller key sets of the cluster.
@@ -1321,9 +1496,7 @@ import java.util.Map;
*/
public final class BmcKeySetsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/BmcKeySets_Patch.
- * json
+ * x-ms-original-file: 2026-05-01-preview/BmcKeySets_Patch.json
*/
/**
* Sample code: Patch baseboard management controller key set of cluster.
@@ -1373,6 +1546,7 @@ import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkStorage
import com.azure.resourcemanager.networkcloud.models.EgressEndpoint;
import com.azure.resourcemanager.networkcloud.models.EndpointDependency;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -1382,9 +1556,7 @@ import java.util.Map;
*/
public final class CloudServicesNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_Create.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Create.json
*/
/**
* Sample code: Create or update cloud services network.
@@ -1399,7 +1571,7 @@ public final class CloudServicesNetworksCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("azure-resource-management")
.withEndpoints(Arrays.asList(
@@ -1409,7 +1581,7 @@ public final class CloudServicesNetworksCreateOrUpdateSamples {
.withMode(CloudServicesNetworkStorageMode.STANDARD)
.withSizeMiB(1048576L)
.withStorageApplianceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName"))
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/storageAppliances/storageApplianceName"))
.create();
}
@@ -1435,9 +1607,7 @@ public final class CloudServicesNetworksCreateOrUpdateSamples {
*/
public final class CloudServicesNetworksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Delete.json
*/
/**
* Sample code: Delete cloud services network.
@@ -1459,9 +1629,7 @@ public final class CloudServicesNetworksDeleteSamples {
*/
public final class CloudServicesNetworksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_Get.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Get.json
*/
/**
* Sample code: Get cloud services network.
@@ -1484,9 +1652,7 @@ public final class CloudServicesNetworksGetByResourceGroupSamples {
*/
public final class CloudServicesNetworksListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_ListBySubscription.json
*/
/**
* Sample code: List cloud services networks for subscription.
@@ -1508,9 +1674,7 @@ public final class CloudServicesNetworksListSamples {
*/
public final class CloudServicesNetworksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_ListByResourceGroup.json
*/
/**
* Sample code: List cloud services networks for resource group.
@@ -1543,9 +1707,7 @@ import java.util.Map;
*/
public final class CloudServicesNetworksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * CloudServicesNetworks_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/CloudServicesNetworks_Patch.json
*/
/**
* Sample code: Patch cloud services network.
@@ -1567,7 +1729,7 @@ public final class CloudServicesNetworksUpdateSamples {
.withMode(CloudServicesNetworkStorageMode.STANDARD)
.withSizeMiB(1048576L)
.withStorageApplianceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName"))
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/storageAppliances/storageApplianceName"))
.apply();
}
@@ -1588,6 +1750,7 @@ public final class CloudServicesNetworksUpdateSamples {
### ClusterManagers_CreateOrUpdate
```java
+import com.azure.resourcemanager.networkcloud.models.DeploymentType;
import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration;
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity;
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType;
@@ -1600,9 +1763,7 @@ import java.util.Map;
*/
public final class ClusterManagersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_Create.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_Create.json
*/
/**
* Sample code: Create or update cluster manager.
@@ -1619,17 +1780,16 @@ public final class ClusterManagersCreateOrUpdateSamples {
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName")
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .withKind(DeploymentType.AZURE_LOCAL)
.withAnalyticsWorkspaceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName")
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.OperationalInsights/workspaces/logAnalyticsWorkspaceName")
.withManagedResourceGroupConfiguration(
new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg"))
.create();
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_Create_Uami.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_Create_Uami.json
*/
/**
* Sample code: Create or update cluster manager with user assigned identity.
@@ -1649,8 +1809,9 @@ public final class ClusterManagersCreateOrUpdateSamples {
.withUserAssignedIdentities(mapOf(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1",
new UserAssignedIdentity())))
+ .withKind(DeploymentType.AZURE_LOCAL)
.withAnalyticsWorkspaceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName")
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.OperationalInsights/workspaces/logAnalyticsWorkspaceName")
.withManagedResourceGroupConfiguration(
new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg"))
.create();
@@ -1678,9 +1839,7 @@ public final class ClusterManagersCreateOrUpdateSamples {
*/
public final class ClusterManagersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_Delete.json
*/
/**
* Sample code: Delete cluster manager.
@@ -1702,9 +1861,7 @@ public final class ClusterManagersDeleteSamples {
*/
public final class ClusterManagersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/ClusterManagers_Get
- * .json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_Get.json
*/
/**
* Sample code: Get cluster manager.
@@ -1727,9 +1884,7 @@ public final class ClusterManagersGetByResourceGroupSamples {
*/
public final class ClusterManagersListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_ListBySubscription.json
*/
/**
* Sample code: List cluster managers for subscription.
@@ -1751,9 +1906,7 @@ public final class ClusterManagersListSamples {
*/
public final class ClusterManagersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_ListByResourceGroup.json
*/
/**
* Sample code: List cluster managers for resource group.
@@ -1783,9 +1936,7 @@ import java.util.Map;
*/
public final class ClusterManagersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterManagers_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_Patch.json
*/
/**
* Sample code: Patch cluster manager.
@@ -1821,20 +1972,71 @@ public final class ClusterManagersUpdateSamples {
}
```
+### ClusterManagers_UpdateRelayPrivateEndpointConnection
+
+```java
+import com.azure.resourcemanager.networkcloud.models.ClusterManagerUpdateRelayPrivateEndpointConnectionParameters;
+import com.azure.resourcemanager.networkcloud.models.RelayPrivateEndpointConnectionState;
+
+/**
+ * Samples for ClusterManagers UpdateRelayPrivateEndpointConnection.
+ */
+public final class ClusterManagersUpdateRelayPrivateEndpointConnectionSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_UpdateRelayPrivateEndpointConnection_Approve.json
+ */
+ /**
+ * Sample code: Approve private endpoint connection.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ approvePrivateEndpointConnection(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.clusterManagers()
+ .updateRelayPrivateEndpointConnection("resourceGroupName", "clusterManagerName",
+ new ClusterManagerUpdateRelayPrivateEndpointConnectionParameters()
+ .withConnectionState(RelayPrivateEndpointConnectionState.APPROVED)
+ .withDescription("Approving private endpoint connection")
+ .withPrivateEndpointResourceId(
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Network/privateEndpoints/privateEndpointName"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-05-01-preview/ClusterManagers_UpdateRelayPrivateEndpointConnection_Reject.json
+ */
+ /**
+ * Sample code: Reject private endpoint connection.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ rejectPrivateEndpointConnection(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.clusterManagers()
+ .updateRelayPrivateEndpointConnection("resourceGroupName", "clusterManagerName",
+ new ClusterManagerUpdateRelayPrivateEndpointConnectionParameters()
+ .withConnectionState(RelayPrivateEndpointConnectionState.REJECTED)
+ .withDescription("Rejecting private endpoint connection")
+ .withPrivateEndpointResourceId(
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Network/privateEndpoints/privateEndpointName"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Clusters_ContinueUpdateVersion
```java
import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionMachineGroupTargetingMode;
import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters;
+import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionSafeguardMode;
/**
* Samples for Clusters ContinueUpdateVersion.
*/
public final class ClustersContinueUpdateVersionSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_ContinueUpdateVersion.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_ContinueUpdateVersion.json
*/
/**
* Sample code: Continue update cluster version.
@@ -1846,7 +2048,8 @@ public final class ClustersContinueUpdateVersionSamples {
manager.clusters()
.continueUpdateVersion("resourceGroupName", "clusterName",
new ClusterContinueUpdateVersionParameters()
- .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK),
+ .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK)
+ .withSafeguardMode(ClusterContinueUpdateVersionSafeguardMode.ALL),
com.azure.core.util.Context.NONE);
}
}
@@ -1864,7 +2067,9 @@ import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType;
import com.azure.resourcemanager.networkcloud.models.CommandOutputOverride;
import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings;
import com.azure.resourcemanager.networkcloud.models.CommandOutputType;
+import com.azure.resourcemanager.networkcloud.models.DeploymentType;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.IdentitySelector;
import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration;
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity;
@@ -1872,6 +2077,7 @@ import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelec
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.RuntimeProtectionDefinitionUpdateMode;
import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel;
import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings;
import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData;
@@ -1890,9 +2096,7 @@ import java.util.Map;
*/
public final class ClustersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Create.json
*/
/**
* Sample code: Create or update cluster.
@@ -1906,38 +2110,42 @@ public final class ClustersCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.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")
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
+ .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(
@@ -1947,8 +2155,9 @@ public final class ClustersCreateOrUpdateSamples {
.withUserAssignedIdentities(mapOf(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1",
new UserAssignedIdentity())))
+ .withKind(DeploymentType.AZURE_LOCAL)
.withAnalyticsOutputSettings(new AnalyticsOutputSettings().withAnalyticsWorkspaceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName")
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.OperationalInsights/workspaces/logAnalyticsWorkspaceName")
.withAssociatedIdentity(new IdentitySelector()
.withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY)
.withUserAssignedIdentityResourceId(
@@ -2003,8 +2212,9 @@ public final class ClustersCreateOrUpdateSamples {
.withStorageApplianceName("vmName")))))
.withManagedResourceGroupConfiguration(
new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg"))
- .withRuntimeProtectionConfiguration(
- new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND))
+ .withRuntimeProtectionConfiguration(new RuntimeProtectionConfiguration()
+ .withDefinitionUpdateMode(RuntimeProtectionDefinitionUpdateMode.NONE)
+ .withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND))
.withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector()
.withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY)
.withUserAssignedIdentityResourceId(
@@ -2042,9 +2252,7 @@ public final class ClustersCreateOrUpdateSamples {
*/
public final class ClustersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Delete.json
*/
/**
* Sample code: Delete cluster.
@@ -2068,9 +2276,7 @@ import java.util.Arrays;
*/
public final class ClustersDeploySamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Deploy.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Deploy.json
*/
/**
* Sample code: Deploy cluster.
@@ -2084,9 +2290,7 @@ public final class ClustersDeploySamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Deploy_SkipValidation.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Deploy_SkipValidation.json
*/
/**
* Sample code: Deploy cluster skipping validation.
@@ -2111,8 +2315,7 @@ public final class ClustersDeploySamples {
*/
public final class ClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Clusters_Get.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Get.json
*/
/**
* Sample code: Get cluster.
@@ -2126,6 +2329,37 @@ public final class ClustersGetByResourceGroupSamples {
}
```
+### Clusters_Inspect
+
+```java
+import com.azure.resourcemanager.networkcloud.models.ClusterInspectAdditionalAction;
+import com.azure.resourcemanager.networkcloud.models.ClusterInspectParameters;
+import com.azure.resourcemanager.networkcloud.models.FilterDevices;
+import java.util.Arrays;
+
+/**
+ * Samples for Clusters Inspect.
+ */
+public final class ClustersInspectSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Inspect.json
+ */
+ /**
+ * Sample code: Inspect cluster.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void inspectCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.clusters()
+ .inspect("resourceGroupName", "clusterName", new ClusterInspectParameters()
+ .withAdditionalActions(Arrays.asList(ClusterInspectAdditionalAction.RESET_HARDWARE))
+ .withFilterDevices(new FilterDevices().withBareMetalMachineNames(Arrays.asList("machine1", "machine2"))
+ .withRackNames(Arrays.asList("rack1"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Clusters_List
```java
@@ -2134,9 +2368,7 @@ public final class ClustersGetByResourceGroupSamples {
*/
public final class ClustersListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_ListBySubscription.json
*/
/**
* Sample code: List clusters for subscription.
@@ -2157,9 +2389,7 @@ public final class ClustersListSamples {
*/
public final class ClustersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_ListByResourceGroup.json
*/
/**
* Sample code: List clusters for resource group.
@@ -2173,6 +2403,34 @@ public final class ClustersListByResourceGroupSamples {
}
```
+### Clusters_RotateCredential
+
+```java
+import com.azure.resourcemanager.networkcloud.models.ClusterRotateCredentialParameters;
+import java.util.Arrays;
+
+/**
+ * Samples for Clusters RotateCredential.
+ */
+public final class ClustersRotateCredentialSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/Clusters_RotateCredential.json
+ */
+ /**
+ * Sample code: Rotate one or more managed credentials.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ rotateOneOrMoreManagedCredentials(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.clusters()
+ .rotateCredential("resourceGroupName", "clusterName",
+ new ClusterRotateCredentialParameters().withCredentials(Arrays.asList("BMC Credential")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Clusters_ScanRuntime
```java
@@ -2184,9 +2442,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameter
*/
public final class ClustersScanRuntimeSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_ScanRuntime.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_ScanRuntime.json
*/
/**
* Sample code: Execute a runtime protection scan on the cluster.
@@ -2221,6 +2477,7 @@ import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelec
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.RuntimeProtectionDefinitionUpdateMode;
import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel;
import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings;
import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData;
@@ -2239,9 +2496,7 @@ import java.util.Map;
*/
public final class ClustersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_UpdateStrategy.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_UpdateStrategy.json
*/
/**
* Sample code: Patch update strategy.
@@ -2263,9 +2518,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_VulnerabilityScanning.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_VulnerabilityScanning.json
*/
/**
* Sample code: Patch vulnerability scanning.
@@ -2284,9 +2537,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_Location.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_Location.json
*/
/**
* Sample code: Patch cluster location.
@@ -2304,9 +2555,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_AggregatorOrSingleRackDefinition.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_AggregatorOrSingleRackDefinition.json
*/
/**
* Sample code: Patch cluster AggregatorOrSingleRackDefinition.
@@ -2363,9 +2612,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_CommandOutput.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_CommandOutput.json
*/
/**
* Sample code: Patch cluster command output.
@@ -2399,9 +2646,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_RuntimeProtectionConfiguration.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_RuntimeProtectionConfiguration.json
*/
/**
* Sample code: Patch runtime protection configuration.
@@ -2415,15 +2660,14 @@ public final class ClustersUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
- .withRuntimeProtectionConfiguration(
- new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND))
+ .withRuntimeProtectionConfiguration(new RuntimeProtectionConfiguration()
+ .withDefinitionUpdateMode(RuntimeProtectionDefinitionUpdateMode.AUTOMATIC)
+ .withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND))
.apply();
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_SecretArchive.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_SecretArchive.json
*/
/**
* Sample code: Patch secret archive.
@@ -2445,9 +2689,7 @@ public final class ClustersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_Patch_AnalyticsOutput.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_Patch_AnalyticsOutput.json
*/
/**
* Sample code: Patch cluster analytics output.
@@ -2467,7 +2709,7 @@ public final class ClustersUpdateSamples {
"/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")
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.OperationalInsights/workspaces/logAnalyticsWorkspaceName")
.withAssociatedIdentity(new IdentitySelector()
.withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY)
.withUserAssignedIdentityResourceId(
@@ -2493,15 +2735,14 @@ public final class ClustersUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters;
+import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionSafeguardMode;
/**
* Samples for Clusters UpdateVersion.
*/
public final class ClustersUpdateVersionSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Clusters_UpdateVersion.json
+ * x-ms-original-file: 2026-05-01-preview/Clusters_UpdateVersion.json
*/
/**
* Sample code: Update cluster version.
@@ -2511,7 +2752,9 @@ public final class ClustersUpdateVersionSamples {
public static void updateClusterVersion(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
manager.clusters()
.updateVersion("resourceGroupName", "clusterName",
- new ClusterUpdateVersionParameters().withTargetClusterVersion("2.0"), com.azure.core.util.Context.NONE);
+ new ClusterUpdateVersionParameters().withSafeguardMode(ClusterUpdateVersionSafeguardMode.ALL)
+ .withTargetClusterVersion("2.0"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2521,6 +2764,7 @@ public final class ClustersUpdateVersionSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ConsoleEnabled;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.SshPublicKey;
import java.time.OffsetDateTime;
import java.util.HashMap;
@@ -2531,9 +2775,7 @@ import java.util.Map;
*/
public final class ConsolesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Consoles_Create.json
*/
/**
* Sample code: Create or update virtual machine console.
@@ -2548,7 +2790,7 @@ public final class ConsolesCreateOrUpdateSamples {
.withExistingVirtualMachine("resourceGroupName", "virtualMachineName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withEnabled(ConsoleEnabled.TRUE)
.withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
@@ -2578,9 +2820,7 @@ public final class ConsolesCreateOrUpdateSamples {
*/
public final class ConsolesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Consoles_Delete.json
*/
/**
* Sample code: Delete virtual machine console.
@@ -2602,8 +2842,7 @@ public final class ConsolesDeleteSamples {
*/
public final class ConsolesGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Get.json
+ * x-ms-original-file: 2026-05-01-preview/Consoles_Get.json
*/
/**
* Sample code: Get virtual machine console.
@@ -2625,9 +2864,7 @@ public final class ConsolesGetSamples {
*/
public final class ConsolesListByVirtualMachineSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Consoles_ListByVirtualMachine.json
+ * x-ms-original-file: 2026-05-01-preview/Consoles_ListByVirtualMachine.json
*/
/**
* Sample code: List consoles of the virtual machine.
@@ -2658,8 +2895,7 @@ import java.util.Map;
*/
public final class ConsolesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Consoles_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/Consoles_Patch.json
*/
/**
* Sample code: Patch virtual machine console.
@@ -2705,9 +2941,7 @@ import java.util.Map;
*/
public final class KubernetesClusterFeaturesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusterFeatures_Create.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Create.json
*/
/**
* Sample code: Create or update Kubernetes cluster feature.
@@ -2748,9 +2982,7 @@ public final class KubernetesClusterFeaturesCreateOrUpdateSamples {
*/
public final class KubernetesClusterFeaturesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusterFeatures_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Delete.json
*/
/**
* Sample code: Delete Kubernetes cluster feature.
@@ -2774,9 +3006,7 @@ public final class KubernetesClusterFeaturesDeleteSamples {
*/
public final class KubernetesClusterFeaturesGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusterFeatures_Get.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Get.json
*/
/**
* Sample code: Get Kubernetes cluster feature.
@@ -2799,9 +3029,7 @@ public final class KubernetesClusterFeaturesGetSamples {
*/
public final class KubernetesClusterFeaturesListByKubernetesClusterSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusterFeatures_ListByKubernetesCluster.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_ListByKubernetesCluster.json
*/
/**
* Sample code: List features for the Kubernetes cluster.
@@ -2831,9 +3059,7 @@ import java.util.Map;
*/
public final class KubernetesClusterFeaturesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusterFeatures_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusterFeatures_Patch.json
*/
/**
* Sample code: Patch Kubernetes cluster feature.
@@ -2883,6 +3109,7 @@ import com.azure.resourcemanager.networkcloud.models.BgpMultiHop;
import com.azure.resourcemanager.networkcloud.models.BgpServiceLoadBalancerConfiguration;
import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodeConfiguration;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.FabricPeeringEnabled;
import com.azure.resourcemanager.networkcloud.models.HugepagesSize;
import com.azure.resourcemanager.networkcloud.models.InitialAgentPoolConfiguration;
@@ -2907,9 +3134,7 @@ import java.util.Map;
*/
public final class KubernetesClustersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_Create.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Create.json
*/
/**
* Sample code: Create or update Kubernetes cluster.
@@ -2924,7 +3149,7 @@ public final class KubernetesClustersCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration()
.withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure")
.withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))))
@@ -2951,11 +3176,11 @@ public final class KubernetesClustersCreateOrUpdateSamples {
.withCount(3L)
.withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true")))
.withMode(AgentPoolMode.SYSTEM)
- .withName("SystemPool-1")
.withTaints(
Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule")))
.withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1"))
- .withVmSkuName("NC_P46_224_v1")))
+ .withVmSkuName("NC_P46_224_v1")
+ .withName("SystemPool-1")))
.withKubernetesVersion("1.XX.Y")
.withNetworkConfiguration(new NetworkConfiguration()
.withAttachedNetworkConfiguration(new AttachedNetworkConfiguration()
@@ -3009,9 +3234,7 @@ public final class KubernetesClustersCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_L2LoadBalancer_Create.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_L2LoadBalancer_Create.json
*/
/**
* Sample code: Create or update Kubernetes cluster with a layer 2 load balancer.
@@ -3026,7 +3249,7 @@ public final class KubernetesClustersCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration()
.withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure")
.withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))))
@@ -3053,11 +3276,11 @@ public final class KubernetesClustersCreateOrUpdateSamples {
.withCount(3L)
.withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true")))
.withMode(AgentPoolMode.SYSTEM)
- .withName("SystemPool-1")
.withTaints(
Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true:NoSchedule")))
.withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1"))
- .withVmSkuName("NC_P46_224_v1")))
+ .withVmSkuName("NC_P46_224_v1")
+ .withName("SystemPool-1")))
.withKubernetesVersion("1.XX.Y")
.withNetworkConfiguration(new NetworkConfiguration()
.withAttachedNetworkConfiguration(new AttachedNetworkConfiguration()
@@ -3115,9 +3338,7 @@ public final class KubernetesClustersCreateOrUpdateSamples {
*/
public final class KubernetesClustersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Delete.json
*/
/**
* Sample code: Delete Kubernetes cluster.
@@ -3139,9 +3360,7 @@ public final class KubernetesClustersDeleteSamples {
*/
public final class KubernetesClustersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_Get.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Get.json
*/
/**
* Sample code: Get Kubernetes cluster.
@@ -3164,9 +3383,7 @@ public final class KubernetesClustersGetByResourceGroupSamples {
*/
public final class KubernetesClustersListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_ListBySubscription.json
*/
/**
* Sample code: List Kubernetes clusters for subscription.
@@ -3188,9 +3405,7 @@ public final class KubernetesClustersListSamples {
*/
public final class KubernetesClustersListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_ListByResourceGroup.json
*/
/**
* Sample code: List Kubernetes clusters for resource group.
@@ -3215,9 +3430,7 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNod
*/
public final class KubernetesClustersRestartNodeSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_RestartNode.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_RestartNode.json
*/
/**
* Sample code: Restart a Kubernetes cluster node.
@@ -3250,9 +3463,7 @@ import java.util.Map;
*/
public final class KubernetesClustersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * KubernetesClusters_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/KubernetesClusters_Patch.json
*/
/**
* Sample code: Patch Kubernetes cluster.
@@ -3290,10 +3501,187 @@ public final class KubernetesClustersUpdateSamples {
}
```
+### KubernetesVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for KubernetesVersions CreateOrUpdate.
+ */
+public final class KubernetesVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Create.json
+ */
+ /**
+ * Sample code: Create or update Kubernetes versions.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ createOrUpdateKubernetesVersions(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.kubernetesVersions()
+ .define("default")
+ .withRegion("location")
+ .withExistingResourceGroup("resourceGroupName")
+ .withExtendedLocation(new ExtendedLocation().withName(
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
+ .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### KubernetesVersions_Delete
+
+```java
+/**
+ * Samples for KubernetesVersions Delete.
+ */
+public final class KubernetesVersionsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Delete.json
+ */
+ /**
+ * Sample code: Delete Kubernetes versions.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void deleteKubernetesVersions(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.kubernetesVersions()
+ .delete("resourceGroupName", "default", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubernetesVersions_GetByResourceGroup
+
+```java
+/**
+ * Samples for KubernetesVersions GetByResourceGroup.
+ */
+public final class KubernetesVersionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_Get.json
+ */
+ /**
+ * Sample code: Get Kubernetes versions.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void getKubernetesVersions(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.kubernetesVersions()
+ .getByResourceGroupWithResponse("resourceGroupName", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubernetesVersions_List
+
+```java
+/**
+ * Samples for KubernetesVersions List.
+ */
+public final class KubernetesVersionsListSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Kubernetes versions for subscription.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ listKubernetesVersionsForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.kubernetesVersions().list(null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubernetesVersions_ListByResourceGroup
+
+```java
+/**
+ * Samples for KubernetesVersions ListByResourceGroup.
+ */
+public final class KubernetesVersionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List Kubernetes versions for resource group.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void
+ listKubernetesVersionsForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ manager.kubernetesVersions()
+ .listByResourceGroup("resourceGroupName", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### KubernetesVersions_Update
+
+```java
+import com.azure.resourcemanager.networkcloud.models.KubernetesVersion;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for KubernetesVersions Update.
+ */
+public final class KubernetesVersionsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-05-01-preview/KubernetesVersions_UpdateTags.json
+ */
+ /**
+ * Sample code: Patch Kubernetes versions.
+ *
+ * @param manager Entry point to NetworkCloudManager.
+ */
+ public static void patchKubernetesVersions(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ KubernetesVersion resource = manager.kubernetesVersions()
+ .getByResourceGroupWithResponse("resourceGroupName", "default", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply();
+ }
+
+ // 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;
+ }
+}
+```
+
### L2Networks_CreateOrUpdate
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType;
import java.util.HashMap;
import java.util.Map;
@@ -3303,9 +3691,7 @@ import java.util.Map;
*/
public final class L2NetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_Create.json
*/
/**
* Sample code: Create or update L2 network.
@@ -3319,7 +3705,7 @@ public final class L2NetworksCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withL2IsolationDomainId(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName")
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
@@ -3350,9 +3736,7 @@ public final class L2NetworksCreateOrUpdateSamples {
*/
public final class L2NetworksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_Delete.json
*/
/**
* Sample code: Delete L2 network.
@@ -3373,8 +3757,7 @@ public final class L2NetworksDeleteSamples {
*/
public final class L2NetworksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Get.json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_Get.json
*/
/**
* Sample code: Get L2 network.
@@ -3396,9 +3779,7 @@ public final class L2NetworksGetByResourceGroupSamples {
*/
public final class L2NetworksListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * L2Networks_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_ListBySubscription.json
*/
/**
* Sample code: List L2 networks for subscription.
@@ -3420,9 +3801,7 @@ public final class L2NetworksListSamples {
*/
public final class L2NetworksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * L2Networks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_ListByResourceGroup.json
*/
/**
* Sample code: List L2 networks for resource group.
@@ -3448,9 +3827,7 @@ import java.util.Map;
*/
public final class L2NetworksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L2Networks_Patch.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L2Networks_Patch.json
*/
/**
* Sample code: Patch L2 network.
@@ -3482,6 +3859,7 @@ public final class L2NetworksUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.IpAllocationType;
import java.util.HashMap;
import java.util.Map;
@@ -3491,9 +3869,7 @@ import java.util.Map;
*/
public final class L3NetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Create.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_Create.json
*/
/**
* Sample code: Create or update L3 network.
@@ -3507,7 +3883,7 @@ public final class L3NetworksCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withL3IsolationDomainId(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName")
.withVlan(12L)
@@ -3541,9 +3917,7 @@ public final class L3NetworksCreateOrUpdateSamples {
*/
public final class L3NetworksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Delete.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_Delete.json
*/
/**
* Sample code: Delete L3 network.
@@ -3564,15 +3938,14 @@ public final class L3NetworksDeleteSamples {
*/
public final class L3NetworksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Get.json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_Get.json
*/
/**
- * Sample code: Get L3network.
+ * Sample code: Get L3 network.
*
* @param manager Entry point to NetworkCloudManager.
*/
- public static void getL3network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
+ public static void getL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) {
manager.l3Networks()
.getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE);
}
@@ -3587,9 +3960,7 @@ public final class L3NetworksGetByResourceGroupSamples {
*/
public final class L3NetworksListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * L3Networks_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_ListBySubscription.json
*/
/**
* Sample code: List L3 networks for subscription.
@@ -3611,9 +3982,7 @@ public final class L3NetworksListSamples {
*/
public final class L3NetworksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * L3Networks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_ListByResourceGroup.json
*/
/**
* Sample code: List L3 networks for resource group.
@@ -3639,9 +4008,7 @@ import java.util.Map;
*/
public final class L3NetworksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/L3Networks_Patch.
- * json
+ * x-ms-original-file: 2026-05-01-preview/L3Networks_Patch.json
*/
/**
* Sample code: Patch L3 network.
@@ -3673,6 +4040,7 @@ public final class L3NetworksUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -3682,9 +4050,7 @@ import java.util.Map;
*/
public final class MetricsConfigurationsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterMetricsConfigurations_Create.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Create.json
*/
/**
* Sample code: Create or update metrics configuration of cluster.
@@ -3699,7 +4065,7 @@ public final class MetricsConfigurationsCreateOrUpdateSamples {
.withExistingCluster("resourceGroupName", "clusterName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withCollectionInterval(15L)
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withEnabledMetrics(Arrays.asList("metric1", "metric2"))
@@ -3728,9 +4094,7 @@ public final class MetricsConfigurationsCreateOrUpdateSamples {
*/
public final class MetricsConfigurationsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterMetricsConfigurations_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Delete.json
*/
/**
* Sample code: Delete metrics configuration of cluster.
@@ -3753,9 +4117,7 @@ public final class MetricsConfigurationsDeleteSamples {
*/
public final class MetricsConfigurationsGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterMetricsConfigurations_Get.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Get.json
*/
/**
* Sample code: Get metrics configuration of cluster.
@@ -3778,9 +4140,7 @@ public final class MetricsConfigurationsGetSamples {
*/
public final class MetricsConfigurationsListByClusterSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterMetricsConfigurations_ListByCluster.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_ListByCluster.json
*/
/**
* Sample code: List metrics configurations of the cluster.
@@ -3808,9 +4168,7 @@ import java.util.Map;
*/
public final class MetricsConfigurationsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * ClusterMetricsConfigurations_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/ClusterMetricsConfigurations_Patch.json
*/
/**
* Sample code: Patch metrics configuration of cluster.
@@ -3851,9 +4209,7 @@ public final class MetricsConfigurationsUpdateSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Operations_List.
- * json
+ * x-ms-original-file: 2026-05-01-preview/Operations_List.json
*/
/**
* Sample code: List resource provider operations.
@@ -3875,8 +4231,7 @@ public final class OperationsListSamples {
*/
public final class RackSkusGetSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/RackSkus_Get.json
+ * x-ms-original-file: 2026-05-01-preview/RackSkus_Get.json
*/
/**
* Sample code: Get rack SKU resource.
@@ -3897,9 +4252,7 @@ public final class RackSkusGetSamples {
*/
public final class RackSkusListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * RackSkus_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/RackSkus_ListBySubscription.json
*/
/**
* Sample code: List rack SKUs for subscription.
@@ -3916,6 +4269,7 @@ public final class RackSkusListSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.HashMap;
import java.util.Map;
@@ -3924,8 +4278,7 @@ import java.util.Map;
*/
public final class RacksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Create.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_Create.json
*/
/**
* Sample code: Create or update rack.
@@ -3939,7 +4292,7 @@ public final class RacksCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAvailabilityZone("1")
.withRackLocation("Rack 28")
.withRackSerialNumber("RACK_SERIAL_NUMBER")
@@ -3971,8 +4324,7 @@ public final class RacksCreateOrUpdateSamples {
*/
public final class RacksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_Delete.json
*/
/**
* Sample code: Delete rack.
@@ -3993,8 +4345,7 @@ public final class RacksDeleteSamples {
*/
public final class RacksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Get.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_Get.json
*/
/**
* Sample code: Get rack.
@@ -4016,9 +4367,7 @@ public final class RacksGetByResourceGroupSamples {
*/
public final class RacksListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Racks_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_ListBySubscription.json
*/
/**
* Sample code: List racks for subscription.
@@ -4039,9 +4388,7 @@ public final class RacksListSamples {
*/
public final class RacksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Racks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_ListByResourceGroup.json
*/
/**
* Sample code: List racks for resource group.
@@ -4066,8 +4413,7 @@ import java.util.Map;
*/
public final class RacksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Racks_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/Racks_Patch.json
*/
/**
* Sample code: Patch rack.
@@ -4104,6 +4450,7 @@ public final class RacksUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.HashMap;
import java.util.Map;
@@ -4112,9 +4459,7 @@ import java.util.Map;
*/
public final class StorageAppliancesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_Create.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_Create.json
*/
/**
* Sample code: Create or update storage appliance.
@@ -4129,7 +4474,7 @@ public final class StorageAppliancesCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAdministratorCredentials(
new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("adminUser"))
.withRackId(
@@ -4163,9 +4508,7 @@ public final class StorageAppliancesCreateOrUpdateSamples {
*/
public final class StorageAppliancesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_Delete.json
*/
/**
* Sample code: Delete storage appliance.
@@ -4187,9 +4530,7 @@ public final class StorageAppliancesDeleteSamples {
*/
public final class StorageAppliancesDisableRemoteVendorManagementSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_DisableRemoteVendorManagement.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_DisableRemoteVendorManagement.json
*/
/**
* Sample code: Turn off remote vendor management for storage appliance.
@@ -4216,9 +4557,7 @@ import java.util.Arrays;
*/
public final class StorageAppliancesEnableRemoteVendorManagementSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_EnableRemoteVendorManagement.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_EnableRemoteVendorManagement.json
*/
/**
* Sample code: Turn on remote vendor management for storage appliance.
@@ -4244,9 +4583,7 @@ public final class StorageAppliancesEnableRemoteVendorManagementSamples {
*/
public final class StorageAppliancesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_Get.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_Get.json
*/
/**
* Sample code: Get storage appliance.
@@ -4269,9 +4606,7 @@ public final class StorageAppliancesGetByResourceGroupSamples {
*/
public final class StorageAppliancesListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_ListBySubscription.json
*/
/**
* Sample code: List storage appliances for subscription.
@@ -4293,9 +4628,7 @@ public final class StorageAppliancesListSamples {
*/
public final class StorageAppliancesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_ListByResourceGroup.json
*/
/**
* Sample code: List storage appliances for resource group.
@@ -4322,9 +4655,7 @@ import java.util.Arrays;
*/
public final class StorageAppliancesRunReadCommandsSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_RunReadCommands.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_RunReadCommands.json
*/
/**
* Sample code: Run and retrieve output from read only commands on storage appliance.
@@ -4357,9 +4688,7 @@ import java.util.Map;
*/
public final class StorageAppliancesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * StorageAppliances_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/StorageAppliances_Patch.json
*/
/**
* Sample code: Patch storage appliance.
@@ -4395,6 +4724,7 @@ public final class StorageAppliancesUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -4404,9 +4734,7 @@ import java.util.Map;
*/
public final class TrunkedNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * TrunkedNetworks_Create.json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Create.json
*/
/**
* Sample code: Create or update trunked network.
@@ -4421,7 +4749,7 @@ public final class TrunkedNetworksCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withIsolationDomainIds(Arrays.asList(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName",
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName"))
@@ -4453,9 +4781,7 @@ public final class TrunkedNetworksCreateOrUpdateSamples {
*/
public final class TrunkedNetworksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * TrunkedNetworks_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Delete.json
*/
/**
* Sample code: Delete trunked network.
@@ -4477,9 +4803,7 @@ public final class TrunkedNetworksDeleteSamples {
*/
public final class TrunkedNetworksGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/TrunkedNetworks_Get
- * .json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Get.json
*/
/**
* Sample code: Get Trunked network.
@@ -4502,9 +4826,7 @@ public final class TrunkedNetworksGetByResourceGroupSamples {
*/
public final class TrunkedNetworksListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * TrunkedNetworks_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_ListBySubscription.json
*/
/**
* Sample code: List trunked networks for subscription.
@@ -4526,9 +4848,7 @@ public final class TrunkedNetworksListSamples {
*/
public final class TrunkedNetworksListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * TrunkedNetworks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_ListByResourceGroup.json
*/
/**
* Sample code: List Trunked networks for resource group.
@@ -4555,9 +4875,7 @@ import java.util.Map;
*/
public final class TrunkedNetworksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * TrunkedNetworks_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/TrunkedNetworks_Patch.json
*/
/**
* Sample code: Patch trunked network.
@@ -4596,9 +4914,7 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachineAssignRelayPa
*/
public final class VirtualMachinesAssignRelaySamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_AssignRelay.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_AssignRelay.json
*/
/**
* Sample code: Assign relay to the Microsoft.HybridCompute machine for a virtual machine.
@@ -4622,6 +4938,7 @@ public final class VirtualMachinesAssignRelaySamples {
```java
import com.azure.resourcemanager.networkcloud.models.DefaultGateway;
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import com.azure.resourcemanager.networkcloud.models.ImageRepositoryCredentials;
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity;
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType;
@@ -4648,9 +4965,7 @@ import java.util.Map;
*/
public final class VirtualMachinesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Create.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Create.json
*/
/**
* Sample code: Create or update virtual machine.
@@ -4665,7 +4980,7 @@ public final class VirtualMachinesCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withAdminUsername("username")
.withCloudServicesNetworkAttachment(new NetworkAttachment().withAttachedNetworkId(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName")
@@ -4730,9 +5045,7 @@ public final class VirtualMachinesCreateOrUpdateSamples {
*/
public final class VirtualMachinesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Delete.json
*/
/**
* Sample code: Delete virtual machine.
@@ -4754,9 +5067,7 @@ public final class VirtualMachinesDeleteSamples {
*/
public final class VirtualMachinesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/VirtualMachines_Get
- * .json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Get.json
*/
/**
* Sample code: Get virtual machine.
@@ -4779,9 +5090,7 @@ public final class VirtualMachinesGetByResourceGroupSamples {
*/
public final class VirtualMachinesListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_ListBySubscription.json
*/
/**
* Sample code: List virtual machines for subscription.
@@ -4803,9 +5112,7 @@ public final class VirtualMachinesListSamples {
*/
public final class VirtualMachinesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_ListByResourceGroup.json
*/
/**
* Sample code: List virtual machines for resource group.
@@ -4831,9 +5138,7 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParam
*/
public final class VirtualMachinesPowerOffSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_PowerOff.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_PowerOff.json
*/
/**
* Sample code: Power off virtual machine.
@@ -4857,9 +5162,7 @@ public final class VirtualMachinesPowerOffSamples {
*/
public final class VirtualMachinesReimageSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Reimage.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Reimage.json
*/
/**
* Sample code: Reimage virtual machine.
@@ -4880,9 +5183,7 @@ public final class VirtualMachinesReimageSamples {
*/
public final class VirtualMachinesRestartSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Restart.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Restart.json
*/
/**
* Sample code: Restart virtual machine.
@@ -4903,9 +5204,7 @@ public final class VirtualMachinesRestartSamples {
*/
public final class VirtualMachinesStartSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Start.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Start.json
*/
/**
* Sample code: Start virtual machine.
@@ -4934,9 +5233,7 @@ import java.util.Map;
*/
public final class VirtualMachinesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * VirtualMachines_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/VirtualMachines_Patch.json
*/
/**
* Sample code: Patch virtual machine.
@@ -4977,6 +5274,7 @@ public final class VirtualMachinesUpdateSamples {
```java
import com.azure.resourcemanager.networkcloud.models.ExtendedLocation;
+import com.azure.resourcemanager.networkcloud.models.ExtendedLocationType;
import java.util.HashMap;
import java.util.Map;
@@ -4985,8 +5283,7 @@ import java.util.Map;
*/
public final class VolumesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Create.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_Create.json
*/
/**
* Sample code: Create or update volume.
@@ -5000,11 +5297,11 @@ public final class VolumesCreateOrUpdateSamples {
.withExistingResourceGroup("resourceGroupName")
.withExtendedLocation(new ExtendedLocation().withName(
"/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName")
- .withType("CustomLocation"))
+ .withType(ExtendedLocationType.CUSTOM_LOCATION))
.withSizeMiB(1048576L)
.withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder"))
.withStorageApplianceId(
- "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/StorageAppliances/storageApplianceName")
+ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/storageAppliances/storageApplianceName")
.create();
}
@@ -5030,8 +5327,7 @@ public final class VolumesCreateOrUpdateSamples {
*/
public final class VolumesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Delete.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_Delete.json
*/
/**
* Sample code: Delete volume.
@@ -5052,8 +5348,7 @@ public final class VolumesDeleteSamples {
*/
public final class VolumesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Get.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_Get.json
*/
/**
* Sample code: Get volume.
@@ -5075,9 +5370,7 @@ public final class VolumesGetByResourceGroupSamples {
*/
public final class VolumesListSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Volumes_ListBySubscription.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_ListBySubscription.json
*/
/**
* Sample code: List volume for subscription.
@@ -5098,9 +5391,7 @@ public final class VolumesListSamples {
*/
public final class VolumesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/
- * Volumes_ListByResourceGroup.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_ListByResourceGroup.json
*/
/**
* Sample code: List volumes for resource group.
@@ -5125,8 +5416,7 @@ import java.util.Map;
*/
public final class VolumesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/examples/Volumes_Patch.json
+ * x-ms-original-file: 2026-05-01-preview/Volumes_Patch.json
*/
/**
* Sample code: Patch volume.
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml
index 0e55791af169..281bc4f1ce1d 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -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-2025-09-01.
+ 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 api-version 2026-05-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 5b69e0dfa9ff..eb3885be8d26 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud;
@@ -24,7 +24,8 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.networkcloud.fluent.NetworkCloud;
+import com.azure.resourcemanager.networkcloud.fluent.NetworkCloudManagementClient;
+import com.azure.resourcemanager.networkcloud.implementation.AccessBridgesImpl;
import com.azure.resourcemanager.networkcloud.implementation.AgentPoolsImpl;
import com.azure.resourcemanager.networkcloud.implementation.BareMetalMachineKeySetsImpl;
import com.azure.resourcemanager.networkcloud.implementation.BareMetalMachinesImpl;
@@ -35,10 +36,11 @@
import com.azure.resourcemanager.networkcloud.implementation.ConsolesImpl;
import com.azure.resourcemanager.networkcloud.implementation.KubernetesClusterFeaturesImpl;
import com.azure.resourcemanager.networkcloud.implementation.KubernetesClustersImpl;
+import com.azure.resourcemanager.networkcloud.implementation.KubernetesVersionsImpl;
import com.azure.resourcemanager.networkcloud.implementation.L2NetworksImpl;
import com.azure.resourcemanager.networkcloud.implementation.L3NetworksImpl;
import com.azure.resourcemanager.networkcloud.implementation.MetricsConfigurationsImpl;
-import com.azure.resourcemanager.networkcloud.implementation.NetworkCloudBuilder;
+import com.azure.resourcemanager.networkcloud.implementation.NetworkCloudManagementClientBuilder;
import com.azure.resourcemanager.networkcloud.implementation.OperationsImpl;
import com.azure.resourcemanager.networkcloud.implementation.RackSkusImpl;
import com.azure.resourcemanager.networkcloud.implementation.RacksImpl;
@@ -46,6 +48,7 @@
import com.azure.resourcemanager.networkcloud.implementation.TrunkedNetworksImpl;
import com.azure.resourcemanager.networkcloud.implementation.VirtualMachinesImpl;
import com.azure.resourcemanager.networkcloud.implementation.VolumesImpl;
+import com.azure.resourcemanager.networkcloud.models.AccessBridges;
import com.azure.resourcemanager.networkcloud.models.AgentPools;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySets;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachines;
@@ -56,6 +59,7 @@
import com.azure.resourcemanager.networkcloud.models.Consoles;
import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatures;
import com.azure.resourcemanager.networkcloud.models.KubernetesClusters;
+import com.azure.resourcemanager.networkcloud.models.KubernetesVersions;
import com.azure.resourcemanager.networkcloud.models.L2Networks;
import com.azure.resourcemanager.networkcloud.models.L3Networks;
import com.azure.resourcemanager.networkcloud.models.MetricsConfigurations;
@@ -82,6 +86,8 @@
public final class NetworkCloudManager {
private Operations operations;
+ private AccessBridges accessBridges;
+
private BareMetalMachines bareMetalMachines;
private CloudServicesNetworks cloudServicesNetworks;
@@ -92,6 +98,8 @@ public final class NetworkCloudManager {
private KubernetesClusters kubernetesClusters;
+ private KubernetesVersions kubernetesVersions;
+
private L2Networks l2Networks;
private L3Networks l3Networks;
@@ -112,20 +120,20 @@ public final class NetworkCloudManager {
private BmcKeySets bmcKeySets;
- private MetricsConfigurations metricsConfigurations;
-
private AgentPools agentPools;
private KubernetesClusterFeatures kubernetesClusterFeatures;
private Consoles consoles;
- private final NetworkCloud clientObject;
+ private MetricsConfigurations metricsConfigurations;
+
+ private final NetworkCloudManagementClient clientObject;
private NetworkCloudManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new NetworkCloudBuilder().pipeline(httpPipeline)
+ this.clientObject = new NetworkCloudManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -347,6 +355,18 @@ public Operations operations() {
return operations;
}
+ /**
+ * Gets the resource collection API of AccessBridges. It manages AccessBridge.
+ *
+ * @return Resource collection API of AccessBridges.
+ */
+ public AccessBridges accessBridges() {
+ if (this.accessBridges == null) {
+ this.accessBridges = new AccessBridgesImpl(clientObject.getAccessBridges(), this);
+ }
+ return accessBridges;
+ }
+
/**
* Gets the resource collection API of BareMetalMachines. It manages BareMetalMachine.
*
@@ -407,6 +427,18 @@ public KubernetesClusters kubernetesClusters() {
return kubernetesClusters;
}
+ /**
+ * Gets the resource collection API of KubernetesVersions. It manages KubernetesVersion.
+ *
+ * @return Resource collection API of KubernetesVersions.
+ */
+ public KubernetesVersions kubernetesVersions() {
+ if (this.kubernetesVersions == null) {
+ this.kubernetesVersions = new KubernetesVersionsImpl(clientObject.getKubernetesVersions(), this);
+ }
+ return kubernetesVersions;
+ }
+
/**
* Gets the resource collection API of L2Networks. It manages L2Network.
*
@@ -528,18 +560,6 @@ public BmcKeySets bmcKeySets() {
return bmcKeySets;
}
- /**
- * Gets the resource collection API of MetricsConfigurations. It manages ClusterMetricsConfiguration.
- *
- * @return Resource collection API of MetricsConfigurations.
- */
- public MetricsConfigurations metricsConfigurations() {
- if (this.metricsConfigurations == null) {
- this.metricsConfigurations = new MetricsConfigurationsImpl(clientObject.getMetricsConfigurations(), this);
- }
- return metricsConfigurations;
- }
-
/**
* Gets the resource collection API of AgentPools. It manages AgentPool.
*
@@ -578,12 +598,24 @@ public Consoles consoles() {
}
/**
- * Gets wrapped service client NetworkCloud providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets the resource collection API of MetricsConfigurations. It manages ClusterMetricsConfiguration.
+ *
+ * @return Resource collection API of MetricsConfigurations.
+ */
+ public MetricsConfigurations metricsConfigurations() {
+ if (this.metricsConfigurations == null) {
+ this.metricsConfigurations = new MetricsConfigurationsImpl(clientObject.getMetricsConfigurations(), this);
+ }
+ return metricsConfigurations;
+ }
+
+ /**
+ * Gets wrapped service client NetworkCloudManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
*
- * @return Wrapped service client NetworkCloud.
+ * @return Wrapped service client NetworkCloudManagementClient.
*/
- public NetworkCloud serviceClient() {
+ public NetworkCloudManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AccessBridgesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AccessBridgesClient.java
new file mode 100644
index 000000000000..36d2313bcc9c
--- /dev/null
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AccessBridgesClient.java
@@ -0,0 +1,299 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.networkcloud.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.networkcloud.fluent.models.AccessBridgeInner;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgeAllowedName;
+import com.azure.resourcemanager.networkcloud.models.AccessBridgePatchParameters;
+
+/**
+ * An instance of this class provides access to all the operations defined in AccessBridgesClient.
+ */
+public interface AccessBridgesClient {
+ /**
+ * Get the properties of the provided access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the provided access bridge along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ AccessBridgeAllowedName accessBridgeName, Context context);
+
+ /**
+ * Get the properties of the provided access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the properties of the provided access bridge.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessBridgeInner getByResourceGroup(String resourceGroupName, AccessBridgeAllowedName accessBridgeName);
+
+ /**
+ * Create a new access bridge or update the properties of the existing access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param accessBridge The access bridge configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AccessBridgeInner> beginCreateOrUpdate(String resourceGroupName,
+ AccessBridgeAllowedName accessBridgeName, AccessBridgeInner accessBridge);
+
+ /**
+ * Create a new access bridge or update the properties of the existing access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param accessBridge The access bridge configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AccessBridgeInner> beginCreateOrUpdate(String resourceGroupName,
+ AccessBridgeAllowedName accessBridgeName, AccessBridgeInner accessBridge, Context context);
+
+ /**
+ * Create a new access bridge or update the properties of the existing access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param accessBridge The access bridge configuration.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessBridgeInner createOrUpdate(String resourceGroupName, AccessBridgeAllowedName accessBridgeName,
+ AccessBridgeInner accessBridge);
+
+ /**
+ * Create a new access bridge or update the properties of the existing access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param accessBridge The access bridge configuration.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessBridgeInner createOrUpdate(String resourceGroupName, AccessBridgeAllowedName accessBridgeName,
+ AccessBridgeInner accessBridge, Context context);
+
+ /**
+ * Update properties of the provided access bridge, or update tags associated with the access bridge. Properties and
+ * tag updates can be done independently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AccessBridgeInner> beginUpdate(String resourceGroupName,
+ AccessBridgeAllowedName accessBridgeName);
+
+ /**
+ * Update properties of the provided access bridge, or update tags associated with the access bridge. Properties and
+ * tag updates can be done independently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
+ * resource. Other values will result in error from server as they are not supported.
+ * @param accessBridgeUpdateParameters The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AccessBridgeInner> beginUpdate(String resourceGroupName,
+ AccessBridgeAllowedName accessBridgeName, String ifMatch, String ifNoneMatch,
+ AccessBridgePatchParameters accessBridgeUpdateParameters, Context context);
+
+ /**
+ * Update properties of the provided access bridge, or update tags associated with the access bridge. Properties and
+ * tag updates can be done independently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessBridgeInner update(String resourceGroupName, AccessBridgeAllowedName accessBridgeName);
+
+ /**
+ * Update properties of the provided access bridge, or update tags associated with the access bridge. Properties and
+ * tag updates can be done independently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
+ * resource. Other values will result in error from server as they are not supported.
+ * @param accessBridgeUpdateParameters The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return accessBridge represents a managed access bridge resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccessBridgeInner update(String resourceGroupName, AccessBridgeAllowedName accessBridgeName, String ifMatch,
+ String ifNoneMatch, AccessBridgePatchParameters accessBridgeUpdateParameters, Context context);
+
+ /**
+ * Delete the specified access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, AccessBridgeAllowedName accessBridgeName);
+
+ /**
+ * Delete the specified access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
+ * resource. Other values will result in error from server as they are not supported.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, AccessBridgeAllowedName accessBridgeName,
+ String ifMatch, String ifNoneMatch, Context context);
+
+ /**
+ * Delete the specified access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, AccessBridgeAllowedName accessBridgeName);
+
+ /**
+ * Delete the specified access bridge.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accessBridgeName The name of the access bridge.
+ * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
+ * resource. Other values will result in error from server as they are not supported.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, AccessBridgeAllowedName accessBridgeName, String ifMatch, String ifNoneMatch,
+ Context context);
+
+ /**
+ * Get a list of access bridges in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of access bridges in the provided resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of access bridges in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of access bridges in the provided resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
+ Context context);
+
+ /**
+ * Get a list of access bridges in the provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of access bridges in the provided subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of access bridges in the provided subscription.
+ *
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of access bridges in the provided subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, String skipToken, Context context);
+}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java
index 9e4d50d41655..5babbf172fc6 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.AgentPoolPatchParameters;
/**
@@ -20,45 +19,6 @@
*/
public interface AgentPoolsClient {
/**
- * List agent pools of the Kubernetes cluster.
- *
- * Get a list of agent pools for the provided Kubernetes cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param kubernetesClusterName The name of the Kubernetes cluster.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of agent pools for the provided Kubernetes cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName);
-
- /**
- * List agent pools of the Kubernetes cluster.
- *
- * Get a list of agent pools for the provided Kubernetes cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param kubernetesClusterName The name of the Kubernetes cluster.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of agent pools for the provided Kubernetes cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName,
- Integer top, String skipToken, Context context);
-
- /**
- * Retrieve the Kubernetes cluster agent pool.
- *
* Get properties of the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -75,8 +35,6 @@ Response getWithResponse(String resourceGroupName, String kubern
String agentPoolName, Context context);
/**
- * Retrieve the Kubernetes cluster agent pool.
- *
* Get properties of the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -91,8 +49,6 @@ Response getWithResponse(String resourceGroupName, String kubern
AgentPoolInner get(String resourceGroupName, String kubernetesClusterName, String agentPoolName);
/**
- * Create or update the Kubernetes cluster agent pool.
- *
* Create a new Kubernetes cluster agent pool or update the properties of the existing one.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -109,8 +65,6 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin
String kubernetesClusterName, String agentPoolName, AgentPoolInner agentPoolParameters);
/**
- * Create or update the Kubernetes cluster agent pool.
- *
* Create a new Kubernetes cluster agent pool or update the properties of the existing one.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -133,8 +87,6 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin
String ifNoneMatch, Context context);
/**
- * Create or update the Kubernetes cluster agent pool.
- *
* Create a new Kubernetes cluster agent pool or update the properties of the existing one.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -151,8 +103,6 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetesCluster
AgentPoolInner agentPoolParameters);
/**
- * Create or update the Kubernetes cluster agent pool.
- *
* Create a new Kubernetes cluster agent pool or update the properties of the existing one.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -174,9 +124,8 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetesCluster
AgentPoolInner agentPoolParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the Kubernetes cluster agent pool.
- *
- * Delete the provided Kubernetes cluster agent pool.
+ * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
+ * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -184,16 +133,15 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetesCluster
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
+ SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName,
String kubernetesClusterName, String agentPoolName);
/**
- * Delete the Kubernetes cluster agent pool.
- *
- * Delete the provided Kubernetes cluster agent pool.
+ * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
+ * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -202,20 +150,21 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param agentPoolUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String kubernetesClusterName, String agentPoolName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName,
+ String kubernetesClusterName, String agentPoolName, String ifMatch, String ifNoneMatch,
+ AgentPoolPatchParameters agentPoolUpdateParameters, Context context);
/**
- * Delete the Kubernetes cluster agent pool.
- *
- * Delete the provided Kubernetes cluster agent pool.
+ * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
+ * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -223,15 +172,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName);
+ AgentPoolInner update(String resourceGroupName, String kubernetesClusterName, String agentPoolName);
/**
- * Delete the Kubernetes cluster agent pool.
- *
- * Delete the provided Kubernetes cluster agent pool.
+ * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
+ * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -240,21 +188,19 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param agentPoolUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName,
- String ifMatch, String ifNoneMatch, Context context);
+ AgentPoolInner update(String resourceGroupName, String kubernetesClusterName, String agentPoolName, String ifMatch,
+ String ifNoneMatch, AgentPoolPatchParameters agentPoolUpdateParameters, Context context);
/**
- * Patch the Kubernetes cluster agent pool.
- *
- * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
- * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
+ * Delete the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -262,17 +208,14 @@ OperationStatusResultInner delete(String resourceGroupName, String kubernetesClu
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of agentPool represents the agent pool of Kubernetes cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName,
- String kubernetesClusterName, String agentPoolName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName,
+ String agentPoolName);
/**
- * Patch the Kubernetes cluster agent pool.
- *
- * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
- * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
+ * Delete the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -281,23 +224,18 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param agentPoolUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of agentPool represents the agent pool of Kubernetes cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName,
- String kubernetesClusterName, String agentPoolName, String ifMatch, String ifNoneMatch,
- AgentPoolPatchParameters agentPoolUpdateParameters, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName,
+ String agentPoolName, String ifMatch, String ifNoneMatch, Context context);
/**
- * Patch the Kubernetes cluster agent pool.
- *
- * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
- * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
+ * Delete the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -305,16 +243,12 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AgentPoolInner update(String resourceGroupName, String kubernetesClusterName, String agentPoolName);
+ void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName);
/**
- * Patch the Kubernetes cluster agent pool.
- *
- * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the
- * Kubernetes cluster agent pool. Properties and tag updates can be done independently.
+ * Delete the provided Kubernetes cluster agent pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param kubernetesClusterName The name of the Kubernetes cluster.
@@ -323,14 +257,45 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param agentPoolUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return agentPool represents the agent pool of Kubernetes cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AgentPoolInner update(String resourceGroupName, String kubernetesClusterName, String agentPoolName, String ifMatch,
- String ifNoneMatch, AgentPoolPatchParameters agentPoolUpdateParameters, Context context);
+ void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, String ifMatch,
+ String ifNoneMatch, Context context);
+
+ /**
+ * Get a list of agent pools for the provided Kubernetes cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kubernetesClusterName The name of the Kubernetes cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of agent pools for the provided Kubernetes cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName);
+
+ /**
+ * Get a list of agent pools for the provided Kubernetes cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param kubernetesClusterName The name of the Kubernetes cluster.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of agent pools for the provided Kubernetes cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName,
+ Integer top, String skipToken, Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java
index ea5779adfda5..549e807cffaa 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPatchParameters;
/**
@@ -20,45 +19,6 @@
*/
public interface BareMetalMachineKeySetsClient {
/**
- * List bare metal machine key sets of the cluster.
- *
- * Get a list of bare metal machine key sets for the provided cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machine key sets for the provided cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
-
- /**
- * List bare metal machine key sets of the cluster.
- *
- * Get a list of bare metal machine key sets for the provided cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machine key sets for the provided cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Integer top,
- String skipToken, Context context);
-
- /**
- * Retrieve the bare metal machine key set of the cluster.
- *
* Get bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -75,8 +35,6 @@ Response getWithResponse(String resourceGroupName,
String bareMetalMachineKeySetName, Context context);
/**
- * Retrieve the bare metal machine key set of the cluster.
- *
* Get bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -91,8 +49,6 @@ Response getWithResponse(String resourceGroupName,
BareMetalMachineKeySetInner get(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
/**
- * Create or update the bare metal machine key set of the cluster.
- *
* Create a new bare metal machine key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -110,8 +66,6 @@ SyncPoller, BareMetalMachineKeySetInner>
BareMetalMachineKeySetInner bareMetalMachineKeySetParameters);
/**
- * Create or update the bare metal machine key set of the cluster.
- *
* Create a new bare metal machine key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -135,8 +89,6 @@ SyncPoller, BareMetalMachineKeySetInner>
Context context);
/**
- * Create or update the bare metal machine key set of the cluster.
- *
* Create a new bare metal machine key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -153,8 +105,6 @@ BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, String clus
String bareMetalMachineKeySetName, BareMetalMachineKeySetInner bareMetalMachineKeySetParameters);
/**
- * Create or update the bare metal machine key set of the cluster.
- *
* Create a new bare metal machine key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -177,9 +127,8 @@ BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, String clus
String ifNoneMatch, Context context);
/**
- * Delete the bare metal machine key set of the cluster.
- *
- * Delete the bare metal machine key set of the provided cluster.
+ * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -187,16 +136,15 @@ BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, String clus
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName, String bareMetalMachineKeySetName);
+ SyncPoller, BareMetalMachineKeySetInner>
+ beginUpdate(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
/**
- * Delete the bare metal machine key set of the cluster.
- *
- * Delete the bare metal machine key set of the provided cluster.
+ * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -205,20 +153,22 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bareMetalMachineKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName, String bareMetalMachineKeySetName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, BareMetalMachineKeySetInner> beginUpdate(
+ String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, String ifMatch,
+ String ifNoneMatch, BareMetalMachineKeySetPatchParameters bareMetalMachineKeySetUpdateParameters,
+ Context context);
/**
- * Delete the bare metal machine key set of the cluster.
- *
- * Delete the bare metal machine key set of the provided cluster.
+ * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -226,15 +176,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
+ BareMetalMachineKeySetInner update(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
/**
- * Delete the bare metal machine key set of the cluster.
- *
- * Delete the bare metal machine key set of the provided cluster.
+ * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -243,21 +192,20 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bareMetalMachineKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName,
- String ifMatch, String ifNoneMatch, Context context);
+ BareMetalMachineKeySetInner update(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName,
+ String ifMatch, String ifNoneMatch,
+ BareMetalMachineKeySetPatchParameters bareMetalMachineKeySetUpdateParameters, Context context);
/**
- * Patch bare metal machine key set of the cluster.
- *
- * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
- * Properties and tag updates can be done independently.
+ * Delete the bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -265,17 +213,14 @@ OperationStatusResultInner delete(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bareMetalMachineKeySet represents the bare metal machine key set.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BareMetalMachineKeySetInner>
- beginUpdate(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String bareMetalMachineKeySetName);
/**
- * Patch bare metal machine key set of the cluster.
- *
- * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
- * Properties and tag updates can be done independently.
+ * Delete the bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -284,24 +229,18 @@ OperationStatusResultInner delete(String resourceGroupName, String clusterName,
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bareMetalMachineKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bareMetalMachineKeySet represents the bare metal machine key set.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BareMetalMachineKeySetInner> beginUpdate(
- String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, String ifMatch,
- String ifNoneMatch, BareMetalMachineKeySetPatchParameters bareMetalMachineKeySetUpdateParameters,
- Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName,
+ String bareMetalMachineKeySetName, String ifMatch, String ifNoneMatch, Context context);
/**
- * Patch bare metal machine key set of the cluster.
- *
- * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
- * Properties and tag updates can be done independently.
+ * Delete the bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -309,16 +248,12 @@ SyncPoller, BareMetalMachineKeySetInner>
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BareMetalMachineKeySetInner update(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
+ void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName);
/**
- * Patch bare metal machine key set of the cluster.
- *
- * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it.
- * Properties and tag updates can be done independently.
+ * Delete the bare metal machine key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -327,15 +262,45 @@ SyncPoller, BareMetalMachineKeySetInner>
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bareMetalMachineKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bareMetalMachineKeySet represents the bare metal machine key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BareMetalMachineKeySetInner update(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName,
- String ifMatch, String ifNoneMatch,
- BareMetalMachineKeySetPatchParameters bareMetalMachineKeySetUpdateParameters, Context context);
+ void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, String ifMatch,
+ String ifNoneMatch, Context context);
+
+ /**
+ * Get a list of bare metal machine key sets for the provided cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machine key sets for the provided cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName);
+
+ /**
+ * Get a list of bare metal machine key sets for the provided cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machine key sets for the provided cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName, Integer top,
+ String skipToken, Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java
index ebd0d648a03b..9cc0df3f60fd 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,88 +12,21 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePatchParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePowerOffParameters;
+import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReimageParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReplaceParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunCommandParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters;
import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters;
+import com.azure.resourcemanager.networkcloud.models.OperationStatusResult;
/**
* An instance of this class provides access to all the operations defined in BareMetalMachinesClient.
*/
public interface BareMetalMachinesClient {
/**
- * List bare metal machines in the subscription.
- *
- * Get a list of bare metal machines in the provided subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machines in the provided subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List bare metal machines in the subscription.
- *
- * Get a list of bare metal machines in the provided subscription.
- *
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machines in the provided subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, String skipToken, Context context);
-
- /**
- * List bare metal machines in the resource group.
- *
- * Get a list of bare metal machines in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machines in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List bare metal machines in the resource group.
- *
- * Get a list of bare metal machines in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of bare metal machines in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
- Context context);
-
- /**
- * Retrieve the bare metal machine.
- *
* Get properties of the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -109,8 +42,6 @@ Response getByResourceGroupWithResponse(String resourceGr
String bareMetalMachineName, Context context);
/**
- * Retrieve the bare metal machine.
- *
* Get properties of the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -124,8 +55,6 @@ Response getByResourceGroupWithResponse(String resourceGr
BareMetalMachineInner getByResourceGroup(String resourceGroupName, String bareMetalMachineName);
/**
- * Create or update the bare metal machine.
- *
* Create a new bare metal machine or update the properties of the existing one. All customer initiated requests
* will be rejected as the life cycle of this resource is managed by the system.
*
@@ -142,8 +71,6 @@ SyncPoller, BareMetalMachineInner> beginCreate
String bareMetalMachineName, BareMetalMachineInner bareMetalMachineParameters);
/**
- * Create or update the bare metal machine.
- *
* Create a new bare metal machine or update the properties of the existing one. All customer initiated requests
* will be rejected as the life cycle of this resource is managed by the system.
*
@@ -166,8 +93,6 @@ SyncPoller, BareMetalMachineInner> beginCreate
String ifNoneMatch, Context context);
/**
- * Create or update the bare metal machine.
- *
* Create a new bare metal machine or update the properties of the existing one. All customer initiated requests
* will be rejected as the life cycle of this resource is managed by the system.
*
@@ -184,8 +109,6 @@ BareMetalMachineInner createOrUpdate(String resourceGroupName, String bareMetalM
BareMetalMachineInner bareMetalMachineParameters);
/**
- * Create or update the bare metal machine.
- *
* Create a new bare metal machine or update the properties of the existing one. All customer initiated requests
* will be rejected as the life cycle of this resource is managed by the system.
*
@@ -207,27 +130,23 @@ BareMetalMachineInner createOrUpdate(String resourceGroupName, String bareMetalM
BareMetalMachineInner bareMetalMachineParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the bare metal machine.
- *
- * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
- * this resource is managed by the system.
+ * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
+ SyncPoller, BareMetalMachineInner> beginUpdate(String resourceGroupName,
String bareMetalMachineName);
/**
- * Delete the bare metal machine.
- *
- * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
- * this resource is managed by the system.
+ * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
@@ -235,37 +154,35 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bareMetalMachineUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String bareMetalMachineName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, BareMetalMachineInner> beginUpdate(String resourceGroupName,
+ String bareMetalMachineName, String ifMatch, String ifNoneMatch,
+ BareMetalMachinePatchParameters bareMetalMachineUpdateParameters, Context context);
/**
- * Delete the bare metal machine.
- *
- * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
- * this resource is managed by the system.
+ * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName);
+ BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineName);
/**
- * Delete the bare metal machine.
- *
- * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
- * this resource is managed by the system.
+ * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
+ * Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
@@ -273,38 +190,34 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bareMetalMachineUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName, String ifMatch,
- String ifNoneMatch, Context context);
+ BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineName, String ifMatch,
+ String ifNoneMatch, BareMetalMachinePatchParameters bareMetalMachineUpdateParameters, Context context);
/**
- * Patch the bare metal machine.
- *
- * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
- * Properties and tag updates can be done independently.
+ * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
+ * this resource is managed by the system.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bareMetalMachine represents the physical machine in the rack.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BareMetalMachineInner> beginUpdate(String resourceGroupName,
- String bareMetalMachineName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName);
/**
- * Patch the bare metal machine.
- *
- * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
- * Properties and tag updates can be done independently.
+ * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
+ * this resource is managed by the system.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
@@ -312,39 +225,32 @@ SyncPoller, BareMetalMachineInner> beginUpdate
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bareMetalMachineUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bareMetalMachine represents the physical machine in the rack.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BareMetalMachineInner> beginUpdate(String resourceGroupName,
- String bareMetalMachineName, String ifMatch, String ifNoneMatch,
- BareMetalMachinePatchParameters bareMetalMachineUpdateParameters, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName,
+ String ifMatch, String ifNoneMatch, Context context);
/**
- * Patch the bare metal machine.
- *
- * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
- * Properties and tag updates can be done independently.
+ * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
+ * this resource is managed by the system.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineName);
+ void delete(String resourceGroupName, String bareMetalMachineName);
/**
- * Patch the bare metal machine.
- *
- * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine.
- * Properties and tag updates can be done independently.
+ * Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of
+ * this resource is managed by the system.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
@@ -352,20 +258,74 @@ SyncPoller, BareMetalMachineInner> beginUpdate
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bareMetalMachineUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bareMetalMachine represents the physical machine in the rack.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineName, String ifMatch,
- String ifNoneMatch, BareMetalMachinePatchParameters bareMetalMachineUpdateParameters, Context context);
+ void delete(String resourceGroupName, String bareMetalMachineName, String ifMatch, String ifNoneMatch,
+ Context context);
/**
- * Cordon the bare metal machine.
+ * Get a list of bare metal machines in the provided resource group.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machines in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of bare metal machines in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machines in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
+ Context context);
+
+ /**
+ * Get a list of bare metal machines in the provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machines in the provided subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of bare metal machines in the provided subscription.
+ *
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of bare metal machines in the provided subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, String skipToken, Context context);
+
+ /**
* Cordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -373,15 +333,13 @@ BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginCordon(String resourceGroupName,
+ SyncPoller, OperationStatusResult> beginCordon(String resourceGroupName,
String bareMetalMachineName);
/**
- * Cordon the bare metal machine.
- *
* Cordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -391,16 +349,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginCordon(String resourceGroupName,
+ SyncPoller, OperationStatusResult> beginCordon(String resourceGroupName,
String bareMetalMachineName, BareMetalMachineCordonParameters bareMetalMachineCordonParameters,
Context context);
/**
- * Cordon the bare metal machine.
- *
* Cordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -408,14 +364,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult cordon(String resourceGroupName, String bareMetalMachineName);
/**
- * Cordon the bare metal machine.
- *
* Cordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -425,15 +379,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult cordon(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineCordonParameters bareMetalMachineCordonParameters, Context context);
/**
- * Power off the bare metal machine.
- *
* Power off the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -441,15 +393,13 @@ OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMach
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginPowerOff(String resourceGroupName, String bareMetalMachineName);
+ SyncPoller, OperationStatusResult> beginPowerOff(String resourceGroupName,
+ String bareMetalMachineName);
/**
- * Power off the bare metal machine.
- *
* Power off the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -459,16 +409,14 @@ OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMach
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginPowerOff(
- String resourceGroupName, String bareMetalMachineName,
- BareMetalMachinePowerOffParameters bareMetalMachinePowerOffParameters, Context context);
+ SyncPoller, OperationStatusResult> beginPowerOff(String resourceGroupName,
+ String bareMetalMachineName, BareMetalMachinePowerOffParameters bareMetalMachinePowerOffParameters,
+ Context context);
/**
- * Power off the bare metal machine.
- *
* Power off the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -476,14 +424,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachineName);
/**
- * Power off the bare metal machine.
- *
* Power off the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -493,15 +439,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachineName,
BareMetalMachinePowerOffParameters bareMetalMachinePowerOffParameters, Context context);
/**
- * Reimage the bare metal machine.
- *
* Reimage the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -509,32 +453,29 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginReimage(String resourceGroupName, String bareMetalMachineName);
+ SyncPoller, OperationStatusResult> beginReimage(String resourceGroupName,
+ String bareMetalMachineName);
/**
- * Reimage the bare metal machine.
- *
* Reimage the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
+ * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginReimage(String resourceGroupName, String bareMetalMachineName, Context context);
+ SyncPoller, OperationStatusResult> beginReimage(String resourceGroupName,
+ String bareMetalMachineName, BareMetalMachineReimageParameters body, Context context);
/**
- * Reimage the bare metal machine.
- *
* Reimage the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -542,30 +483,28 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner reimage(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult reimage(String resourceGroupName, String bareMetalMachineName);
/**
- * Reimage the bare metal machine.
- *
* Reimage the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param bareMetalMachineName The name of the bare metal machine.
+ * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner reimage(String resourceGroupName, String bareMetalMachineName, Context context);
+ OperationStatusResult reimage(String resourceGroupName, String bareMetalMachineName,
+ BareMetalMachineReimageParameters body, Context context);
/**
- * Replace (service) the bare metal machine.
- *
* Replace the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -573,15 +512,13 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginReplace(String resourceGroupName, String bareMetalMachineName);
+ SyncPoller, OperationStatusResult> beginReplace(String resourceGroupName,
+ String bareMetalMachineName);
/**
- * Replace (service) the bare metal machine.
- *
* Replace the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -591,16 +528,14 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginReplace(
- String resourceGroupName, String bareMetalMachineName,
- BareMetalMachineReplaceParameters bareMetalMachineReplaceParameters, Context context);
+ SyncPoller, OperationStatusResult> beginReplace(String resourceGroupName,
+ String bareMetalMachineName, BareMetalMachineReplaceParameters bareMetalMachineReplaceParameters,
+ Context context);
/**
- * Replace (service) the bare metal machine.
- *
* Replace the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -608,14 +543,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner replace(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult replace(String resourceGroupName, String bareMetalMachineName);
/**
- * Replace (service) the bare metal machine.
- *
* Replace the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -625,15 +558,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner replace(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult replace(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineReplaceParameters bareMetalMachineReplaceParameters, Context context);
/**
- * Restart the bare metal machine.
- *
* Restart the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -641,15 +572,13 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginRestart(String resourceGroupName, String bareMetalMachineName);
+ SyncPoller, OperationStatusResult> beginRestart(String resourceGroupName,
+ String bareMetalMachineName);
/**
- * Restart the bare metal machine.
- *
* Restart the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -658,15 +587,13 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginRestart(String resourceGroupName, String bareMetalMachineName, Context context);
+ SyncPoller, OperationStatusResult> beginRestart(String resourceGroupName,
+ String bareMetalMachineName, Context context);
/**
- * Restart the bare metal machine.
- *
* Restart the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -674,14 +601,12 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner restart(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult restart(String resourceGroupName, String bareMetalMachineName);
/**
- * Restart the bare metal machine.
- *
* Restart the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -690,14 +615,12 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner restart(String resourceGroupName, String bareMetalMachineName, Context context);
+ OperationStatusResult restart(String resourceGroupName, String bareMetalMachineName, Context context);
/**
- * Run the command on the bare metal machine.
- *
* Run the command or the script on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -707,16 +630,13 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunCommand(
- String resourceGroupName, String bareMetalMachineName,
- BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters);
+ SyncPoller, OperationStatusResult> beginRunCommand(String resourceGroupName,
+ String bareMetalMachineName, BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters);
/**
- * Run the command on the bare metal machine.
- *
* Run the command or the script on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -727,16 +647,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunCommand(
- String resourceGroupName, String bareMetalMachineName,
- BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters, Context context);
+ SyncPoller, OperationStatusResult> beginRunCommand(String resourceGroupName,
+ String bareMetalMachineName, BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters,
+ Context context);
/**
- * Run the command on the bare metal machine.
- *
* Run the command or the script on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -746,15 +664,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runCommand(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runCommand(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters);
/**
- * Run the command on the bare metal machine.
- *
* Run the command or the script on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -765,15 +681,13 @@ OperationStatusResultInner runCommand(String resourceGroupName, String bareMetal
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runCommand(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runCommand(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunCommandParameters bareMetalMachineRunCommandParameters, Context context);
/**
- * Run data extraction for a bare metal machine.
- *
* Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -783,16 +697,14 @@ OperationStatusResultInner runCommand(String resourceGroupName, String bareMetal
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunDataExtracts(
- String resourceGroupName, String bareMetalMachineName,
+ SyncPoller, OperationStatusResult> beginRunDataExtracts(String resourceGroupName,
+ String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters);
/**
- * Run data extraction for a bare metal machine.
- *
* Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -803,16 +715,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunDataExtracts(
- String resourceGroupName, String bareMetalMachineName,
+ SyncPoller, OperationStatusResult> beginRunDataExtracts(String resourceGroupName,
+ String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, Context context);
/**
- * Run data extraction for a bare metal machine.
- *
* Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -822,15 +732,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runDataExtracts(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runDataExtracts(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters);
/**
- * Run data extraction for a bare metal machine.
- *
* Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command
* execution results and the command exit code can be retrieved from the operation status API once available.
*
@@ -841,15 +749,13 @@ OperationStatusResultInner runDataExtracts(String resourceGroupName, String bare
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runDataExtracts(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runDataExtracts(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsParameters, Context context);
/**
- * Run restricted data extraction for a bare metal machine.
- *
* Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with
* the command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -860,16 +766,14 @@ OperationStatusResultInner runDataExtracts(String resourceGroupName, String bare
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunDataExtractsRestricted(
+ SyncPoller, OperationStatusResult> beginRunDataExtractsRestricted(
String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters);
/**
- * Run restricted data extraction for a bare metal machine.
- *
* Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with
* the command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -881,16 +785,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunDataExtractsRestricted(
+ SyncPoller, OperationStatusResult> beginRunDataExtractsRestricted(
String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, Context context);
/**
- * Run restricted data extraction for a bare metal machine.
- *
* Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with
* the command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -901,15 +803,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runDataExtractsRestricted(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runDataExtractsRestricted(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters);
/**
- * Run restricted data extraction for a bare metal machine.
- *
* Run one or more restricted data extractions on the provided bare metal machine. The URL to storage account with
* the command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -921,15 +821,13 @@ OperationStatusResultInner runDataExtractsRestricted(String resourceGroupName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runDataExtractsRestricted(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runDataExtractsRestricted(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunDataExtractsParameters bareMetalMachineRunDataExtractsRestrictedParameters, Context context);
/**
- * Run read-only commands against a bare metal machine.
- *
* Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the
* command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -940,16 +838,14 @@ OperationStatusResultInner runDataExtractsRestricted(String resourceGroupName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunReadCommands(
- String resourceGroupName, String bareMetalMachineName,
+ SyncPoller, OperationStatusResult> beginRunReadCommands(String resourceGroupName,
+ String bareMetalMachineName,
BareMetalMachineRunReadCommandsParameters bareMetalMachineRunReadCommandsParameters);
/**
- * Run read-only commands against a bare metal machine.
- *
* Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the
* command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -961,16 +857,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginRunReadCommands(
- String resourceGroupName, String bareMetalMachineName,
+ SyncPoller, OperationStatusResult> beginRunReadCommands(String resourceGroupName,
+ String bareMetalMachineName,
BareMetalMachineRunReadCommandsParameters bareMetalMachineRunReadCommandsParameters, Context context);
/**
- * Run read-only commands against a bare metal machine.
- *
* Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the
* command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -981,15 +875,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runReadCommands(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunReadCommandsParameters bareMetalMachineRunReadCommandsParameters);
/**
- * Run read-only commands against a bare metal machine.
- *
* Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the
* command execution results and the command exit code can be retrieved from the operation status API once
* available.
@@ -1001,15 +893,13 @@ OperationStatusResultInner runReadCommands(String resourceGroupName, String bare
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner runReadCommands(String resourceGroupName, String bareMetalMachineName,
+ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetalMachineName,
BareMetalMachineRunReadCommandsParameters bareMetalMachineRunReadCommandsParameters, Context context);
/**
- * Start the bare metal machine.
- *
* Start the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1017,15 +907,13 @@ OperationStatusResultInner runReadCommands(String resourceGroupName, String bare
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginStart(String resourceGroupName,
+ SyncPoller, OperationStatusResult> beginStart(String resourceGroupName,
String bareMetalMachineName);
/**
- * Start the bare metal machine.
- *
* Start the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1034,15 +922,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginStart(String resourceGroupName,
+ SyncPoller, OperationStatusResult> beginStart(String resourceGroupName,
String bareMetalMachineName, Context context);
/**
- * Start the bare metal machine.
- *
* Start the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1050,14 +936,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner start(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult start(String resourceGroupName, String bareMetalMachineName);
/**
- * Start the bare metal machine.
- *
* Start the provided bare metal machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1066,14 +950,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner start(String resourceGroupName, String bareMetalMachineName, Context context);
+ OperationStatusResult start(String resourceGroupName, String bareMetalMachineName, Context context);
/**
- * Uncordon the bare metal machine.
- *
* Uncordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1081,15 +963,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginUncordon(String resourceGroupName, String bareMetalMachineName);
+ SyncPoller, OperationStatusResult> beginUncordon(String resourceGroupName,
+ String bareMetalMachineName);
/**
- * Uncordon the bare metal machine.
- *
* Uncordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1098,15 +978,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginUncordon(String resourceGroupName, String bareMetalMachineName, Context context);
+ SyncPoller, OperationStatusResult> beginUncordon(String resourceGroupName,
+ String bareMetalMachineName, Context context);
/**
- * Uncordon the bare metal machine.
- *
* Uncordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1114,14 +992,12 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner uncordon(String resourceGroupName, String bareMetalMachineName);
+ OperationStatusResult uncordon(String resourceGroupName, String bareMetalMachineName);
/**
- * Uncordon the bare metal machine.
- *
* Uncordon the provided bare metal machine's Kubernetes node.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1130,8 +1006,8 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner uncordon(String resourceGroupName, String bareMetalMachineName, Context context);
+ OperationStatusResult uncordon(String resourceGroupName, String bareMetalMachineName, Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java
index bfa6fd9b2f68..d0a6c5e406c7 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.BmcKeySetPatchParameters;
/**
@@ -20,45 +19,6 @@
*/
public interface BmcKeySetsClient {
/**
- * List baseboard management controller key sets of the cluster.
- *
- * Get a list of baseboard management controller key sets for the provided cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of baseboard management controller key sets for the provided cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName);
-
- /**
- * List baseboard management controller key sets of the cluster.
- *
- * Get a list of baseboard management controller key sets for the provided cluster.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param clusterName The name of the cluster.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of baseboard management controller key sets for the provided cluster as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCluster(String resourceGroupName, String clusterName, Integer top,
- String skipToken, Context context);
-
- /**
- * Retrieve the baseboard management controller key set of the cluster.
- *
* Get baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -75,8 +35,6 @@ Response getWithResponse(String resourceGroupName, String cluste
Context context);
/**
- * Retrieve the baseboard management controller key set of the cluster.
- *
* Get baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -91,8 +49,6 @@ Response getWithResponse(String resourceGroupName, String cluste
BmcKeySetInner get(String resourceGroupName, String clusterName, String bmcKeySetName);
/**
- * Create or update the baseboard management controller key set of the cluster.
- *
* Create a new baseboard management controller key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -109,8 +65,6 @@ SyncPoller, BmcKeySetInner> beginCreateOrUpdate(Strin
String clusterName, String bmcKeySetName, BmcKeySetInner bmcKeySetParameters);
/**
- * Create or update the baseboard management controller key set of the cluster.
- *
* Create a new baseboard management controller key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -133,8 +87,6 @@ SyncPoller, BmcKeySetInner> beginCreateOrUpdate(Strin
String ifNoneMatch, Context context);
/**
- * Create or update the baseboard management controller key set of the cluster.
- *
* Create a new baseboard management controller key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -151,8 +103,6 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri
BmcKeySetInner bmcKeySetParameters);
/**
- * Create or update the baseboard management controller key set of the cluster.
- *
* Create a new baseboard management controller key set or update the existing one for the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -174,9 +124,8 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri
BmcKeySetInner bmcKeySetParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the baseboard management controller key set of the cluster.
- *
- * Delete the baseboard management controller key set of the provided cluster.
+ * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
+ * associated with it. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -184,16 +133,15 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName, String bmcKeySetName);
+ SyncPoller, BmcKeySetInner> beginUpdate(String resourceGroupName, String clusterName,
+ String bmcKeySetName);
/**
- * Delete the baseboard management controller key set of the cluster.
- *
- * Delete the baseboard management controller key set of the provided cluster.
+ * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
+ * associated with it. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -202,20 +150,21 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bmcKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName, String bmcKeySetName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, BmcKeySetInner> beginUpdate(String resourceGroupName, String clusterName,
+ String bmcKeySetName, String ifMatch, String ifNoneMatch, BmcKeySetPatchParameters bmcKeySetUpdateParameters,
+ Context context);
/**
- * Delete the baseboard management controller key set of the cluster.
- *
- * Delete the baseboard management controller key set of the provided cluster.
+ * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
+ * associated with it. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -223,15 +172,14 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName);
+ BmcKeySetInner update(String resourceGroupName, String clusterName, String bmcKeySetName);
/**
- * Delete the baseboard management controller key set of the cluster.
- *
- * Delete the baseboard management controller key set of the provided cluster.
+ * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
+ * associated with it. Properties and tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -240,21 +188,19 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param bmcKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName,
- String ifMatch, String ifNoneMatch, Context context);
+ BmcKeySetInner update(String resourceGroupName, String clusterName, String bmcKeySetName, String ifMatch,
+ String ifNoneMatch, BmcKeySetPatchParameters bmcKeySetUpdateParameters, Context context);
/**
- * Patch baseboard management controller key set of the cluster.
- *
- * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
- * associated with it. Properties and tag updates can be done independently.
+ * Delete the baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -262,17 +208,13 @@ OperationStatusResultInner delete(String resourceGroupName, String clusterName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bmcKeySet represents the baseboard management controller key set.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BmcKeySetInner> beginUpdate(String resourceGroupName, String clusterName,
- String bmcKeySetName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName);
/**
- * Patch baseboard management controller key set of the cluster.
- *
- * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
- * associated with it. Properties and tag updates can be done independently.
+ * Delete the baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -281,23 +223,18 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bmcKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of bmcKeySet represents the baseboard management controller key set.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, BmcKeySetInner> beginUpdate(String resourceGroupName, String clusterName,
- String bmcKeySetName, String ifMatch, String ifNoneMatch, BmcKeySetPatchParameters bmcKeySetUpdateParameters,
- Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName,
+ String ifMatch, String ifNoneMatch, Context context);
/**
- * Patch baseboard management controller key set of the cluster.
- *
- * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
- * associated with it. Properties and tag updates can be done independently.
+ * Delete the baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -305,16 +242,12 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BmcKeySetInner update(String resourceGroupName, String clusterName, String bmcKeySetName);
+ void delete(String resourceGroupName, String clusterName, String bmcKeySetName);
/**
- * Patch baseboard management controller key set of the cluster.
- *
- * Patch properties of baseboard management controller key set for the provided cluster, or update the tags
- * associated with it. Properties and tag updates can be done independently.
+ * Delete the baseboard management controller key set of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -323,14 +256,45 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param bmcKeySetUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return bmcKeySet represents the baseboard management controller key set.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BmcKeySetInner update(String resourceGroupName, String clusterName, String bmcKeySetName, String ifMatch,
- String ifNoneMatch, BmcKeySetPatchParameters bmcKeySetUpdateParameters, Context context);
+ void delete(String resourceGroupName, String clusterName, String bmcKeySetName, String ifMatch, String ifNoneMatch,
+ Context context);
+
+ /**
+ * Get a list of baseboard management controller key sets for the provided cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of baseboard management controller key sets for the provided cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName);
+
+ /**
+ * Get a list of baseboard management controller key sets for the provided cluster.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterName The name of the cluster.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of baseboard management controller key sets for the provided cluster as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByCluster(String resourceGroupName, String clusterName, Integer top,
+ String skipToken, Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java
index 73836f144196..f31b74c0c496 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,7 +12,6 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkPatchParameters;
/**
@@ -20,74 +19,6 @@
*/
public interface CloudServicesNetworksClient {
/**
- * List cloud services networks in the subscription.
- *
- * Get a list of cloud services networks in the provided subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cloud services networks in the provided subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List cloud services networks in the subscription.
- *
- * Get a list of cloud services networks in the provided subscription.
- *
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cloud services networks in the provided subscription as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, String skipToken, Context context);
-
- /**
- * List cloud services networks in the resource group.
- *
- * Get a list of cloud services networks in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cloud services networks in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List cloud services networks in the resource group.
- *
- * Get a list of cloud services networks in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cloud services networks in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
- String skipToken, Context context);
-
- /**
- * Retrieve the cloud services network.
- *
* Get properties of the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -103,8 +34,6 @@ Response getByResourceGroupWithResponse(String resour
String cloudServicesNetworkName, Context context);
/**
- * Retrieve the cloud services network.
- *
* Get properties of the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -118,8 +47,6 @@ Response getByResourceGroupWithResponse(String resour
CloudServicesNetworkInner getByResourceGroup(String resourceGroupName, String cloudServicesNetworkName);
/**
- * Create or update the cloud services network.
- *
* Create a new cloud services network or update the properties of the existing cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -128,8 +55,8 @@ Response getByResourceGroupWithResponse(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that
- * will be used by associated virtual machines or hybrid AKS clusters.
+ * @return the {@link SyncPoller} for polling of upon creation, the additional services that are provided by the
+ * platform will be allocated and represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate(
@@ -137,8 +64,6 @@ SyncPoller, CloudServicesNetworkInner> beg
CloudServicesNetworkInner cloudServicesNetworkParameters);
/**
- * Create or update the cloud services network.
- *
* Create a new cloud services network or update the properties of the existing cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -152,8 +77,8 @@ SyncPoller, CloudServicesNetworkInner> beg
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that
- * will be used by associated virtual machines or hybrid AKS clusters.
+ * @return the {@link SyncPoller} for polling of upon creation, the additional services that are provided by the
+ * platform will be allocated and represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate(
@@ -161,8 +86,6 @@ SyncPoller, CloudServicesNetworkInner> beg
CloudServicesNetworkInner cloudServicesNetworkParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Create or update the cloud services network.
- *
* Create a new cloud services network or update the properties of the existing cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -171,16 +94,14 @@ SyncPoller, CloudServicesNetworkInner> beg
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual
- * machines or hybrid AKS clusters.
+ * @return upon creation, the additional services that are provided by the platform will be allocated and
+ * represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName,
CloudServicesNetworkInner cloudServicesNetworkParameters);
/**
- * Create or update the cloud services network.
- *
* Create a new cloud services network or update the properties of the existing cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -194,33 +115,32 @@ CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudS
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual
- * machines or hybrid AKS clusters.
+ * @return upon creation, the additional services that are provided by the platform will be allocated and
+ * represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName,
CloudServicesNetworkInner cloudServicesNetworkParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the cloud services network.
- *
- * Delete the provided cloud services network.
+ * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
+ * tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of upon creation, the additional services that are provided by the
+ * platform will be allocated and represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
+ SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName,
String cloudServicesNetworkName);
/**
- * Delete the cloud services network.
- *
- * Delete the provided cloud services network.
+ * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
+ * tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
@@ -228,35 +148,37 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param cloudServicesNetworkUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of upon creation, the additional services that are provided by the
+ * platform will be allocated and represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String cloudServicesNetworkName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName,
+ String cloudServicesNetworkName, String ifMatch, String ifNoneMatch,
+ CloudServicesNetworkPatchParameters cloudServicesNetworkUpdateParameters, Context context);
/**
- * Delete the cloud services network.
- *
- * Delete the provided cloud services network.
+ * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
+ * tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return upon creation, the additional services that are provided by the platform will be allocated and
+ * represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName);
+ CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName);
/**
- * Delete the cloud services network.
- *
- * Delete the provided cloud services network.
+ * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
+ * tag updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
@@ -264,39 +186,33 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param cloudServicesNetworkUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return upon creation, the additional services that are provided by the platform will be allocated and
+ * represented in the status of this resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName, String ifMatch,
- String ifNoneMatch, Context context);
+ CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName, String ifMatch,
+ String ifNoneMatch, CloudServicesNetworkPatchParameters cloudServicesNetworkUpdateParameters, Context context);
/**
- * Patch the cloud services network.
- *
- * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
- * tag updates can be done independently.
+ * Delete the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that
- * will be used by associated virtual machines or hybrid AKS clusters.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName,
- String cloudServicesNetworkName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName);
/**
- * Patch the cloud services network.
- *
- * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
- * tag updates can be done independently.
+ * Delete the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
@@ -304,41 +220,30 @@ SyncPoller, CloudServicesNetworkInner> beg
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param cloudServicesNetworkUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that
- * will be used by associated virtual machines or hybrid AKS clusters.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName,
- String cloudServicesNetworkName, String ifMatch, String ifNoneMatch,
- CloudServicesNetworkPatchParameters cloudServicesNetworkUpdateParameters, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName,
+ String ifMatch, String ifNoneMatch, Context context);
/**
- * Patch the cloud services network.
- *
- * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
- * tag updates can be done independently.
+ * Delete the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual
- * machines or hybrid AKS clusters.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName);
+ void delete(String resourceGroupName, String cloudServicesNetworkName);
/**
- * Patch the cloud services network.
- *
- * Update properties of the provided cloud services network, or update the tags associated with it. Properties and
- * tag updates can be done independently.
+ * Delete the provided cloud services network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param cloudServicesNetworkName The name of the cloud services network.
@@ -346,15 +251,70 @@ SyncPoller, CloudServicesNetworkInner> beg
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param cloudServicesNetworkUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual
- * machines or hybrid AKS clusters.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName, String ifMatch,
- String ifNoneMatch, CloudServicesNetworkPatchParameters cloudServicesNetworkUpdateParameters, Context context);
+ void delete(String resourceGroupName, String cloudServicesNetworkName, String ifMatch, String ifNoneMatch,
+ Context context);
+
+ /**
+ * Get a list of cloud services networks in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cloud services networks in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of cloud services networks in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cloud services networks in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top,
+ String skipToken, Context context);
+
+ /**
+ * Get a list of cloud services networks in the provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cloud services networks in the provided subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of cloud services networks in the provided subscription.
+ *
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cloud services networks in the provided subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, String skipToken, Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java
index b4294ff812d0..613d633f643a 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,80 +12,15 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.ClusterManagerPatchParameters;
+import com.azure.resourcemanager.networkcloud.models.ClusterManagerUpdateRelayPrivateEndpointConnectionParameters;
+import com.azure.resourcemanager.networkcloud.models.OperationStatusResult;
/**
* An instance of this class provides access to all the operations defined in ClusterManagersClient.
*/
public interface ClusterManagersClient {
/**
- * List cluster managers in the subscription.
- *
- * Get a list of cluster managers in the provided subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List cluster managers in the subscription.
- *
- * Get a list of cluster managers in the provided subscription.
- *
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, String skipToken, Context context);
-
- /**
- * List cluster managers in the resource group.
- *
- * Get a list of cluster managers in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cluster managers in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List cluster managers in the resource group.
- *
- * Get a list of cluster managers in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of cluster managers in the provided resource group as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
- Context context);
-
- /**
- * Retrieve the cluster manager.
- *
* Get the properties of the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -101,8 +36,6 @@ Response getByResourceGroupWithResponse(String resourceGrou
Context context);
/**
- * Retrieve the cluster manager.
- *
* Get the properties of the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -116,8 +49,6 @@ Response getByResourceGroupWithResponse(String resourceGrou
ClusterManagerInner getByResourceGroup(String resourceGroupName, String clusterManagerName);
/**
- * Create or update the cluster manager.
- *
* Create a new cluster manager or update properties of the cluster manager if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -134,8 +65,6 @@ SyncPoller, ClusterManagerInner> beginCreateOrUp
String clusterManagerName, ClusterManagerInner clusterManagerParameters);
/**
- * Create or update the cluster manager.
- *
* Create a new cluster manager or update properties of the cluster manager if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -158,8 +87,6 @@ SyncPoller, ClusterManagerInner> beginCreateOrUp
Context context);
/**
- * Create or update the cluster manager.
- *
* Create a new cluster manager or update properties of the cluster manager if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -175,8 +102,6 @@ ClusterManagerInner createOrUpdate(String resourceGroupName, String clusterManag
ClusterManagerInner clusterManagerParameters);
/**
- * Create or update the cluster manager.
- *
* Create a new cluster manager or update properties of the cluster manager if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -197,8 +122,43 @@ ClusterManagerInner createOrUpdate(String resourceGroupName, String clusterManag
ClusterManagerInner clusterManagerParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the cluster manager.
+ * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties
+ * and tag updates can be done independently.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterManagerName The name of the cluster manager.
+ * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
+ * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
+ * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
+ * resource. Other values will result in error from server as they are not supported.
+ * @param clusterManagerUpdateParameters The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String clusterManagerName,
+ String ifMatch, String ifNoneMatch, ClusterManagerPatchParameters clusterManagerUpdateParameters,
+ Context context);
+
+ /**
+ * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties
+ * and tag updates can be done independently.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterManagerName The name of the cluster manager.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return clusterManager represents a control-plane to manage one or more on-premises clusters.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ClusterManagerInner update(String resourceGroupName, String clusterManagerName);
+
+ /**
* Delete the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -206,15 +166,12 @@ ClusterManagerInner createOrUpdate(String resourceGroupName, String clusterManag
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterManagerName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName);
/**
- * Delete the cluster manager.
- *
* Delete the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -227,15 +184,13 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterManagerName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName, String ifMatch,
+ String ifNoneMatch, Context context);
/**
- * Delete the cluster manager.
- *
* Delete the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -243,14 +198,11 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName);
+ void delete(String resourceGroupName, String clusterManagerName);
/**
- * Delete the cluster manager.
- *
* Delete the provided cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -263,50 +215,134 @@ SyncPoller, OperationStatusResultInner> b
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName, String ifMatch,
- String ifNoneMatch, Context context);
+ void delete(String resourceGroupName, String clusterManagerName, String ifMatch, String ifNoneMatch,
+ Context context);
/**
- * Patch the cluster manager.
+ * Get a list of cluster managers in the provided resource group.
*
- * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties
- * and tag updates can be done independently.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cluster managers in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of cluster managers in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cluster managers in the provided resource group as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
+ Context context);
+
+ /**
+ * Get a list of cluster managers in the provided subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of cluster managers in the provided subscription.
+ *
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
+ * This is used for paging through large result sets.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, String skipToken, Context context);
+
+ /**
+ * Update the private endpoint connection for the Azure Relay namespace managed by the specified cluster manager.
+ * Use this operation to approve or reject a pending private endpoint connection request for the relay namespace
+ * managed by the cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterManagerName The name of the cluster manager.
- * @param ifMatch The ETag of the transformation. Omit this value to always overwrite the current resource. Specify
- * the last-seen ETag value to prevent accidentally overwriting concurrent changes.
- * @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
- * resource. Other values will result in error from server as they are not supported.
- * @param clusterManagerUpdateParameters The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OperationStatusResult>
+ beginUpdateRelayPrivateEndpointConnection(String resourceGroupName, String clusterManagerName);
+
+ /**
+ * Update the private endpoint connection for the Azure Relay namespace managed by the specified cluster manager.
+ * Use this operation to approve or reject a pending private endpoint connection request for the relay namespace
+ * managed by the cluster manager.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterManagerName The name of the cluster manager.
+ * @param clusterManagerUpdateRelayPrivateEndpointConnectionParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with
- * {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String clusterManagerName,
- String ifMatch, String ifNoneMatch, ClusterManagerPatchParameters clusterManagerUpdateParameters,
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OperationStatusResult> beginUpdateRelayPrivateEndpointConnection(
+ String resourceGroupName, String clusterManagerName,
+ ClusterManagerUpdateRelayPrivateEndpointConnectionParameters clusterManagerUpdateRelayPrivateEndpointConnectionParameters,
Context context);
/**
- * Patch the cluster manager.
+ * Update the private endpoint connection for the Azure Relay namespace managed by the specified cluster manager.
+ * Use this operation to approve or reject a pending private endpoint connection request for the relay namespace
+ * managed by the cluster manager.
*
- * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties
- * and tag updates can be done independently.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param clusterManagerName The name of the cluster manager.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResult updateRelayPrivateEndpointConnection(String resourceGroupName, String clusterManagerName);
+
+ /**
+ * Update the private endpoint connection for the Azure Relay namespace managed by the specified cluster manager.
+ * Use this operation to approve or reject a pending private endpoint connection request for the relay namespace
+ * managed by the cluster manager.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterManagerName The name of the cluster manager.
+ * @param clusterManagerUpdateRelayPrivateEndpointConnectionParameters The request body.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return clusterManager represents a control-plane to manage one or more on-premises clusters.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterManagerInner update(String resourceGroupName, String clusterManagerName);
+ OperationStatusResult updateRelayPrivateEndpointConnection(String resourceGroupName, String clusterManagerName,
+ ClusterManagerUpdateRelayPrivateEndpointConnectionParameters clusterManagerUpdateRelayPrivateEndpointConnectionParameters,
+ Context context);
}
diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java
index b9a61f1f99d5..25c59f38e1f1 100644
--- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java
+++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.networkcloud.fluent;
@@ -12,82 +12,20 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner;
-import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters;
import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters;
+import com.azure.resourcemanager.networkcloud.models.ClusterInspectParameters;
import com.azure.resourcemanager.networkcloud.models.ClusterPatchParameters;
+import com.azure.resourcemanager.networkcloud.models.ClusterRotateCredentialParameters;
import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters;
import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters;
+import com.azure.resourcemanager.networkcloud.models.OperationStatusResult;
/**
* An instance of this class provides access to all the operations defined in ClustersClient.
*/
public interface ClustersClient {
/**
- * List clusters in the subscription.
- *
- * Get a list of clusters in the provided subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of clusters in the provided subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List clusters in the subscription.
- *
- * Get a list of clusters in the provided subscription.
- *
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of clusters in the provided subscription as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer top, String skipToken, Context context);
-
- /**
- * List clusters in the resource group.
- *
- * Get a list of clusters in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of clusters in the provided resource group as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List clusters in the resource group.
- *
- * Get a list of clusters in the provided resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param skipToken The opaque token that the server returns to indicate where to continue listing resources from.
- * This is used for paging through large result sets.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of clusters in the provided resource group as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer top, String skipToken,
- Context context);
-
- /**
- * Retrieve the cluster.
- *
* Get properties of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -103,8 +41,6 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
Context context);
/**
- * Retrieve the cluster.
- *
* Get properties of the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -118,8 +54,6 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
/**
- * Create or update the cluster.
- *
* Create a new cluster or update the properties of the cluster if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -135,8 +69,6 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
ClusterInner clusterParameters);
/**
- * Create or update the cluster.
- *
* Create a new cluster or update the properties of the cluster if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -157,8 +89,6 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
ClusterInner clusterParameters, String ifMatch, String ifNoneMatch, Context context);
/**
- * Create or update the cluster.
- *
* Create a new cluster or update the properties of the cluster if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -173,8 +103,6 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re
ClusterInner createOrUpdate(String resourceGroupName, String clusterName, ClusterInner clusterParameters);
/**
- * Create or update the cluster.
- *
* Create a new cluster or update the properties of the cluster if it exists.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -195,25 +123,22 @@ ClusterInner createOrUpdate(String resourceGroupName, String clusterName, Cluste
String ifMatch, String ifNoneMatch, Context context);
/**
- * Delete the cluster.
- *
- * Delete the provided cluster.
+ * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
+ * updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName);
/**
- * Delete the cluster.
- *
- * Delete the provided cluster.
+ * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
+ * updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -221,35 +146,34 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param clusterUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the current status of an async operation.
+ * @return the {@link SyncPoller} for polling of cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName,
- String clusterName, String ifMatch, String ifNoneMatch, Context context);
+ SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
+ String ifMatch, String ifNoneMatch, ClusterPatchParameters clusterUpdateParameters, Context context);
/**
- * Delete the cluster.
- *
- * Delete the provided cluster.
+ * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
+ * updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName);
+ ClusterInner update(String resourceGroupName, String clusterName);
/**
- * Delete the cluster.
- *
- * Delete the provided cluster.
+ * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
+ * updates can be done independently.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -257,37 +181,32 @@ SyncPoller, OperationStatusResultInner> b
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
+ * @param clusterUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the current status of an async operation.
+ * @return cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- OperationStatusResultInner delete(String resourceGroupName, String clusterName, String ifMatch, String ifNoneMatch,
- Context context);
+ ClusterInner update(String resourceGroupName, String clusterName, String ifMatch, String ifNoneMatch,
+ ClusterPatchParameters clusterUpdateParameters, Context context);
/**
- * Patch the cluster.
- *
- * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
- * updates can be done independently.
+ * Delete the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster represents the on-premises Network Cloud cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName);
/**
- * Patch the cluster.
- *
- * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
- * updates can be done independently.
+ * Delete the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -295,38 +214,30 @@ OperationStatusResultInner delete(String resourceGroupName, String clusterName,
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param clusterUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of cluster represents the on-premises Network Cloud cluster.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName,
- String ifMatch, String ifNoneMatch, ClusterPatchParameters clusterUpdateParameters, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String ifMatch,
+ String ifNoneMatch, Context context);
/**
- * Patch the cluster.
- *
- * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
- * updates can be done independently.
+ * Delete the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(String resourceGroupName, String clusterName);
+ void delete(String resourceGroupName, String clusterName);
/**
- * Patch the cluster.
- *
- * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag
- * updates can be done independently.
+ * Delete the provided cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
@@ -334,20 +245,69 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr
* the last-seen ETag value to prevent accidentally overwriting concurrent changes.
* @param ifNoneMatch Set to '*' to allow a new record set to be created, but to prevent updating an existing
* resource. Other values will result in error from server as they are not supported.
- * @param clusterUpdateParameters The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cluster represents the on-premises Network Cloud cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner update(String resourceGroupName, String clusterName, String ifMatch, String ifNoneMatch,
- ClusterPatchParameters clusterUpdateParameters, Context context);
+ void delete(String resourceGroupName, String clusterName, String ifMatch, String ifNoneMatch, Context context);
+
+ /**
+ * Get a list of clusters in the provided resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of clusters in the provided resource group as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable