diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
index 2613ba9e9ea4..bddc4b2a7bd1 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
@@ -1,14 +1,929 @@
# Release History
-## 1.3.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-03-05)
-### Features Added
+- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. This Typespec represents the Desktop Virtualization API interfaces. Package tag package-preview-2024-08. 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.ResourceIdentityType` was removed
+
+#### `models.ResourceModelWithAllowedPropertySetPlan` was removed
+
+#### `models.ResourceProviderOperationList` was removed
+
+#### `models.ResourceModelWithAllowedPropertySet` was removed
+
+#### `models.AppAttachPackageProperties` was removed
+
+#### `models.Identity` was removed
+
+#### `models.ScalingScheduleDaysOfWeekItem` was removed
+
+#### `models.ResourceModelWithAllowedPropertySetIdentity` was removed
+
+#### `models.ResourceModelWithAllowedPropertySetSku` was removed
+
+#### `models.ScalingPlanPersonalSchedule$DefinitionStages` was modified
+
+* Required stage 2, 3, 4, 5, 6 was added
+
+#### `models.ScalingPlanPooledSchedule$DefinitionStages` was modified
+
+* Required stage 2, 3, 4, 5, 6, 7, 8 was added
+
+#### `models.ScalingPlanPooledSchedule$Definition` was modified
+
+* `withRampDownCapacityThresholdPct(java.lang.Integer)` was removed
+* `withRampUpCapacityThresholdPct(java.lang.Integer)` was removed
+
+#### `models.ScalingPlanPooledSchedule$Update` was modified
+
+* `withRampDownStartTime(models.Time)` was removed
+* `withRampUpCapacityThresholdPct(java.lang.Integer)` was removed
+* `withRampUpLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withRampDownMinimumHostsPct(java.lang.Integer)` was removed
+* `withPeakLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withOffPeakLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withRampDownNotificationMessage(java.lang.String)` was removed
+* `withPeakStartTime(models.Time)` was removed
+* `withRampDownForceLogoffUsers(java.lang.Boolean)` was removed
+* `withDaysOfWeek(java.util.List)` was removed
+* `withRampDownWaitTimeMinutes(java.lang.Integer)` was removed
+* `withRampDownLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withRampUpStartTime(models.Time)` was removed
+* `withRampUpMinimumHostsPct(java.lang.Integer)` was removed
+* `withRampDownStopHostsWhen(models.StopHostsWhen)` was removed
+* `withOffPeakStartTime(models.Time)` was removed
+* `withRampDownCapacityThresholdPct(java.lang.Integer)` was removed
+
+#### `models.HostPool$Update` was modified
+
+* `withDescription(java.lang.String)` was removed
+* `withSsoClientId(java.lang.String)` was removed
+* `withAgentUpdate(models.AgentUpdatePatchProperties)` was removed
+* `withMaxSessionLimit(java.lang.Integer)` was removed
+* `withRegistrationInfo(models.RegistrationInfoPatch)` was removed
+* `withSsoadfsAuthority(java.lang.String)` was removed
+* `withVmTemplate(java.lang.String)` was removed
+* `withStartVMOnConnect(java.lang.Boolean)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withSsoSecretType(models.SsoSecretType)` was removed
+* `withPersonalDesktopAssignmentType(models.PersonalDesktopAssignmentType)` was removed
+* `withCustomRdpProperty(java.lang.String)` was removed
+* `withValidationEnvironment(java.lang.Boolean)` was removed
+* `withPublicNetworkAccess(models.HostpoolPublicNetworkAccess)` was removed
+* `withPreferredAppGroupType(models.PreferredAppGroupType)` was removed
+* `withRing(java.lang.Integer)` was removed
+* `withSsoClientSecretKeyVaultPath(java.lang.String)` was removed
+* `withLoadBalancerType(models.LoadBalancerType)` was removed
+
+#### `models.ScalingPlan$Update` was modified
+
+* `withExclusionTag(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withSchedules(java.util.List)` was removed
+* `withHostPoolReferences(java.util.List)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withTimeZone(java.lang.String)` was removed
+
+#### `models.StartMenuItem` was modified
+
+* `iconPath()` was removed
+* `appAlias()` was removed
+* `filePath()` was removed
+* `iconIndex()` was removed
+* `commandLineArguments()` was removed
+
+#### `models.WorkspacePatch` was modified
+
+* `description()` was removed
+* `applicationGroupReferences()` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `friendlyName()` was removed
+* `publicNetworkAccess()` was removed
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withApplicationGroupReferences(java.util.List)` was removed
+
+#### `models.MsixPackage$Update` was modified
+
+* `withDisplayName(java.lang.String)` was removed
+* `withIsActive(java.lang.Boolean)` was removed
+* `withIsRegularRegistration(java.lang.Boolean)` was removed
+
+#### `models.Workspace` was modified
+
+* `models.ResourceModelWithAllowedPropertySetIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `models.ResourceModelWithAllowedPropertySetSku sku()` -> `models.Sku sku()`
+* `models.ResourceModelWithAllowedPropertySetPlan plan()` -> `models.Plan plan()`
+
+#### `models.DesktopPatch` was modified
+
+* `friendlyName()` was removed
+* `tags()` was removed
+* `description()` was removed
+* `withTags(java.util.Map)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+
+#### `models.Application$Update` was modified
+
+* `withCommandLineArguments(java.lang.String)` was removed
+* `withTags(java.util.Map)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withApplicationType(models.RemoteApplicationType)` was removed
+* `withMsixPackageFamilyName(java.lang.String)` was removed
+* `withFilePath(java.lang.String)` was removed
+* `withShowInPortal(java.lang.Boolean)` was removed
+* `withIconIndex(java.lang.Integer)` was removed
+* `withIconPath(java.lang.String)` was removed
+* `withMsixPackageApplicationId(java.lang.String)` was removed
+* `withCommandLineSetting(models.CommandLineSetting)` was removed
+
+#### `models.ApplicationGroup` was modified
+
+* `models.ResourceModelWithAllowedPropertySetIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `models.ResourceModelWithAllowedPropertySetPlan plan()` -> `models.Plan plan()`
+* `models.ResourceModelWithAllowedPropertySetSku sku()` -> `models.Sku sku()`
+
+#### `models.HostPool` was modified
+
+* `models.ResourceModelWithAllowedPropertySetSku sku()` -> `models.Sku sku()`
+* `models.ResourceModelWithAllowedPropertySetIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `models.ResourceModelWithAllowedPropertySetPlan plan()` -> `models.Plan plan()`
+
+#### `models.HostPoolPatch` was modified
+
+* `withSsoSecretType(models.SsoSecretType)` was removed
+* `ssoadfsAuthority()` was removed
+* `withSsoClientSecretKeyVaultPath(java.lang.String)` was removed
+* `ssoClientSecretKeyVaultPath()` was removed
+* `publicNetworkAccess()` was removed
+* `vmTemplate()` was removed
+* `withMaxSessionLimit(java.lang.Integer)` was removed
+* `description()` was removed
+* `registrationInfo()` was removed
+* `loadBalancerType()` was removed
+* `startVMOnConnect()` was removed
+* `withPreferredAppGroupType(models.PreferredAppGroupType)` was removed
+* `customRdpProperty()` was removed
+* `withRegistrationInfo(models.RegistrationInfoPatch)` was removed
+* `friendlyName()` was removed
+* `withCustomRdpProperty(java.lang.String)` was removed
+* `preferredAppGroupType()` was removed
+* `withStartVMOnConnect(java.lang.Boolean)` was removed
+* `ring()` was removed
+* `withRing(java.lang.Integer)` was removed
+* `agentUpdate()` was removed
+* `ssoSecretType()` was removed
+* `withSsoadfsAuthority(java.lang.String)` was removed
+* `ssoClientId()` was removed
+* `withAgentUpdate(models.AgentUpdatePatchProperties)` was removed
+* `withValidationEnvironment(java.lang.Boolean)` was removed
+* `withDescription(java.lang.String)` was removed
+* `maxSessionLimit()` was removed
+* `withSsoClientId(java.lang.String)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withPersonalDesktopAssignmentType(models.PersonalDesktopAssignmentType)` was removed
+* `withPublicNetworkAccess(models.HostpoolPublicNetworkAccess)` was removed
+* `withVmTemplate(java.lang.String)` was removed
+* `personalDesktopAssignmentType()` was removed
+* `validationEnvironment()` was removed
+* `withLoadBalancerType(models.LoadBalancerType)` was removed
+
+#### `models.AppAttachPackage$Definition` was modified
+
+* `withProperties(models.AppAttachPackageProperties)` was removed
+
+#### `models.PrivateEndpointConnections` was modified
+
+* `updateByHostPool(java.lang.String,java.lang.String,java.lang.String,models.PrivateEndpointConnection)` was removed
+* `updateByWorkspaceWithResponse(java.lang.String,java.lang.String,java.lang.String,models.PrivateEndpointConnection,com.azure.core.util.Context)` was removed
+* `updateByWorkspace(java.lang.String,java.lang.String,java.lang.String,models.PrivateEndpointConnection)` was removed
+* `updateByHostPoolWithResponse(java.lang.String,java.lang.String,java.lang.String,models.PrivateEndpointConnection,com.azure.core.util.Context)` was removed
+
+#### `models.ScalingPlanPersonalSchedule$Update` was modified
+
+* `withPeakActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withRampDownMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `withDaysOfWeek(java.util.List)` was removed
+* `withRampUpStartTime(models.Time)` was removed
+* `withRampUpStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withRampUpAutoStartHosts(models.StartupBehavior)` was removed
+* `withOffPeakMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `withRampDownActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withOffPeakStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withOffPeakMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withOffPeakActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withPeakActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withPeakStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withRampDownMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withRampUpMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withPeakMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `withRampDownActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withPeakMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withPeakStartTime(models.Time)` was removed
+* `withOffPeakStartTime(models.Time)` was removed
+* `withRampUpActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withRampDownStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withRampDownStartTime(models.Time)` was removed
+* `withOffPeakActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withRampUpActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withRampUpMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+
+#### `models.PrivateLinkResource` was modified
+
+* `requiredZoneNames()` was removed
+* `groupId()` was removed
+* `requiredMembers()` was removed
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `privateEndpoint()` was removed
+* `withPrivateLinkServiceConnectionState(models.PrivateLinkServiceConnectionState)` was removed
+* `withPrivateEndpoint(models.PrivateEndpoint)` was removed
+* `provisioningState()` was removed
+* `groupIds()` was removed
+* `privateLinkServiceConnectionState()` was removed
+
+#### `models.AppAttachPackages` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteByResourceGroup(java.lang.String,java.lang.String)` was removed
+* `deleteByResourceGroupWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.ScalingPlanPooledSchedulePatch` was modified
+
+* `rampUpLoadBalancingAlgorithm()` was removed
+* `withPeakStartTime(models.Time)` was removed
+* `rampDownStopHostsWhen()` was removed
+* `withRampUpMinimumHostsPct(java.lang.Integer)` was removed
+* `rampDownNotificationMessage()` was removed
+* `rampDownStartTime()` was removed
+* `withRampDownStopHostsWhen(models.StopHostsWhen)` was removed
+* `withDaysOfWeek(java.util.List)` was removed
+* `rampUpMinimumHostsPct()` was removed
+* `rampDownWaitTimeMinutes()` was removed
+* `peakStartTime()` was removed
+* `peakLoadBalancingAlgorithm()` was removed
+* `withOffPeakLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withPeakLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withRampDownForceLogoffUsers(java.lang.Boolean)` was removed
+* `withRampUpStartTime(models.Time)` was removed
+* `withRampDownLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `rampDownCapacityThresholdPct()` was removed
+* `withRampDownNotificationMessage(java.lang.String)` was removed
+* `withRampDownStartTime(models.Time)` was removed
+* `rampDownMinimumHostsPct()` was removed
+* `withRampDownWaitTimeMinutes(java.lang.Integer)` was removed
+* `rampUpStartTime()` was removed
+* `withRampUpLoadBalancingAlgorithm(models.SessionHostLoadBalancingAlgorithm)` was removed
+* `withRampUpCapacityThresholdPct(java.lang.Integer)` was removed
+* `offPeakStartTime()` was removed
+* `withOffPeakStartTime(models.Time)` was removed
+* `offPeakLoadBalancingAlgorithm()` was removed
+* `rampDownForceLogoffUsers()` was removed
+* `withRampDownCapacityThresholdPct(java.lang.Integer)` was removed
+* `rampUpCapacityThresholdPct()` was removed
+* `rampDownLoadBalancingAlgorithm()` was removed
+* `withRampDownMinimumHostsPct(java.lang.Integer)` was removed
+* `daysOfWeek()` was removed
+
+#### `models.SessionHostPatch` was modified
+
+* `assignedUser()` was removed
+* `withAllowNewSession(java.lang.Boolean)` was removed
+* `withAssignedUser(java.lang.String)` was removed
+* `friendlyName()` was removed
+* `allowNewSession()` was removed
+* `withFriendlyName(java.lang.String)` was removed
+
+#### `models.MsixPackagePatch` was modified
+
+* `isActive()` was removed
+* `withIsRegularRegistration(java.lang.Boolean)` was removed
+* `displayName()` was removed
+* `withDisplayName(java.lang.String)` was removed
+* `withIsActive(java.lang.Boolean)` was removed
+* `isRegularRegistration()` was removed
+
+#### `models.ApplicationGroup$Definition` was modified
+
+* `withPlan(models.ResourceModelWithAllowedPropertySetPlan)` was removed
+* `withIdentity(models.ResourceModelWithAllowedPropertySetIdentity)` was removed
+* `withSku(models.ResourceModelWithAllowedPropertySetSku)` was removed
+
+#### `models.ApplicationGroupPatch` was modified
+
+* `withShowInFeed(java.lang.Boolean)` was removed
+* `description()` was removed
+* `showInFeed()` was removed
+* `withDescription(java.lang.String)` was removed
+* `friendlyName()` was removed
+* `withFriendlyName(java.lang.String)` was removed
+
+#### `models.HostPool$Definition` was modified
+
+* `withSku(models.ResourceModelWithAllowedPropertySetSku)` was removed
+* `withIdentity(models.ResourceModelWithAllowedPropertySetIdentity)` was removed
+* `withPlan(models.ResourceModelWithAllowedPropertySetPlan)` was removed
+
+#### `models.ScalingPlanPooledSchedule` was modified
+
+* `java.lang.Integer rampDownCapacityThresholdPct()` -> `int rampDownCapacityThresholdPct()`
+* `java.lang.Integer rampUpCapacityThresholdPct()` -> `int rampUpCapacityThresholdPct()`
+
+#### `models.ScalingPlanPatch` was modified
+
+* `withDescription(java.lang.String)` was removed
+* `withSchedules(java.util.List)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withExclusionTag(java.lang.String)` was removed
+* `schedules()` was removed
+* `withTimeZone(java.lang.String)` was removed
+* `friendlyName()` was removed
+* `timeZone()` was removed
+* `exclusionTag()` was removed
+* `hostPoolReferences()` was removed
+* `description()` was removed
+* `withHostPoolReferences(java.util.List)` was removed
+
+#### `models.Workspace$Update` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withApplicationGroupReferences(java.util.List)` was removed
+
+#### `models.AppAttachPackage` was modified
+
+* `properties()` was removed
+
+#### `models.ExpandMsixImage` was modified
+
+* `packageAlias()` was removed
+* `certificateName()` was removed
+* `imagePath()` was removed
+* `isRegularRegistration()` was removed
+* `lastUpdated()` was removed
+* `packageName()` was removed
+* `certificateExpiry()` was removed
+* `isActive()` was removed
+* `packageApplications()` was removed
+* `packageRelativePath()` was removed
+* `packageFullName()` was removed
+* `displayName()` was removed
+* `packageDependencies()` was removed
+* `version()` was removed
+* `packageFamilyName()` was removed
+
+#### `models.SessionHosts` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Boolean,java.lang.Integer,com.azure.core.util.Context)` was removed
+
+#### `models.ScalingPlanPersonalSchedulePatch` was modified
+
+* `peakActionOnLogoff()` was removed
+* `peakStartVMOnConnect()` was removed
+* `peakStartTime()` was removed
+* `withOffPeakActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withRampUpMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withRampDownStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `rampUpStartTime()` was removed
+* `withPeakActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withRampDownActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `offPeakStartVMOnConnect()` was removed
+* `withRampUpActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `withOffPeakActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `withRampUpStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withPeakMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `withOffPeakStartTime(models.Time)` was removed
+* `withRampDownStartTime(models.Time)` was removed
+* `rampDownStartTime()` was removed
+* `withOffPeakMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `offPeakActionOnDisconnect()` was removed
+* `rampDownMinutesToWaitOnDisconnect()` was removed
+* `rampDownStartVMOnConnect()` was removed
+* `rampUpActionOnLogoff()` was removed
+* `rampUpStartVMOnConnect()` was removed
+* `withRampUpMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `peakActionOnDisconnect()` was removed
+* `withRampUpAutoStartHosts(models.StartupBehavior)` was removed
+* `rampUpMinutesToWaitOnDisconnect()` was removed
+* `rampUpActionOnDisconnect()` was removed
+* `withRampUpActionOnLogoff(models.SessionHandlingOperation)` was removed
+* `rampDownActionOnDisconnect()` was removed
+* `withPeakStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `withOffPeakStartVMOnConnect(models.SetStartVMOnConnect)` was removed
+* `rampUpAutoStartHosts()` was removed
+* `rampDownActionOnLogoff()` was removed
+* `withRampDownActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `offPeakActionOnLogoff()` was removed
+* `withRampDownMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `daysOfWeek()` was removed
+* `offPeakMinutesToWaitOnLogoff()` was removed
+* `withPeakMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `withPeakActionOnDisconnect(models.SessionHandlingOperation)` was removed
+* `peakMinutesToWaitOnDisconnect()` was removed
+* `withOffPeakMinutesToWaitOnLogoff(java.lang.Integer)` was removed
+* `peakMinutesToWaitOnLogoff()` was removed
+* `rampUpMinutesToWaitOnLogoff()` was removed
+* `offPeakStartTime()` was removed
+* `withPeakStartTime(models.Time)` was removed
+* `withRampUpStartTime(models.Time)` was removed
+* `withRampDownMinutesToWaitOnDisconnect(java.lang.Integer)` was removed
+* `rampDownMinutesToWaitOnLogoff()` was removed
+* `offPeakMinutesToWaitOnDisconnect()` was removed
+* `withDaysOfWeek(java.util.List)` was removed
+
+#### `models.ScalingPlan` was modified
+
+* `models.ResourceModelWithAllowedPropertySetPlan plan()` -> `models.Plan plan()`
+* `models.ResourceModelWithAllowedPropertySetIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `models.ResourceModelWithAllowedPropertySetSku sku()` -> `models.Sku sku()`
+
+#### `models.ScalingPlan$Definition` was modified
+
+* `withSku(models.ResourceModelWithAllowedPropertySetSku)` was removed
+* `withPlan(models.ResourceModelWithAllowedPropertySetPlan)` was removed
+* `withIdentity(models.ResourceModelWithAllowedPropertySetIdentity)` was removed
+
+#### `models.Workspace$Definition` was modified
+
+* `withIdentity(models.ResourceModelWithAllowedPropertySetIdentity)` was removed
+* `withSku(models.ResourceModelWithAllowedPropertySetSku)` was removed
+* `withPlan(models.ResourceModelWithAllowedPropertySetPlan)` was removed
+
+#### `models.ApplicationPatch` was modified
+
+* `commandLineSetting()` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withFilePath(java.lang.String)` was removed
+* `applicationType()` was removed
+* `withDescription(java.lang.String)` was removed
+* `tags()` was removed
+* `withCommandLineArguments(java.lang.String)` was removed
+* `withMsixPackageFamilyName(java.lang.String)` was removed
+* `msixPackageFamilyName()` was removed
+* `withIconIndex(java.lang.Integer)` was removed
+* `msixPackageApplicationId()` was removed
+* `commandLineArguments()` was removed
+* `iconPath()` was removed
+* `withShowInPortal(java.lang.Boolean)` was removed
+* `showInPortal()` was removed
+* `friendlyName()` was removed
+* `withApplicationType(models.RemoteApplicationType)` was removed
+* `filePath()` was removed
+* `iconIndex()` was removed
+* `withMsixPackageApplicationId(java.lang.String)` was removed
+* `withTags(java.util.Map)` was removed
+* `description()` was removed
+* `withIconPath(java.lang.String)` was removed
+* `withCommandLineSetting(models.CommandLineSetting)` was removed
+
+#### `models.ApplicationGroup$Update` was modified
+
+* `withDescription(java.lang.String)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withShowInFeed(java.lang.Boolean)` was removed
+
+### Features Added
+
+* `models.SessionHostManagementList` was added
+
+* `models.VirtualMachineDiskType` was added
+
+* `models.MarketplaceInfoPatchProperties` was added
+
+* `models.ActiveDirectoryInfoProperties` was added
+
+* `models.DiskInfoProperties` was added
+
+* `models.SessionHostConfigurations` was added
+
+* `models.UserAssignedIdentity` was added
+
+* `models.AzureActiveDirectoryInfoProperties` was added
+
+* `models.MsixPackagePatchProperties` was added
+
+* `models.SessionHostConfigurationList` was added
+
+* `models.SessionHostManagementsUpdateStatus` was added
+
+* `models.SessionHostManagementUpdateStatus` was added
+
+* `models.PublicUdp` was added
+
+* `models.DomainInfoPatchProperties` was added
+
+* `models.ImageInfoPatchProperties` was added
+
+* `models.SessionHostManagementOperationProgress` was added
+
+* `models.KeyVaultCredentialsProperties` was added
+
+* `models.ManagedServiceIdentity` was added
+
+* `models.KeyVaultCredentialsPatchProperties` was added
+
+* `models.SessionHostConfiguration` was added
+
+* `models.SessionHostManagementUpdateOperationStatus` was added
+
+* `models.ScalingPlanPooledSchedulePatchProperties` was added
+
+* `models.DesktopPatchProperties` was added
+
+* `models.SecurityInfoPatchProperties` was added
+
+* `models.HostPoolPatchProperties` was added
+
+* `models.BootDiagnosticsInfoProperties` was added
+
+* `models.ActiveSessionHostConfiguration` was added
+
+* `models.ApplicationGroupPatchProperties` was added
+
+* `models.ControlSessionHostUpdates` was added
+
+* `models.DomainInfoProperties` was added
+
+* `models.ActiveSessionHostConfigurationList` was added
+
+* `models.CustomInfoPatchProperties` was added
+
+* `models.ExpandMsixImageProperties` was added
+
+* `models.ManagedServiceIdentityType` was added
+
+* `models.ActiveSessionHostConfigurations` was added
+
+* `models.SessionHostConfigurationPatch` was added
+
+* `models.SessionHostManagementPatch` was added
+
+* `models.BootDiagnosticsInfoPatchProperties` was added
+
+* `models.DirectUdp` was added
+
+* `models.WorkspacePatchProperties` was added
+
+* `models.ScalingPlanPatchProperties` was added
+
+* `models.NetworkInfoPatchProperties` was added
+
+* `models.SessionHostManagement` was added
+
+* `models.MarketplaceInfoProperties` was added
+
+* `models.SecurityInfoProperties` was added
+
+* `models.PrivateLinkResourceProperties` was added
+
+* `models.HostPoolUpdateAction` was added
+
+* `models.ManagedPrivateUdp` was added
+
+* `models.UpdateSessionHostsRequestBody` was added
+
+* `models.InitiateSessionHostUpdates` was added
+
+* `models.ProvisioningStateShc` was added
+
+* `models.HostPoolUpdateControlParameter` was added
+
+* `models.ImageInfoProperties` was added
+
+* `models.DiskInfoPatchProperties` was added
+
+* `models.HostPoolUpdateConfigurationProperties` was added
+
+* `models.SessionHostPatchProperties` was added
+
+* `models.NetworkInfoProperties` was added
+
+* `models.ResourceProviderOperationListResult` was added
+
+* `models.SessionHostConfigurationPatchProperties` was added
+
+* `models.VirtualMachineSecurityType` was added
+
+* `models.ManagementType` was added
+
+* `models.SessionHostManagementPatchProperties` was added
+
+* `models.SessionHostManagementUpdateStatusProperties` was added
+
+* `models.RelayUdp` was added
+
+* `models.ActiveDirectoryInfoPatchProperties` was added
+
+* `models.DomainJoinType` was added
+
+* `models.ScalingPlanPersonalSchedulePatchProperties` was added
+
+* `models.HostPoolUpdateConfigurationPatchProperties` was added
+
+* `models.ApplicationPatchProperties` was added
+
+* `models.CustomInfoProperties` was added
+
+* `models.SessionHostManagements` was added
+
+* `models.Type` was added
+
+* `models.StartMenuItemProperties` was added
+
+#### `models.ExpandMsixImageList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ScalingPlanPooledSchedule$Definition` was modified
+
+* `withNamePropertiesName(java.lang.String)` was added
+* `withRampDownCapacityThresholdPct(int)` was added
+* `withRampUpCapacityThresholdPct(int)` was added
+
+#### `models.HostPoolList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.SessionHostList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.StartMenuItemList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ScalingPlanPooledSchedule$Update` was modified
+
+* `withProperties(models.ScalingPlanPooledSchedulePatchProperties)` was added
+
+#### `models.HostPool$Update` was modified
+
+* `withProperties(models.HostPoolPatchProperties)` was added
+
+#### `models.ScalingPlan$Update` was modified
+
+* `withProperties(models.ScalingPlanPatchProperties)` was added
+
+#### `models.AppAttachPackagePatch` was modified
+
+* `withTags(java.util.Map)` was added
+* `tags()` was added
+
+#### `models.StartMenuItem` was modified
+
+* `properties()` was added
+
+#### `models.AppAttachPackagePatchProperties` was modified
+
+* `withCustomData(java.lang.String)` was added
+* `withPackageLookbackUrl(java.lang.String)` was added
+* `customData()` was added
+* `packageLookbackUrl()` was added
+
+#### `models.WorkspacePatch` was modified
+
+* `withProperties(models.WorkspacePatchProperties)` was added
+* `properties()` was added
+
+#### `models.MsixPackage$Update` was modified
+
+* `withProperties(models.MsixPackagePatchProperties)` was added
+
+#### `models.DesktopPatch` was modified
+
+* `properties()` was added
+* `withProperties(models.DesktopPatchProperties)` was added
+
+#### `models.Application$Update` was modified
+
+* `withProperties(models.ApplicationPatchProperties)` was added
+
+#### `models.ScalingPlanPersonalScheduleList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.MsixPackageList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.HostPool` was modified
+
+* `publicUdp()` was added
+* `directUdp()` was added
+* `managementType()` was added
+* `relayUdp()` was added
+* `managedPrivateUdp()` was added
+
+#### `models.HostPoolPatch` was modified
+
+* `withProperties(models.HostPoolPatchProperties)` was added
+* `properties()` was added
+
+#### `models.AppAttachPackage$Definition` was modified
+
+* `withHostPoolReferences(java.util.List)` was added
+* `withPackageOwnerName(java.lang.String)` was added
+* `withPackageLookbackUrl(java.lang.String)` was added
+* `withImage(models.AppAttachPackageInfoProperties)` was added
+* `withKeyVaultUrl(java.lang.String)` was added
+* `withFailHealthCheckOnStagingFailure(models.FailHealthCheckOnStagingFailure)` was added
+* `withCustomData(java.lang.String)` was added
+
+#### `models.PrivateEndpointConnections` was modified
+
+* `updateByWorkspaceWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.PrivateEndpointConnectionWithSystemDataInner,com.azure.core.util.Context)` was added
+* `updateByHostPoolWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.PrivateEndpointConnectionWithSystemDataInner,com.azure.core.util.Context)` was added
+* `updateByHostPool(java.lang.String,java.lang.String,java.lang.String,fluent.models.PrivateEndpointConnectionWithSystemDataInner)` was added
+* `updateByWorkspace(java.lang.String,java.lang.String,java.lang.String,fluent.models.PrivateEndpointConnectionWithSystemDataInner)` was added
+
+#### `models.ScalingPlanPersonalSchedule$Update` was modified
+
+* `withProperties(models.ScalingPlanPersonalSchedulePatchProperties)` was added
+
+#### `models.PrivateLinkResource` was modified
+
+* `properties()` was added
+
+#### `models.WorkspaceList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.HostPoolProperties` was modified
+
+* `managedPrivateUdp()` was added
+* `managementType()` was added
+* `directUdp()` was added
+* `relayUdp()` was added
+* `publicUdp()` was added
+
+#### `DesktopVirtualizationManager` was modified
+
+* `sessionHostManagements()` was added
+* `sessionHostManagementsUpdateStatus()` was added
+* `activeSessionHostConfigurations()` was added
+* `controlSessionHostUpdates()` was added
+* `initiateSessionHostUpdates()` was added
+* `sessionHostConfigurations()` was added
+
+#### `models.ApplicationList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `withProperties(fluent.models.PrivateEndpointConnectionProperties)` was added
+* `properties()` was added
+
+#### `models.ApplicationGroupList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.AppAttachPackages` was modified
+
+* `delete(java.lang.String,java.lang.String)` was added
+* `deleteWithResponse(java.lang.String,java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `deleteByIdWithResponse(java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+
+#### `models.AppAttachPackage$Update` was modified
+
+* `withTags(java.util.Map)` was added
+
+#### `models.ScalingPlanPooledSchedulePatch` was modified
+
+* `withProperties(models.ScalingPlanPooledSchedulePatchProperties)` was added
+* `properties()` was added
+
+#### `models.SessionHostPatch` was modified
+
+* `withProperties(models.SessionHostPatchProperties)` was added
+* `properties()` was added
+
+#### `models.MsixPackagePatch` was modified
+
+* `withProperties(models.MsixPackagePatchProperties)` was added
+* `properties()` was added
+
+#### `models.ApplicationGroup$Definition` was modified
+
+* `withPlan(models.Plan)` was added
+* `withSku(models.Sku)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+
+#### `models.ScalingPlanPooledScheduleList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.AppAttachPackageList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ApplicationGroupPatch` was modified
+
+* `withProperties(models.ApplicationGroupPatchProperties)` was added
+* `properties()` was added
+
+#### `models.HostPool$Definition` was modified
+
+* `withRelayUdp(models.RelayUdp)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withPlan(models.Plan)` was added
+* `withManagementType(models.ManagementType)` was added
+* `withPublicUdp(models.PublicUdp)` was added
+* `withSku(models.Sku)` was added
+* `withDirectUdp(models.DirectUdp)` was added
+* `withManagedPrivateUdp(models.ManagedPrivateUdp)` was added
+
+#### `models.ScalingPlanPooledSchedule` was modified
+
+* `namePropertiesName()` was added
+
+#### `models.ScalingPlanPatch` was modified
+
+* `withProperties(models.ScalingPlanPatchProperties)` was added
+* `properties()` was added
+
+#### `models.Workspace$Update` was modified
+
+* `withProperties(models.WorkspacePatchProperties)` was added
+
+#### `models.SessionHost` was modified
+
+* `lastSessionHostUpdateTime()` was added
+* `sessionHostConfiguration()` was added
+
+#### `models.AppAttachPackage` was modified
+
+* `keyVaultUrl()` was added
+* `packageLookbackUrl()` was added
+* `provisioningState()` was added
+* `packageOwnerName()` was added
+* `customData()` was added
+* `failHealthCheckOnStagingFailure()` was added
+* `hostPoolReferences()` was added
+* `image()` was added
+
+#### `models.PrivateLinkResourceListResult` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ExpandMsixImage` was modified
+
+* `properties()` was added
+
+#### `models.SessionHosts` was modified
+
+* `retryProvisioning(java.lang.String,java.lang.String,java.lang.String)` was added
+* `list(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Boolean,java.lang.Integer,java.lang.String,com.azure.core.util.Context)` was added
+* `retryProvisioningWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.PrivateEndpointConnectionListResultWithSystemData` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ScalingPlanList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ScalingPlanPersonalSchedulePatch` was modified
+
+* `withProperties(models.ScalingPlanPersonalSchedulePatchProperties)` was added
+* `properties()` was added
+
+#### `models.UserSessionList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ScalingPlan$Definition` was modified
+
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withPlan(models.Plan)` was added
+* `withSku(models.Sku)` was added
+
+#### `models.Workspace$Definition` was modified
+
+* `withPlan(models.Plan)` was added
+* `withIdentity(models.ManagedServiceIdentity)` was added
+* `withSku(models.Sku)` was added
+
+#### `models.DesktopList` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.ApplicationPatch` was modified
+
+* `properties()` was added
+* `withProperties(models.ApplicationPatchProperties)` was added
+
+#### `models.ApplicationGroup$Update` was modified
-### Other Changes
+* `withProperties(models.ApplicationGroupPatchProperties)` was added
## 1.2.0 (2024-09-25)
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
index 38182307d75c..b42a415aa0aa 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager DesktopVirtualization client library for Java.
-This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2024-04. 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 DesktopVirtualization Management SDK. This Typespec represents the Desktop Virtualization API interfaces. Package tag package-preview-2024-08. 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-desktopvirtualization
- 1.2.0
+ 1.3.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ DesktopVirtualizationManager manager = DesktopVirtualizationManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
index 904b9a25fb83..b5a3b773acf4 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
@@ -1,6 +1,11 @@
# Code snippets and samples
+## ActiveSessionHostConfigurations
+
+- [Get](#activesessionhostconfigurations_get)
+- [ListByHostPool](#activesessionhostconfigurations_listbyhostpool)
+
## AppAttachPackage
- [CreateOrUpdate](#appattachpackage_createorupdate)
@@ -31,6 +36,10 @@
- [List](#applications_list)
- [Update](#applications_update)
+## ControlSessionHostUpdate
+
+- [Post](#controlsessionhostupdate_post)
+
## Desktops
- [Get](#desktops_get)
@@ -48,6 +57,10 @@
- [RetrieveRegistrationToken](#hostpools_retrieveregistrationtoken)
- [Update](#hostpools_update)
+## InitiateSessionHostUpdate
+
+- [Post](#initiatesessionhostupdate_post)
+
## MsixImages
- [Expand](#msiximages_expand)
@@ -106,11 +119,30 @@
- [ListByResourceGroup](#scalingplans_listbyresourcegroup)
- [Update](#scalingplans_update)
+## SessionHostConfigurations
+
+- [CreateOrUpdate](#sessionhostconfigurations_createorupdate)
+- [Get](#sessionhostconfigurations_get)
+- [ListByHostPool](#sessionhostconfigurations_listbyhostpool)
+- [Update](#sessionhostconfigurations_update)
+
+## SessionHostManagements
+
+- [CreateOrUpdate](#sessionhostmanagements_createorupdate)
+- [Get](#sessionhostmanagements_get)
+- [ListByHostPool](#sessionhostmanagements_listbyhostpool)
+- [Update](#sessionhostmanagements_update)
+
+## SessionHostManagementsUpdateStatus
+
+- [Get](#sessionhostmanagementsupdatestatus_get)
+
## SessionHosts
- [Delete](#sessionhosts_delete)
- [Get](#sessionhosts_get)
- [List](#sessionhosts_list)
+- [RetryProvisioning](#sessionhosts_retryprovisioning)
- [Update](#sessionhosts_update)
## StartMenuItems
@@ -134,11 +166,60 @@
- [List](#workspaces_list)
- [ListByResourceGroup](#workspaces_listbyresourcegroup)
- [Update](#workspaces_update)
+### ActiveSessionHostConfigurations_Get
+
+```java
+/**
+ * Samples for ActiveSessionHostConfigurations Get.
+ */
+public final class ActiveSessionHostConfigurationsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ActiveSessionHostConfigurations_Get.json
+ */
+ /**
+ * Sample code: ActiveSessionHostConfigurations_Get.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void activeSessionHostConfigurationsGet(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.activeSessionHostConfigurations()
+ .getWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ActiveSessionHostConfigurations_ListByHostPool
+
+```java
+/**
+ * Samples for ActiveSessionHostConfigurations ListByHostPool.
+ */
+public final class ActiveSessionHostConfigurationsListByHostPoolSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ActiveSessionHostConfigurations_ListByHostPool.json
+ */
+ /**
+ * Sample code: ActiveSessionHostConfigurations_ListByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void activeSessionHostConfigurationsListByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.activeSessionHostConfigurations()
+ .listByHostPool("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### AppAttachPackage_CreateOrUpdate
```java
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackageInfoProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackageProperties;
import com.azure.resourcemanager.desktopvirtualization.models.FailHealthCheckOnStagingFailure;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
@@ -151,8 +232,8 @@ import java.util.Arrays;
public final class AppAttachPackageCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_CreateOrUpdate.json
*/
/**
* Sample code: AppAttachPackage_Create.
@@ -165,34 +246,33 @@ public final class AppAttachPackageCreateOrUpdateSamples {
.define("msixpackagefullname")
.withRegion("southcentralus")
.withExistingResourceGroup("resourceGroup1")
- .withProperties(new AppAttachPackageProperties()
- .withImage(new AppAttachPackageInfoProperties().withPackageAlias("msixpackagealias")
- .withImagePath("imagepath")
- .withPackageName("MsixPackageName")
- .withPackageFamilyName("MsixPackage_FamilyName")
- .withPackageFullName("MsixPackage_FullName")
- .withDisplayName("displayname")
- .withPackageRelativePath("packagerelativepath")
- .withIsRegularRegistration(false)
- .withIsActive(false)
- .withPackageDependencies(
- Arrays.asList(new MsixPackageDependencies().withDependencyName("MsixPackage_Dependency_Name")
- .withPublisher("MsixPackage_Dependency_Publisher")
- .withMinVersion("packageDep_version")))
- .withVersion("packageversion")
- .withLastUpdated(OffsetDateTime.parse("2008-09-22T14:01:54.9571247Z"))
- .withPackageApplications(Arrays.asList(new MsixPackageApplications().withAppId("AppId")
- .withDescription("PackageApplicationDescription")
- .withAppUserModelId("AppUserModelId")
- .withFriendlyName("FriendlyName")
- .withIconImageName("Iconimagename")
- .withRawIcon("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())
- .withRawPng("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())))
- .withCertificateName("certName")
- .withCertificateExpiry(OffsetDateTime.parse("2023-01-02T17:18:19.1234567Z")))
- .withHostPoolReferences(Arrays.asList())
- .withKeyVaultUrl("fakeTokenPlaceholder")
- .withFailHealthCheckOnStagingFailure(FailHealthCheckOnStagingFailure.NEEDS_ASSISTANCE))
+ .withImage(new AppAttachPackageInfoProperties().withPackageAlias("msixpackagealias")
+ .withImagePath("imagepath")
+ .withPackageName("MsixPackageName")
+ .withPackageFamilyName("MsixPackage_FamilyName")
+ .withPackageFullName("MsixPackage_FullName")
+ .withDisplayName("displayname")
+ .withPackageRelativePath("packagerelativepath")
+ .withIsRegularRegistration(false)
+ .withIsActive(false)
+ .withPackageDependencies(
+ Arrays.asList(new MsixPackageDependencies().withDependencyName("MsixPackage_Dependency_Name")
+ .withPublisher("MsixPackage_Dependency_Publisher")
+ .withMinVersion("packageDep_version")))
+ .withVersion("packageversion")
+ .withLastUpdated(OffsetDateTime.parse("2008-09-22T14:01:54.9571247Z"))
+ .withPackageApplications(Arrays.asList(new MsixPackageApplications().withAppId("AppId")
+ .withDescription("PackageApplicationDescription")
+ .withAppUserModelId("AppUserModelId")
+ .withFriendlyName("FriendlyName")
+ .withIconImageName("Iconimagename")
+ .withRawIcon("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())
+ .withRawPng("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())))
+ .withCertificateName("certName")
+ .withCertificateExpiry(OffsetDateTime.parse("2023-01-02T17:18:19.1234567Z")))
+ .withHostPoolReferences(Arrays.asList())
+ .withKeyVaultUrl("")
+ .withFailHealthCheckOnStagingFailure(FailHealthCheckOnStagingFailure.NEEDS_ASSISTANCE)
.create();
}
}
@@ -207,8 +287,8 @@ public final class AppAttachPackageCreateOrUpdateSamples {
public final class AppAttachPackageDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_Delete.json
*/
/**
* Sample code: AppAttachPackage_Delete.
@@ -218,7 +298,7 @@ public final class AppAttachPackageDeleteSamples {
public static void
appAttachPackageDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.appAttachPackages()
- .deleteByResourceGroupWithResponse("resourceGroup1", "packagefullname", com.azure.core.util.Context.NONE);
+ .deleteWithResponse("resourceGroup1", "packagefullname", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -232,8 +312,8 @@ public final class AppAttachPackageDeleteSamples {
public final class AppAttachPackageGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_Get.json
*/
/**
* Sample code: AppAttachPackage_Get.
@@ -257,8 +337,8 @@ public final class AppAttachPackageGetByResourceGroupSamples {
public final class AppAttachPackageListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_ListBySubscription.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_ListBySubscription.json
*/
/**
* Sample code: AppAttachPackage_ListBySubscription.
@@ -281,8 +361,8 @@ public final class AppAttachPackageListSamples {
public final class AppAttachPackageListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_ListByResourceGroup.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_ListByResourceGroup.json
*/
/**
* Sample code: AppAttachPackage_ListByResourceGroup.
@@ -301,6 +381,13 @@ public final class AppAttachPackageListByResourceGroupSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackage;
+import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackageInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackagePatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.FailHealthCheckOnStagingFailure;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
/**
* Samples for AppAttachPackage Update.
@@ -308,8 +395,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackage;
public final class AppAttachPackageUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackage_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackage_Update.json
*/
/**
* Sample code: AppAttachPackage_Update.
@@ -321,7 +408,38 @@ public final class AppAttachPackageUpdateSamples {
AppAttachPackage resource = manager.appAttachPackages()
.getByResourceGroupWithResponse("resourceGroup1", "msixpackagefullname", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().apply();
+ resource.update()
+ .withProperties(new AppAttachPackagePatchProperties()
+ .withImage(new AppAttachPackageInfoProperties().withPackageAlias("msixpackagealias")
+ .withImagePath("imagepath")
+ .withPackageName("MsixPackageName")
+ .withPackageFamilyName("MsixPackage_FamilyName")
+ .withPackageFullName("MsixPackage_FullName")
+ .withDisplayName("displayname")
+ .withPackageRelativePath("packagerelativepath")
+ .withIsRegularRegistration(false)
+ .withIsActive(false)
+ .withPackageDependencies(
+ Arrays.asList(new MsixPackageDependencies().withDependencyName("MsixPackage_Dependency_Name")
+ .withPublisher("MsixPackage_Dependency_Publisher")
+ .withMinVersion("packageDep_version")))
+ .withVersion("packageversion")
+ .withLastUpdated(OffsetDateTime.parse("2008-09-22T14:01:54.9571247Z"))
+ .withPackageApplications(Arrays.asList(new MsixPackageApplications().withAppId("AppId")
+ .withDescription("PackageApplicationDescription")
+ .withAppUserModelId("AppUserModelId")
+ .withFriendlyName("FriendlyName")
+ .withIconImageName("Iconimagename")
+ .withRawIcon("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())
+ .withRawPng("VGhpcyBpcyBhIHN0cmluZyB0byBoYXNo".getBytes())))
+ .withCertificateName("certName")
+ .withCertificateExpiry(OffsetDateTime.parse("2023-01-02T17:18:19.1234567Z")))
+ .withHostPoolReferences(Arrays.asList(
+ "/subscriptions/d15725f7-6577-4a8c-95f1-3da903b42364/resourcegroups/charlesk-southcentralus/providers/Microsoft.DesktopVirtualization/hostPool/hp1",
+ "/subscriptions/d15725f7-6577-4a8c-95f1-3da903b42364/resourcegroups/charlesk-southcentralus/providers/Microsoft.DesktopVirtualization/hostPool/hp2"))
+ .withKeyVaultUrl("fakeTokenPlaceholder")
+ .withFailHealthCheckOnStagingFailure(FailHealthCheckOnStagingFailure.DO_NOT_FAIL))
+ .apply();
}
}
```
@@ -338,8 +456,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.ImportPackageInfoR
public final class AppAttachPackageInfoImportMethodSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * AppAttachPackageInfo_Import_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/AppAttachPackageInfo_Import.json
*/
/**
* Sample code: AppAttachPackageInfo_Import.
@@ -349,8 +467,10 @@ public final class AppAttachPackageInfoImportMethodSamples {
public static void appAttachPackageInfoImport(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.appAttachPackageInfoes()
- .importMethod("resourceGroup1", "hostpool1", new ImportPackageInfoRequest().withPath("imagepath")
- .withPackageArchitecture(AppAttachPackageArchitectures.X64), com.azure.core.util.Context.NONE);
+ .importMethod("resourceGroup1", "hostpool1",
+ new ImportPackageInfoRequest().withPath("https://url.com/imagePath")
+ .withPackageArchitecture(AppAttachPackageArchitectures.X64),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -368,8 +488,8 @@ import java.util.Map;
public final class ApplicationGroupsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_CreateOrUpdate.json
*/
/**
* Sample code: ApplicationGroup_Create.
@@ -415,16 +535,16 @@ public final class ApplicationGroupsCreateOrUpdateSamples {
public final class ApplicationGroupsDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_Delete.json
*/
/**
- * Sample code: ApplicationGroup_Delete.
+ * Sample code: ApplicationGroups_Delete.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- applicationGroupDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ applicationGroupsDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.applicationGroups()
.deleteByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", com.azure.core.util.Context.NONE);
}
@@ -440,8 +560,8 @@ public final class ApplicationGroupsDeleteSamples {
public final class ApplicationGroupsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_Get.json
*/
/**
* Sample code: ApplicationGroup_Get.
@@ -465,8 +585,8 @@ public final class ApplicationGroupsGetByResourceGroupSamples {
public final class ApplicationGroupsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_ListBySubscription.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_ListBySubscription.json
*/
/**
* Sample code: ApplicationGroup_List.
@@ -489,8 +609,8 @@ public final class ApplicationGroupsListSamples {
public final class ApplicationGroupsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_ListByResourceGroup.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_ListByResourceGroup.json
*/
/**
* Sample code: ApplicationGroup_ListByResourceGroup.
@@ -510,6 +630,7 @@ public final class ApplicationGroupsListByResourceGroupSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroup;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatchProperties;
import java.util.HashMap;
import java.util.Map;
@@ -519,24 +640,24 @@ import java.util.Map;
public final class ApplicationGroupsUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ApplicationGroup_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ApplicationGroups_Update.json
*/
/**
- * Sample code: ApplicationGroups_Update.
+ * Sample code: ApplicationGroup_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- applicationGroupsUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ applicationGroupUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
ApplicationGroup resource = manager.applicationGroups()
.getByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDescription("des1")
- .withFriendlyName("friendly")
- .withShowInFeed(true)
+ .withProperties(new ApplicationGroupPatchProperties().withDescription("des1")
+ .withFriendlyName("friendly")
+ .withShowInFeed(true))
.apply();
}
@@ -565,16 +686,16 @@ import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting
public final class ApplicationsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Application_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Applications_CreateOrUpdate.json
*/
/**
- * Sample code: Application_Create.
+ * Sample code: Applications_CreateOrUpdate.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void
- applicationCreate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ public static void applicationsCreateOrUpdate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.applications()
.define("application1")
.withExistingApplicationGroup("resourceGroup1", "applicationGroup1")
@@ -600,16 +721,16 @@ public final class ApplicationsCreateOrUpdateSamples {
public final class ApplicationsDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Application_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Applications_Delete.json
*/
/**
- * Sample code: Application_Delete.
+ * Sample code: Applications_Delete.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- applicationDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ applicationsDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.applications()
.deleteWithResponse("resourceGroup1", "applicationGroup1", "application1",
com.azure.core.util.Context.NONE);
@@ -626,16 +747,16 @@ public final class ApplicationsDeleteSamples {
public final class ApplicationsGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Application_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Applications_Get.json
*/
/**
- * Sample code: Application_Get.
+ * Sample code: Applications_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- applicationGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ applicationsGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.applications()
.getWithResponse("resourceGroup1", "applicationGroup1", "application1", com.azure.core.util.Context.NONE);
}
@@ -651,8 +772,8 @@ public final class ApplicationsGetSamples {
public final class ApplicationsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Application_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Applications_List.json
*/
/**
* Sample code: Applications_List.
@@ -671,6 +792,7 @@ public final class ApplicationsListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.Application;
+import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
@@ -680,34 +802,65 @@ import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationT
public final class ApplicationsUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Application_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Applications_Update.json
*/
/**
- * Sample code: Application_Update.
+ * Sample code: Applications_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- applicationUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ applicationsUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
Application resource = manager.applications()
.getWithResponse("resourceGroup1", "applicationGroup1", "application1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withDescription("des1")
- .withFriendlyName("friendly")
- .withFilePath("path")
- .withCommandLineSetting(CommandLineSetting.ALLOW)
- .withCommandLineArguments("arguments")
- .withShowInPortal(true)
- .withIconPath("icon")
- .withIconIndex(1)
- .withApplicationType(RemoteApplicationType.IN_BUILT)
+ .withProperties(new ApplicationPatchProperties().withDescription("des1")
+ .withFriendlyName("friendly")
+ .withFilePath("path")
+ .withCommandLineSetting(CommandLineSetting.ALLOW)
+ .withCommandLineArguments("arguments")
+ .withShowInPortal(true)
+ .withIconPath("icon")
+ .withIconIndex(1)
+ .withApplicationType(RemoteApplicationType.IN_BUILT))
.apply();
}
}
```
+### ControlSessionHostUpdate_Post
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateAction;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateControlParameter;
+
+/**
+ * Samples for ControlSessionHostUpdate Post.
+ */
+public final class ControlSessionHostUpdatePostSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_ControlSessionHostUpdate_Post.json
+ */
+ /**
+ * Sample code: SessionHostManagements_ControlSessionHostUpdate_Post.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsControlSessionHostUpdatePost(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.controlSessionHostUpdates()
+ .post("resourceGroup1", "hostPool1",
+ new HostPoolUpdateControlParameter().withAction(HostPoolUpdateAction.START)
+ .withCancelMessage("Host pool update started"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Desktops_Get
```java
@@ -717,16 +870,16 @@ public final class ApplicationsUpdateSamples {
public final class DesktopsGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Desktop_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Desktops_Get.json
*/
/**
- * Sample code: Desktop_Get.
+ * Sample code: Desktops_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- desktopGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ desktopsGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.desktops()
.getWithResponse("resourceGroup1", "applicationGroup1", "SessionDesktop", com.azure.core.util.Context.NONE);
}
@@ -742,16 +895,16 @@ public final class DesktopsGetSamples {
public final class DesktopsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Desktop_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Desktops_List.json
*/
/**
- * Sample code: Desktop_List.
+ * Sample code: Desktops_List.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- desktopList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ desktopsList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.desktops().list("resourceGroup1", "applicationGroup1", 10, true, 0, com.azure.core.util.Context.NONE);
}
}
@@ -761,6 +914,7 @@ public final class DesktopsListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatchProperties;
/**
* Samples for Desktops Update.
@@ -768,19 +922,20 @@ import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
public final class DesktopsUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Desktop_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Desktops_Update.json
*/
/**
- * Sample code: Desktop_Update.
+ * Sample code: Desktops_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- desktopUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ desktopsUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.desktops()
.updateWithResponse("resourceGroup1", "applicationGroup1", "SessionDesktop",
- new DesktopPatch().withDescription("des1").withFriendlyName("friendly"),
+ new DesktopPatch()
+ .withProperties(new DesktopPatchProperties().withDescription("des1").withFriendlyName("friendly")),
com.azure.core.util.Context.NONE);
}
}
@@ -792,12 +947,17 @@ public final class DesktopsUpdateSamples {
import com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner;
import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
+import com.azure.resourcemanager.desktopvirtualization.models.DirectUdp;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.ManagedPrivateUdp;
+import com.azure.resourcemanager.desktopvirtualization.models.ManagementType;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
+import com.azure.resourcemanager.desktopvirtualization.models.PublicUdp;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
+import com.azure.resourcemanager.desktopvirtualization.models.RelayUdp;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import java.time.OffsetDateTime;
@@ -811,16 +971,16 @@ import java.util.Map;
public final class HostPoolsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPool_CreateOrUpdate.json
*/
/**
- * Sample code: HostPool_Create.
+ * Sample code: HostPools_CreateOrUpdate.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- hostPoolCreate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ hostPoolsCreateOrUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools()
.define("hostPool1")
.withRegion("centralus")
@@ -848,6 +1008,11 @@ public final class HostPoolsCreateOrUpdateSamples {
.withMaintenanceWindows(
Arrays.asList(new MaintenanceWindowProperties().withHour(7).withDayOfWeek(DayOfWeek.FRIDAY),
new MaintenanceWindowProperties().withHour(8).withDayOfWeek(DayOfWeek.SATURDAY))))
+ .withManagedPrivateUdp(ManagedPrivateUdp.ENABLED)
+ .withDirectUdp(DirectUdp.ENABLED)
+ .withPublicUdp(PublicUdp.ENABLED)
+ .withRelayUdp(RelayUdp.ENABLED)
+ .withManagementType(ManagementType.AUTOMATED)
.create();
}
@@ -874,16 +1039,16 @@ public final class HostPoolsCreateOrUpdateSamples {
public final class HostPoolsDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_Delete.json
*/
/**
- * Sample code: HostPool_Delete.
+ * Sample code: HostPools_Delete.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- hostPoolDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ hostPoolsDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools().deleteWithResponse("resourceGroup1", "hostPool1", true, com.azure.core.util.Context.NONE);
}
}
@@ -898,16 +1063,16 @@ public final class HostPoolsDeleteSamples {
public final class HostPoolsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_Get.json
*/
/**
- * Sample code: HostPool_Get.
+ * Sample code: HostPools_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- hostPoolGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ hostPoolsGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools()
.getByResourceGroupWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
}
@@ -923,8 +1088,8 @@ public final class HostPoolsGetByResourceGroupSamples {
public final class HostPoolsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPool_Lists.json
*/
/**
* Sample code: HostPool_List.
@@ -947,15 +1112,15 @@ public final class HostPoolsListSamples {
public final class HostPoolsListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_ListByResourceGroup.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_ListByResourceGroup.json
*/
/**
- * Sample code: HostPool_ListByResourceGroup.
+ * Sample code: HostPools_ListByResourceGroup.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void hostPoolListByResourceGroup(
+ public static void hostPoolsListByResourceGroup(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools().listByResourceGroup("resourceGroup1", 10, true, 0, com.azure.core.util.Context.NONE);
}
@@ -971,15 +1136,15 @@ public final class HostPoolsListByResourceGroupSamples {
public final class HostPoolsListRegistrationTokensSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPools_ListRegistrationToken_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_ListRegistrationTokens.json
*/
/**
- * Sample code: HostPools_ListRegistrationToken_Post.
+ * Sample code: HostPools_ListRegistrationTokens.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void hostPoolsListRegistrationTokenPost(
+ public static void hostPoolsListRegistrationTokens(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools()
.listRegistrationTokensWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
@@ -996,15 +1161,15 @@ public final class HostPoolsListRegistrationTokensSamples {
public final class HostPoolsRetrieveRegistrationTokenSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPools_RetrieveRegistrationToken_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_RetrieveRegistrationToken.json
*/
/**
- * Sample code: HostPools_RetrieveRegistrationToken_Post.
+ * Sample code: HostPools_RetrieveRegistrationToken.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void hostPoolsRetrieveRegistrationTokenPost(
+ public static void hostPoolsRetrieveRegistrationToken(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.hostPools()
.retrieveRegistrationTokenWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
@@ -1017,12 +1182,17 @@ public final class HostPoolsRetrieveRegistrationTokenSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
+import com.azure.resourcemanager.desktopvirtualization.models.DirectUdp;
import com.azure.resourcemanager.desktopvirtualization.models.HostPool;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolPatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.ManagedPrivateUdp;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
+import com.azure.resourcemanager.desktopvirtualization.models.PublicUdp;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationInfoPatch;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
+import com.azure.resourcemanager.desktopvirtualization.models.RelayUdp;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import java.time.OffsetDateTime;
@@ -1036,42 +1206,46 @@ import java.util.Map;
public final class HostPoolsUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * HostPool_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/HostPools_Update.json
*/
/**
- * Sample code: HostPool_Update.
+ * Sample code: HostPools_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- hostPoolUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ hostPoolsUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
HostPool resource = manager.hostPools()
.getByResourceGroupWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withFriendlyName("friendly")
- .withDescription("des1")
- .withMaxSessionLimit(999999)
- .withPersonalDesktopAssignmentType(PersonalDesktopAssignmentType.AUTOMATIC)
- .withLoadBalancerType(LoadBalancerType.BREADTH_FIRST)
- .withRegistrationInfo(
- new RegistrationInfoPatch().withExpirationTime(OffsetDateTime.parse("2020-10-01T15:01:54.9571247Z"))
- .withRegistrationTokenOperation(RegistrationTokenOperation.UPDATE))
- .withVmTemplate("{json:json}")
- .withSsoadfsAuthority("https://adfs")
- .withSsoClientId("client")
- .withSsoClientSecretKeyVaultPath("https://keyvault/secret")
- .withSsoSecretType(SsoSecretType.SHARED_KEY)
- .withStartVMOnConnect(false)
- .withAgentUpdate(
- new AgentUpdatePatchProperties().withType(SessionHostComponentUpdateType.SCHEDULED)
- .withUseSessionHostLocalTime(false)
- .withMaintenanceWindowTimeZone("Alaskan Standard Time")
- .withMaintenanceWindows(Arrays.asList(
- new MaintenanceWindowPatchProperties().withHour(7).withDayOfWeek(DayOfWeek.FRIDAY),
- new MaintenanceWindowPatchProperties().withHour(8).withDayOfWeek(DayOfWeek.SATURDAY))))
+ .withProperties(
+ new HostPoolPatchProperties().withFriendlyName("friendly")
+ .withDescription("des1")
+ .withMaxSessionLimit(999999)
+ .withPersonalDesktopAssignmentType(PersonalDesktopAssignmentType.AUTOMATIC)
+ .withLoadBalancerType(LoadBalancerType.BREADTH_FIRST)
+ .withRegistrationInfo(new RegistrationInfoPatch()
+ .withExpirationTime(OffsetDateTime.parse("2020-10-01T15:01:54.9571247Z"))
+ .withRegistrationTokenOperation(RegistrationTokenOperation.UPDATE))
+ .withVmTemplate("{json:json}")
+ .withSsoadfsAuthority("https://adfs")
+ .withSsoClientId("client")
+ .withSsoClientSecretKeyVaultPath("fakeTokenPlaceholder")
+ .withSsoSecretType(SsoSecretType.SHARED_KEY)
+ .withStartVMOnConnect(false)
+ .withAgentUpdate(new AgentUpdatePatchProperties().withType(SessionHostComponentUpdateType.SCHEDULED)
+ .withUseSessionHostLocalTime(false)
+ .withMaintenanceWindowTimeZone("Alaskan Standard Time")
+ .withMaintenanceWindows(Arrays.asList(
+ new MaintenanceWindowPatchProperties().withHour(7).withDayOfWeek(DayOfWeek.FRIDAY),
+ new MaintenanceWindowPatchProperties().withHour(8).withDayOfWeek(DayOfWeek.SATURDAY))))
+ .withManagedPrivateUdp(ManagedPrivateUdp.ENABLED)
+ .withDirectUdp(DirectUdp.ENABLED)
+ .withPublicUdp(PublicUdp.ENABLED)
+ .withRelayUdp(RelayUdp.ENABLED))
.apply();
}
@@ -1089,6 +1263,43 @@ public final class HostPoolsUpdateSamples {
}
```
+### InitiateSessionHostUpdate_Post
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateConfigurationPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.UpdateSessionHostsRequestBody;
+import java.time.OffsetDateTime;
+
+/**
+ * Samples for InitiateSessionHostUpdate Post.
+ */
+public final class InitiateSessionHostUpdatePostSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_UpdateSessionHosts_Post.json
+ */
+ /**
+ * Sample code: SessionHostManagements_UpdateSessionHosts_Post.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsUpdateSessionHostsPost(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.initiateSessionHostUpdates()
+ .postWithResponse("resourceGroup1", "hostPool1",
+ new UpdateSessionHostsRequestBody()
+ .withScheduledDateTime(OffsetDateTime.parse("2008-09-22T14:01:54.9571247Z"))
+ .withScheduledDateTimeZone("Alaskan Standard Time")
+ .withUpdate(new HostPoolUpdateConfigurationPatchProperties().withDeleteOriginalVm(true)
+ .withMaxVmsRemoved(4)
+ .withLogOffDelayMinutes(10)
+ .withLogOffMessage("logging off for hostpool update")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### MsixImages_Expand
```java
@@ -1100,18 +1311,18 @@ import com.azure.resourcemanager.desktopvirtualization.models.MsixImageUri;
public final class MsixImagesExpandSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixImage_Expand_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MsixImages_Expand.json
*/
/**
- * Sample code: MsixImage_Expand.
+ * Sample code: MsixImages_Expand.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- msixImageExpand(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ msixImagesExpand(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.msixImages()
- .expand("resourceGroup1", "hostpool1", new MsixImageUri().withUri("imagepath"),
+ .expand("resourceGroup1", "hostpool1", new MsixImageUri().withUri("https://url.com/imagePath"),
com.azure.core.util.Context.NONE);
}
}
@@ -1131,16 +1342,16 @@ import java.util.Arrays;
public final class MsixPackagesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixPackage_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MsixPackages_CreateOrUpdate.json
*/
/**
- * Sample code: MSIXPackage_Create.
+ * Sample code: MsixPackages_Create.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- mSIXPackageCreate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ msixPackagesCreate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.msixPackages()
.define("msixpackagefullname")
.withExistingHostPool("resourceGroup1", "hostpool1")
@@ -1178,16 +1389,16 @@ public final class MsixPackagesCreateOrUpdateSamples {
public final class MsixPackagesDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixPackage_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MsixPackages_Delete.json
*/
/**
- * Sample code: MSIXPackage_Delete.
+ * Sample code: MsixPackages_Delete.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- mSIXPackageDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ msixPackagesDelete(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.msixPackages()
.deleteWithResponse("resourceGroup1", "hostpool1", "packagefullname", com.azure.core.util.Context.NONE);
}
@@ -1203,16 +1414,16 @@ public final class MsixPackagesDeleteSamples {
public final class MsixPackagesGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixPackage_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MSIXPackages_Get.json
*/
/**
- * Sample code: MSIXPackage_Get.
+ * Sample code: MSIXPackages_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- mSIXPackageGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ mSIXPackagesGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.msixPackages()
.getWithResponse("resourceGroup1", "hostpool1", "packagefullname", com.azure.core.util.Context.NONE);
}
@@ -1228,16 +1439,16 @@ public final class MsixPackagesGetSamples {
public final class MsixPackagesListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixPackage_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MSIXPackages_List.json
*/
/**
- * Sample code: MSIXPackage_List.
+ * Sample code: MSIXPackages_List.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- mSIXPackageList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ mSIXPackagesList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.msixPackages().list("resourceGroup1", "hostpool1", 10, true, 0, com.azure.core.util.Context.NONE);
}
}
@@ -1247,6 +1458,7 @@ public final class MsixPackagesListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackage;
+import com.azure.resourcemanager.desktopvirtualization.models.MsixPackagePatchProperties;
/**
* Samples for MsixPackages Update.
@@ -1254,20 +1466,24 @@ import com.azure.resourcemanager.desktopvirtualization.models.MsixPackage;
public final class MsixPackagesUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * MsixPackage_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/MsixPackages_Update.json
*/
/**
- * Sample code: MSIXPackage_Update.
+ * Sample code: MsixPackage_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- mSIXPackageUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ msixPackageUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
MsixPackage resource = manager.msixPackages()
.getWithResponse("resourceGroup1", "hostpool1", "msixpackagefullname", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withIsActive(true).withIsRegularRegistration(false).withDisplayName("displayname").apply();
+ resource.update()
+ .withProperties(new MsixPackagePatchProperties().withIsActive(true)
+ .withIsRegularRegistration(false)
+ .withDisplayName("displayname"))
+ .apply();
}
}
```
@@ -1281,16 +1497,16 @@ public final class MsixPackagesUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * OperationDescription_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Operations_List.json
*/
/**
- * Sample code: OperationDescription_List.
+ * Sample code: List Provider Operations.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- operationDescriptionList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ listProviderOperations(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
@@ -1305,15 +1521,15 @@ public final class OperationsListSamples {
public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_DeleteByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_DeleteByHostPool.json
*/
/**
- * Sample code: PrivateEndpointConnection_DeleteByHostPool.
+ * Sample code: PrivateEndpointConnections_DeleteByHostPool.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionDeleteByHostPool(
+ public static void privateEndpointConnectionsDeleteByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.deleteByHostPoolWithResponse("resourceGroup1", "hostPool1",
@@ -1331,15 +1547,15 @@ public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_DeleteByWorkspace.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_DeleteByWorkspace.json
*/
/**
- * Sample code: PrivateEndpointConnection_DeleteByWorkspace.
+ * Sample code: PrivateEndpointConnections_DeleteByWorkspace.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionDeleteByWorkspace(
+ public static void privateEndpointConnectionsDeleteByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.deleteByWorkspaceWithResponse("resourceGroup1", "workspace1",
@@ -1357,15 +1573,15 @@ public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
public final class PrivateEndpointConnectionsGetByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_GetByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_GetByHostPool.json
*/
/**
- * Sample code: PrivateEndpointConnection_GetByHostPool.
+ * Sample code: PrivateEndpointConnections_GetByHostPool.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionGetByHostPool(
+ public static void privateEndpointConnectionsGetByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.getByHostPoolWithResponse("resourceGroup1", "hostPool1", "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
@@ -1383,15 +1599,15 @@ public final class PrivateEndpointConnectionsGetByHostPoolSamples {
public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_GetByWorkspace.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_GetByWorkspace.json
*/
/**
- * Sample code: PrivateEndpointConnection_GetByWorkspace.
+ * Sample code: PrivateEndpointConnections_GetByWorkspace.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionGetByWorkspace(
+ public static void privateEndpointConnectionsGetByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.getByWorkspaceWithResponse("resourceGroup1", "workspace1",
@@ -1409,15 +1625,15 @@ public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
public final class PrivateEndpointConnectionsListByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_ListByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_ListByHostPool.json
*/
/**
- * Sample code: PrivateEndpointConnection_ListByHostPool.
+ * Sample code: PrivateEndpointConnections_ListByHostPool.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionListByHostPool(
+ public static void privateEndpointConnectionsListByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.listByHostPool("resourceGroup1", "hostPool1", null, null, null, com.azure.core.util.Context.NONE);
@@ -1434,15 +1650,15 @@ public final class PrivateEndpointConnectionsListByHostPoolSamples {
public final class PrivateEndpointConnectionsListByWorkspaceSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_ListByWorkspace.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_ListByWorkspace.json
*/
/**
- * Sample code: PrivateEndpointConnection_ListByWorkspace.
+ * Sample code: PrivateEndpointConnections_ListByWorkspace.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionListByWorkspace(
+ public static void privateEndpointConnectionsListByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.listByWorkspace("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE);
@@ -1453,7 +1669,7 @@ public final class PrivateEndpointConnectionsListByWorkspaceSamples {
### PrivateEndpointConnections_UpdateByHostPool
```java
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
@@ -1463,20 +1679,20 @@ import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkService
public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_UpdateByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_UpdateByHostPool.json
*/
/**
- * Sample code: PrivateEndpointConnection_UpdateByHostPool.
+ * Sample code: PrivateEndpointConnections_UpdateByHostPool.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionUpdateByHostPool(
+ public static void privateEndpointConnectionsUpdateByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.updateByHostPoolWithResponse("resourceGroup1", "hostPool1",
"hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
- new PrivateEndpointConnection().withPrivateLinkServiceConnectionState(
+ new PrivateEndpointConnectionWithSystemDataInner().withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
.withDescription("Approved by admin@consoto.com")
.withActionsRequired("None")),
@@ -1488,7 +1704,7 @@ public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
### PrivateEndpointConnections_UpdateByWorkspace
```java
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
@@ -1498,20 +1714,20 @@ import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkService
public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateEndpointConnection_UpdateByWorkspace.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateEndpointConnections_UpdateByWorkspace.json
*/
/**
- * Sample code: PrivateEndpointConnection_UpdateByWorkspace.
+ * Sample code: PrivateEndpointConnections_UpdateByWorkspace.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionUpdateByWorkspace(
+ public static void privateEndpointConnectionsUpdateByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.privateEndpointConnections()
.updateByWorkspaceWithResponse("resourceGroup1", "workspace1",
"workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
- new PrivateEndpointConnection().withPrivateLinkServiceConnectionState(
+ new PrivateEndpointConnectionWithSystemDataInner().withPrivateLinkServiceConnectionState(
new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
.withDescription("Approved by admin@consoto.com")
.withActionsRequired("None")),
@@ -1529,8 +1745,8 @@ public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
public final class PrivateLinkResourcesListByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateLinkResources_ListByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateLinkResources_ListByHostPool.json
*/
/**
* Sample code: PrivateLinkResources_ListByHostPool.
@@ -1554,8 +1770,8 @@ public final class PrivateLinkResourcesListByHostPoolSamples {
public final class PrivateLinkResourcesListByWorkspaceSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * PrivateLinkResources_ListByWorkspace.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/PrivateLinkResources_ListByWorkspace.json
*/
/**
* Sample code: PrivateLinkResources_ListByWorkspace.
@@ -1586,8 +1802,8 @@ import java.util.Arrays;
public final class ScalingPlanPersonalSchedulesCreateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPersonalSchedule_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPersonalSchedules_Create.json
*/
/**
* Sample code: ScalingPlanPersonalSchedules_Create.
@@ -1602,25 +1818,25 @@ public final class ScalingPlanPersonalSchedulesCreateSamples {
.withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY,
DayOfWeek.FRIDAY))
.withRampUpStartTime(new Time().withHour(6).withMinute(0))
+ .withPeakStartTime(new Time().withHour(8).withMinute(0))
+ .withRampDownStartTime(new Time().withHour(18).withMinute(0))
+ .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
.withRampUpAutoStartHosts(StartupBehavior.ALL)
.withRampUpStartVMOnConnect(SetStartVMOnConnect.ENABLE)
.withRampUpActionOnDisconnect(SessionHandlingOperation.NONE)
.withRampUpMinutesToWaitOnDisconnect(10)
.withRampUpActionOnLogoff(SessionHandlingOperation.NONE)
.withRampUpMinutesToWaitOnLogoff(10)
- .withPeakStartTime(new Time().withHour(8).withMinute(0))
.withPeakStartVMOnConnect(SetStartVMOnConnect.ENABLE)
.withPeakActionOnDisconnect(SessionHandlingOperation.NONE)
.withPeakMinutesToWaitOnDisconnect(10)
.withPeakActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
.withPeakMinutesToWaitOnLogoff(10)
- .withRampDownStartTime(new Time().withHour(18).withMinute(0))
.withRampDownStartVMOnConnect(SetStartVMOnConnect.ENABLE)
.withRampDownActionOnDisconnect(SessionHandlingOperation.NONE)
.withRampDownMinutesToWaitOnDisconnect(10)
.withRampDownActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
.withRampDownMinutesToWaitOnLogoff(10)
- .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
.withOffPeakStartVMOnConnect(SetStartVMOnConnect.ENABLE)
.withOffPeakActionOnDisconnect(SessionHandlingOperation.NONE)
.withOffPeakMinutesToWaitOnDisconnect(10)
@@ -1640,8 +1856,8 @@ public final class ScalingPlanPersonalSchedulesCreateSamples {
public final class ScalingPlanPersonalSchedulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPersonalSchedule_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPersonalSchedules_Delete.json
*/
/**
* Sample code: ScalingPlanPersonalSchedules_Delete.
@@ -1666,8 +1882,8 @@ public final class ScalingPlanPersonalSchedulesDeleteSamples {
public final class ScalingPlanPersonalSchedulesGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPersonalSchedule_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPersonalSchedules_Get.json
*/
/**
* Sample code: ScalingPlanPersonalSchedules_Get.
@@ -1692,8 +1908,8 @@ public final class ScalingPlanPersonalSchedulesGetSamples {
public final class ScalingPlanPersonalSchedulesListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPersonalSchedule_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPersonalSchedules_List.json
*/
/**
* Sample code: ScalingPlanPersonalSchedules_List.
@@ -1712,6 +1928,7 @@ public final class ScalingPlanPersonalSchedulesListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPersonalSchedule;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPersonalSchedulePatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHandlingOperation;
import com.azure.resourcemanager.desktopvirtualization.models.SetStartVMOnConnect;
import com.azure.resourcemanager.desktopvirtualization.models.Time;
@@ -1722,8 +1939,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.Time;
public final class ScalingPlanPersonalSchedulesUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPersonalSchedule_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPersonalSchedules_Update.json
*/
/**
* Sample code: ScalingPlanPersonalSchedules_Update.
@@ -1737,22 +1954,23 @@ public final class ScalingPlanPersonalSchedulesUpdateSamples {
com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withPeakStartTime(new Time().withHour(8).withMinute(0))
- .withPeakActionOnDisconnect(SessionHandlingOperation.NONE)
- .withPeakMinutesToWaitOnDisconnect(10)
- .withPeakActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
- .withPeakMinutesToWaitOnLogoff(10)
- .withRampDownStartTime(new Time().withHour(18).withMinute(0))
- .withRampDownActionOnDisconnect(SessionHandlingOperation.NONE)
- .withRampDownMinutesToWaitOnDisconnect(10)
- .withRampDownActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
- .withRampDownMinutesToWaitOnLogoff(10)
- .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
- .withOffPeakStartVMOnConnect(SetStartVMOnConnect.DISABLE)
- .withOffPeakActionOnDisconnect(SessionHandlingOperation.NONE)
- .withOffPeakMinutesToWaitOnDisconnect(10)
- .withOffPeakActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
- .withOffPeakMinutesToWaitOnLogoff(10)
+ .withProperties(
+ new ScalingPlanPersonalSchedulePatchProperties().withPeakStartTime(new Time().withHour(8).withMinute(0))
+ .withPeakActionOnDisconnect(SessionHandlingOperation.NONE)
+ .withPeakMinutesToWaitOnDisconnect(10)
+ .withPeakActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
+ .withPeakMinutesToWaitOnLogoff(10)
+ .withRampDownStartTime(new Time().withHour(18).withMinute(0))
+ .withRampDownActionOnDisconnect(SessionHandlingOperation.NONE)
+ .withRampDownMinutesToWaitOnDisconnect(10)
+ .withRampDownActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
+ .withRampDownMinutesToWaitOnLogoff(10)
+ .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
+ .withOffPeakStartVMOnConnect(SetStartVMOnConnect.DISABLE)
+ .withOffPeakActionOnDisconnect(SessionHandlingOperation.NONE)
+ .withOffPeakMinutesToWaitOnDisconnect(10)
+ .withOffPeakActionOnLogoff(SessionHandlingOperation.DEALLOCATE)
+ .withOffPeakMinutesToWaitOnLogoff(10))
.apply();
}
}
@@ -1772,8 +1990,8 @@ import java.util.Arrays;
public final class ScalingPlanPooledSchedulesCreateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPooledSchedule_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPooledSchedules_Create.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Create.
@@ -1788,19 +2006,19 @@ public final class ScalingPlanPooledSchedulesCreateSamples {
.withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY,
DayOfWeek.FRIDAY))
.withRampUpStartTime(new Time().withHour(6).withMinute(0))
- .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
- .withRampUpMinimumHostsPct(20)
.withRampUpCapacityThresholdPct(80)
.withPeakStartTime(new Time().withHour(8).withMinute(0))
- .withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.BREADTH_FIRST)
.withRampDownStartTime(new Time().withHour(18).withMinute(0))
+ .withRampDownCapacityThresholdPct(50)
+ .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
+ .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampUpMinimumHostsPct(20)
+ .withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.BREADTH_FIRST)
.withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
.withRampDownMinimumHostsPct(20)
- .withRampDownCapacityThresholdPct(50)
.withRampDownForceLogoffUsers(true)
.withRampDownWaitTimeMinutes(30)
.withRampDownNotificationMessage("message")
- .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
.withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
.create();
}
@@ -1816,8 +2034,8 @@ public final class ScalingPlanPooledSchedulesCreateSamples {
public final class ScalingPlanPooledSchedulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPooledSchedule_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPooledSchedules_Delete.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Delete.
@@ -1842,8 +2060,8 @@ public final class ScalingPlanPooledSchedulesDeleteSamples {
public final class ScalingPlanPooledSchedulesGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPooledSchedule_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPooledSchedules_Get.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Get.
@@ -1868,8 +2086,8 @@ public final class ScalingPlanPooledSchedulesGetSamples {
public final class ScalingPlanPooledSchedulesListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPooledSchedule_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPooledSchedules_List.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_List.
@@ -1889,6 +2107,7 @@ public final class ScalingPlanPooledSchedulesListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedule;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
import com.azure.resourcemanager.desktopvirtualization.models.Time;
import java.util.Arrays;
@@ -1899,8 +2118,8 @@ import java.util.Arrays;
public final class ScalingPlanPooledSchedulesUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlanPooledSchedule_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlanPooledSchedules_Update.json
*/
/**
* Sample code: ScalingPlanPooledSchedules_Update.
@@ -1914,14 +2133,15 @@ public final class ScalingPlanPooledSchedulesUpdateSamples {
com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY,
- DayOfWeek.FRIDAY))
- .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
- .withRampUpCapacityThresholdPct(80)
- .withPeakStartTime(new Time().withHour(8).withMinute(0))
- .withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
- .withRampDownMinimumHostsPct(20)
- .withRampDownWaitTimeMinutes(30)
+ .withProperties(new ScalingPlanPooledSchedulePatchProperties()
+ .withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY,
+ DayOfWeek.THURSDAY, DayOfWeek.FRIDAY))
+ .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampUpCapacityThresholdPct(80)
+ .withPeakStartTime(new Time().withHour(8).withMinute(0))
+ .withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampDownMinimumHostsPct(20)
+ .withRampDownWaitTimeMinutes(30))
.apply();
}
}
@@ -1930,10 +2150,10 @@ public final class ScalingPlanPooledSchedulesUpdateSamples {
### ScalingPlans_Create
```java
+import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolType;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
-import com.azure.resourcemanager.desktopvirtualization.models.ScalingScheduleDaysOfWeekItem;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
import com.azure.resourcemanager.desktopvirtualization.models.Time;
import java.util.Arrays;
@@ -1946,8 +2166,8 @@ import java.util.Map;
public final class ScalingPlansCreateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_Create.json
*/
/**
* Sample code: ScalingPlans_Create.
@@ -1967,9 +2187,8 @@ public final class ScalingPlansCreateSamples {
.withHostPoolType(ScalingHostPoolType.POOLED)
.withExclusionTag("value")
.withSchedules(Arrays.asList(new ScalingSchedule().withName("schedule1")
- .withDaysOfWeek(Arrays.asList(ScalingScheduleDaysOfWeekItem.MONDAY,
- ScalingScheduleDaysOfWeekItem.TUESDAY, ScalingScheduleDaysOfWeekItem.WEDNESDAY,
- ScalingScheduleDaysOfWeekItem.THURSDAY, ScalingScheduleDaysOfWeekItem.FRIDAY))
+ .withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY,
+ DayOfWeek.THURSDAY, DayOfWeek.FRIDAY))
.withRampUpStartTime(new Time().withHour(6).withMinute(0))
.withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
.withRampUpMinimumHostsPct(20)
@@ -2014,8 +2233,8 @@ public final class ScalingPlansCreateSamples {
public final class ScalingPlansDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_Delete.json
*/
/**
* Sample code: ScalingPlans_Delete.
@@ -2039,8 +2258,8 @@ public final class ScalingPlansDeleteSamples {
public final class ScalingPlansGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_Get.json
*/
/**
* Sample code: ScalingPlans_Get.
@@ -2064,8 +2283,8 @@ public final class ScalingPlansGetByResourceGroupSamples {
public final class ScalingPlansListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_ListBySubscription.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_ListBySubscription.json
*/
/**
* Sample code: ScalingPlans_ListBySubscription.
@@ -2088,15 +2307,15 @@ public final class ScalingPlansListSamples {
public final class ScalingPlansListByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_ListByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_ListByHostPool.json
*/
/**
- * Sample code: ScalingPlan_ListByHostPool.
+ * Sample code: ScalingPlans_ListByHostPool.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void scalingPlanListByHostPool(
+ public static void scalingPlansListByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.scalingPlans()
.listByHostPool("resourceGroup1", "hostPool1", 10, true, 0, com.azure.core.util.Context.NONE);
@@ -2113,8 +2332,8 @@ public final class ScalingPlansListByHostPoolSamples {
public final class ScalingPlansListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_ListByResourceGroup.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_ListByResourceGroup.json
*/
/**
* Sample code: ScalingPlans_ListByResourceGroup.
@@ -2131,7 +2350,16 @@ public final class ScalingPlansListByResourceGroupSamples {
### ScalingPlans_Update
```java
+import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlan;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
+import com.azure.resourcemanager.desktopvirtualization.models.Time;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
/**
* Samples for ScalingPlans Update.
@@ -2139,8 +2367,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlan;
public final class ScalingPlansUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * ScalingPlan_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/ScalingPlans_Update.json
*/
/**
* Sample code: ScalingPlans_Update.
@@ -2152,7 +2380,429 @@ public final class ScalingPlansUpdateSamples {
ScalingPlan resource = manager.scalingPlans()
.getByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", com.azure.core.util.Context.NONE)
.getValue();
- resource.update().apply();
+ resource.update()
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withProperties(new ScalingPlanPatchProperties().withDescription("Description of Scaling Plan")
+ .withFriendlyName("Scaling Plan 1")
+ .withTimeZone("Central Standard Time")
+ .withExclusionTag("value")
+ .withSchedules(Arrays.asList(new ScalingSchedule().withName("schedule1")
+ .withDaysOfWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY,
+ DayOfWeek.THURSDAY, DayOfWeek.FRIDAY))
+ .withRampUpStartTime(new Time().withHour(6).withMinute(0))
+ .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampUpMinimumHostsPct(20)
+ .withRampUpCapacityThresholdPct(80)
+ .withPeakStartTime(new Time().withHour(8).withMinute(0))
+ .withPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.BREADTH_FIRST)
+ .withRampDownStartTime(new Time().withHour(18).withMinute(0))
+ .withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampDownMinimumHostsPct(20)
+ .withRampDownCapacityThresholdPct(50)
+ .withRampDownForceLogoffUsers(true)
+ .withRampDownWaitTimeMinutes(30)
+ .withRampDownNotificationMessage("message")
+ .withOffPeakStartTime(new Time().withHour(20).withMinute(0))
+ .withOffPeakLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)))
+ .withHostPoolReferences(Arrays.asList(new ScalingHostPoolReference().withHostPoolArmPath(
+ "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostPools/hostPool1")
+ .withScalingPlanEnabled(true))))
+ .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;
+ }
+}
+```
+
+### SessionHostConfigurations_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostConfigurationInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ActiveDirectoryInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.AzureActiveDirectoryInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.BootDiagnosticsInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.CustomInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DiskInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DomainInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DomainJoinType;
+import com.azure.resourcemanager.desktopvirtualization.models.ImageInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.KeyVaultCredentialsProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.MarketplaceInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.NetworkInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.SecurityInfoProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.Type;
+import com.azure.resourcemanager.desktopvirtualization.models.VirtualMachineDiskType;
+import com.azure.resourcemanager.desktopvirtualization.models.VirtualMachineSecurityType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for SessionHostConfigurations CreateOrUpdate.
+ */
+public final class SessionHostConfigurationsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostConfigurations_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: SessionHostConfigurations_Create.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostConfigurationsCreate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostConfigurations()
+ .createOrUpdate("resourceGroup1", "hostPool1", new SessionHostConfigurationInner()
+ .withFriendlyName("InitialConfiguration")
+ .withVmTags(mapOf("Department", "myDepartment", "Team", "myTeam"))
+ .withVmLocation("eastus2")
+ .withVmResourceGroup("myResourceGroup")
+ .withVmNamePrefix("westus2-vm")
+ .withAvailabilityZones(Arrays.asList(1, 3))
+ .withNetworkInfo(new NetworkInfoProperties().withSubnetId(
+ "/subscriptions/.../resourceGroups/.../providers/Microsoft.Network/virtualNetworks/.../subnets/subnet1")
+ .withSecurityGroupId(
+ "/subscriptions/.../resourceGroups/.../provider s/Microsoft.Network/networkSecurityGroups/nsg1"))
+ .withVmSizeId("Standard_D2s_v3")
+ .withDiskInfo(new DiskInfoProperties().withType(VirtualMachineDiskType.STANDARD_LRS))
+ .withCustomConfigurationScriptUrl("https://storageaccountname.blob.core.windows.net/blobcontainer/file")
+ .withImageInfo(new ImageInfoProperties().withType(Type.MARKETPLACE)
+ .withMarketplaceInfo(new MarketplaceInfoProperties().withOffer("Windows-10")
+ .withPublisher("MicrosoftWindowsDesktop")
+ .withSku("19h2-ent")
+ .withExactVersion("2019.0.20190115"))
+ .withCustomInfo(new CustomInfoProperties().withResourceId(
+ "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.Compute/images/imageName")))
+ .withDomainInfo(new DomainInfoProperties().withJoinType(DomainJoinType.ACTIVE_DIRECTORY)
+ .withActiveDirectoryInfo(new ActiveDirectoryInfoProperties()
+ .withDomainCredentials(
+ new KeyVaultCredentialsProperties().withUsernameKeyVaultSecretUri("fakeTokenPlaceholder")
+ .withPasswordKeyVaultSecretUri("fakeTokenPlaceholder"))
+ .withOuPath("OU=testOU,DC=domain,DC=Domain,DC=com")
+ .withDomainName("wvdarmtest1.net"))
+ .withAzureActiveDirectoryInfo(new AzureActiveDirectoryInfoProperties()
+ .withMdmProviderGuid("bdefabc0-95b4-48b3-b645-8a753a63c4fa")))
+ .withSecurityInfo(new SecurityInfoProperties().withType(VirtualMachineSecurityType.TRUSTED_LAUNCH)
+ .withSecureBootEnabled(true)
+ .withVTpmEnabled(true))
+ .withVmAdminCredentials(
+ new KeyVaultCredentialsProperties().withUsernameKeyVaultSecretUri("fakeTokenPlaceholder")
+ .withPasswordKeyVaultSecretUri("fakeTokenPlaceholder"))
+ .withBootDiagnosticsInfo(new BootDiagnosticsInfoProperties().withEnabled(true)
+ .withStorageUri("https://myStorageAccountName.blob.core.windows.net")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // 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;
+ }
+}
+```
+
+### SessionHostConfigurations_Get
+
+```java
+/**
+ * Samples for SessionHostConfigurations Get.
+ */
+public final class SessionHostConfigurationsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostConfigurations_Get.json
+ */
+ /**
+ * Sample code: SessionHostConfigurations_Get.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostConfigurationsGet(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostConfigurations()
+ .getWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostConfigurations_ListByHostPool
+
+```java
+/**
+ * Samples for SessionHostConfigurations ListByHostPool.
+ */
+public final class SessionHostConfigurationsListByHostPoolSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostConfigurations_ListByHostPool.json
+ */
+ /**
+ * Sample code: SessionHostConfigurations_ListByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostConfigurationsListByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostConfigurations()
+ .listByHostPool("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostConfigurations_Update
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.models.ActiveDirectoryInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.BootDiagnosticsInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.CustomInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DiskInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DomainInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.ImageInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.KeyVaultCredentialsPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.MarketplaceInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.NetworkInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.SecurityInfoPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostConfigurationPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostConfigurationPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.Type;
+import com.azure.resourcemanager.desktopvirtualization.models.VirtualMachineDiskType;
+import com.azure.resourcemanager.desktopvirtualization.models.VirtualMachineSecurityType;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for SessionHostConfigurations Update.
+ */
+public final class SessionHostConfigurationsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostConfigurations_Update.json
+ */
+ /**
+ * Sample code: SessionHostConfigurations_Update.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostConfigurationsUpdate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostConfigurations()
+ .update("resourceGroup1", "hostPool1",
+ new SessionHostConfigurationPatch().withProperties(new SessionHostConfigurationPatchProperties()
+ .withFriendlyName("Second Version, Updated Location")
+ .withVmTags(mapOf("Department", "myDepartment", "Team", "myTeam"))
+ .withVmLocation("eastus2")
+ .withVmResourceGroup("myResourceGroup")
+ .withVmNamePrefix("westus2-vm")
+ .withAvailabilityZones(Arrays.asList(1, 3))
+ .withNetworkInfo(new NetworkInfoPatchProperties().withSubnetId(
+ "/subscriptions/.../resourceGroups/.../providers/Microsoft.Network/virtualNetworks/.../subnets/subnet1")
+ .withSecurityGroupId(
+ "/subscriptions/.../resourceGroups/.../provider s/Microsoft.Network/networkSecurityGroups/nsg1"))
+ .withVmSizeId("Standard_D2s_v3")
+ .withDiskInfo(new DiskInfoPatchProperties().withType(VirtualMachineDiskType.STANDARD_LRS))
+ .withCustomConfigurationScriptUrl(
+ "https://storageaccountname.blob.core.windows.net/blobcontainer/file")
+ .withImageInfo(new ImageInfoPatchProperties().withType(Type.MARKETPLACE)
+ .withMarketplaceInfo(new MarketplaceInfoPatchProperties().withOffer("Windows-10")
+ .withPublisher("MicrosoftWindowsDesktop")
+ .withSku("19h2-ent")
+ .withExactVersion("2019.0.20190115"))
+ .withCustomInfo(new CustomInfoPatchProperties().withResourceId(
+ "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.Compute/images/imageName")))
+ .withDomainInfo(
+ new DomainInfoPatchProperties().withActiveDirectoryInfo(new ActiveDirectoryInfoPatchProperties()
+ .withDomainCredentials(new KeyVaultCredentialsPatchProperties()
+ .withUsernameKeyVaultSecretUri("fakeTokenPlaceholder")
+ .withPasswordKeyVaultSecretUri("fakeTokenPlaceholder"))))
+ .withSecurityInfo(
+ new SecurityInfoPatchProperties().withType(VirtualMachineSecurityType.TRUSTED_LAUNCH)
+ .withSecureBootEnabled(true)
+ .withVTpmEnabled(true))
+ .withVmAdminCredentials(
+ new KeyVaultCredentialsPatchProperties().withUsernameKeyVaultSecretUri("fakeTokenPlaceholder")
+ .withPasswordKeyVaultSecretUri("fakeTokenPlaceholder"))
+ .withBootDiagnosticsInfo(new BootDiagnosticsInfoPatchProperties().withEnabled(true)
+ .withStorageUri("https://myStorageAccountName.blob.core.windows.net"))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // 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;
+ }
+}
+```
+
+### SessionHostManagements_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.SessionHostManagementInner;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateConfigurationProperties;
+
+/**
+ * Samples for SessionHostManagements CreateOrUpdate.
+ */
+public final class SessionHostManagementsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_Create.json
+ */
+ /**
+ * Sample code: SessionHostManagements_Create.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsCreate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostManagements()
+ .createOrUpdateWithResponse("resourceGroup1", "hostPool1",
+ new SessionHostManagementInner().withScheduledDateTimeZone("Alaskan Standard Time")
+ .withUpdate(new HostPoolUpdateConfigurationProperties().withDeleteOriginalVm(true)
+ .withMaxVmsRemoved(4)
+ .withLogOffDelayMinutes(10)
+ .withLogOffMessage("logging off for hostpool update")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostManagements_Get
+
+```java
+/**
+ * Samples for SessionHostManagements Get.
+ */
+public final class SessionHostManagementsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_Get.json
+ */
+ /**
+ * Sample code: SessionHostManagements_Get.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsGet(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostManagements()
+ .getWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostManagements_ListByHostPool
+
+```java
+/**
+ * Samples for SessionHostManagements ListByHostPool.
+ */
+public final class SessionHostManagementsListByHostPoolSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_ListByHostPool.json
+ */
+ /**
+ * Sample code: SessionHostManagements_ListByHostPool.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsListByHostPool(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostManagements()
+ .listByHostPool("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostManagements_Update
+
+```java
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateConfigurationPatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostManagementPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostManagementPatchProperties;
+
+/**
+ * Samples for SessionHostManagements Update.
+ */
+public final class SessionHostManagementsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagements_Update.json
+ */
+ /**
+ * Sample code: SessionHostManagements_Update.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsUpdate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostManagements()
+ .updateWithResponse("resourceGroup1", "hostPool1",
+ new SessionHostManagementPatch().withProperties(
+ new SessionHostManagementPatchProperties().withScheduledDateTimeZone("Alaskan Standard Time")
+ .withUpdate(new HostPoolUpdateConfigurationPatchProperties().withDeleteOriginalVm(true)
+ .withMaxVmsRemoved(4)
+ .withLogOffDelayMinutes(10)
+ .withLogOffMessage("logging off for hostpool update"))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHostManagementsUpdateStatus_Get
+
+```java
+/**
+ * Samples for SessionHostManagementsUpdateStatus Get.
+ */
+public final class SessionHostManagementsUpdateStatusGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHostManagementsUpdateStatus_Get.json
+ */
+ /**
+ * Sample code: SessionHostManagementsUpdateStatus_Get.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostManagementsUpdateStatusGet(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHostManagementsUpdateStatus()
+ .getWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
}
}
```
@@ -2166,8 +2816,8 @@ public final class ScalingPlansUpdateSamples {
public final class SessionHostsDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * SessionHost_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHosts_Delete.json
*/
/**
* Sample code: SessionHost_Delete.
@@ -2192,8 +2842,8 @@ public final class SessionHostsDeleteSamples {
public final class SessionHostsGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * SessionHost_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHosts_Get.json
*/
/**
* Sample code: SessionHost_Get.
@@ -2218,8 +2868,8 @@ public final class SessionHostsGetSamples {
public final class SessionHostsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * SessionHost_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHosts_List.json
*/
/**
* Sample code: SessionHost_List.
@@ -2228,7 +2878,33 @@ public final class SessionHostsListSamples {
*/
public static void
sessionHostList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.sessionHosts().list("resourceGroup1", "hostPool1", 10, true, 0, com.azure.core.util.Context.NONE);
+ manager.sessionHosts().list("resourceGroup1", "hostPool1", 10, true, 0, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SessionHosts_RetryProvisioning
+
+```java
+/**
+ * Samples for SessionHosts RetryProvisioning.
+ */
+public final class SessionHostsRetryProvisioningSamples {
+ /*
+ * x-ms-original-file:
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHost_RetryProvisioning_Post.json
+ */
+ /**
+ * Sample code: SessionHosts_RetryProvisioning_Post.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void sessionHostsRetryProvisioningPost(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.sessionHosts()
+ .retryProvisioningWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2237,6 +2913,7 @@ public final class SessionHostsListSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatchProperties;
/**
* Samples for SessionHosts Update.
@@ -2244,8 +2921,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch;
public final class SessionHostsUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * SessionHost_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/SessionHosts_Update.json
*/
/**
* Sample code: SessionHost_Update.
@@ -2256,9 +2933,9 @@ public final class SessionHostsUpdateSamples {
sessionHostUpdate(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.sessionHosts()
.updateWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", true,
- new SessionHostPatch().withAllowNewSession(true)
+ new SessionHostPatch().withProperties(new SessionHostPatchProperties().withAllowNewSession(true)
.withAssignedUser("user1@microsoft.com")
- .withFriendlyName("friendly"),
+ .withFriendlyName("friendly")),
com.azure.core.util.Context.NONE);
}
}
@@ -2273,16 +2950,16 @@ public final class SessionHostsUpdateSamples {
public final class StartMenuItemsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * StartMenuItem_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/StartMenuItems_List.json
*/
/**
- * Sample code: StartMenuItem_List.
+ * Sample code: StartMenuItems_List.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- startMenuItemList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ startMenuItemsList(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.startMenuItems()
.list("resourceGroup1", "applicationGroup1", null, null, null, com.azure.core.util.Context.NONE);
}
@@ -2298,8 +2975,8 @@ public final class StartMenuItemsListSamples {
public final class UserSessionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSessions_Delete.json
*/
/**
* Sample code: UserSession_Delete.
@@ -2324,8 +3001,8 @@ public final class UserSessionsDeleteSamples {
public final class UserSessionsDisconnectSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_Disconnect_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSessions_Disconnect.json
*/
/**
* Sample code: UserSession_Disconnect_Post.
@@ -2350,16 +3027,16 @@ public final class UserSessionsDisconnectSamples {
public final class UserSessionsGetSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSession_Get.json
*/
/**
- * Sample code: UserSession_Get.
+ * Sample code: UserSessions_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
public static void
- userSessionGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ userSessionsGet(com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.userSessions()
.getWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1",
com.azure.core.util.Context.NONE);
@@ -2376,8 +3053,8 @@ public final class UserSessionsGetSamples {
public final class UserSessionsListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_List.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSessions_List.json
*/
/**
* Sample code: UserSession_List.
@@ -2402,8 +3079,8 @@ public final class UserSessionsListSamples {
public final class UserSessionsListByHostPoolSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_ListByHostPool.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSessions_ListByHostPool.json
*/
/**
* Sample code: UserSession_ListByHostPool.
@@ -2431,8 +3108,8 @@ import com.azure.resourcemanager.desktopvirtualization.models.SendMessage;
public final class UserSessionsSendMessageSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * UserSession_SendMessage_Post.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/UserSessions_SendMessage.json
*/
/**
* Sample code: UserSession_SendMessage_Post.
@@ -2460,8 +3137,8 @@ import java.util.Map;
public final class WorkspacesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_Create.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_CreateOrUpdate.json
*/
/**
* Sample code: Workspace_Create.
@@ -2503,8 +3180,8 @@ public final class WorkspacesCreateOrUpdateSamples {
public final class WorkspacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_Delete.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_Delete.json
*/
/**
* Sample code: Workspace_Delete.
@@ -2528,8 +3205,8 @@ public final class WorkspacesDeleteSamples {
public final class WorkspacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_Get.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_Get.json
*/
/**
* Sample code: Workspace_Get.
@@ -2553,15 +3230,15 @@ public final class WorkspacesGetByResourceGroupSamples {
public final class WorkspacesListSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_ListBySubscription.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_ListBySubscription.json
*/
/**
- * Sample code: Workspace_ListBySubscription.
+ * Sample code: Workspaces_ListBySubscription.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void workspaceListBySubscription(
+ public static void workspacesListBySubscription(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager.workspaces().list(com.azure.core.util.Context.NONE);
}
@@ -2577,8 +3254,8 @@ public final class WorkspacesListSamples {
public final class WorkspacesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_ListByResourceGroup.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_ListByResourceGroup.json
*/
/**
* Sample code: Workspace_ListByResourceGroup.
@@ -2596,6 +3273,7 @@ public final class WorkspacesListByResourceGroupSamples {
```java
import com.azure.resourcemanager.desktopvirtualization.models.Workspace;
+import com.azure.resourcemanager.desktopvirtualization.models.WorkspacePatchProperties;
import java.util.HashMap;
import java.util.Map;
@@ -2605,8 +3283,8 @@ import java.util.Map;
public final class WorkspacesUpdateSamples {
/*
* x-ms-original-file:
- * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/
- * Workspace_Update.json
+ * specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/
+ * examples/Workspaces_Update.json
*/
/**
* Sample code: Workspace_Update.
@@ -2620,8 +3298,7 @@ public final class WorkspacesUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withDescription("des1")
- .withFriendlyName("friendly")
+ .withProperties(new WorkspacePatchProperties().withDescription("des1").withFriendlyName("friendly"))
.apply();
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
index 77412c62e1e8..9452e83bfe5a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for DesktopVirtualization Management
- This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-04.
+ This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Typespec represents the Desktop Virtualization API interfaces. Package tag package-preview-2024-08.
https://github.com/Azure/azure-sdk-for-java
@@ -45,13 +45,10 @@
UTF-8
0
0
+ true
+ false
-
- com.azure
- azure-json
- 1.4.0
-
com.azure
azure-core
@@ -62,6 +59,11 @@
azure-core-management
1.16.2
+
+ com.azure
+ azure-json
+ 1.4.0
+
com.azure
azure-core-test
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java
index 428b4c9465bc..d7e375add81e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java
@@ -11,26 +11,30 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.fluent.DesktopVirtualizationApiClient;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ActiveSessionHostConfigurationsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.AppAttachPackageInfoesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.AppAttachPackagesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationGroupsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationsImpl;
-import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ControlSessionHostUpdatesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopVirtualizationApiClientBuilder;
+import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.HostPoolsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.InitiateSessionHostUpdatesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.MsixImagesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.MsixPackagesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.OperationsImpl;
@@ -39,16 +43,22 @@
import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlanPersonalSchedulesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlanPooledSchedulesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlansImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostConfigurationsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostManagementsImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostManagementsUpdateStatusImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.StartMenuItemsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.UserSessionsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.WorkspacesImpl;
+import com.azure.resourcemanager.desktopvirtualization.models.ActiveSessionHostConfigurations;
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackageInfoes;
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackages;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroups;
import com.azure.resourcemanager.desktopvirtualization.models.Applications;
+import com.azure.resourcemanager.desktopvirtualization.models.ControlSessionHostUpdates;
import com.azure.resourcemanager.desktopvirtualization.models.Desktops;
import com.azure.resourcemanager.desktopvirtualization.models.HostPools;
+import com.azure.resourcemanager.desktopvirtualization.models.InitiateSessionHostUpdates;
import com.azure.resourcemanager.desktopvirtualization.models.MsixImages;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackages;
import com.azure.resourcemanager.desktopvirtualization.models.Operations;
@@ -57,6 +67,9 @@
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPersonalSchedules;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedules;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlans;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostConfigurations;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostManagements;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostManagementsUpdateStatus;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHosts;
import com.azure.resourcemanager.desktopvirtualization.models.StartMenuItems;
import com.azure.resourcemanager.desktopvirtualization.models.UserSessions;
@@ -65,48 +78,62 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* Entry point to DesktopVirtualizationManager.
+ * This Typespec represents the Desktop Virtualization API interfaces.
*/
public final class DesktopVirtualizationManager {
private Operations operations;
- private Workspaces workspaces;
+ private AppAttachPackages appAttachPackages;
- private PrivateEndpointConnections privateEndpointConnections;
+ private ApplicationGroups applicationGroups;
- private PrivateLinkResources privateLinkResources;
+ private HostPools hostPools;
private ScalingPlans scalingPlans;
- private ScalingPlanPooledSchedules scalingPlanPooledSchedules;
+ private Workspaces workspaces;
- private ScalingPlanPersonalSchedules scalingPlanPersonalSchedules;
+ private Applications applications;
- private ApplicationGroups applicationGroups;
+ private Desktops desktops;
private StartMenuItems startMenuItems;
- private Applications applications;
+ private ActiveSessionHostConfigurations activeSessionHostConfigurations;
- private Desktops desktops;
+ private MsixImages msixImages;
- private HostPools hostPools;
+ private AppAttachPackageInfoes appAttachPackageInfoes;
- private UserSessions userSessions;
+ private MsixPackages msixPackages;
- private SessionHosts sessionHosts;
+ private PrivateEndpointConnections privateEndpointConnections;
- private MsixPackages msixPackages;
+ private PrivateLinkResources privateLinkResources;
- private AppAttachPackageInfoes appAttachPackageInfoes;
+ private SessionHostConfigurations sessionHostConfigurations;
- private MsixImages msixImages;
+ private SessionHostManagements sessionHostManagements;
- private AppAttachPackages appAttachPackages;
+ private ControlSessionHostUpdates controlSessionHostUpdates;
+
+ private InitiateSessionHostUpdates initiateSessionHostUpdates;
+
+ private SessionHostManagementsUpdateStatus sessionHostManagementsUpdateStatus;
+
+ private SessionHosts sessionHosts;
+
+ private UserSessions userSessions;
+
+ private ScalingPlanPersonalSchedules scalingPlanPersonalSchedules;
+
+ private ScalingPlanPooledSchedules scalingPlanPooledSchedules;
private final DesktopVirtualizationApiClient clientObject;
@@ -161,6 +188,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-desktopvirtualization.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -268,12 +298,14 @@ public DesktopVirtualizationManager authenticate(TokenCredential credential, Azu
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.desktopvirtualization")
.append("/")
- .append("1.2.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -306,7 +338,7 @@ public DesktopVirtualizationManager authenticate(TokenCredential credential, Azu
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -332,40 +364,39 @@ public Operations operations() {
}
/**
- * Gets the resource collection API of Workspaces. It manages Workspace.
+ * Gets the resource collection API of AppAttachPackages. It manages AppAttachPackage.
*
- * @return Resource collection API of Workspaces.
+ * @return Resource collection API of AppAttachPackages.
*/
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ public AppAttachPackages appAttachPackages() {
+ if (this.appAttachPackages == null) {
+ this.appAttachPackages = new AppAttachPackagesImpl(clientObject.getAppAttachPackages(), this);
}
- return workspaces;
+ return appAttachPackages;
}
/**
- * Gets the resource collection API of PrivateEndpointConnections.
+ * Gets the resource collection API of ApplicationGroups. It manages ApplicationGroup.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of ApplicationGroups.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public ApplicationGroups applicationGroups() {
+ if (this.applicationGroups == null) {
+ this.applicationGroups = new ApplicationGroupsImpl(clientObject.getApplicationGroups(), this);
}
- return privateEndpointConnections;
+ return applicationGroups;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of HostPools. It manages HostPool.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of HostPools.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public HostPools hostPools() {
+ if (this.hostPools == null) {
+ this.hostPools = new HostPoolsImpl(clientObject.getHostPools(), this);
}
- return privateLinkResources;
+ return hostPools;
}
/**
@@ -381,41 +412,39 @@ public ScalingPlans scalingPlans() {
}
/**
- * Gets the resource collection API of ScalingPlanPooledSchedules. It manages ScalingPlanPooledSchedule.
+ * Gets the resource collection API of Workspaces. It manages Workspace.
*
- * @return Resource collection API of ScalingPlanPooledSchedules.
+ * @return Resource collection API of Workspaces.
*/
- public ScalingPlanPooledSchedules scalingPlanPooledSchedules() {
- if (this.scalingPlanPooledSchedules == null) {
- this.scalingPlanPooledSchedules
- = new ScalingPlanPooledSchedulesImpl(clientObject.getScalingPlanPooledSchedules(), this);
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
}
- return scalingPlanPooledSchedules;
+ return workspaces;
}
/**
- * Gets the resource collection API of ScalingPlanPersonalSchedules. It manages ScalingPlanPersonalSchedule.
+ * Gets the resource collection API of Applications. It manages Application.
*
- * @return Resource collection API of ScalingPlanPersonalSchedules.
+ * @return Resource collection API of Applications.
*/
- public ScalingPlanPersonalSchedules scalingPlanPersonalSchedules() {
- if (this.scalingPlanPersonalSchedules == null) {
- this.scalingPlanPersonalSchedules
- = new ScalingPlanPersonalSchedulesImpl(clientObject.getScalingPlanPersonalSchedules(), this);
+ public Applications applications() {
+ if (this.applications == null) {
+ this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
}
- return scalingPlanPersonalSchedules;
+ return applications;
}
/**
- * Gets the resource collection API of ApplicationGroups. It manages ApplicationGroup.
+ * Gets the resource collection API of Desktops.
*
- * @return Resource collection API of ApplicationGroups.
+ * @return Resource collection API of Desktops.
*/
- public ApplicationGroups applicationGroups() {
- if (this.applicationGroups == null) {
- this.applicationGroups = new ApplicationGroupsImpl(clientObject.getApplicationGroups(), this);
+ public Desktops desktops() {
+ if (this.desktops == null) {
+ this.desktops = new DesktopsImpl(clientObject.getDesktops(), this);
}
- return applicationGroups;
+ return desktops;
}
/**
@@ -431,112 +460,193 @@ public StartMenuItems startMenuItems() {
}
/**
- * Gets the resource collection API of Applications. It manages Application.
+ * Gets the resource collection API of ActiveSessionHostConfigurations.
*
- * @return Resource collection API of Applications.
+ * @return Resource collection API of ActiveSessionHostConfigurations.
*/
- public Applications applications() {
- if (this.applications == null) {
- this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
+ public ActiveSessionHostConfigurations activeSessionHostConfigurations() {
+ if (this.activeSessionHostConfigurations == null) {
+ this.activeSessionHostConfigurations
+ = new ActiveSessionHostConfigurationsImpl(clientObject.getActiveSessionHostConfigurations(), this);
}
- return applications;
+ return activeSessionHostConfigurations;
}
/**
- * Gets the resource collection API of Desktops.
+ * Gets the resource collection API of MsixImages.
*
- * @return Resource collection API of Desktops.
+ * @return Resource collection API of MsixImages.
*/
- public Desktops desktops() {
- if (this.desktops == null) {
- this.desktops = new DesktopsImpl(clientObject.getDesktops(), this);
+ public MsixImages msixImages() {
+ if (this.msixImages == null) {
+ this.msixImages = new MsixImagesImpl(clientObject.getMsixImages(), this);
}
- return desktops;
+ return msixImages;
}
/**
- * Gets the resource collection API of HostPools. It manages HostPool.
+ * Gets the resource collection API of AppAttachPackageInfoes.
*
- * @return Resource collection API of HostPools.
+ * @return Resource collection API of AppAttachPackageInfoes.
*/
- public HostPools hostPools() {
- if (this.hostPools == null) {
- this.hostPools = new HostPoolsImpl(clientObject.getHostPools(), this);
+ public AppAttachPackageInfoes appAttachPackageInfoes() {
+ if (this.appAttachPackageInfoes == null) {
+ this.appAttachPackageInfoes
+ = new AppAttachPackageInfoesImpl(clientObject.getAppAttachPackageInfoes(), this);
}
- return hostPools;
+ return appAttachPackageInfoes;
}
/**
- * Gets the resource collection API of UserSessions.
+ * Gets the resource collection API of MsixPackages. It manages MsixPackage.
*
- * @return Resource collection API of UserSessions.
+ * @return Resource collection API of MsixPackages.
*/
- public UserSessions userSessions() {
- if (this.userSessions == null) {
- this.userSessions = new UserSessionsImpl(clientObject.getUserSessions(), this);
+ public MsixPackages msixPackages() {
+ if (this.msixPackages == null) {
+ this.msixPackages = new MsixPackagesImpl(clientObject.getMsixPackages(), this);
}
- return userSessions;
+ return msixPackages;
}
/**
- * Gets the resource collection API of SessionHosts.
+ * Gets the resource collection API of PrivateEndpointConnections.
*
- * @return Resource collection API of SessionHosts.
+ * @return Resource collection API of PrivateEndpointConnections.
*/
- public SessionHosts sessionHosts() {
- if (this.sessionHosts == null) {
- this.sessionHosts = new SessionHostsImpl(clientObject.getSessionHosts(), this);
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
}
- return sessionHosts;
+ return privateEndpointConnections;
}
/**
- * Gets the resource collection API of MsixPackages. It manages MsixPackage.
+ * Gets the resource collection API of PrivateLinkResources.
*
- * @return Resource collection API of MsixPackages.
+ * @return Resource collection API of PrivateLinkResources.
*/
- public MsixPackages msixPackages() {
- if (this.msixPackages == null) {
- this.msixPackages = new MsixPackagesImpl(clientObject.getMsixPackages(), this);
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
- return msixPackages;
+ return privateLinkResources;
}
/**
- * Gets the resource collection API of AppAttachPackageInfoes.
+ * Gets the resource collection API of SessionHostConfigurations.
*
- * @return Resource collection API of AppAttachPackageInfoes.
+ * @return Resource collection API of SessionHostConfigurations.
*/
- public AppAttachPackageInfoes appAttachPackageInfoes() {
- if (this.appAttachPackageInfoes == null) {
- this.appAttachPackageInfoes
- = new AppAttachPackageInfoesImpl(clientObject.getAppAttachPackageInfoes(), this);
+ public SessionHostConfigurations sessionHostConfigurations() {
+ if (this.sessionHostConfigurations == null) {
+ this.sessionHostConfigurations
+ = new SessionHostConfigurationsImpl(clientObject.getSessionHostConfigurations(), this);
}
- return appAttachPackageInfoes;
+ return sessionHostConfigurations;
}
/**
- * Gets the resource collection API of MsixImages.
+ * Gets the resource collection API of SessionHostManagements.
*
- * @return Resource collection API of MsixImages.
+ * @return Resource collection API of SessionHostManagements.
*/
- public MsixImages msixImages() {
- if (this.msixImages == null) {
- this.msixImages = new MsixImagesImpl(clientObject.getMsixImages(), this);
+ public SessionHostManagements sessionHostManagements() {
+ if (this.sessionHostManagements == null) {
+ this.sessionHostManagements
+ = new SessionHostManagementsImpl(clientObject.getSessionHostManagements(), this);
}
- return msixImages;
+ return sessionHostManagements;
}
/**
- * Gets the resource collection API of AppAttachPackages. It manages AppAttachPackage.
+ * Gets the resource collection API of ControlSessionHostUpdates.
*
- * @return Resource collection API of AppAttachPackages.
+ * @return Resource collection API of ControlSessionHostUpdates.
*/
- public AppAttachPackages appAttachPackages() {
- if (this.appAttachPackages == null) {
- this.appAttachPackages = new AppAttachPackagesImpl(clientObject.getAppAttachPackages(), this);
+ public ControlSessionHostUpdates controlSessionHostUpdates() {
+ if (this.controlSessionHostUpdates == null) {
+ this.controlSessionHostUpdates
+ = new ControlSessionHostUpdatesImpl(clientObject.getControlSessionHostUpdates(), this);
}
- return appAttachPackages;
+ return controlSessionHostUpdates;
+ }
+
+ /**
+ * Gets the resource collection API of InitiateSessionHostUpdates.
+ *
+ * @return Resource collection API of InitiateSessionHostUpdates.
+ */
+ public InitiateSessionHostUpdates initiateSessionHostUpdates() {
+ if (this.initiateSessionHostUpdates == null) {
+ this.initiateSessionHostUpdates
+ = new InitiateSessionHostUpdatesImpl(clientObject.getInitiateSessionHostUpdates(), this);
+ }
+ return initiateSessionHostUpdates;
+ }
+
+ /**
+ * Gets the resource collection API of SessionHostManagementsUpdateStatus.
+ *
+ * @return Resource collection API of SessionHostManagementsUpdateStatus.
+ */
+ public SessionHostManagementsUpdateStatus sessionHostManagementsUpdateStatus() {
+ if (this.sessionHostManagementsUpdateStatus == null) {
+ this.sessionHostManagementsUpdateStatus = new SessionHostManagementsUpdateStatusImpl(
+ clientObject.getSessionHostManagementsUpdateStatus(), this);
+ }
+ return sessionHostManagementsUpdateStatus;
+ }
+
+ /**
+ * Gets the resource collection API of SessionHosts.
+ *
+ * @return Resource collection API of SessionHosts.
+ */
+ public SessionHosts sessionHosts() {
+ if (this.sessionHosts == null) {
+ this.sessionHosts = new SessionHostsImpl(clientObject.getSessionHosts(), this);
+ }
+ return sessionHosts;
+ }
+
+ /**
+ * Gets the resource collection API of UserSessions.
+ *
+ * @return Resource collection API of UserSessions.
+ */
+ public UserSessions userSessions() {
+ if (this.userSessions == null) {
+ this.userSessions = new UserSessionsImpl(clientObject.getUserSessions(), this);
+ }
+ return userSessions;
+ }
+
+ /**
+ * Gets the resource collection API of ScalingPlanPersonalSchedules. It manages ScalingPlanPersonalSchedule.
+ *
+ * @return Resource collection API of ScalingPlanPersonalSchedules.
+ */
+ public ScalingPlanPersonalSchedules scalingPlanPersonalSchedules() {
+ if (this.scalingPlanPersonalSchedules == null) {
+ this.scalingPlanPersonalSchedules
+ = new ScalingPlanPersonalSchedulesImpl(clientObject.getScalingPlanPersonalSchedules(), this);
+ }
+ return scalingPlanPersonalSchedules;
+ }
+
+ /**
+ * Gets the resource collection API of ScalingPlanPooledSchedules. It manages ScalingPlanPooledSchedule.
+ *
+ * @return Resource collection API of ScalingPlanPooledSchedules.
+ */
+ public ScalingPlanPooledSchedules scalingPlanPooledSchedules() {
+ if (this.scalingPlanPooledSchedules == null) {
+ this.scalingPlanPooledSchedules
+ = new ScalingPlanPooledSchedulesImpl(clientObject.getScalingPlanPooledSchedules(), this);
+ }
+ return scalingPlanPooledSchedules;
}
/**
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ActiveSessionHostConfigurationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ActiveSessionHostConfigurationsClient.java
new file mode 100644
index 000000000000..09c34da4d037
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ActiveSessionHostConfigurationsClient.java
@@ -0,0 +1,115 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ActiveSessionHostConfigurationInner;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ActiveSessionHostConfigurationsClient.
+ */
+public interface ActiveSessionHostConfigurationsClient {
+ /**
+ * Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName,
+ Context context);
+
+ /**
+ * Get a ActiveSessionHostConfiguration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 ActiveSessionHostConfiguration along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(String resourceGroupName,
+ String hostPoolName);
+
+ /**
+ * Get a ActiveSessionHostConfiguration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 ActiveSessionHostConfiguration on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Get a ActiveSessionHostConfiguration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 ActiveSessionHostConfiguration along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String hostPoolName,
+ Context context);
+
+ /**
+ * Get a ActiveSessionHostConfiguration.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 ActiveSessionHostConfiguration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActiveSessionHostConfigurationInner get(String resourceGroupName, String hostPoolName);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackageInfoesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackageInfoesClient.java
index 8d638a66b3e0..0c060c0d8039 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackageInfoesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackageInfoesClient.java
@@ -21,7 +21,7 @@ public interface AppAttachPackageInfoesClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param importPackageInfoRequest Object containing URI to package image and other optional properties.
+ * @param importPackageInfoRequest The importPackageInfoRequest parameter.
* @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.
@@ -36,7 +36,7 @@ PagedFlux importMethodAsync(String resourceGroupName, Str
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param importPackageInfoRequest Object containing URI to package image and other optional properties.
+ * @param importPackageInfoRequest The importPackageInfoRequest parameter.
* @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.
@@ -52,7 +52,7 @@ PagedIterable importMethod(String resourceGroupName, Stri
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param importPackageInfoRequest Object containing URI to package image and other optional properties.
+ * @param importPackageInfoRequest The importPackageInfoRequest parameter.
* @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.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackagesClient.java
index acc2fd51b9c5..7934e97f095d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackagesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackagesClient.java
@@ -18,6 +18,104 @@
* An instance of this class provides access to all the operations defined in AppAttachPackagesClient.
*/
public interface AppAttachPackagesClient {
+ /**
+ * List App Attach packages in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are package name, host pool, and resource
+ * group.
+ * @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 list of App Attach Package definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String filter);
+
+ /**
+ * List App Attach packages in 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 list of App Attach Package definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
+
+ /**
+ * List App Attach packages in 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 list of App Attach Package definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List App Attach packages in subscription.
+ *
+ * @param filter OData filter expression. Valid properties for filtering are package name, host pool, and resource
+ * group.
+ * @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 list of App Attach Package definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+
+ /**
+ * List App Attach packages in resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are package name and host pool.
+ * @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 list of App Attach Package definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter);
+
+ /**
+ * List App Attach packages in 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 list of App Attach Package definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
+
+ /**
+ * List App Attach packages in 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 list of App Attach Package definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List App Attach packages in resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param filter OData filter expression. Valid properties for filtering are package name and host pool.
+ * @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 list of App Attach Package definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
+
/**
* Get an app attach package.
*
@@ -135,64 +233,12 @@ Response createOrUpdateWithResponse(String resourceGroupN
AppAttachPackageInner createOrUpdate(String resourceGroupName, String appAttachPackageName,
AppAttachPackageInner appAttachPackage);
- /**
- * Remove an App Attach Package.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appAttachPackageName The name of the App Attach package.
- * @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 Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String appAttachPackageName);
-
- /**
- * Remove an App Attach Package.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appAttachPackageName The name of the App Attach package.
- * @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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String appAttachPackageName);
-
- /**
- * Remove an App Attach Package.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appAttachPackageName The name of the App Attach package.
- * @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 Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String appAttachPackageName, Context context);
-
- /**
- * Remove an App Attach Package.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param appAttachPackageName The name of the App Attach package.
- * @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, String appAttachPackageName);
-
/**
* Update an App Attach Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appAttachPackageName The name of the App Attach package.
- * @param appAttachPackagePatch Object containing App Attach Package definition.
+ * @param appAttachPackagePatch The resource properties to be updated.
* @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.
@@ -221,7 +267,7 @@ Mono> updateWithResponseAsync(String resourceGro
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appAttachPackageName The name of the App Attach package.
- * @param appAttachPackagePatch Object containing App Attach Package definition.
+ * @param appAttachPackagePatch The resource properties to be updated.
* @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.
@@ -246,100 +292,57 @@ Response updateWithResponse(String resourceGroupName, Str
AppAttachPackageInner update(String resourceGroupName, String appAttachPackageName);
/**
- * List App Attach packages in resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param filter OData filter expression. Valid properties for filtering are package name and host pool.
- * @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 appAttachPackageList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter);
-
- /**
- * List App Attach packages in resource group.
+ * Remove an App Attach Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appAttachPackageName The name of the App Attach package.
+ * @param force Allows force delete.
* @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 appAttachPackageList as paginated response with {@link PagedFlux}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> deleteWithResponseAsync(String resourceGroupName, String appAttachPackageName, Boolean force);
/**
- * List App Attach packages in resource group.
+ * Remove an App Attach Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appAttachPackageName The name of the App Attach package.
* @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 appAttachPackageList as paginated response with {@link PagedIterable}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String appAttachPackageName);
/**
- * List App Attach packages in resource group.
+ * Remove an App Attach Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param filter OData filter expression. Valid properties for filtering are package name and host pool.
+ * @param appAttachPackageName The name of the App Attach package.
+ * @param force Allows force delete.
* @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 appAttachPackageList as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
-
- /**
- * List App Attach packages in subscription.
- *
- * @param filter OData filter expression. Valid properties for filtering are package name, host pool, and resource
- * group.
- * @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 appAttachPackageList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String filter);
-
- /**
- * List App Attach packages in 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 appAttachPackageList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
-
- /**
- * List App Attach packages in 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 appAttachPackageList as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String appAttachPackageName, Boolean force,
+ Context context);
/**
- * List App Attach packages in subscription.
+ * Remove an App Attach Package.
*
- * @param filter OData filter expression. Valid properties for filtering are package name, host pool, and resource
- * group.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appAttachPackageName The name of the App Attach package.
* @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 appAttachPackageList as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String appAttachPackageName);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java
index 2c35056382d2..6c8db79fbb70 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationGroupsClient.java
@@ -19,150 +19,138 @@
*/
public interface ApplicationGroupsClient {
/**
- * Get an application group.
+ * List applicationGroups in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
* @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 an application group along with {@link Response} on successful completion of {@link Mono}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String filter);
/**
- * Get an application group.
+ * List applicationGroups in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @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 an application group on successful completion of {@link Mono}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
/**
- * Get an application group.
+ * List applicationGroups in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @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 an application group along with {@link Response}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String applicationGroupName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Get an application group.
+ * List applicationGroups in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @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 an application group.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
/**
- * Create or update an applicationGroup.
+ * List applicationGroups.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 represents a ApplicationGroup definition along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String applicationGroupName, ApplicationGroupInner applicationGroup);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter, Integer pageSize,
+ Boolean isDescending, Integer initialSkip);
/**
- * Create or update an applicationGroup.
+ * List applicationGroups.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param applicationGroup Object containing ApplicationGroup definitions.
* @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 represents a ApplicationGroup definition on successful completion of {@link Mono}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(String resourceGroupName, String applicationGroupName,
- ApplicationGroupInner applicationGroup);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
- * Create or update an applicationGroup.
+ * List applicationGroups.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param applicationGroup Object containing ApplicationGroup definitions.
- * @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 represents a ApplicationGroup definition along with {@link Response}.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String applicationGroupName,
- ApplicationGroupInner applicationGroup, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Create or update an applicationGroup.
+ * List applicationGroups.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param applicationGroup Object containing ApplicationGroup definitions.
+ * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 represents a ApplicationGroup definition.
+ * @return list of ApplicationGroup definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationGroupInner createOrUpdate(String resourceGroupName, String applicationGroupName,
- ApplicationGroupInner applicationGroup);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer pageSize,
+ Boolean isDescending, Integer initialSkip, Context context);
/**
- * Remove an applicationGroup.
+ * Get an application group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @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 Response} on successful completion of {@link Mono}.
+ * @return an application group along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName);
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String applicationGroupName);
/**
- * Remove an applicationGroup.
+ * Get an application group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @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 {@link Mono} that completes when a successful response is received.
+ * @return an application group on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String applicationGroupName);
+ Mono getByResourceGroupAsync(String resourceGroupName, String applicationGroupName);
/**
- * Remove an applicationGroup.
+ * Get an application group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
@@ -170,25 +158,27 @@ ApplicationGroupInner createOrUpdate(String resourceGroupName, String applicatio
* @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 Response}.
+ * @return an application group along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String applicationGroupName, Context context);
/**
- * Remove an applicationGroup.
+ * Get an application group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @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 an application group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String applicationGroupName);
+ ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
/**
- * Update an applicationGroup.
+ * Create or update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
@@ -200,24 +190,26 @@ ApplicationGroupInner createOrUpdate(String resourceGroupName, String applicatio
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(String resourceGroupName, String applicationGroupName,
- ApplicationGroupPatch applicationGroup);
+ Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String applicationGroupName, ApplicationGroupInner applicationGroup);
/**
- * Update an applicationGroup.
+ * Create or update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
* @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 represents a ApplicationGroup definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName);
+ Mono createOrUpdateAsync(String resourceGroupName, String applicationGroupName,
+ ApplicationGroupInner applicationGroup);
/**
- * Update an applicationGroup.
+ * Create or update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
@@ -229,123 +221,131 @@ Mono> updateWithResponseAsync(String resourceGro
* @return represents a ApplicationGroup definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String applicationGroupName,
- ApplicationGroupPatch applicationGroup, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String applicationGroupName,
+ ApplicationGroupInner applicationGroup, Context context);
/**
- * Update an applicationGroup.
+ * Create or update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param applicationGroup Object containing ApplicationGroup definitions.
* @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 represents a ApplicationGroup definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationGroupInner update(String resourceGroupName, String applicationGroupName);
+ ApplicationGroupInner createOrUpdate(String resourceGroupName, String applicationGroupName,
+ ApplicationGroupInner applicationGroup);
/**
- * List applicationGroups.
+ * Update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup The AppGroup properties to be updated.
* @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 applicationGroupList as paginated response with {@link PagedFlux}.
+ * @return represents a ApplicationGroup definition along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter, Integer pageSize,
- Boolean isDescending, Integer initialSkip);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> updateWithResponseAsync(String resourceGroupName, String applicationGroupName,
+ ApplicationGroupPatch applicationGroup);
/**
- * List applicationGroups.
+ * Update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
* @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 applicationGroupList as paginated response with {@link PagedFlux}.
+ * @return represents a ApplicationGroup definition on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String applicationGroupName);
/**
- * List applicationGroups.
+ * Update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param applicationGroup The AppGroup properties to be updated.
+ * @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 applicationGroupList as paginated response with {@link PagedIterable}.
+ * @return represents a ApplicationGroup definition along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String applicationGroupName,
+ ApplicationGroupPatch applicationGroup, Context context);
/**
- * List applicationGroups.
+ * Update an applicationGroup.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @param context The context to associate with this operation.
+ * @param applicationGroupName The name of the application group.
* @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 applicationGroupList as paginated response with {@link PagedIterable}.
+ * @return represents a ApplicationGroup definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer pageSize,
- Boolean isDescending, Integer initialSkip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationGroupInner update(String resourceGroupName, String applicationGroupName);
/**
- * List applicationGroups in subscription.
+ * Remove an applicationGroup.
*
- * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
* @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 applicationGroupList as paginated response with {@link PagedFlux}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String filter);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName);
/**
- * List applicationGroups in subscription.
+ * Remove an applicationGroup.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 applicationGroupList as paginated response with {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String applicationGroupName);
/**
- * List applicationGroups in subscription.
+ * Remove an applicationGroup.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 applicationGroupList as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context);
/**
- * List applicationGroups in subscription.
+ * Remove an applicationGroup.
*
- * @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
* @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 applicationGroupList as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String applicationGroupName);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java
index 328b4c594e83..bf9ef699d50d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ApplicationsClient.java
@@ -19,186 +19,189 @@
*/
public interface ApplicationsClient {
/**
- * Get an application.
+ * List applications.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param applicationName The name of the application within the specified application group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 an application along with {@link Response} on successful completion of {@link Mono}.
+ * @return list of Application definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String applicationGroupName,
- String applicationName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String applicationGroupName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip);
/**
- * Get an application.
+ * List applications.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param applicationName The name of the application within the specified application group.
* @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 an application on successful completion of {@link Mono}.
+ * @return list of Application definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String applicationGroupName, String applicationName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
/**
- * Get an application.
+ * List applications.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param applicationName The name of the application within the specified application group.
- * @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 an application along with {@link Response}.
+ * @return list of Application definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String applicationGroupName,
- String applicationName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName);
/**
- * Get an application.
+ * List applications.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param applicationName The name of the application within the specified application group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 an application.
+ * @return list of Application definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip, Context context);
/**
- * Create or update an application.
+ * Get an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
* @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 schema for Application properties along with {@link Response} on successful completion of {@link Mono}.
+ * @return an application along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
- String applicationGroupName, String applicationName, ApplicationInner application);
+ Mono> getWithResponseAsync(String resourceGroupName, String applicationGroupName,
+ String applicationName);
/**
- * Create or update an application.
+ * Get an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
* @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 schema for Application properties on successful completion of {@link Mono}.
+ * @return an application on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(String resourceGroupName, String applicationGroupName,
- String applicationName, ApplicationInner application);
+ Mono getAsync(String resourceGroupName, String applicationGroupName, String applicationName);
/**
- * Create or update an application.
+ * Get an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
* @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 schema for Application properties along with {@link Response}.
+ * @return an application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String applicationGroupName,
- String applicationName, ApplicationInner application, Context context);
+ Response getWithResponse(String resourceGroupName, String applicationGroupName,
+ String applicationName, Context context);
/**
- * Create or update an application.
+ * Get an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
* @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 schema for Application properties.
+ * @return an application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(String resourceGroupName, String applicationGroupName, String applicationName,
- ApplicationInner application);
+ ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
/**
- * Remove an application.
+ * Create or update an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
* @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 Response} on successful completion of {@link Mono}.
+ * @return schema for Application properties along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName,
- String applicationName);
+ Mono> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String applicationGroupName, String applicationName, ApplicationInner application);
/**
- * Remove an application.
+ * Create or update an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
* @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 {@link Mono} that completes when a successful response is received.
+ * @return schema for Application properties on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String applicationGroupName, String applicationName);
+ Mono createOrUpdateAsync(String resourceGroupName, String applicationGroupName,
+ String applicationName, ApplicationInner application);
/**
- * Remove an application.
+ * Create or update an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
* @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 Response}.
+ * @return schema for Application properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String applicationGroupName, String applicationName,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String applicationGroupName,
+ String applicationName, ApplicationInner application, Context context);
/**
- * Remove an application.
+ * Create or update an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
* @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 schema for Application properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String applicationGroupName, String applicationName);
+ ApplicationInner createOrUpdate(String resourceGroupName, String applicationGroupName, String applicationName,
+ ApplicationInner application);
/**
* Update an application.
@@ -206,7 +209,7 @@ Response deleteWithResponse(String resourceGroupName, String applicationGr
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
+ * @param application The resource properties to be updated.
* @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.
@@ -236,7 +239,7 @@ Mono> updateWithResponseAsync(String resourceGroupNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
+ * @param application The resource properties to be updated.
* @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.
@@ -262,63 +265,60 @@ Response updateWithResponse(String resourceGroupName, String a
ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName);
/**
- * List applications.
+ * Remove an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
+ * @param applicationName The name of the application within the specified application group.
* @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 applicationList as paginated response with {@link PagedFlux}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName, Integer pageSize,
- Boolean isDescending, Integer initialSkip);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName,
+ String applicationName);
/**
- * List applications.
+ * Remove an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
* @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 applicationList as paginated response with {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String applicationGroupName, String applicationName);
/**
- * List applications.
+ * Remove an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param applicationName The name of the application within the specified application group.
+ * @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 applicationList as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String applicationGroupName, String applicationName,
+ Context context);
/**
- * List applications.
+ * Remove an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @param context The context to associate with this operation.
+ * @param applicationName The name of the application within the specified application group.
* @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 applicationList as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName, Integer pageSize,
- Boolean isDescending, Integer initialSkip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String applicationGroupName, String applicationName);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ControlSessionHostUpdatesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ControlSessionHostUpdatesClient.java
new file mode 100644
index 000000000000..9895fa4719cd
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ControlSessionHostUpdatesClient.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+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.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.desktopvirtualization.models.HostPoolUpdateControlParameter;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in ControlSessionHostUpdatesClient.
+ */
+public interface ControlSessionHostUpdatesClient {
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> postWithResponseAsync(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginPostAsync(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPost(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter 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 long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPost(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter, Context context);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono postAsync(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void post(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter);
+
+ /**
+ * Control actions on a session host update.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPoolUpdateControlParameter 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void post(String resourceGroupName, String hostPoolName,
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter, Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
index 12f17ea6865b..476c5c29d57a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
@@ -54,25 +54,25 @@ public interface DesktopVirtualizationApiClient {
OperationsClient getOperations();
/**
- * Gets the WorkspacesClient object to access its operations.
+ * Gets the AppAttachPackagesClient object to access its operations.
*
- * @return the WorkspacesClient object.
+ * @return the AppAttachPackagesClient object.
*/
- WorkspacesClient getWorkspaces();
+ AppAttachPackagesClient getAppAttachPackages();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the ApplicationGroupsClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the ApplicationGroupsClient object.
*/
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+ ApplicationGroupsClient getApplicationGroups();
/**
- * Gets the PrivateLinkResourcesClient object to access its operations.
+ * Gets the HostPoolsClient object to access its operations.
*
- * @return the PrivateLinkResourcesClient object.
+ * @return the HostPoolsClient object.
*/
- PrivateLinkResourcesClient getPrivateLinkResources();
+ HostPoolsClient getHostPools();
/**
* Gets the ScalingPlansClient object to access its operations.
@@ -82,25 +82,25 @@ public interface DesktopVirtualizationApiClient {
ScalingPlansClient getScalingPlans();
/**
- * Gets the ScalingPlanPooledSchedulesClient object to access its operations.
+ * Gets the WorkspacesClient object to access its operations.
*
- * @return the ScalingPlanPooledSchedulesClient object.
+ * @return the WorkspacesClient object.
*/
- ScalingPlanPooledSchedulesClient getScalingPlanPooledSchedules();
+ WorkspacesClient getWorkspaces();
/**
- * Gets the ScalingPlanPersonalSchedulesClient object to access its operations.
+ * Gets the ApplicationsClient object to access its operations.
*
- * @return the ScalingPlanPersonalSchedulesClient object.
+ * @return the ApplicationsClient object.
*/
- ScalingPlanPersonalSchedulesClient getScalingPlanPersonalSchedules();
+ ApplicationsClient getApplications();
/**
- * Gets the ApplicationGroupsClient object to access its operations.
+ * Gets the DesktopsClient object to access its operations.
*
- * @return the ApplicationGroupsClient object.
+ * @return the DesktopsClient object.
*/
- ApplicationGroupsClient getApplicationGroups();
+ DesktopsClient getDesktops();
/**
* Gets the StartMenuItemsClient object to access its operations.
@@ -110,65 +110,107 @@ public interface DesktopVirtualizationApiClient {
StartMenuItemsClient getStartMenuItems();
/**
- * Gets the ApplicationsClient object to access its operations.
+ * Gets the ActiveSessionHostConfigurationsClient object to access its operations.
*
- * @return the ApplicationsClient object.
+ * @return the ActiveSessionHostConfigurationsClient object.
*/
- ApplicationsClient getApplications();
+ ActiveSessionHostConfigurationsClient getActiveSessionHostConfigurations();
/**
- * Gets the DesktopsClient object to access its operations.
+ * Gets the MsixImagesClient object to access its operations.
*
- * @return the DesktopsClient object.
+ * @return the MsixImagesClient object.
*/
- DesktopsClient getDesktops();
+ MsixImagesClient getMsixImages();
/**
- * Gets the HostPoolsClient object to access its operations.
+ * Gets the AppAttachPackageInfoesClient object to access its operations.
*
- * @return the HostPoolsClient object.
+ * @return the AppAttachPackageInfoesClient object.
*/
- HostPoolsClient getHostPools();
+ AppAttachPackageInfoesClient getAppAttachPackageInfoes();
/**
- * Gets the UserSessionsClient object to access its operations.
+ * Gets the MsixPackagesClient object to access its operations.
*
- * @return the UserSessionsClient object.
+ * @return the MsixPackagesClient object.
*/
- UserSessionsClient getUserSessions();
+ MsixPackagesClient getMsixPackages();
/**
- * Gets the SessionHostsClient object to access its operations.
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
*
- * @return the SessionHostsClient object.
+ * @return the PrivateEndpointConnectionsClient object.
*/
- SessionHostsClient getSessionHosts();
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
/**
- * Gets the MsixPackagesClient object to access its operations.
+ * Gets the PrivateLinkResourcesClient object to access its operations.
*
- * @return the MsixPackagesClient object.
+ * @return the PrivateLinkResourcesClient object.
*/
- MsixPackagesClient getMsixPackages();
+ PrivateLinkResourcesClient getPrivateLinkResources();
/**
- * Gets the AppAttachPackageInfoesClient object to access its operations.
+ * Gets the SessionHostConfigurationsClient object to access its operations.
*
- * @return the AppAttachPackageInfoesClient object.
+ * @return the SessionHostConfigurationsClient object.
*/
- AppAttachPackageInfoesClient getAppAttachPackageInfoes();
+ SessionHostConfigurationsClient getSessionHostConfigurations();
/**
- * Gets the MsixImagesClient object to access its operations.
+ * Gets the SessionHostManagementsClient object to access its operations.
*
- * @return the MsixImagesClient object.
+ * @return the SessionHostManagementsClient object.
*/
- MsixImagesClient getMsixImages();
+ SessionHostManagementsClient getSessionHostManagements();
/**
- * Gets the AppAttachPackagesClient object to access its operations.
+ * Gets the ControlSessionHostUpdatesClient object to access its operations.
*
- * @return the AppAttachPackagesClient object.
+ * @return the ControlSessionHostUpdatesClient object.
*/
- AppAttachPackagesClient getAppAttachPackages();
+ ControlSessionHostUpdatesClient getControlSessionHostUpdates();
+
+ /**
+ * Gets the InitiateSessionHostUpdatesClient object to access its operations.
+ *
+ * @return the InitiateSessionHostUpdatesClient object.
+ */
+ InitiateSessionHostUpdatesClient getInitiateSessionHostUpdates();
+
+ /**
+ * Gets the SessionHostManagementsUpdateStatusClient object to access its operations.
+ *
+ * @return the SessionHostManagementsUpdateStatusClient object.
+ */
+ SessionHostManagementsUpdateStatusClient getSessionHostManagementsUpdateStatus();
+
+ /**
+ * Gets the SessionHostsClient object to access its operations.
+ *
+ * @return the SessionHostsClient object.
+ */
+ SessionHostsClient getSessionHosts();
+
+ /**
+ * Gets the UserSessionsClient object to access its operations.
+ *
+ * @return the UserSessionsClient object.
+ */
+ UserSessionsClient getUserSessions();
+
+ /**
+ * Gets the ScalingPlanPersonalSchedulesClient object to access its operations.
+ *
+ * @return the ScalingPlanPersonalSchedulesClient object.
+ */
+ ScalingPlanPersonalSchedulesClient getScalingPlanPersonalSchedules();
+
+ /**
+ * Gets the ScalingPlanPooledSchedulesClient object to access its operations.
+ *
+ * @return the ScalingPlanPooledSchedulesClient object.
+ */
+ ScalingPlanPooledSchedulesClient getScalingPlanPooledSchedules();
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java
index 2e5075ecf914..061f912f8c0a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopsClient.java
@@ -18,6 +18,67 @@
* An instance of this class provides access to all the operations defined in DesktopsClient.
*/
public interface DesktopsClient {
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 list of Desktop definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String applicationGroupName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip);
+
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Desktop definitions as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @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 list of Desktop definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName);
+
+ /**
+ * List desktops.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param applicationGroupName The name of the application group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 list of Desktop definitions as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String applicationGroupName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip, Context context);
+
/**
* Get a desktop.
*
@@ -83,7 +144,7 @@ Response getWithResponse(String resourceGroupName, String applicat
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param desktopName The name of the desktop within the specified desktop group.
- * @param desktop Object containing Desktop definitions.
+ * @param desktop The resource properties to be updated.
* @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.
@@ -113,7 +174,7 @@ Mono> updateWithResponseAsync(String resourceGroupName, S
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param desktopName The name of the desktop within the specified desktop group.
- * @param desktop Object containing Desktop definitions.
+ * @param desktop The resource properties to be updated.
* @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.
@@ -137,65 +198,4 @@ Response updateWithResponse(String resourceGroupName, String appli
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DesktopInner update(String resourceGroupName, String applicationGroupName, String desktopName);
-
- /**
- * List desktops.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @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 desktopList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName, Integer pageSize,
- Boolean isDescending, Integer initialSkip);
-
- /**
- * List desktops.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @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 desktopList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
-
- /**
- * List desktops.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @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 desktopList as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName);
-
- /**
- * List desktops.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param applicationGroupName The name of the application group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @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 desktopList as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName, Integer pageSize,
- Boolean isDescending, Integer initialSkip, Context context);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java
index b8f2b9c69a58..b18bae118bc0 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/HostPoolsClient.java
@@ -21,174 +21,167 @@
*/
public interface HostPoolsClient {
/**
- * Get a host pool.
+ * List hostPools in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 host pool along with {@link Response} on successful completion of {@link Mono}.
+ * @return list of HostPool definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
- * Get a host pool.
+ * List hostPools in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @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 host pool on successful completion of {@link Mono}.
+ * @return list of HostPool definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
/**
- * Get a host pool.
+ * List hostPools in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @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 host pool along with {@link Response}.
+ * @return list of HostPool definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String hostPoolName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Get a host pool.
+ * List hostPools in subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 host pool.
+ * @return list of HostPool definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
- * Create or update a host pool.
+ * List hostPools.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @param hostPool Object containing HostPool definitions.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 represents a HostPool definition along with {@link Response} on successful completion of {@link Mono}.
+ * @return list of HostPool definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String hostPoolName,
- HostPoolInner hostPool);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer pageSize, Boolean isDescending,
+ Integer initialSkip);
/**
- * Create or update a host pool.
+ * List hostPools.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @param hostPool Object containing HostPool definitions.
* @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 represents a HostPool definition on successful completion of {@link Mono}.
+ * @return list of HostPool definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
/**
- * Create or update a host pool.
+ * List hostPools.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @param hostPool Object containing HostPool definitions.
- * @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 represents a HostPool definition along with {@link Response}.
+ * @return list of HostPool definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String hostPoolName,
- HostPoolInner hostPool, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Create or update a host pool.
+ * List hostPools.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @param hostPool Object containing HostPool definitions.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 represents a HostPool definition.
+ * @return list of HostPool definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer pageSize, Boolean isDescending,
+ Integer initialSkip, Context context);
/**
- * Remove a host pool.
+ * Get a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param force Force flag to delete sessionHost.
* @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 Response} on successful completion of {@link Mono}.
+ * @return a host pool along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName, Boolean force);
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String hostPoolName);
/**
- * Remove a host pool.
+ * Get a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 {@link Mono} that completes when a successful response is received.
+ * @return a host pool on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String hostPoolName);
+ Mono getByResourceGroupAsync(String resourceGroupName, String hostPoolName);
/**
- * Remove a host pool.
+ * Get a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param force Force flag to delete sessionHost.
* @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 Response}.
+ * @return a host pool along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String hostPoolName,
+ Context context);
/**
- * Remove a host pool.
+ * Get a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 host pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName);
+ HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
/**
- * Update a host pool.
+ * Create or update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
@@ -199,24 +192,25 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* @return represents a HostPool definition along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(String resourceGroupName, String hostPoolName,
- HostPoolPatch hostPool);
+ Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String hostPoolName,
+ HostPoolInner hostPool);
/**
- * Update a host pool.
+ * Create or update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool Object containing HostPool definitions.
* @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 represents a HostPool definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName);
+ Mono createOrUpdateAsync(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
/**
- * Update a host pool.
+ * Create or update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
@@ -228,158 +222,164 @@ Mono> updateWithResponseAsync(String resourceGroupName,
* @return represents a HostPool definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String hostPoolName, HostPoolPatch hostPool,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String hostPoolName,
+ HostPoolInner hostPool, Context context);
/**
- * Update a host pool.
+ * Create or update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool Object containing HostPool definitions.
* @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 represents a HostPool definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner update(String resourceGroupName, String hostPoolName);
+ HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
/**
- * List hostPools.
+ * Update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool The properties to be updated.
* @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 hostPoolList as paginated response with {@link PagedFlux}.
+ * @return represents a HostPool definition along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName, Integer pageSize, Boolean isDescending,
- Integer initialSkip);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> updateWithResponseAsync(String resourceGroupName, String hostPoolName,
+ HostPoolPatch hostPool);
/**
- * List hostPools.
+ * Update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @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 hostPoolList as paginated response with {@link PagedFlux}.
+ * @return represents a HostPool definition on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String hostPoolName);
/**
- * List hostPools.
+ * Update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param hostPool The properties to be updated.
+ * @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 hostPoolList as paginated response with {@link PagedIterable}.
+ * @return represents a HostPool definition along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String hostPoolName, HostPoolPatch hostPool,
+ Context context);
/**
- * List hostPools.
+ * Update a host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @param context The context to associate with this operation.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @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 hostPoolList as paginated response with {@link PagedIterable}.
+ * @return represents a HostPool definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Integer pageSize, Boolean isDescending,
- Integer initialSkip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HostPoolInner update(String resourceGroupName, String hostPoolName);
/**
- * List hostPools in subscription.
+ * Remove a host pool.
*
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param force Force flag to delete sessionHost.
* @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 hostPoolList as paginated response with {@link PagedFlux}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(Integer pageSize, Boolean isDescending, Integer initialSkip);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName, Boolean force);
/**
- * List hostPools in subscription.
+ * Remove a host pool.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 hostPoolList as paginated response with {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String hostPoolName);
/**
- * List hostPools in subscription.
+ * Remove a host pool.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param force Force flag to delete sessionHost.
+ * @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 hostPoolList as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, Context context);
/**
- * List hostPools in subscription.
+ * Remove a host pool.
*
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @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 hostPoolList as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName);
/**
- * Registration token of the host pool.
+ * Operation to list the RegistrationTokens associated with the HostPool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 represents a RegistrationInfo definition along with {@link Response} on successful completion of
+ * @return list of RegistrationToken definitions along with {@link Response} on successful completion of
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> retrieveRegistrationTokenWithResponseAsync(String resourceGroupName,
+ Mono> listRegistrationTokensWithResponseAsync(String resourceGroupName,
String hostPoolName);
/**
- * Registration token of the host pool.
+ * Operation to list the RegistrationTokens associated with the HostPool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 represents a RegistrationInfo definition on successful completion of {@link Mono}.
+ * @return list of RegistrationToken definitions on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono retrieveRegistrationTokenAsync(String resourceGroupName, String hostPoolName);
+ Mono listRegistrationTokensAsync(String resourceGroupName, String hostPoolName);
/**
- * Registration token of the host pool.
+ * Operation to list the RegistrationTokens associated with the HostPool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
@@ -387,54 +387,55 @@ Mono> retrieveRegistrationTokenWithResponseAsync
* @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 represents a RegistrationInfo definition along with {@link Response}.
+ * @return list of RegistrationToken definitions along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response retrieveRegistrationTokenWithResponse(String resourceGroupName, String hostPoolName,
- Context context);
+ Response listRegistrationTokensWithResponse(String resourceGroupName,
+ String hostPoolName, Context context);
/**
- * Registration token of the host pool.
+ * Operation to list the RegistrationTokens associated with the HostPool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 represents a RegistrationInfo definition.
+ * @return list of RegistrationToken definitions.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
+ RegistrationTokenListInner listRegistrationTokens(String resourceGroupName, String hostPoolName);
/**
- * Operation to list the RegistrationTokens associated with the HostPool.
+ * Registration token of the host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 registrationTokenList along with {@link Response} on successful completion of {@link Mono}.
+ * @return represents a RegistrationInfo definition along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> listRegistrationTokensWithResponseAsync(String resourceGroupName,
+ Mono> retrieveRegistrationTokenWithResponseAsync(String resourceGroupName,
String hostPoolName);
/**
- * Operation to list the RegistrationTokens associated with the HostPool.
+ * Registration token of the host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 registrationTokenList on successful completion of {@link Mono}.
+ * @return represents a RegistrationInfo definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono listRegistrationTokensAsync(String resourceGroupName, String hostPoolName);
+ Mono retrieveRegistrationTokenAsync(String resourceGroupName, String hostPoolName);
/**
- * Operation to list the RegistrationTokens associated with the HostPool.
+ * Registration token of the host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
@@ -442,22 +443,22 @@ Mono> listRegistrationTokensWithResponseAsy
* @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 registrationTokenList along with {@link Response}.
+ * @return represents a RegistrationInfo definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listRegistrationTokensWithResponse(String resourceGroupName,
- String hostPoolName, Context context);
+ Response retrieveRegistrationTokenWithResponse(String resourceGroupName, String hostPoolName,
+ Context context);
/**
- * Operation to list the RegistrationTokens associated with the HostPool.
+ * Registration token of the host pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @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 registrationTokenList.
+ * @return represents a RegistrationInfo definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegistrationTokenListInner listRegistrationTokens(String resourceGroupName, String hostPoolName);
+ RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/InitiateSessionHostUpdatesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/InitiateSessionHostUpdatesClient.java
new file mode 100644
index 000000000000..f5a0dd9cc62d
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/InitiateSessionHostUpdatesClient.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.models.UpdateSessionHostsRequestBody;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in InitiateSessionHostUpdatesClient.
+ */
+public interface InitiateSessionHostUpdatesClient {
+ /**
+ * Initiates a hostpool update or schedule an update for the future.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param updateSessionHostsRequestBody The resource properties to be updated.
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> postWithResponseAsync(String resourceGroupName, String hostPoolName,
+ UpdateSessionHostsRequestBody updateSessionHostsRequestBody);
+
+ /**
+ * Initiates a hostpool update or schedule an update for the future.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono postAsync(String resourceGroupName, String hostPoolName);
+
+ /**
+ * Initiates a hostpool update or schedule an update for the future.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param updateSessionHostsRequestBody The resource properties to be updated.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response postWithResponse(String resourceGroupName, String hostPoolName,
+ UpdateSessionHostsRequestBody updateSessionHostsRequestBody, Context context);
+
+ /**
+ * Initiates a hostpool update or schedule an update for the future.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @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 post(String resourceGroupName, String hostPoolName);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
index c79b9c09856a..56f935277139 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
@@ -18,14 +18,16 @@
public interface MsixImagesClient {
/**
* Expands and Lists MSIX packages in an Image, given the Image Path.
+ * This action uses incorrect Msix casing intentionally to match the previous APIs.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixImageUri Object containing URI to MSIX Image.
+ * @param msixImageUri The msixImageUri parameter.
* @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 expandMsixImageList as paginated response with {@link PagedFlux}.
+ * @return list of MSIX package properties retrieved from MSIX Image expansion as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux expandAsync(String resourceGroupName, String hostPoolName,
@@ -33,14 +35,16 @@ PagedFlux expandAsync(String resourceGroupName, String hos
/**
* Expands and Lists MSIX packages in an Image, given the Image Path.
+ * This action uses incorrect Msix casing intentionally to match the previous APIs.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixImageUri Object containing URI to MSIX Image.
+ * @param msixImageUri The msixImageUri parameter.
* @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 expandMsixImageList as paginated response with {@link PagedIterable}.
+ * @return list of MSIX package properties retrieved from MSIX Image expansion as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable expand(String resourceGroupName, String hostPoolName,
@@ -48,15 +52,17 @@ PagedIterable expand(String resourceGroupName, String host
/**
* Expands and Lists MSIX packages in an Image, given the Image Path.
+ * This action uses incorrect Msix casing intentionally to match the previous APIs.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixImageUri Object containing URI to MSIX Image.
+ * @param msixImageUri The msixImageUri parameter.
* @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 expandMsixImageList as paginated response with {@link PagedIterable}.
+ * @return list of MSIX package properties retrieved from MSIX Image expansion as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable expand(String resourceGroupName, String hostPoolName, MsixImageUri msixImageUri,
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java
index 5a00acdae0e4..2089b52be152 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixPackagesClient.java
@@ -19,186 +19,189 @@
*/
public interface MsixPackagesClient {
/**
- * Get a msixpackage.
+ * List MSIX packages in hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 msixpackage along with {@link Response} on successful completion of {@link Mono}.
+ * @return list of MSIX Package definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(String resourceGroupName, String hostPoolName,
- String msixPackageFullName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String hostPoolName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip);
/**
- * Get a msixpackage.
+ * List MSIX packages in hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @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 msixpackage on successful completion of {@link Mono}.
+ * @return list of MSIX Package definitions as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(String resourceGroupName, String hostPoolName);
/**
- * Get a msixpackage.
+ * List MSIX packages in hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @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 msixpackage along with {@link Response}.
+ * @return list of MSIX Package definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String hostPoolName,
- String msixPackageFullName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName);
/**
- * Get a msixpackage.
+ * List MSIX packages in hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 msixpackage.
+ * @return list of MSIX Package definitions as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String hostPoolName, Integer pageSize,
+ Boolean isDescending, Integer initialSkip, Context context);
/**
- * Create or update a MSIX package.
+ * Get a msixpackage.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
* @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 schema for MSIX Package properties along with {@link Response} on successful completion of {@link Mono}.
+ * @return a msixpackage along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String hostPoolName,
- String msixPackageFullName, MsixPackageInner msixPackage);
+ Mono> getWithResponseAsync(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName);
/**
- * Create or update a MSIX package.
+ * Get a msixpackage.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
* @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 schema for MSIX Package properties on successful completion of {@link Mono}.
+ * @return a msixpackage on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(String resourceGroupName, String hostPoolName,
- String msixPackageFullName, MsixPackageInner msixPackage);
+ Mono getAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
- * Create or update a MSIX package.
+ * Get a msixpackage.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
* @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 schema for MSIX Package properties along with {@link Response}.
+ * @return a msixpackage along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String hostPoolName,
- String msixPackageFullName, MsixPackageInner msixPackage, Context context);
+ Response getWithResponse(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName, Context context);
/**
- * Create or update a MSIX package.
+ * Get a msixpackage.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
* @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 schema for MSIX Package properties.
+ * @return a msixpackage.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner createOrUpdate(String resourceGroupName, String hostPoolName, String msixPackageFullName,
- MsixPackageInner msixPackage);
+ MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
- * Remove an MSIX Package.
+ * Create or update a MSIX package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
* @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 Response} on successful completion of {@link Mono}.
+ * @return schema for MSIX Package properties along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName,
- String msixPackageFullName);
+ Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName, MsixPackageInner msixPackage);
/**
- * Remove an MSIX Package.
+ * Create or update a MSIX package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
* @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 {@link Mono} that completes when a successful response is received.
+ * @return schema for MSIX Package properties on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ Mono createOrUpdateAsync(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName, MsixPackageInner msixPackage);
/**
- * Remove an MSIX Package.
+ * Create or update a MSIX package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
* @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 Response}.
+ * @return schema for MSIX Package properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String hostPoolName, String msixPackageFullName,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName, MsixPackageInner msixPackage, Context context);
/**
- * Remove an MSIX Package.
+ * Create or update a MSIX package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
* @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 schema for MSIX Package properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ MsixPackageInner createOrUpdate(String resourceGroupName, String hostPoolName, String msixPackageFullName,
+ MsixPackageInner msixPackage);
/**
* Update an MSIX Package.
@@ -206,7 +209,7 @@ Response deleteWithResponse(String resourceGroupName, String hostPoolName,
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
+ * @param msixPackage The resource properties to be updated.
* @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.
@@ -222,13 +225,15 @@ Mono> updateWithResponseAsync(String resourceGroupNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage The resource properties to be updated.
* @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 schema for MSIX Package properties on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ Mono updateAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName,
+ MsixPackagePatch msixPackage);
/**
* Update an MSIX Package.
@@ -236,7 +241,7 @@ Mono> updateWithResponseAsync(String resourceGroupNam
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
+ * @param msixPackage The resource properties to be updated.
* @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.
@@ -253,72 +258,71 @@ Response updateWithResponse(String resourceGroupName, String h
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage The resource properties to be updated.
* @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 schema for MSIX Package properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner update(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ MsixPackageInner update(String resourceGroupName, String hostPoolName, String msixPackageFullName,
+ MsixPackagePatch msixPackage);
/**
- * List MSIX packages in hostpool.
+ * Remove an MSIX Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @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 msixPackageList as paginated response with {@link PagedFlux}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String hostPoolName, Integer pageSize,
- Boolean isDescending, Integer initialSkip);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName,
+ String msixPackageFullName);
/**
- * List MSIX packages in hostpool.
+ * Remove an MSIX Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @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 msixPackageList as paginated response with {@link PagedFlux}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
- * List MSIX packages in hostpool.
+ * Remove an MSIX Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @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 msixPackageList as paginated response with {@link PagedIterable}.
+ * @return the {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String hostPoolName, String msixPackageFullName,
+ Context context);
/**
- * List MSIX packages in hostpool.
+ * Remove an MSIX Package.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param pageSize Number of items per page.
- * @param isDescending Indicates whether the collection is descending.
- * @param initialSkip Initial number of items to skip.
- * @param context The context to associate with this operation.
+ * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @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 msixPackageList as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String hostPoolName, Integer pageSize,
- Boolean isDescending, Integer initialSkip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
index 4e4e5c418518..db8ba0797add 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
@@ -16,33 +16,36 @@
*/
public interface OperationsClient {
/**
- * List all of the available operations the Desktop Virtualization resource provider supports.
+ * List the operations for the provider.
*
* @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 result of the request to list operations as paginated response with {@link PagedFlux}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux listAsync();
/**
- * List all of the available operations the Desktop Virtualization resource provider supports.
+ * List the operations for the provider.
*
* @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 result of the request to list operations as paginated response with {@link PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
- * List all of the available operations the Desktop Virtualization resource provider supports.
+ * List the operations for the provider.
*
* @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 result of the request to list operations as paginated response with {@link PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
index 77454f1695e5..b6a6106a6166 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
@@ -11,7 +11,6 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import reactor.core.publisher.Mono;
/**
@@ -19,515 +18,488 @@
*/
public interface PrivateEndpointConnectionsClient {
/**
- * List private endpoint connections.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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 list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedFlux}.
+ * @return a PrivateEndpointConnectionWithSystemData as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(String resourceGroupName,
- String workspaceName);
+ PagedFlux listByHostPoolAsync(String resourceGroupName,
+ String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
- * List private endpoint connections.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @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 list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
+ * @return a PrivateEndpointConnectionWithSystemData as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName,
- String workspaceName);
+ PagedFlux listByHostPoolAsync(String resourceGroupName,
+ String hostPoolName);
/**
- * List private endpoint connections.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param context The context to associate with this operation.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @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 list of private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
+ * @return a PrivateEndpointConnectionWithSystemData as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName,
- String workspaceName, Context context);
+ PagedIterable listByHostPool(String resourceGroupName,
+ String hostPoolName);
/**
- * Get a private endpoint connection.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @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 private endpoint connection along with {@link Response} on successful completion of {@link Mono}.
+ * @return a PrivateEndpointConnectionWithSystemData as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByWorkspaceWithResponseAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByHostPool(String resourceGroupName,
+ String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
- * Get a private endpoint connection.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
* @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 private endpoint connection on successful completion of {@link Mono}.
+ * @return a PrivateEndpointConnectionWithSystemData along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByWorkspaceAsync(String resourceGroupName,
- String workspaceName, String privateEndpointConnectionName);
+ Mono> getByHostPoolWithResponseAsync(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
/**
- * Get a private endpoint connection.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
* @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 private endpoint connection along with {@link Response}.
+ * @return a PrivateEndpointConnectionWithSystemData on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByWorkspaceWithResponse(String resourceGroupName,
- String workspaceName, String privateEndpointConnectionName, Context context);
+ Mono getByHostPoolAsync(String resourceGroupName, String hostPoolName,
+ String privateEndpointConnectionName);
/**
- * Get a private endpoint connection.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
+ * @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 private endpoint connection.
+ * @return a PrivateEndpointConnectionWithSystemData along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner getByWorkspace(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName);
+ Response getByHostPoolWithResponse(String resourceGroupName,
+ String hostPoolName, String privateEndpointConnectionName, Context context);
/**
- * Remove a connection.
+ * Get a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
* @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 Response} on successful completion of {@link Mono}.
+ * @return a PrivateEndpointConnectionWithSystemData.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteByWorkspaceWithResponseAsync(String resourceGroupName, String workspaceName,
+ PrivateEndpointConnectionWithSystemDataInner getByHostPool(String resourceGroupName, String hostPoolName,
String privateEndpointConnectionName);
/**
- * Remove a connection.
+ * Create a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
+ * @param connection Resource create parameters.
* @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 {@link Mono} that completes when a successful response is received.
+ * @return the Private Endpoint Connection resource along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteByWorkspaceAsync(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName);
+ Mono> updateByHostPoolWithResponseAsync(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionWithSystemDataInner connection);
/**
- * Remove a connection.
+ * Create a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param context The context to associate with this operation.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
+ * @param connection Resource create parameters.
* @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 Response}.
+ * @return the Private Endpoint Connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByWorkspaceWithResponse(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName, Context context);
+ Mono updateByHostPoolAsync(String resourceGroupName,
+ String hostPoolName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionWithSystemDataInner connection);
/**
- * Remove a connection.
+ * Create a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
+ * @param connection Resource create parameters.
+ * @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 Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ Response updateByHostPoolWithResponse(String resourceGroupName,
+ String hostPoolName, String privateEndpointConnectionName,
+ PrivateEndpointConnectionWithSystemDataInner connection, Context context);
/**
- * Approve or reject a private endpoint connection.
+ * Create a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
+ * @param connection Resource create parameters.
* @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 Private Endpoint Connection resource along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateByWorkspaceWithResponseAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
+ PrivateEndpointConnectionWithSystemDataInner updateByHostPool(String resourceGroupName, String hostPoolName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionWithSystemDataInner connection);
/**
- * Approve or reject a private endpoint connection.
+ * Delete a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
* @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 Private Endpoint Connection resource on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByWorkspaceAsync(String resourceGroupName,
- String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnection connection);
+ Mono> deleteByHostPoolWithResponseAsync(String resourceGroupName, String hostPoolName,
+ String privateEndpointConnectionName);
/**
- * Approve or reject a private endpoint connection.
+ * Delete a PrivateEndpointConnectionWithSystemData.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
- * @param context The context to associate with this operation.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param privateEndpointConnectionName The name parameter for private endpoint.
* @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 Private Endpoint Connection resource along with {@link Response}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateByWorkspaceWithResponse(String resourceGroupName,
- String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnection connection,
- Context context);
+ Mono