diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
index f49ea63707c5..770c8ff6a28e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-11-03)
+
+- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2022-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Features Added
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md
index 717b4fc2ac12..0a25b54ed940 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-preview-2021-09. 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. Package tag package-2022-09. 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.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
index 8dfa5e819280..d6a6d09bc491 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
@@ -50,21 +50,13 @@
- [List](#operations_list)
-## PrivateEndpointConnections
+## ScalingPlanPooledSchedules
-- [DeleteByHostPool](#privateendpointconnections_deletebyhostpool)
-- [DeleteByWorkspace](#privateendpointconnections_deletebyworkspace)
-- [GetByHostPool](#privateendpointconnections_getbyhostpool)
-- [GetByWorkspace](#privateendpointconnections_getbyworkspace)
-- [ListByHostPool](#privateendpointconnections_listbyhostpool)
-- [ListByWorkspace](#privateendpointconnections_listbyworkspace)
-- [UpdateByHostPool](#privateendpointconnections_updatebyhostpool)
-- [UpdateByWorkspace](#privateendpointconnections_updatebyworkspace)
-
-## PrivateLinkResources
-
-- [ListByHostPool](#privatelinkresources_listbyhostpool)
-- [ListByWorkspace](#privatelinkresources_listbyworkspace)
+- [Create](#scalingplanpooledschedules_create)
+- [Delete](#scalingplanpooledschedules_delete)
+- [Get](#scalingplanpooledschedules_get)
+- [List](#scalingplanpooledschedules_list)
+- [Update](#scalingplanpooledschedules_update)
## ScalingPlans
@@ -108,15 +100,13 @@
```java
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.Operation;
import java.util.HashMap;
import java.util.Map;
/** Samples for ApplicationGroups CreateOrUpdate. */
public final class ApplicationGroupsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Create.json
*/
/**
* Sample code: ApplicationGroup_Create.
@@ -136,11 +126,6 @@ public final class ApplicationGroupsCreateOrUpdateSamples {
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withDescription("des1")
.withFriendlyName("friendly")
- .withMigrationRequest(
- new MigrationRequestProperties()
- .withOperation(Operation.START)
- .withMigrationPath(
- "TenantGroups/{defaultV1TenantGroup.Name}/Tenants/{defaultV1Tenant.Name}/HostPools/{sessionHostPool.Name}"))
.create();
}
@@ -165,7 +150,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationGroups Delete. */
public final class ApplicationGroupsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Delete.json
*/
/**
* Sample code: ApplicationGroup_Delete.
@@ -174,7 +159,9 @@ public final class ApplicationGroupsDeleteSamples {
*/
public static void applicationGroupDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applicationGroups().deleteWithResponse("resourceGroup1", "applicationGroup1", Context.NONE);
+ manager
+ .applicationGroups()
+ .deleteByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", Context.NONE);
}
}
```
@@ -187,7 +174,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationGroups GetByResourceGroup. */
public final class ApplicationGroupsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Get.json
*/
/**
* Sample code: ApplicationGroup_Get.
@@ -209,7 +196,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationGroups List. */
public final class ApplicationGroupsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_ListBySubscription.json
*/
/**
* Sample code: ApplicationGroup_List.
@@ -231,7 +218,7 @@ import com.azure.core.util.Context;
/** Samples for ApplicationGroups ListByResourceGroup. */
public final class ApplicationGroupsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_ListByResourceGroup.json
*/
/**
* Sample code: ApplicationGroup_ListByResourceGroup.
@@ -242,7 +229,8 @@ public final class ApplicationGroupsListByResourceGroupSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.applicationGroups()
- .listByResourceGroup("resourceGroup1", "applicationGroupType eq 'RailApplication'", Context.NONE);
+ .listByResourceGroup(
+ "resourceGroup1", "applicationGroupType eq 'RailApplication'", 10, true, 0, Context.NONE);
}
}
```
@@ -258,7 +246,7 @@ import java.util.Map;
/** Samples for ApplicationGroups Update. */
public final class ApplicationGroupsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ApplicationGroup_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ApplicationGroup_Update.json
*/
/**
* Sample code: ApplicationGroups_Update.
@@ -301,7 +289,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting
/** Samples for Applications CreateOrUpdate. */
public final class ApplicationsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Application_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Create.json
*/
/**
* Sample code: Application_Create.
@@ -335,7 +323,7 @@ import com.azure.core.util.Context;
/** Samples for Applications Delete. */
public final class ApplicationsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Application_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Delete.json
*/
/**
* Sample code: Application_Delete.
@@ -357,7 +345,7 @@ import com.azure.core.util.Context;
/** Samples for Applications Get. */
public final class ApplicationsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Application_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Get.json
*/
/**
* Sample code: Application_Get.
@@ -379,7 +367,7 @@ import com.azure.core.util.Context;
/** Samples for Applications List. */
public final class ApplicationsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Application_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_List.json
*/
/**
* Sample code: Applications_List.
@@ -388,7 +376,7 @@ public final class ApplicationsListSamples {
*/
public static void applicationsList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applications().list("resourceGroup1", "applicationGroup1", Context.NONE);
+ manager.applications().list("resourceGroup1", "applicationGroup1", 10, true, 0, Context.NONE);
}
}
```
@@ -404,7 +392,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationT
/** Samples for Applications Update. */
public final class ApplicationsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Application_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Application_Update.json
*/
/**
* Sample code: Application_Update.
@@ -442,7 +430,7 @@ import com.azure.core.util.Context;
/** Samples for Desktops Get. */
public final class DesktopsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Desktop_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_Get.json
*/
/**
* Sample code: Desktop_Get.
@@ -464,7 +452,7 @@ import com.azure.core.util.Context;
/** Samples for Desktops List. */
public final class DesktopsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Desktop_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_List.json
*/
/**
* Sample code: Desktop_List.
@@ -473,7 +461,7 @@ public final class DesktopsListSamples {
*/
public static void desktopList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.desktops().list("resourceGroup1", "applicationGroup1", Context.NONE);
+ manager.desktops().list("resourceGroup1", "applicationGroup1", 10, true, 0, Context.NONE);
}
}
```
@@ -487,7 +475,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
/** Samples for Desktops Update. */
public final class DesktopsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Desktop_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Desktop_Update.json
*/
/**
* Sample code: Desktop_Update.
@@ -512,23 +500,25 @@ public final class DesktopsUpdateSamples {
```java
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.HostPoolType;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
-import com.azure.resourcemanager.desktopvirtualization.models.Operation;
+import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import java.time.OffsetDateTime;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for HostPools CreateOrUpdate. */
public final class HostPoolsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Create.json
*/
/**
* Sample code: HostPool_Create.
@@ -560,12 +550,16 @@ public final class HostPoolsCreateOrUpdateSamples {
.withSsoClientSecretKeyVaultPath("https://keyvault/secret")
.withSsoSecretType(SsoSecretType.SHARED_KEY)
.withStartVMOnConnect(false)
- .withMigrationRequest(
- new MigrationRequestProperties()
- .withOperation(Operation.START)
- .withMigrationPath(
- "TenantGroups/{defaultV1TenantGroup.Name}/Tenants/{defaultV1Tenant.Name}/HostPools/{sessionHostPool.Name}"))
- .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
+ .withAgentUpdate(
+ new AgentUpdateProperties()
+ .withType(SessionHostComponentUpdateType.SCHEDULED)
+ .withUseSessionHostLocalTime(false)
+ .withMaintenanceWindowTimeZone("Alaskan Standard Time")
+ .withMaintenanceWindows(
+ Arrays
+ .asList(
+ new MaintenanceWindowProperties().withHour(7).withDayOfWeek(DayOfWeek.FRIDAY),
+ new MaintenanceWindowProperties().withHour(8).withDayOfWeek(DayOfWeek.SATURDAY))))
.create();
}
@@ -590,7 +584,7 @@ import com.azure.core.util.Context;
/** Samples for HostPools Delete. */
public final class HostPoolsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Delete.json
*/
/**
* Sample code: HostPool_Delete.
@@ -612,7 +606,7 @@ import com.azure.core.util.Context;
/** Samples for HostPools GetByResourceGroup. */
public final class HostPoolsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Get.json
*/
/**
* Sample code: HostPool_Get.
@@ -634,7 +628,7 @@ import com.azure.core.util.Context;
/** Samples for HostPools List. */
public final class HostPoolsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_List.json
*/
/**
* Sample code: HostPool_List.
@@ -643,7 +637,7 @@ public final class HostPoolsListSamples {
*/
public static void hostPoolList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.hostPools().list(Context.NONE);
+ manager.hostPools().list(10, true, 0, Context.NONE);
}
}
```
@@ -656,7 +650,7 @@ import com.azure.core.util.Context;
/** Samples for HostPools ListByResourceGroup. */
public final class HostPoolsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_ListByResourceGroup.json
*/
/**
* Sample code: HostPool_ListByResourceGroup.
@@ -665,7 +659,7 @@ public final class HostPoolsListByResourceGroupSamples {
*/
public static void hostPoolListByResourceGroup(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.hostPools().listByResourceGroup("resourceGroup1", Context.NONE);
+ manager.hostPools().listByResourceGroup("resourceGroup1", 10, true, 0, Context.NONE);
}
}
```
@@ -678,7 +672,7 @@ import com.azure.core.util.Context;
/** Samples for HostPools RetrieveRegistrationToken. */
public final class HostPoolsRetrieveRegistrationTokenSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPools_RetrieveRegistrationToken_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPools_RetrieveRegistrationToken_Post.json
*/
/**
* Sample code: HostPools_RetrieveRegistrationToken_Post.
@@ -696,21 +690,25 @@ public final class HostPoolsRetrieveRegistrationTokenSamples {
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
import com.azure.resourcemanager.desktopvirtualization.models.HostPool;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
+import com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowPatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationInfoPatch;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostComponentUpdateType;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import java.time.OffsetDateTime;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/** Samples for HostPools Update. */
public final class HostPoolsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/HostPool_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/HostPool_Update.json
*/
/**
* Sample code: HostPool_Update.
@@ -739,7 +737,16 @@ public final class HostPoolsUpdateSamples {
.withSsoClientSecretKeyVaultPath("https://keyvault/secret")
.withSsoSecretType(SsoSecretType.SHARED_KEY)
.withStartVMOnConnect(false)
- .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
+ .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))))
.apply();
}
@@ -765,7 +772,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.MsixImageUri;
/** Samples for MsixImages Expand. */
public final class MsixImagesExpandSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixImage_Expand_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixImage_Expand_Post.json
*/
/**
* Sample code: MsixImage_Expand.
@@ -792,7 +799,7 @@ import java.util.Arrays;
/** Samples for MsixPackages CreateOrUpdate. */
public final class MsixPackagesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixPackage_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Create.json
*/
/**
* Sample code: MSIXPackage_Create.
@@ -845,7 +852,7 @@ import com.azure.core.util.Context;
/** Samples for MsixPackages Delete. */
public final class MsixPackagesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixPackage_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Delete.json
*/
/**
* Sample code: MSIXPackage_Delete.
@@ -867,7 +874,7 @@ import com.azure.core.util.Context;
/** Samples for MsixPackages Get. */
public final class MsixPackagesGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixPackage_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Get.json
*/
/**
* Sample code: MSIXPackage_Get.
@@ -889,7 +896,7 @@ import com.azure.core.util.Context;
/** Samples for MsixPackages List. */
public final class MsixPackagesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixPackage_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_List.json
*/
/**
* Sample code: MSIXPackage_List.
@@ -898,7 +905,7 @@ public final class MsixPackagesListSamples {
*/
public static void mSIXPackageList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.msixPackages().list("resourceGroup1", "hostpool1", Context.NONE);
+ manager.msixPackages().list("resourceGroup1", "hostpool1", 10, true, 0, Context.NONE);
}
}
```
@@ -912,7 +919,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.MsixPackage;
/** Samples for MsixPackages Update. */
public final class MsixPackagesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/MsixPackage_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/MsixPackage_Update.json
*/
/**
* Sample code: MSIXPackage_Update.
@@ -939,7 +946,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/OperationDescription_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/OperationDescription_List.json
*/
/**
* Sample code: OperationDescription_List.
@@ -953,264 +960,164 @@ public final class OperationsListSamples {
}
```
-### PrivateEndpointConnections_DeleteByHostPool
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for PrivateEndpointConnections DeleteByHostPool. */
-public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
- /*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
- */
- /**
- * Sample code: PrivateEndpointConnection_DeleteByHostPool.
- *
- * @param manager Entry point to DesktopVirtualizationManager.
- */
- public static void privateEndpointConnectionDeleteByHostPool(
- com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager
- .privateEndpointConnections()
- .deleteByHostPoolWithResponse(
- "resourceGroup1", "hostPool1", "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_DeleteByWorkspace
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for PrivateEndpointConnections DeleteByWorkspace. */
-public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
- /*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
- */
- /**
- * Sample code: PrivateEndpointConnection_DeleteByWorkspace.
- *
- * @param manager Entry point to DesktopVirtualizationManager.
- */
- public static void privateEndpointConnectionDeleteByWorkspace(
- com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager
- .privateEndpointConnections()
- .deleteByWorkspaceWithResponse(
- "resourceGroup1", "workspace1", "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_GetByHostPool
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for PrivateEndpointConnections GetByHostPool. */
-public final class PrivateEndpointConnectionsGetByHostPoolSamples {
- /*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_GetByHostPool.json
- */
- /**
- * Sample code: PrivateEndpointConnection_GetByHostPool.
- *
- * @param manager Entry point to DesktopVirtualizationManager.
- */
- public static void privateEndpointConnectionGetByHostPool(
- com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager
- .privateEndpointConnections()
- .getByHostPoolWithResponse(
- "resourceGroup1", "hostPool1", "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_GetByWorkspace
+### ScalingPlanPooledSchedules_Create
```java
-import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
+import com.azure.resourcemanager.desktopvirtualization.models.Time;
+import java.util.Arrays;
-/** Samples for PrivateEndpointConnections GetByWorkspace. */
-public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
+/** Samples for ScalingPlanPooledSchedules Create. */
+public final class ScalingPlanPooledSchedulesCreateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Create.json
*/
/**
- * Sample code: PrivateEndpointConnection_GetByWorkspace.
+ * Sample code: ScalingPlanPooledSchedules_Create.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionGetByWorkspace(
+ public static void scalingPlanPooledSchedulesCreate(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
- .privateEndpointConnections()
- .getByWorkspaceWithResponse(
- "resourceGroup1", "workspace1", "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_ListByHostPool
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for PrivateEndpointConnections ListByHostPool. */
-public final class PrivateEndpointConnectionsListByHostPoolSamples {
- /*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_ListByHostPool.json
- */
- /**
- * Sample code: PrivateEndpointConnection_ListByHostPool.
- *
- * @param manager Entry point to DesktopVirtualizationManager.
- */
- public static void privateEndpointConnectionListByHostPool(
- com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateEndpointConnections().listByHostPool("resourceGroup1", "hostPool1", Context.NONE);
- }
-}
-```
-
-### PrivateEndpointConnections_ListByWorkspace
-
-```java
-import com.azure.core.util.Context;
-
-/** Samples for PrivateEndpointConnections ListByWorkspace. */
-public final class PrivateEndpointConnectionsListByWorkspaceSamples {
- /*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
- */
- /**
- * Sample code: PrivateEndpointConnection_ListByWorkspace.
- *
- * @param manager Entry point to DesktopVirtualizationManager.
- */
- public static void privateEndpointConnectionListByWorkspace(
- com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateEndpointConnections().listByWorkspace("resourceGroup1", "workspace1", Context.NONE);
+ .scalingPlanPooledSchedules()
+ .define("scalingPlanScheduleWeekdays1")
+ .withExistingScalingPlan("resourceGroup1", "scalingPlan1")
+ .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)
+ .create();
}
}
```
-### PrivateEndpointConnections_UpdateByHostPool
+### ScalingPlanPooledSchedules_Delete
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-/** Samples for PrivateEndpointConnections UpdateByHostPool. */
-public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
+/** Samples for ScalingPlanPooledSchedules Delete. */
+public final class ScalingPlanPooledSchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_UpdateByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Delete.json
*/
/**
- * Sample code: PrivateEndpointConnection_UpdateByHostPool.
+ * Sample code: ScalingPlanPooledSchedules_Delete.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionUpdateByHostPool(
+ public static void scalingPlanPooledSchedulesDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
- .privateEndpointConnections()
- .updateByHostPoolWithResponse(
- "resourceGroup1",
- "hostPool1",
- "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
- new PrivateEndpointConnection()
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Approved by admin@consoto.com")
- .withActionsRequired("None")),
- Context.NONE);
+ .scalingPlanPooledSchedules()
+ .deleteWithResponse("resourceGroup1", "scalingPlan1", "scalingPlanScheduleWeekdays1", Context.NONE);
}
}
```
-### PrivateEndpointConnections_UpdateByWorkspace
+### ScalingPlanPooledSchedules_Get
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-/** Samples for PrivateEndpointConnections UpdateByWorkspace. */
-public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
+/** Samples for ScalingPlanPooledSchedules Get. */
+public final class ScalingPlanPooledSchedulesGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_UpdateByWorkspace.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Get.json
*/
/**
- * Sample code: PrivateEndpointConnection_UpdateByWorkspace.
+ * Sample code: ScalingPlanPooledSchedules_Get.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateEndpointConnectionUpdateByWorkspace(
+ public static void scalingPlanPooledSchedulesGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
- .privateEndpointConnections()
- .updateByWorkspaceWithResponse(
- "resourceGroup1",
- "workspace1",
- "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
- new PrivateEndpointConnection()
- .withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState()
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Approved by admin@consoto.com")
- .withActionsRequired("None")),
- Context.NONE);
+ .scalingPlanPooledSchedules()
+ .getWithResponse("resourceGroup1", "scalingPlan1", "scalingPlanScheduleWeekdays1", Context.NONE);
}
}
```
-### PrivateLinkResources_ListByHostPool
+### ScalingPlanPooledSchedules_List
```java
import com.azure.core.util.Context;
-/** Samples for PrivateLinkResources ListByHostPool. */
-public final class PrivateLinkResourcesListByHostPoolSamples {
+/** Samples for ScalingPlanPooledSchedules List. */
+public final class ScalingPlanPooledSchedulesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateLinkResources_ListByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_List.json
*/
/**
- * Sample code: PrivateLinkResources_ListByHostPool.
+ * Sample code: ScalingPlanPooledSchedules_List.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateLinkResourcesListByHostPool(
+ public static void scalingPlanPooledSchedulesList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateLinkResources().listByHostPool("resourceGroup1", "hostPool1", Context.NONE);
+ manager.scalingPlanPooledSchedules().list("resourceGroup1", "scalingPlan1", 10, true, 0, Context.NONE);
}
}
```
-### PrivateLinkResources_ListByWorkspace
+### ScalingPlanPooledSchedules_Update
```java
import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.models.DayOfWeek;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedule;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
+import com.azure.resourcemanager.desktopvirtualization.models.Time;
+import java.util.Arrays;
-/** Samples for PrivateLinkResources ListByWorkspace. */
-public final class PrivateLinkResourcesListByWorkspaceSamples {
+/** Samples for ScalingPlanPooledSchedules Update. */
+public final class ScalingPlanPooledSchedulesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateLinkResources_ListByWorkspace.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlanPooledSchedule_Update.json
*/
/**
- * Sample code: PrivateLinkResources_ListByWorkspace.
+ * Sample code: ScalingPlanPooledSchedules_Update.
*
* @param manager Entry point to DesktopVirtualizationManager.
*/
- public static void privateLinkResourcesListByWorkspace(
+ public static void scalingPlanPooledSchedulesUpdate(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateLinkResources().listByWorkspace("resourceGroup1", "workspace1", Context.NONE);
+ ScalingPlanPooledSchedule resource =
+ manager
+ .scalingPlanPooledSchedules()
+ .getWithResponse("resourceGroup1", "scalingPlan1", "scalingPlanScheduleWeekdays1", 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)
+ .apply();
}
}
```
@@ -1231,7 +1138,7 @@ import java.util.Map;
/** Samples for ScalingPlans Create. */
public final class ScalingPlansCreateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Create.json
*/
/**
* Sample code: ScalingPlans_Create.
@@ -1245,10 +1152,10 @@ public final class ScalingPlansCreateSamples {
.define("scalingPlan1")
.withRegion("centralus")
.withExistingResourceGroup("resourceGroup1")
+ .withTimeZone("Central Standard Time")
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withDescription("Description of Scaling Plan")
.withFriendlyName("Scaling Plan 1")
- .withTimeZone("Central Standard Time")
.withHostPoolType(ScalingHostPoolType.POOLED)
.withExclusionTag("value")
.withSchedules(
@@ -1310,7 +1217,7 @@ import com.azure.core.util.Context;
/** Samples for ScalingPlans Delete. */
public final class ScalingPlansDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Delete.json
*/
/**
* Sample code: ScalingPlans_Delete.
@@ -1319,7 +1226,7 @@ public final class ScalingPlansDeleteSamples {
*/
public static void scalingPlansDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.scalingPlans().deleteWithResponse("resourceGroup1", "scalingPlan1", Context.NONE);
+ manager.scalingPlans().deleteByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", Context.NONE);
}
}
```
@@ -1332,7 +1239,7 @@ import com.azure.core.util.Context;
/** Samples for ScalingPlans GetByResourceGroup. */
public final class ScalingPlansGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Get.json
*/
/**
* Sample code: ScalingPlans_Get.
@@ -1354,7 +1261,7 @@ import com.azure.core.util.Context;
/** Samples for ScalingPlans List. */
public final class ScalingPlansListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListBySubscription.json
*/
/**
* Sample code: ScalingPlans_ListBySubscription.
@@ -1363,7 +1270,7 @@ public final class ScalingPlansListSamples {
*/
public static void scalingPlansListBySubscription(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.scalingPlans().list(Context.NONE);
+ manager.scalingPlans().list(10, true, 0, Context.NONE);
}
}
```
@@ -1376,7 +1283,7 @@ import com.azure.core.util.Context;
/** Samples for ScalingPlans ListByHostPool. */
public final class ScalingPlansListByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_ListByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListByHostPool.json
*/
/**
* Sample code: ScalingPlan_ListByHostPool.
@@ -1385,7 +1292,7 @@ public final class ScalingPlansListByHostPoolSamples {
*/
public static void scalingPlanListByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.scalingPlans().listByHostPool("resourceGroup1", "hostPool1", Context.NONE);
+ manager.scalingPlans().listByHostPool("resourceGroup1", "hostPool1", 10, true, 0, Context.NONE);
}
}
```
@@ -1398,7 +1305,7 @@ import com.azure.core.util.Context;
/** Samples for ScalingPlans ListByResourceGroup. */
public final class ScalingPlansListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_ListByResourceGroup.json
*/
/**
* Sample code: ScalingPlans_ListByResourceGroup.
@@ -1407,7 +1314,7 @@ public final class ScalingPlansListByResourceGroupSamples {
*/
public static void scalingPlansListByResourceGroup(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.scalingPlans().listByResourceGroup("resourceGroup1", Context.NONE);
+ manager.scalingPlans().listByResourceGroup("resourceGroup1", 10, true, 0, Context.NONE);
}
}
```
@@ -1421,7 +1328,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlan;
/** Samples for ScalingPlans Update. */
public final class ScalingPlansUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/ScalingPlan_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/ScalingPlan_Update.json
*/
/**
* Sample code: ScalingPlans_Update.
@@ -1448,7 +1355,7 @@ import com.azure.core.util.Context;
/** Samples for SessionHosts Delete. */
public final class SessionHostsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/SessionHost_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Delete.json
*/
/**
* Sample code: SessionHost_Delete.
@@ -1472,7 +1379,7 @@ import com.azure.core.util.Context;
/** Samples for SessionHosts Get. */
public final class SessionHostsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/SessionHost_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Get.json
*/
/**
* Sample code: SessionHost_Get.
@@ -1496,7 +1403,7 @@ import com.azure.core.util.Context;
/** Samples for SessionHosts List. */
public final class SessionHostsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/SessionHost_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_List.json
*/
/**
* Sample code: SessionHost_List.
@@ -1505,7 +1412,7 @@ public final class SessionHostsListSamples {
*/
public static void sessionHostList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.sessionHosts().list("resourceGroup1", "hostPool1", Context.NONE);
+ manager.sessionHosts().list("resourceGroup1", "hostPool1", 10, true, 0, Context.NONE);
}
}
```
@@ -1519,7 +1426,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch;
/** Samples for SessionHosts Update. */
public final class SessionHostsUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/SessionHost_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/SessionHost_Update.json
*/
/**
* Sample code: SessionHost_Update.
@@ -1535,7 +1442,10 @@ public final class SessionHostsUpdateSamples {
"hostPool1",
"sessionHost1.microsoft.com",
true,
- new SessionHostPatch().withAllowNewSession(true).withAssignedUser("user1@microsoft.com"),
+ new SessionHostPatch()
+ .withAllowNewSession(true)
+ .withAssignedUser("user1@microsoft.com")
+ .withFriendlyName("friendly"),
Context.NONE);
}
}
@@ -1549,7 +1459,7 @@ import com.azure.core.util.Context;
/** Samples for StartMenuItems List. */
public final class StartMenuItemsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/StartMenuItem_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/StartMenuItem_List.json
*/
/**
* Sample code: StartMenuItem_List.
@@ -1558,7 +1468,7 @@ public final class StartMenuItemsListSamples {
*/
public static void startMenuItemList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.startMenuItems().list("resourceGroup1", "applicationGroup1", Context.NONE);
+ manager.startMenuItems().list("resourceGroup1", "applicationGroup1", null, null, null, Context.NONE);
}
}
```
@@ -1571,7 +1481,7 @@ import com.azure.core.util.Context;
/** Samples for UserSessions Delete. */
public final class UserSessionsDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Delete.json
*/
/**
* Sample code: UserSession_Delete.
@@ -1595,7 +1505,7 @@ import com.azure.core.util.Context;
/** Samples for UserSessions Disconnect. */
public final class UserSessionsDisconnectSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_Disconnect_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Disconnect_Post.json
*/
/**
* Sample code: UserSession_Disconnect_Post.
@@ -1619,7 +1529,7 @@ import com.azure.core.util.Context;
/** Samples for UserSessions Get. */
public final class UserSessionsGetSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_Get.json
*/
/**
* Sample code: UserSession_Get.
@@ -1643,7 +1553,7 @@ import com.azure.core.util.Context;
/** Samples for UserSessions List. */
public final class UserSessionsListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_List.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_List.json
*/
/**
* Sample code: UserSession_List.
@@ -1652,7 +1562,9 @@ public final class UserSessionsListSamples {
*/
public static void userSessionList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.userSessions().list("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", Context.NONE);
+ manager
+ .userSessions()
+ .list("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", 10, true, 0, Context.NONE);
}
}
```
@@ -1665,7 +1577,7 @@ import com.azure.core.util.Context;
/** Samples for UserSessions ListByHostPool. */
public final class UserSessionsListByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_ListByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_ListByHostPool.json
*/
/**
* Sample code: UserSession_ListByHostPool.
@@ -1680,6 +1592,9 @@ public final class UserSessionsListByHostPoolSamples {
"resourceGroup1",
"hostPool1",
"userPrincipalName eq 'user1@microsoft.com' and state eq 'active'",
+ 10,
+ true,
+ 0,
Context.NONE);
}
}
@@ -1694,7 +1609,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.SendMessage;
/** Samples for UserSessions SendMessage. */
public final class UserSessionsSendMessageSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/UserSession_SendMessage_Post.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/UserSession_SendMessage_Post.json
*/
/**
* Sample code: UserSession_SendMessage_Post.
@@ -1725,7 +1640,7 @@ import java.util.Map;
/** Samples for Workspaces CreateOrUpdate. */
public final class WorkspacesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_Create.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Create.json
*/
/**
* Sample code: Workspace_Create.
@@ -1766,7 +1681,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces Delete. */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_Delete.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Delete.json
*/
/**
* Sample code: Workspace_Delete.
@@ -1775,7 +1690,7 @@ public final class WorkspacesDeleteSamples {
*/
public static void workspaceDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.workspaces().deleteWithResponse("resourceGroup1", "workspace1", Context.NONE);
+ manager.workspaces().deleteByResourceGroupWithResponse("resourceGroup1", "workspace1", Context.NONE);
}
}
```
@@ -1788,7 +1703,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces GetByResourceGroup. */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_Get.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Get.json
*/
/**
* Sample code: Workspace_Get.
@@ -1810,7 +1725,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces List. */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_ListBySubscription.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_ListBySubscription.json
*/
/**
* Sample code: Workspace_ListBySubscription.
@@ -1832,7 +1747,7 @@ import com.azure.core.util.Context;
/** Samples for Workspaces ListByResourceGroup. */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_ListByResourceGroup.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_ListByResourceGroup.json
*/
/**
* Sample code: Workspace_ListByResourceGroup.
@@ -1841,7 +1756,7 @@ public final class WorkspacesListByResourceGroupSamples {
*/
public static void workspaceListByResourceGroup(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.workspaces().listByResourceGroup("resourceGroup1", Context.NONE);
+ manager.workspaces().listByResourceGroup("resourceGroup1", 10, true, 0, Context.NONE);
}
}
```
@@ -1850,7 +1765,6 @@ public final class WorkspacesListByResourceGroupSamples {
```java
import com.azure.core.util.Context;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.Workspace;
import java.util.HashMap;
import java.util.Map;
@@ -1858,7 +1772,7 @@ import java.util.Map;
/** Samples for Workspaces Update. */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/Workspace_Update.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2022-09-09/examples/Workspace_Update.json
*/
/**
* Sample code: Workspace_Update.
@@ -1877,7 +1791,6 @@ public final class WorkspacesUpdateSamples {
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withDescription("des1")
.withFriendlyName("friendly")
- .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
.apply();
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
index ad0880358484..95bdb24fa465 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/pom.xml
@@ -13,7 +13,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-preview-2021-09.
+ 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-2022-09.
https://github.com/Azure/azure-sdk-for-java
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 ab647dc2e230..75079bef7510 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
@@ -32,8 +32,7 @@
import com.azure.resourcemanager.desktopvirtualization.implementation.MsixImagesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.MsixPackagesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.OperationsImpl;
-import com.azure.resourcemanager.desktopvirtualization.implementation.PrivateEndpointConnectionsImpl;
-import com.azure.resourcemanager.desktopvirtualization.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlanPooledSchedulesImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.ScalingPlansImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.SessionHostsImpl;
import com.azure.resourcemanager.desktopvirtualization.implementation.StartMenuItemsImpl;
@@ -46,8 +45,7 @@
import com.azure.resourcemanager.desktopvirtualization.models.MsixImages;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackages;
import com.azure.resourcemanager.desktopvirtualization.models.Operations;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnections;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResources;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedules;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlans;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHosts;
import com.azure.resourcemanager.desktopvirtualization.models.StartMenuItems;
@@ -68,6 +66,8 @@ public final class DesktopVirtualizationManager {
private ScalingPlans scalingPlans;
+ private ScalingPlanPooledSchedules scalingPlanPooledSchedules;
+
private ApplicationGroups applicationGroups;
private StartMenuItems startMenuItems;
@@ -86,10 +86,6 @@ public final class DesktopVirtualizationManager {
private MsixImages msixImages;
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
private final DesktopVirtualizationApiClient clientObject;
private DesktopVirtualizationManager(
@@ -256,7 +252,7 @@ public DesktopVirtualizationManager authenticate(TokenCredential credential, Azu
.append("-")
.append("com.azure.resourcemanager.desktopvirtualization")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -349,6 +345,19 @@ public ScalingPlans scalingPlans() {
return scalingPlans;
}
+ /**
+ * 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;
+ }
+
/**
* Gets the resource collection API of ApplicationGroups. It manages ApplicationGroup.
*
@@ -457,31 +466,6 @@ public MsixImages msixImages() {
return msixImages;
}
- /**
- * Gets the resource collection API of PrivateEndpointConnections.
- *
- * @return Resource collection API of PrivateEndpointConnections.
- */
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections =
- new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
- }
- return privateEndpointConnections;
- }
-
- /**
- * Gets the resource collection API of PrivateLinkResources.
- *
- * @return Resource collection API of PrivateLinkResources.
- */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
- }
- return privateLinkResources;
- }
-
/**
* @return Wrapped service client DesktopVirtualizationApiClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
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 8bcf26cb5a29..8e1708df699c 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
@@ -6,56 +6,14 @@
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.ApplicationGroupInner;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
public interface ApplicationGroupsClient {
- /**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String applicationGroupName);
-
- /**
- * 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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String applicationGroupName);
-
- /**
- * 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)
- ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
-
/**
* Get an application group.
*
@@ -72,20 +30,17 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String applicationGroupName, Context context);
/**
- * Create or update 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.
- * @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 along with {@link Response} on successful completion of {@link
- * Mono}.
+ * @return an application group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup);
+ ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
/**
* Create or update an applicationGroup.
@@ -93,14 +48,15 @@ Mono> createOrUpdateWithResponseAsync(
* @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 on successful completion of {@link Mono}.
+ * @return represents a ApplicationGroup definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(
- String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup, Context context);
/**
* Create or update an applicationGroup.
@@ -117,60 +73,6 @@ Mono createOrUpdateAsync(
ApplicationGroupInner createOrUpdate(
String resourceGroupName, String applicationGroupName, ApplicationGroupInner 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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup, Context context);
-
- /**
- * 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 the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName);
-
- /**
- * 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String applicationGroupName);
-
- /**
- * 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String applicationGroupName);
-
/**
* Remove an applicationGroup.
*
@@ -186,20 +88,16 @@ Response createOrUpdateWithResponse(
Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context);
/**
- * Update an applicationGroup.
+ * 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 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 along with {@link Response} on successful completion of {@link
- * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup);
+ void delete(String resourceGroupName, String applicationGroupName);
/**
* Update an applicationGroup.
@@ -207,27 +105,15 @@ Mono> updateWithResponseAsync(
* @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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(
- String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup);
-
- /**
- * 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 represents a ApplicationGroup definition on successful completion of {@link Mono}.
+ * @return represents a ApplicationGroup definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName);
+ Response updateWithResponse(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup, Context context);
/**
* Update an applicationGroup.
@@ -242,47 +128,6 @@ Mono updateAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
ApplicationGroupInner update(String resourceGroupName, String applicationGroupName);
- /**
- * 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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String applicationGroupName, ApplicationGroupPatch applicationGroup, Context context);
-
- /**
- * List applicationGroups.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 applicationGroupList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter);
-
- /**
- * List applicationGroups.
- *
- * @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 applicationGroupList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
-
/**
* List applicationGroups.
*
@@ -300,6 +145,9 @@ Response updateWithResponse(
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -307,29 +155,13 @@ Response updateWithResponse(
* @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
-
- /**
- * List applicationGroups in subscription.
- *
- * @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 applicationGroupList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String filter);
-
- /**
- * List applicationGroups 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 applicationGroupList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ PagedIterable listByResourceGroup(
+ String resourceGroupName,
+ String filter,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
/**
* List applicationGroups in subscription.
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 c5d01a671370..c0be6cb40fcd 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
@@ -6,59 +6,14 @@
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.ApplicationInner;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
public interface ApplicationsClient {
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String applicationName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String applicationGroupName, String applicationName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
-
/**
* Get an application.
*
@@ -76,52 +31,18 @@ Response getWithResponse(
String resourceGroupName, String applicationGroupName, String applicationName, Context context);
/**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner 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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(
- String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application);
-
- /**
- * 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);
/**
* Create or update an application.
@@ -145,46 +66,20 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * 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 the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String applicationName);
-
- /**
- * 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(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 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);
/**
* Remove an application.
@@ -203,53 +98,7 @@ Response deleteWithResponse(
String resourceGroupName, String applicationGroupName, String applicationName, Context context);
/**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String applicationName, ApplicationPatch application);
-
- /**
- * 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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(
- String resourceGroupName, String applicationGroupName, String applicationName, ApplicationPatch application);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName, String applicationName);
-
- /**
- * Update an application.
+ * Remove an application.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
@@ -257,10 +106,9 @@ Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
- ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName);
+ void delete(String resourceGroupName, String applicationGroupName, String applicationName);
/**
* Update an application.
@@ -284,17 +132,18 @@ Response updateWithResponse(
Context context);
/**
- * List applications.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 schema for Application properties.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName);
/**
* List applications.
@@ -314,6 +163,9 @@ Response updateWithResponse(
*
* @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.
@@ -321,5 +173,11 @@ Response updateWithResponse(
* @return applicationList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
+ 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/DesktopVirtualizationApiClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
index 0acce8b6c33a..877f5e0a06fb 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
@@ -65,6 +65,13 @@ public interface DesktopVirtualizationApiClient {
*/
ScalingPlansClient getScalingPlans();
+ /**
+ * Gets the ScalingPlanPooledSchedulesClient object to access its operations.
+ *
+ * @return the ScalingPlanPooledSchedulesClient object.
+ */
+ ScalingPlanPooledSchedulesClient getScalingPlanPooledSchedules();
+
/**
* Gets the ApplicationGroupsClient object to access its operations.
*
@@ -127,18 +134,4 @@ public interface DesktopVirtualizationApiClient {
* @return the MsixImagesClient object.
*/
MsixImagesClient getMsixImages();
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
}
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 e3f6e830867b..4e7b23e242bb 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
@@ -6,59 +6,14 @@
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.DesktopInner;
import com.azure.resourcemanager.desktopvirtualization.models.DesktopPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in DesktopsClient. */
public interface DesktopsClient {
- /**
- * Get a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 desktop along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String desktopName);
-
- /**
- * Get a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 desktop on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String applicationGroupName, String desktopName);
-
- /**
- * Get a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 desktop.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DesktopInner get(String resourceGroupName, String applicationGroupName, String desktopName);
-
/**
* Get a desktop.
*
@@ -76,53 +31,7 @@ Response getWithResponse(
String resourceGroupName, String applicationGroupName, String desktopName, Context context);
/**
- * Update a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Desktop properties along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String applicationGroupName, String desktopName, DesktopPatch desktop);
-
- /**
- * Update a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Desktop properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(
- String resourceGroupName, String applicationGroupName, String desktopName, DesktopPatch desktop);
-
- /**
- * Update a desktop.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Desktop properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName, String desktopName);
-
- /**
- * Update a desktop.
+ * Get a desktop.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
@@ -130,10 +39,10 @@ Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Desktop properties.
+ * @return a desktop.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DesktopInner update(String resourceGroupName, String applicationGroupName, String desktopName);
+ DesktopInner get(String resourceGroupName, String applicationGroupName, String desktopName);
/**
* Update a desktop.
@@ -157,17 +66,18 @@ Response updateWithResponse(
Context context);
/**
- * List desktops.
+ * Update a desktop.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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}.
+ * @return schema for Desktop properties.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DesktopInner update(String resourceGroupName, String applicationGroupName, String desktopName);
/**
* List desktops.
@@ -187,6 +97,9 @@ Response updateWithResponse(
*
* @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.
@@ -194,5 +107,11 @@ Response updateWithResponse(
* @return desktopList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
+ 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 10ae0b09fbf8..79fd7c0ff27f 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
@@ -6,56 +6,15 @@
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.HostPoolInner;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in HostPoolsClient. */
public interface HostPoolsClient {
- /**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String hostPoolName);
-
- /**
- * 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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String hostPoolName);
-
- /**
- * 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)
- HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
-
/**
* Get a host pool.
*
@@ -72,47 +31,17 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String hostPoolName, Context context);
/**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
-
- /**
- * 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 createOrUpdateAsync(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
-
- /**
- * Create or update 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 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.
+ * @return a host pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
+ HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
/**
* Create or update a host pool.
@@ -131,57 +60,18 @@ Response createOrUpdateWithResponse(
String resourceGroupName, String hostPoolName, HostPoolInner hostPool, Context context);
/**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, Boolean force);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, Boolean force);
-
- /**
- * 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String hostPoolName);
-
- /**
- * Remove 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)
- void delete(String resourceGroupName, String hostPoolName);
+ HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
/**
* Remove a host pool.
@@ -199,19 +89,16 @@ Response createOrUpdateWithResponse(
Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, Context context);
/**
- * Update a host pool.
+ * 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 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 along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String hostPoolName, HostPoolPatch hostPool);
+ void delete(String resourceGroupName, String hostPoolName);
/**
* Update a host pool.
@@ -219,26 +106,15 @@ Mono> updateWithResponseAsync(
* @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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName, HostPoolPatch hostPool);
-
- /**
- * 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 represents a HostPool definition on successful completion of {@link Mono}.
+ * @return represents a HostPool definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName);
+ Response updateWithResponse(
+ String resourceGroupName, String hostPoolName, HostPoolPatch hostPool, Context context);
/**
* Update a host pool.
@@ -253,34 +129,6 @@ Mono> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
HostPoolInner update(String resourceGroupName, String hostPoolName);
- /**
- * 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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String hostPoolName, HostPoolPatch hostPool, Context context);
-
- /**
- * List hostPools.
- *
- * @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 hostPoolList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
-
/**
* List hostPools.
*
@@ -297,6 +145,9 @@ Response updateWithResponse(
* List hostPools.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -304,17 +155,8 @@ Response updateWithResponse(
* @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List hostPools 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 hostPoolList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* List hostPools in subscription.
@@ -329,6 +171,9 @@ Response updateWithResponse(
/**
* List hostPools in subscription.
*
+ * @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.
@@ -336,35 +181,22 @@ Response updateWithResponse(
* @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * 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 represents a RegistrationInfo definition along with {@link Response} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> retrieveRegistrationTokenWithResponseAsync(
- String resourceGroupName, String hostPoolName);
+ PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* 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.
+ * @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 RegistrationInfo definition on successful completion of {@link Mono}.
+ * @return represents a RegistrationInfo definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono retrieveRegistrationTokenAsync(String resourceGroupName, String hostPoolName);
+ Response retrieveRegistrationTokenWithResponse(
+ String resourceGroupName, String hostPoolName, Context context);
/**
* Registration token of the host pool.
@@ -378,19 +210,4 @@ Mono> retrieveRegistrationTokenWithResponseAsync
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
-
- /**
- * 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.
- * @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 RegistrationInfo definition along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response retrieveRegistrationTokenWithResponse(
- String resourceGroupName, String hostPoolName, Context context);
}
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 2920e831cb76..0877812b7daa 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
@@ -6,7 +6,6 @@
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.util.Context;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ExpandMsixImageInner;
@@ -14,21 +13,6 @@
/** An instance of this class provides access to all the operations defined in MsixImagesClient. */
public interface MsixImagesClient {
- /**
- * Expands and Lists MSIX packages in an Image, given the Image Path.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux expandAsync(
- String resourceGroupName, String hostPoolName, MsixImageUri msixImageUri);
-
/**
* Expands and Lists MSIX packages in an Image, given the Image Path.
*
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 c0b05592eeac..3cc286f60e03 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
@@ -6,59 +6,14 @@
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.MsixPackageInner;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackagePatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in MsixPackagesClient. */
public interface MsixPackagesClient {
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
-
- /**
- * 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
-
/**
* Get a msixpackage.
*
@@ -76,52 +31,18 @@ Response getWithResponse(
String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
/**
- * 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 along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackageInner msixPackage);
-
- /**
- * 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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackageInner msixPackage);
-
- /**
- * 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);
/**
* Create or update a MSIX package.
@@ -145,46 +66,20 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * 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 the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName);
-
- /**
- * 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(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 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);
/**
* Remove an MSIX Package.
@@ -203,53 +98,7 @@ Response deleteWithResponse(
String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
/**
- * Update 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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackagePatch msixPackage);
-
- /**
- * Update 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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackagePatch msixPackage);
-
- /**
- * Update 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 schema for MSIX Package properties on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
-
- /**
- * Update an MSIX Package.
+ * 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.
@@ -257,10 +106,9 @@ Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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);
+ void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
* Update an MSIX Package.
@@ -284,17 +132,18 @@ Response updateWithResponse(
Context context);
/**
- * List MSIX packages in hostpool.
+ * Update 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 schema for MSIX Package properties.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MsixPackageInner update(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
* List MSIX packages in hostpool.
@@ -314,6 +163,9 @@ Response updateWithResponse(
*
* @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.
@@ -321,5 +173,11 @@ Response updateWithResponse(
* @return msixPackageList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
+ PagedIterable list(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
}
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 fbeb8668954a..55f6fa3f0751 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
@@ -6,23 +6,12 @@
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.util.Context;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ResourceProviderOperationInner;
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
- /**
- * List all of the available operations the Desktop Virtualization resource provider supports.
- *
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
-
/**
* List all of the available operations the Desktop Virtualization resource provider supports.
*
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
deleted file mode 100644
index 7fdef13cbec4..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
+++ /dev/null
@@ -1,532 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.PrivateEndpointConnectionWithSystemDataInner;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
-public interface PrivateEndpointConnectionsClient {
- /**
- * List private endpoint connections associated with 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 private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(
- String resourceGroupName, String hostPoolName);
-
- /**
- * List private endpoint connections associated with 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 private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName);
-
- /**
- * List private endpoint connections associated with 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 private endpoint connection associated with the specified storage account as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName, Context context);
-
- /**
- * Get a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByHostPoolWithResponseAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByHostPoolAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner getByHostPool(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByHostPoolWithResponse(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
-
- /**
- * Remove a connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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> deleteByHostPoolWithResponseAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 deleteByHostPoolAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @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 deleteByHostPoolWithResponse(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateByHostPoolWithResponseAsync(
- String resourceGroupName,
- String hostPoolName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByHostPoolAsync(
- String resourceGroupName,
- String hostPoolName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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 privateEndpointConnectionName The name of the private endpoint connection associated with the Azure
- * resource.
- * @param connection Object containing the updated connection.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
- String resourceGroupName,
- String hostPoolName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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 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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response updateByHostPoolWithResponse(
- String resourceGroupName,
- String hostPoolName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection,
- Context context);
-
- /**
- * List private endpoint connections.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(
- String resourceGroupName, String workspaceName);
-
- /**
- * List private endpoint connections.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
- String resourceGroupName, String workspaceName);
-
- /**
- * List private endpoint connections.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
- String resourceGroupName, String workspaceName, Context context);
-
- /**
- * Get a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByWorkspaceWithResponseAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByWorkspaceAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner getByWorkspace(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Get a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
-
- /**
- * Remove a connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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> deleteByWorkspaceWithResponseAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 deleteByWorkspaceAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
-
- /**
- * Remove a connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 deleteByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateByWorkspaceWithResponseAsync(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByWorkspaceAsync(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
-
- /**
- * Approve or reject a private endpoint connection.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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)
- Response updateByWorkspaceWithResponse(
- String resourceGroupName,
- String workspaceName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection,
- Context context);
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateLinkResourcesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateLinkResourcesClient.java
deleted file mode 100644
index 859e673b4238..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateLinkResourcesClient.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.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.util.Context;
-import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
-
-/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
-public interface PrivateLinkResourcesClient {
- /**
- * List the private link resources available for this 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 a list of private link resources as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName);
-
- /**
- * List the private link resources available for this 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 a list of private link resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
-
- /**
- * List the private link resources available for this 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 a list of private link resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName, Context context);
-
- /**
- * List the private link resources available for this workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of private link resources as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName);
-
- /**
- * List the private link resources available for this workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of private link resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
-
- /**
- * List the private link resources available for this workspace.
- *
- * @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.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of private link resources as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
- String resourceGroupName, String workspaceName, Context context);
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlanPooledSchedulesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlanPooledSchedulesClient.java
new file mode 100644
index 000000000000..9dd370fa9bb9
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlanPooledSchedulesClient.java
@@ -0,0 +1,188 @@
+// 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.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ScalingPlanPooledScheduleInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePatch;
+
+/** An instance of this class provides access to all the operations defined in ScalingPlanPooledSchedulesClient. */
+public interface ScalingPlanPooledSchedulesClient {
+ /**
+ * Get a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @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 ScalingPlanPooledSchedule along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName, Context context);
+
+ /**
+ * Get a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ScalingPlanPooledSchedule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanPooledScheduleInner get(
+ String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * Create or update a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule 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 ScalingPlanPooledSchedule definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledScheduleInner scalingPlanSchedule,
+ Context context);
+
+ /**
+ * Create or update a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule 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 ScalingPlanPooledSchedule definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanPooledScheduleInner create(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledScheduleInner scalingPlanSchedule);
+
+ /**
+ * Remove a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @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 scalingPlanName, String scalingPlanScheduleName, Context context);
+
+ /**
+ * Remove a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * Update a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @param scalingPlanSchedule Object containing ScalingPlanPooledSchedule 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 ScalingPlanPooledSchedule definition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledSchedulePatch scalingPlanSchedule,
+ Context context);
+
+ /**
+ * Update a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 ScalingPlanPooledSchedule definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScalingPlanPooledScheduleInner update(
+ String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * List ScalingPlanPooledSchedules.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return scalingPlanPooledScheduleList as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String scalingPlanName);
+
+ /**
+ * List ScalingPlanPooledSchedules.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @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 scalingPlanPooledScheduleList as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName,
+ String scalingPlanName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java
index d47902f9df8b..7cb33ef84deb 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlansClient.java
@@ -6,56 +6,14 @@
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.ScalingPlanInner;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ScalingPlansClient. */
public interface ScalingPlansClient {
- /**
- * Get a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 scaling plan along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String scalingPlanName);
-
- /**
- * Get a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 scaling plan on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String scalingPlanName);
-
- /**
- * Get a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 scaling plan.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName);
-
/**
* Get a scaling plan.
*
@@ -72,47 +30,17 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String scalingPlanName, Context context);
/**
- * Create or update a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @param scalingPlan Object containing scaling plan 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 scalingPlan along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createWithResponseAsync(
- String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
-
- /**
- * Create or update a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @param scalingPlan Object containing scaling plan 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 scalingPlan on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createAsync(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
-
- /**
- * Create or update a scaling plan.
+ * Get a scaling plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
- * @param scalingPlan Object containing scaling plan 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 scalingPlan.
+ * @return a scaling plan.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
+ ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName);
/**
* Create or update a scaling plan.
@@ -131,42 +59,18 @@ Response createWithResponse(
String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, Context context);
/**
- * Remove a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 scalingPlanName);
-
- /**
- * Remove a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 scalingPlanName);
-
- /**
- * Remove a scaling plan.
+ * Create or update a scaling plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlan Object containing scaling plan 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 scalingPlan.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String scalingPlanName);
+ ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
/**
* Remove a scaling plan.
@@ -183,19 +87,16 @@ Response createWithResponse(
Response deleteWithResponse(String resourceGroupName, String scalingPlanName, Context context);
/**
- * Update a scaling plan.
+ * Remove a scaling plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
- * @param scalingPlan Object containing scaling plan 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 scalingPlan along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan);
+ void delete(String resourceGroupName, String scalingPlanName);
/**
* Update a scaling plan.
@@ -203,26 +104,15 @@ Mono> updateWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
* @param scalingPlan Object containing scaling plan 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 scalingPlan on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan);
-
- /**
- * Update a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return scalingPlan on successful completion of {@link Mono}.
+ * @return scalingPlan along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String scalingPlanName);
+ Response updateWithResponse(
+ String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, Context context);
/**
* Update a scaling plan.
@@ -237,34 +127,6 @@ Mono> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
ScalingPlanInner update(String resourceGroupName, String scalingPlanName);
- /**
- * Update a scaling plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param scalingPlanName The name of the scaling plan.
- * @param scalingPlan Object containing scaling plan 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 scalingPlan along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, Context context);
-
- /**
- * List scaling plans.
- *
- * @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 scalingPlanList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
-
/**
* List scaling plans.
*
@@ -281,6 +143,9 @@ Response updateWithResponse(
* List scaling plans.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -288,17 +153,8 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List scaling plans 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 scalingPlanList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* List scaling plans in subscription.
@@ -313,6 +169,9 @@ Response updateWithResponse(
/**
* List scaling plans in subscription.
*
+ * @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.
@@ -320,20 +179,7 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * List scaling plan associated with 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 scalingPlanList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName);
+ PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* List scaling plan associated with hostpool.
@@ -353,6 +199,9 @@ Response updateWithResponse(
*
* @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.
@@ -360,5 +209,11 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(String resourceGroupName, String hostPoolName, Context context);
+ PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
index 13d7096863e3..06a04a331323 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
@@ -6,59 +6,14 @@
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.SessionHostInner;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostPatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in SessionHostsClient. */
public interface SessionHostsClient {
- /**
- * Get a session host.
- *
- * @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 sessionHostname The name of the session host within the specified 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 a session host along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname);
-
- /**
- * Get a session host.
- *
- * @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 sessionHostname The name of the session host within the specified 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 a session host on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(String resourceGroupName, String hostPoolName, String sessionHostname);
-
- /**
- * Get a session host.
- *
- * @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 sessionHostname The name of the session host within the specified 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 a session host.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SessionHostInner get(String resourceGroupName, String hostPoolName, String sessionHostname);
-
/**
* Get a session host.
*
@@ -76,52 +31,7 @@ Response getWithResponse(
String resourceGroupName, String hostPoolName, String sessionHostname, Context context);
/**
- * Remove a SessionHost.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param force Force flag to force sessionHost deletion even when userSession exists.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, String sessionHostname, Boolean force);
-
- /**
- * Remove a SessionHost.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param force Force flag to force sessionHost deletion even when userSession exists.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, String sessionHostname, Boolean force);
-
- /**
- * Remove a SessionHost.
- *
- * @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 sessionHostname The name of the session host within the specified 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 A {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String hostPoolName, String sessionHostname);
-
- /**
- * Remove a SessionHost.
+ * Get a session host.
*
* @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.
@@ -129,9 +39,10 @@ Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 session host.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName, String sessionHostname);
+ SessionHostInner get(String resourceGroupName, String hostPoolName, String sessionHostname);
/**
* Remove a SessionHost.
@@ -151,63 +62,7 @@ Response deleteWithResponse(
String resourceGroupName, String hostPoolName, String sessionHostname, Boolean force, Context context);
/**
- * Update a session host.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param force Force flag to update assign, unassign or reassign personal desktop.
- * @param sessionHost Object containing SessionHost 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 SessionHost definition along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName,
- String hostPoolName,
- String sessionHostname,
- Boolean force,
- SessionHostPatch sessionHost);
-
- /**
- * Update a session host.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param force Force flag to update assign, unassign or reassign personal desktop.
- * @param sessionHost Object containing SessionHost 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 SessionHost definition on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(
- String resourceGroupName,
- String hostPoolName,
- String sessionHostname,
- Boolean force,
- SessionHostPatch sessionHost);
-
- /**
- * Update a session host.
- *
- * @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 sessionHostname The name of the session host within the specified 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 represents a SessionHost definition on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName, String sessionHostname);
-
- /**
- * Update a session host.
+ * Remove a SessionHost.
*
* @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.
@@ -215,10 +70,9 @@ Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 SessionHost definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SessionHostInner update(String resourceGroupName, String hostPoolName, String sessionHostname);
+ void delete(String resourceGroupName, String hostPoolName, String sessionHostname);
/**
* Update a session host.
@@ -244,17 +98,18 @@ Response updateWithResponse(
Context context);
/**
- * List sessionHosts.
+ * Update a session host.
*
* @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 sessionHostname The name of the session host within the specified 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 sessionHostList as paginated response with {@link PagedFlux}.
+ * @return represents a SessionHost definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String hostPoolName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SessionHostInner update(String resourceGroupName, String hostPoolName, String sessionHostname);
/**
* List sessionHosts.
@@ -274,6 +129,9 @@ Response updateWithResponse(
*
* @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.
@@ -281,5 +139,11 @@ Response updateWithResponse(
* @return sessionHostList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
+ PagedIterable list(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
index ec4a8949e9c4..3ea0b7969ea5 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
@@ -6,26 +6,12 @@
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.util.Context;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.StartMenuItemInner;
/** An instance of this class provides access to all the operations defined in StartMenuItemsClient. */
public interface StartMenuItemsClient {
- /**
- * List start menu items in the given 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 startMenuItemList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String applicationGroupName);
-
/**
* List start menu items in the given application group.
*
@@ -44,6 +30,9 @@ public interface StartMenuItemsClient {
*
* @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.
@@ -51,5 +40,11 @@ public interface StartMenuItemsClient {
* @return startMenuItemList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
+ 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/UserSessionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
index 9011c3d00861..4c3fe545e573 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
@@ -6,43 +6,14 @@
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.UserSessionInner;
import com.azure.resourcemanager.desktopvirtualization.models.SendMessage;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in UserSessionsClient. */
public interface UserSessionsClient {
- /**
- * List userSessions.
- *
- * @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 filter OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName, String filter);
-
- /**
- * List userSessions.
- *
- * @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 userSessionList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(String resourceGroupName, String hostPoolName);
-
/**
* List userSessions.
*
@@ -62,6 +33,9 @@ public interface UserSessionsClient {
* @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 filter OData filter expression. Valid properties for filtering are userprincipalname and sessionstate.
+ * @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.
@@ -70,54 +44,13 @@ public interface UserSessionsClient {
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName, String filter, Context context);
-
- /**
- * Get a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 userSession along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getWithResponseAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Get a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 userSession on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Get a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 userSession.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- UserSessionInner get(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+ String resourceGroupName,
+ String hostPoolName,
+ String filter,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
/**
* Get a userSession.
@@ -137,56 +70,7 @@ Response getWithResponse(
String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId, Context context);
/**
- * Remove a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @param force Force flag to login off userSession.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, String sessionHostname, String userSessionId, Boolean force);
-
- /**
- * Remove a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @param force Force flag to login off userSession.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, String sessionHostname, String userSessionId, Boolean force);
-
- /**
- * Remove a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Remove a userSession.
+ * Get a userSession.
*
* @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.
@@ -195,9 +79,10 @@ Mono deleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 userSession.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+ UserSessionInner get(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
/**
* Remove a userSession.
@@ -223,18 +108,18 @@ Response deleteWithResponse(
Context context);
/**
- * List userSessions.
+ * Remove a userSession.
*
* @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 sessionHostname The name of the session host within the specified host pool.
+ * @param userSessionId The name of the user session within the specified session host.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync(String resourceGroupName, String hostPoolName, String sessionHostname);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
/**
* List userSessions.
@@ -256,6 +141,9 @@ Response deleteWithResponse(
* @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 sessionHostname The name of the session host within the specified 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -264,53 +152,13 @@ Response deleteWithResponse(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
- String resourceGroupName, String hostPoolName, String sessionHostname, Context context);
-
- /**
- * Disconnect a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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> disconnectWithResponseAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Disconnect a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 disconnectAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Disconnect a userSession.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.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 disconnect(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+ String resourceGroupName,
+ String hostPoolName,
+ String sessionHostname,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
/**
* Disconnect a userSession.
@@ -330,25 +178,18 @@ Response disconnectWithResponse(
String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId, Context context);
/**
- * Send a message to a user.
+ * Disconnect a userSession.
*
* @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 sessionHostname The name of the session host within the specified host pool.
* @param userSessionId The name of the user session within the specified session host.
- * @param sendMessage Object containing message includes title and message body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> sendMessageWithResponseAsync(
- String resourceGroupName,
- String hostPoolName,
- String sessionHostname,
- String userSessionId,
- SendMessage sendMessage);
+ void disconnect(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
/**
* Send a message to a user.
@@ -358,34 +199,20 @@ Mono> sendMessageWithResponseAsync(
* @param sessionHostname The name of the session host within the specified host pool.
* @param userSessionId The name of the user session within the specified session host.
* @param sendMessage Object containing message includes title and message body.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono sendMessageAsync(
+ Response sendMessageWithResponse(
String resourceGroupName,
String hostPoolName,
String sessionHostname,
String userSessionId,
- SendMessage sendMessage);
-
- /**
- * Send a message to a user.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 sendMessageAsync(
- String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
+ SendMessage sendMessage,
+ Context context);
/**
* Send a message to a user.
@@ -400,27 +227,4 @@ Mono sendMessageAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void sendMessage(String resourceGroupName, String hostPoolName, String sessionHostname, String userSessionId);
-
- /**
- * Send a message to a user.
- *
- * @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 sessionHostname The name of the session host within the specified host pool.
- * @param userSessionId The name of the user session within the specified session host.
- * @param sendMessage Object containing message includes title and message body.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response sendMessageWithResponse(
- String resourceGroupName,
- String hostPoolName,
- String sessionHostname,
- String userSessionId,
- SendMessage sendMessage,
- Context context);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
index 0ef2fecc1512..cf03780dc271 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
@@ -6,55 +6,14 @@
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.WorkspaceInner;
import com.azure.resourcemanager.desktopvirtualization.models.WorkspacePatch;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in WorkspacesClient. */
public interface WorkspacesClient {
- /**
- * Get a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 workspace along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String workspaceName);
-
- /**
- * Get a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 workspace on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByResourceGroupAsync(String resourceGroupName, String workspaceName);
-
- /**
- * Get a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 workspace.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
-
/**
* Get a workspace.
*
@@ -71,47 +30,17 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String workspaceName, Context context);
/**
- * Create or update a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param workspace Object containing Workspace 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 Workspace definition along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono> createOrUpdateWithResponseAsync(
- String resourceGroupName, String workspaceName, WorkspaceInner workspace);
-
- /**
- * Create or update a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param workspace Object containing Workspace 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 Workspace definition on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, WorkspaceInner workspace);
-
- /**
- * Create or update a workspace.
+ * Get a workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param workspace Object containing Workspace 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 Workspace definition.
+ * @return a workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner workspace);
+ WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
/**
* Create or update a workspace.
@@ -130,42 +59,18 @@ Response createOrUpdateWithResponse(
String resourceGroupName, String workspaceName, WorkspaceInner workspace, Context context);
/**
- * Remove a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 workspaceName);
-
- /**
- * Remove a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 workspaceName);
-
- /**
- * Remove a workspace.
+ * Create or update a workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
+ * @param workspace Object containing Workspace 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 Workspace definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName);
+ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner workspace);
/**
* Remove a workspace.
@@ -182,19 +87,16 @@ Response createOrUpdateWithResponse(
Response deleteWithResponse(String resourceGroupName, String workspaceName, Context context);
/**
- * Update a workspace.
+ * Remove a workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
- * @param workspace Object containing Workspace 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 Workspace definition along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateWithResponseAsync(
- String resourceGroupName, String workspaceName, WorkspacePatch workspace);
+ void delete(String resourceGroupName, String workspaceName);
/**
* Update a workspace.
@@ -202,26 +104,15 @@ Mono> updateWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param workspace Object containing Workspace 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 Workspace definition on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String workspaceName, WorkspacePatch workspace);
-
- /**
- * Update a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.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 Workspace definition on successful completion of {@link Mono}.
+ * @return represents a Workspace definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String workspaceName);
+ Response updateWithResponse(
+ String resourceGroupName, String workspaceName, WorkspacePatch workspace, Context context);
/**
* Update a workspace.
@@ -236,34 +127,6 @@ Mono> updateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
WorkspaceInner update(String resourceGroupName, String workspaceName);
- /**
- * Update a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
- * @param workspace Object containing Workspace 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 Workspace definition along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String workspaceName, WorkspacePatch workspace, Context context);
-
- /**
- * List workspaces.
- *
- * @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 workspaceList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName);
-
/**
* List workspaces.
*
@@ -280,6 +143,9 @@ Response updateWithResponse(
* List workspaces.
*
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -287,17 +153,8 @@ Response updateWithResponse(
* @return workspaceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List workspaces 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 workspaceList as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listAsync();
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* List workspaces in subscription.
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
index def9927163ba..da8dba500011 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
@@ -8,7 +8,6 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
@@ -31,6 +30,10 @@ public final class ApplicationGroupInner extends ResourceModelWithAllowedPropert
@JsonProperty(value = "properties", required = true)
private ApplicationGroupProperties innerProperties = new ApplicationGroupProperties();
+ /** Creates an instance of ApplicationGroupInner class. */
+ public ApplicationGroupInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -208,29 +211,6 @@ public ApplicationGroupInner withApplicationGroupType(ApplicationGroupType appli
return this;
}
- /**
- * Get the migrationRequest property: The registration info of HostPool.
- *
- * @return the migrationRequest value.
- */
- public MigrationRequestProperties migrationRequest() {
- return this.innerProperties() == null ? null : this.innerProperties().migrationRequest();
- }
-
- /**
- * Set the migrationRequest property: The registration info of HostPool.
- *
- * @param migrationRequest the migrationRequest value to set.
- * @return the ApplicationGroupInner object itself.
- */
- public ApplicationGroupInner withMigrationRequest(MigrationRequestProperties migrationRequest) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ApplicationGroupProperties();
- }
- this.innerProperties().withMigrationRequest(migrationRequest);
- return this;
- }
-
/**
* Get the cloudPcResource property: Is cloud pc resource.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
index 9b8fb6659f2a..e3d19f6baf5f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
@@ -22,6 +22,10 @@ public final class ApplicationGroupPatchProperties {
@JsonProperty(value = "friendlyName")
private String friendlyName;
+ /** Creates an instance of ApplicationGroupPatchProperties class. */
+ public ApplicationGroupPatchProperties() {
+ }
+
/**
* Get the description property: Description of ApplicationGroup.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
index d7d32cab484d..4973473feaaa 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for ApplicationGroup properties. */
@@ -49,18 +48,16 @@ public final class ApplicationGroupProperties {
@JsonProperty(value = "applicationGroupType", required = true)
private ApplicationGroupType applicationGroupType;
- /*
- * The registration info of HostPool.
- */
- @JsonProperty(value = "migrationRequest")
- private MigrationRequestProperties migrationRequest;
-
/*
* Is cloud pc resource.
*/
@JsonProperty(value = "cloudPcResource", access = JsonProperty.Access.WRITE_ONLY)
private Boolean cloudPcResource;
+ /** Creates an instance of ApplicationGroupProperties class. */
+ public ApplicationGroupProperties() {
+ }
+
/**
* Get the objectId property: ObjectId of ApplicationGroup. (internal use).
*
@@ -159,26 +156,6 @@ public ApplicationGroupProperties withApplicationGroupType(ApplicationGroupType
return this;
}
- /**
- * Get the migrationRequest property: The registration info of HostPool.
- *
- * @return the migrationRequest value.
- */
- public MigrationRequestProperties migrationRequest() {
- return this.migrationRequest;
- }
-
- /**
- * Set the migrationRequest property: The registration info of HostPool.
- *
- * @param migrationRequest the migrationRequest value to set.
- * @return the ApplicationGroupProperties object itself.
- */
- public ApplicationGroupProperties withMigrationRequest(MigrationRequestProperties migrationRequest) {
- this.migrationRequest = migrationRequest;
- return this;
- }
-
/**
* Get the cloudPcResource property: Is cloud pc resource.
*
@@ -206,9 +183,6 @@ public void validate() {
new IllegalArgumentException(
"Missing required property applicationGroupType in model ApplicationGroupProperties"));
}
- if (migrationRequest() != null) {
- migrationRequest().validate();
- }
}
private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupProperties.class);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
index 51da15bc850e..95a3eee8def3 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
@@ -27,6 +27,10 @@ public final class ApplicationInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private ApplicationProperties innerProperties = new ApplicationProperties();
+ /** Creates an instance of ApplicationInner class. */
+ public ApplicationInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
index 96a612ca0d1d..48003f018adb 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
@@ -31,9 +31,8 @@ public final class ApplicationPatchProperties {
private String filePath;
/*
- * Specifies whether this published application can be launched with
- * command line arguments provided by the client, command line arguments
- * specified at publish time, or no command line arguments at all.
+ * Specifies whether this published application can be launched with command line arguments provided by the client,
+ * command line arguments specified at publish time, or no command line arguments at all.
*/
@JsonProperty(value = "commandLineSetting")
private CommandLineSetting commandLineSetting;
@@ -45,8 +44,7 @@ public final class ApplicationPatchProperties {
private String commandLineArguments;
/*
- * Specifies whether to show the RemoteApp program in the RD Web Access
- * server.
+ * Specifies whether to show the RemoteApp program in the RD Web Access server.
*/
@JsonProperty(value = "showInPortal")
private Boolean showInPortal;
@@ -81,6 +79,10 @@ public final class ApplicationPatchProperties {
@JsonProperty(value = "applicationType")
private RemoteApplicationType applicationType;
+ /** Creates an instance of ApplicationPatchProperties class. */
+ public ApplicationPatchProperties() {
+ }
+
/**
* Get the description property: Description of Application.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
index 410022ce3513..cb168d91b007 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
@@ -57,9 +57,8 @@ public final class ApplicationProperties {
private RemoteApplicationType applicationType;
/*
- * Specifies whether this published application can be launched with
- * command line arguments provided by the client, command line arguments
- * specified at publish time, or no command line arguments at all.
+ * Specifies whether this published application can be launched with command line arguments provided by the client,
+ * command line arguments specified at publish time, or no command line arguments at all.
*/
@JsonProperty(value = "commandLineSetting", required = true)
private CommandLineSetting commandLineSetting;
@@ -71,8 +70,7 @@ public final class ApplicationProperties {
private String commandLineArguments;
/*
- * Specifies whether to show the RemoteApp program in the RD Web Access
- * server.
+ * Specifies whether to show the RemoteApp program in the RD Web Access server.
*/
@JsonProperty(value = "showInPortal")
private Boolean showInPortal;
@@ -101,6 +99,10 @@ public final class ApplicationProperties {
@JsonProperty(value = "iconContent", access = JsonProperty.Access.WRITE_ONLY)
private byte[] iconContent;
+ /** Creates an instance of ApplicationProperties class. */
+ public ApplicationProperties() {
+ }
+
/**
* Get the objectId property: ObjectId of Application. (internal use).
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
index f9713b4ca499..664d9527b2b6 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
@@ -24,6 +24,10 @@ public final class DesktopInner extends ProxyResource {
@JsonProperty(value = "properties")
private DesktopProperties innerProperties;
+ /** Creates an instance of DesktopInner class. */
+ public DesktopInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
index 121ced400e71..5b2861930ca8 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
@@ -22,6 +22,10 @@ public final class DesktopPatchProperties {
@JsonProperty(value = "friendlyName")
private String friendlyName;
+ /** Creates an instance of DesktopPatchProperties class. */
+ public DesktopPatchProperties() {
+ }
+
/**
* Get the description property: Description of Desktop.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
index 6d9dce54e23c..de310b145b67 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
@@ -41,6 +41,10 @@ public final class DesktopProperties {
@JsonProperty(value = "iconContent", access = JsonProperty.Access.WRITE_ONLY)
private byte[] iconContent;
+ /** Creates an instance of DesktopProperties class. */
+ public DesktopProperties() {
+ }
+
/**
* Get the objectId property: ObjectId of Desktop. (internal use).
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
index 599dfbe2604f..b58ac6261582 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
@@ -21,6 +21,10 @@ public final class ExpandMsixImageInner extends ProxyResource {
@JsonProperty(value = "properties")
private ExpandMsixImageProperties innerProperties;
+ /** Creates an instance of ExpandMsixImageInner class. */
+ public ExpandMsixImageInner() {
+ }
+
/**
* Get the innerProperties property: Detailed properties for ExpandMsixImage.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
index 0c724762e5f6..cb3cd7bf906e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
@@ -33,8 +33,7 @@ public final class ExpandMsixImageProperties {
private String packageName;
/*
- * Package Family Name from appxmanifest.xml. Contains Package Name and
- * Publisher name.
+ * Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
*/
@JsonProperty(value = "packageFamilyName")
private String packageFamilyName;
@@ -93,6 +92,10 @@ public final class ExpandMsixImageProperties {
@JsonProperty(value = "packageApplications")
private List packageApplications;
+ /** Creates an instance of ExpandMsixImageProperties class. */
+ public ExpandMsixImageProperties() {
+ }
+
/**
* Get the packageAlias property: Alias of MSIX Package.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
index 0cc1d2125cbd..07a1c567f597 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
@@ -7,12 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
@@ -37,6 +36,10 @@ public final class HostPoolInner extends ResourceModelWithAllowedPropertySet {
@JsonProperty(value = "properties", required = true)
private HostPoolPropertiesInner innerProperties = new HostPoolPropertiesInner();
+ /** Creates an instance of HostPoolInner class. */
+ public HostPoolInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -518,29 +521,6 @@ public HostPoolInner withStartVMOnConnect(Boolean startVMOnConnect) {
return this;
}
- /**
- * Get the migrationRequest property: The registration info of HostPool.
- *
- * @return the migrationRequest value.
- */
- public MigrationRequestProperties migrationRequest() {
- return this.innerProperties() == null ? null : this.innerProperties().migrationRequest();
- }
-
- /**
- * Set the migrationRequest property: The registration info of HostPool.
- *
- * @param migrationRequest the migrationRequest value to set.
- * @return the HostPoolInner object itself.
- */
- public HostPoolInner withMigrationRequest(MigrationRequestProperties migrationRequest) {
- if (this.innerProperties() == null) {
- this.innerProperties = new HostPoolPropertiesInner();
- }
- this.innerProperties().withMigrationRequest(migrationRequest);
- return this;
- }
-
/**
* Get the cloudPcResource property: Is cloud pc resource.
*
@@ -551,27 +531,27 @@ public Boolean cloudPcResource() {
}
/**
- * Get the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
- * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @return the publicNetworkAccess value.
+ * @return the agentUpdate value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
- return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ public AgentUpdateProperties agentUpdate() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentUpdate();
}
/**
- * Set the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
- * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @param agentUpdate the agentUpdate value to set.
* @return the HostPoolInner object itself.
*/
- public HostPoolInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public HostPoolInner withAgentUpdate(AgentUpdateProperties agentUpdate) {
if (this.innerProperties() == null) {
this.innerProperties = new HostPoolPropertiesInner();
}
- this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ this.innerProperties().withAgentUpdate(agentUpdate);
return this;
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
index 48cd2d344110..04851ae8d755 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
@@ -5,10 +5,10 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationInfoPatch;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -83,15 +83,13 @@ public final class HostPoolPatchProperties {
private String ssoadfsAuthority;
/*
- * ClientId for the registered Relying Party used to issue WVD SSO
- * certificates.
+ * ClientId for the registered Relying Party used to issue WVD SSO certificates.
*/
@JsonProperty(value = "ssoClientId")
private String ssoClientId;
/*
- * Path to Azure KeyVault storing the secret used for communication to
- * ADFS.
+ * Path to Azure KeyVault storing the secret used for communication to ADFS.
*/
@JsonProperty(value = "ssoClientSecretKeyVaultPath")
private String ssoClientSecretKeyVaultPath;
@@ -103,8 +101,7 @@ public final class HostPoolPatchProperties {
private SsoSecretType ssoSecretType;
/*
- * The type of preferred application group type, default to Desktop
- * Application Group
+ * The type of preferred application group type, default to Desktop Application Group
*/
@JsonProperty(value = "preferredAppGroupType")
private PreferredAppGroupType preferredAppGroupType;
@@ -116,10 +113,14 @@ public final class HostPoolPatchProperties {
private Boolean startVMOnConnect;
/*
- * Enabled to allow this resource to be access from the public network
+ * The session host configuration for updating agent, monitoring agent, and stack component.
*/
- @JsonProperty(value = "publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ @JsonProperty(value = "agentUpdate")
+ private AgentUpdatePatchProperties agentUpdate;
+
+ /** Creates an instance of HostPoolPatchProperties class. */
+ public HostPoolPatchProperties() {
+ }
/**
* Get the friendlyName property: Friendly name of HostPool.
@@ -447,22 +448,24 @@ public HostPoolPatchProperties withStartVMOnConnect(Boolean startVMOnConnect) {
}
/**
- * Get the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @return the publicNetworkAccess value.
+ * @return the agentUpdate value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
- return this.publicNetworkAccess;
+ public AgentUpdatePatchProperties agentUpdate() {
+ return this.agentUpdate;
}
/**
- * Set the publicNetworkAccess property: Enabled to allow this resource to be access from the public network.
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @param agentUpdate the agentUpdate value to set.
* @return the HostPoolPatchProperties object itself.
*/
- public HostPoolPatchProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
+ public HostPoolPatchProperties withAgentUpdate(AgentUpdatePatchProperties agentUpdate) {
+ this.agentUpdate = agentUpdate;
return this;
}
@@ -475,5 +478,8 @@ public void validate() {
if (registrationInfo() != null) {
registrationInfo().validate();
}
+ if (agentUpdate() != null) {
+ agentUpdate().validate();
+ }
}
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
index 761ad2ad2bed..b44d59b1c299 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
@@ -6,12 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
-import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -104,15 +103,13 @@ public final class HostPoolPropertiesInner {
private String ssoadfsAuthority;
/*
- * ClientId for the registered Relying Party used to issue WVD SSO
- * certificates.
+ * ClientId for the registered Relying Party used to issue WVD SSO certificates.
*/
@JsonProperty(value = "ssoClientId")
private String ssoClientId;
/*
- * Path to Azure KeyVault storing the secret used for communication to
- * ADFS.
+ * Path to Azure KeyVault storing the secret used for communication to ADFS.
*/
@JsonProperty(value = "ssoClientSecretKeyVaultPath")
private String ssoClientSecretKeyVaultPath;
@@ -124,8 +121,7 @@ public final class HostPoolPropertiesInner {
private SsoSecretType ssoSecretType;
/*
- * The type of preferred application group type, default to Desktop
- * Application Group
+ * The type of preferred application group type, default to Desktop Application Group
*/
@JsonProperty(value = "preferredAppGroupType", required = true)
private PreferredAppGroupType preferredAppGroupType;
@@ -136,12 +132,6 @@ public final class HostPoolPropertiesInner {
@JsonProperty(value = "startVMOnConnect")
private Boolean startVMOnConnect;
- /*
- * The registration info of HostPool.
- */
- @JsonProperty(value = "migrationRequest")
- private MigrationRequestProperties migrationRequest;
-
/*
* Is cloud pc resource.
*/
@@ -149,12 +139,14 @@ public final class HostPoolPropertiesInner {
private Boolean cloudPcResource;
/*
- * Enabled allows this resource to be accessed from both public and private
- * networks, Disabled allows this resource to only be accessed via private
- * endpoints
+ * The session host configuration for updating agent, monitoring agent, and stack component.
*/
- @JsonProperty(value = "publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ @JsonProperty(value = "agentUpdate")
+ private AgentUpdateProperties agentUpdate;
+
+ /** Creates an instance of HostPoolPropertiesInner class. */
+ public HostPoolPropertiesInner() {
+ }
/**
* Get the objectId property: ObjectId of HostPool. (internal use).
@@ -519,26 +511,6 @@ public HostPoolPropertiesInner withStartVMOnConnect(Boolean startVMOnConnect) {
return this;
}
- /**
- * Get the migrationRequest property: The registration info of HostPool.
- *
- * @return the migrationRequest value.
- */
- public MigrationRequestProperties migrationRequest() {
- return this.migrationRequest;
- }
-
- /**
- * Set the migrationRequest property: The registration info of HostPool.
- *
- * @param migrationRequest the migrationRequest value to set.
- * @return the HostPoolPropertiesInner object itself.
- */
- public HostPoolPropertiesInner withMigrationRequest(MigrationRequestProperties migrationRequest) {
- this.migrationRequest = migrationRequest;
- return this;
- }
-
/**
* Get the cloudPcResource property: Is cloud pc resource.
*
@@ -549,24 +521,24 @@ public Boolean cloudPcResource() {
}
/**
- * Get the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
- * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @return the publicNetworkAccess value.
+ * @return the agentUpdate value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
- return this.publicNetworkAccess;
+ public AgentUpdateProperties agentUpdate() {
+ return this.agentUpdate;
}
/**
- * Set the publicNetworkAccess property: Enabled allows this resource to be accessed from both public and private
- * networks, Disabled allows this resource to only be accessed via private endpoints.
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
*
- * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @param agentUpdate the agentUpdate value to set.
* @return the HostPoolPropertiesInner object itself.
*/
- public HostPoolPropertiesInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
+ public HostPoolPropertiesInner withAgentUpdate(AgentUpdateProperties agentUpdate) {
+ this.agentUpdate = agentUpdate;
return this;
}
@@ -597,8 +569,8 @@ public void validate() {
new IllegalArgumentException(
"Missing required property preferredAppGroupType in model HostPoolPropertiesInner"));
}
- if (migrationRequest() != null) {
- migrationRequest().validate();
+ if (agentUpdate() != null) {
+ agentUpdate().validate();
}
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
index 9a21fb0061b1..8c5bc71f9980 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
@@ -29,6 +29,10 @@ public final class MsixPackageInner extends ProxyResource {
@JsonProperty(value = "properties", required = true)
private MsixPackageProperties innerProperties = new MsixPackageProperties();
+ /** Creates an instance of MsixPackageInner class. */
+ public MsixPackageInner() {
+ }
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
index ee54e37107d2..accc572ba392 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
@@ -28,6 +28,10 @@ public final class MsixPackagePatchProperties {
@JsonProperty(value = "displayName")
private String displayName;
+ /** Creates an instance of MsixPackagePatchProperties class. */
+ public MsixPackagePatchProperties() {
+ }
+
/**
* Get the isActive property: Set a version of the package to be active across hostpool.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
index ded353ee097c..1ada5f495a17 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
@@ -27,8 +27,7 @@ public final class MsixPackageProperties {
private String packageName;
/*
- * Package Family Name from appxmanifest.xml. Contains Package Name and
- * Publisher name.
+ * Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
*/
@JsonProperty(value = "packageFamilyName")
private String packageFamilyName;
@@ -81,6 +80,10 @@ public final class MsixPackageProperties {
@JsonProperty(value = "packageApplications")
private List packageApplications;
+ /** Creates an instance of MsixPackageProperties class. */
+ public MsixPackageProperties() {
+ }
+
/**
* Get the imagePath property: VHD/CIM image path on Network Share.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java
deleted file mode 100644
index cf5e83fe67a8..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpoint;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Properties of the PrivateEndpointConnectProperties. */
-@Fluent
-public final class PrivateEndpointConnectionProperties {
- /*
- * The resource of private end point.
- */
- @JsonProperty(value = "privateEndpoint")
- private PrivateEndpoint privateEndpoint;
-
- /*
- * A collection of information about the state of the connection between
- * service consumer and provider.
- */
- @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
-
- /*
- * The provisioning state of the private endpoint connection resource.
- */
- @JsonProperty(value = "provisioningState")
- private PrivateEndpointConnectionProvisioningState provisioningState;
-
- /**
- * Get the privateEndpoint property: The resource of private end point.
- *
- * @return the privateEndpoint value.
- */
- public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
- }
-
- /**
- * Set the privateEndpoint property: The resource of private end point.
- *
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
- }
-
- /**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value.
- */
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
- }
-
- /**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @return the provisioningState value.
- */
- public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Set the provisioningState property: The provisioning state of the private endpoint connection resource.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
- */
- public PrivateEndpointConnectionProperties withProvisioningState(
- PrivateEndpointConnectionProvisioningState provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() == null) {
- throw LOGGER
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model"
- + " PrivateEndpointConnectionProperties"));
- } else {
- privateLinkServiceConnectionState().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java
deleted file mode 100644
index f9e336cc665e..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpoint;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionProvisioningState;
-import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** The Private Endpoint Connection resource. */
-@Fluent
-public final class PrivateEndpointConnectionWithSystemDataInner extends PrivateEndpointConnection {
- /*
- * Metadata pertaining to creation and last modification of the resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /** {@inheritDoc} */
- @Override
- public PrivateEndpointConnectionWithSystemDataInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- super.withPrivateEndpoint(privateEndpoint);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public PrivateEndpointConnectionWithSystemDataInner withPrivateLinkServiceConnectionState(
- PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- super.withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public PrivateEndpointConnectionWithSystemDataInner withProvisioningState(
- PrivateEndpointConnectionProvisioningState provisioningState) {
- super.withProvisioningState(provisioningState);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- super.validate();
- }
-}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java
deleted file mode 100644
index 439b90260a48..000000000000
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.desktopvirtualization.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** A private link resource. */
-@Fluent
-public final class PrivateLinkResourceInner extends ProxyResource {
- /*
- * Resource properties.
- */
- @JsonProperty(value = "properties")
- private PrivateLinkResourceProperties innerProperties;
-
- /**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private PrivateLinkResourceProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the groupId property: The private link resource group id.
- *
- * @return the groupId value.
- */
- public String groupId() {
- return this.innerProperties() == null ? null : this.innerProperties().groupId();
- }
-
- /**
- * Get the requiredMembers property: The private link resource required member names.
- *
- * @return the requiredMembers value.
- */
- public List