diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
index f49ea63707c5..1ee7c533f18f 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-12-13)
+
+- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-preview-2022-10. 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..8c2635f2d105 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-preview-2022-10. 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})
@@ -41,19 +41,19 @@ Various documentation is available to help you get started
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
-[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation.
### Authentication
-By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
-In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
-With above configuration, `azure` client can be authenticated by following code:
+With above configuration, `azure` client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on
## Contributing
-For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+For details on contributing to this repository, see the [contributing guide][cg].
-1. Fork it
-1. Create your feature branch (`git checkout -b my-new-feature`)
-1. Commit your changes (`git commit -am 'Add some feature'`)
-1. Push to the branch (`git push origin my-new-feature`)
-1. Create new Pull Request
+This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit .
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
+
+This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments.
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
@@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
+[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
+[coc]: https://opensource.microsoft.com/codeofconduct/
+[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
index 8dfa5e819280..dfd3a9be9df2 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/SAMPLE.md
@@ -66,6 +66,14 @@
- [ListByHostPool](#privatelinkresources_listbyhostpool)
- [ListByWorkspace](#privatelinkresources_listbyworkspace)
+## ScalingPlanPooledSchedules
+
+- [Create](#scalingplanpooledschedules_create)
+- [Delete](#scalingplanpooledschedules_delete)
+- [Get](#scalingplanpooledschedules_get)
+- [List](#scalingplanpooledschedules_list)
+- [Update](#scalingplanpooledschedules_update)
+
## ScalingPlans
- [Create](#scalingplans_create)
@@ -108,15 +116,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/preview/2022-10-14-preview/examples/ApplicationGroup_Create.json
*/
/**
* Sample code: ApplicationGroup_Create.
@@ -136,11 +142,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 +166,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/preview/2022-10-14-preview/examples/ApplicationGroup_Delete.json
*/
/**
* Sample code: ApplicationGroup_Delete.
@@ -174,7 +175,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 +190,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/preview/2022-10-14-preview/examples/ApplicationGroup_Get.json
*/
/**
* Sample code: ApplicationGroup_Get.
@@ -209,7 +212,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/preview/2022-10-14-preview/examples/ApplicationGroup_ListBySubscription.json
*/
/**
* Sample code: ApplicationGroup_List.
@@ -231,7 +234,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/preview/2022-10-14-preview/examples/ApplicationGroup_ListByResourceGroup.json
*/
/**
* Sample code: ApplicationGroup_ListByResourceGroup.
@@ -242,7 +245,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 +262,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/preview/2022-10-14-preview/examples/ApplicationGroup_Update.json
*/
/**
* Sample code: ApplicationGroups_Update.
@@ -301,7 +305,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/preview/2022-10-14-preview/examples/Application_Create.json
*/
/**
* Sample code: Application_Create.
@@ -335,7 +339,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/preview/2022-10-14-preview/examples/Application_Delete.json
*/
/**
* Sample code: Application_Delete.
@@ -357,7 +361,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/preview/2022-10-14-preview/examples/Application_Get.json
*/
/**
* Sample code: Application_Get.
@@ -379,7 +383,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/preview/2022-10-14-preview/examples/Application_List.json
*/
/**
* Sample code: Applications_List.
@@ -388,7 +392,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 +408,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/preview/2022-10-14-preview/examples/Application_Update.json
*/
/**
* Sample code: Application_Update.
@@ -442,7 +446,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/preview/2022-10-14-preview/examples/Desktop_Get.json
*/
/**
* Sample code: Desktop_Get.
@@ -464,7 +468,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/preview/2022-10-14-preview/examples/Desktop_List.json
*/
/**
* Sample code: Desktop_List.
@@ -473,7 +477,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 +491,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/preview/2022-10-14-preview/examples/Desktop_Update.json
*/
/**
* Sample code: Desktop_Update.
@@ -512,23 +516,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/preview/2022-10-14-preview/examples/HostPool_Create.json
*/
/**
* Sample code: HostPool_Create.
@@ -560,12 +566,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 +600,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/preview/2022-10-14-preview/examples/HostPool_Delete.json
*/
/**
* Sample code: HostPool_Delete.
@@ -612,7 +622,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/preview/2022-10-14-preview/examples/HostPool_Get.json
*/
/**
* Sample code: HostPool_Get.
@@ -634,7 +644,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/preview/2022-10-14-preview/examples/HostPool_List.json
*/
/**
* Sample code: HostPool_List.
@@ -643,7 +653,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 +666,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/preview/2022-10-14-preview/examples/HostPool_ListByResourceGroup.json
*/
/**
* Sample code: HostPool_ListByResourceGroup.
@@ -665,7 +675,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 +688,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/preview/2022-10-14-preview/examples/HostPools_RetrieveRegistrationToken_Post.json
*/
/**
* Sample code: HostPools_RetrieveRegistrationToken_Post.
@@ -696,21 +706,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/preview/2022-10-14-preview/examples/HostPool_Update.json
*/
/**
* Sample code: HostPool_Update.
@@ -739,7 +753,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 +788,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/preview/2022-10-14-preview/examples/MsixImage_Expand_Post.json
*/
/**
* Sample code: MsixImage_Expand.
@@ -792,7 +815,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/preview/2022-10-14-preview/examples/MsixPackage_Create.json
*/
/**
* Sample code: MSIXPackage_Create.
@@ -845,7 +868,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/preview/2022-10-14-preview/examples/MsixPackage_Delete.json
*/
/**
* Sample code: MSIXPackage_Delete.
@@ -867,7 +890,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/preview/2022-10-14-preview/examples/MsixPackage_Get.json
*/
/**
* Sample code: MSIXPackage_Get.
@@ -889,7 +912,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/preview/2022-10-14-preview/examples/MsixPackage_List.json
*/
/**
* Sample code: MSIXPackage_List.
@@ -898,7 +921,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 +935,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/preview/2022-10-14-preview/examples/MsixPackage_Update.json
*/
/**
* Sample code: MSIXPackage_Update.
@@ -939,7 +962,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/preview/2022-10-14-preview/examples/OperationDescription_List.json
*/
/**
* Sample code: OperationDescription_List.
@@ -961,7 +984,7 @@ 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
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_DeleteByHostPool.
@@ -986,7 +1009,7 @@ 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
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_DeleteByWorkspace.
@@ -1011,7 +1034,7 @@ 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
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_GetByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_GetByHostPool.
@@ -1036,7 +1059,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnections GetByWorkspace. */
public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
/*
- * 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/preview/2022-10-14-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_GetByWorkspace.
@@ -1061,7 +1084,7 @@ 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
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_ListByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_ListByHostPool.
@@ -1070,7 +1093,9 @@ public final class PrivateEndpointConnectionsListByHostPoolSamples {
*/
public static void privateEndpointConnectionListByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateEndpointConnections().listByHostPool("resourceGroup1", "hostPool1", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .listByHostPool("resourceGroup1", "hostPool1", null, null, null, Context.NONE);
}
}
```
@@ -1083,7 +1108,7 @@ 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
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_ListByWorkspace.
@@ -1108,7 +1133,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkService
/** Samples for PrivateEndpointConnections UpdateByHostPool. */
public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
/*
- * 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/preview/2022-10-14-preview/examples/PrivateEndpointConnection_UpdateByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_UpdateByHostPool.
@@ -1145,7 +1170,7 @@ import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkService
/** Samples for PrivateEndpointConnections UpdateByWorkspace. */
public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
/*
- * 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/preview/2022-10-14-preview/examples/PrivateEndpointConnection_UpdateByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_UpdateByWorkspace.
@@ -1179,7 +1204,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateLinkResources ListByHostPool. */
public final class PrivateLinkResourcesListByHostPoolSamples {
/*
- * 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/preview/2022-10-14-preview/examples/PrivateLinkResources_ListByHostPool.json
*/
/**
* Sample code: PrivateLinkResources_ListByHostPool.
@@ -1188,7 +1213,7 @@ public final class PrivateLinkResourcesListByHostPoolSamples {
*/
public static void privateLinkResourcesListByHostPool(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateLinkResources().listByHostPool("resourceGroup1", "hostPool1", Context.NONE);
+ manager.privateLinkResources().listByHostPool("resourceGroup1", "hostPool1", null, null, null, Context.NONE);
}
}
```
@@ -1201,7 +1226,7 @@ import com.azure.core.util.Context;
/** Samples for PrivateLinkResources ListByWorkspace. */
public final class PrivateLinkResourcesListByWorkspaceSamples {
/*
- * 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/preview/2022-10-14-preview/examples/PrivateLinkResources_ListByWorkspace.json
*/
/**
* Sample code: PrivateLinkResources_ListByWorkspace.
@@ -1210,7 +1235,169 @@ public final class PrivateLinkResourcesListByWorkspaceSamples {
*/
public static void privateLinkResourcesListByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateLinkResources().listByWorkspace("resourceGroup1", "workspace1", Context.NONE);
+ manager.privateLinkResources().listByWorkspace("resourceGroup1", "workspace1", null, null, null, Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_Create
+
+```java
+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 ScalingPlanPooledSchedules Create. */
+public final class ScalingPlanPooledSchedulesCreateSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Create.json
+ */
+ /**
+ * Sample code: ScalingPlanPooledSchedules_Create.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void scalingPlanPooledSchedulesCreate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .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();
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScalingPlanPooledSchedules Delete. */
+public final class ScalingPlanPooledSchedulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Delete.json
+ */
+ /**
+ * Sample code: ScalingPlanPooledSchedules_Delete.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void scalingPlanPooledSchedulesDelete(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .scalingPlanPooledSchedules()
+ .deleteWithResponse("resourceGroup1", "scalingPlan1", "scalingPlanScheduleWeekdays1", Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScalingPlanPooledSchedules Get. */
+public final class ScalingPlanPooledSchedulesGetSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Get.json
+ */
+ /**
+ * Sample code: ScalingPlanPooledSchedules_Get.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void scalingPlanPooledSchedulesGet(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager
+ .scalingPlanPooledSchedules()
+ .getWithResponse("resourceGroup1", "scalingPlan1", "scalingPlanScheduleWeekdays1", Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScalingPlanPooledSchedules List. */
+public final class ScalingPlanPooledSchedulesListSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_List.json
+ */
+ /**
+ * Sample code: ScalingPlanPooledSchedules_List.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void scalingPlanPooledSchedulesList(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ manager.scalingPlanPooledSchedules().list("resourceGroup1", "scalingPlan1", 10, true, 0, Context.NONE);
+ }
+}
+```
+
+### 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 ScalingPlanPooledSchedules Update. */
+public final class ScalingPlanPooledSchedulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/ScalingPlanPooledSchedule_Update.json
+ */
+ /**
+ * Sample code: ScalingPlanPooledSchedules_Update.
+ *
+ * @param manager Entry point to DesktopVirtualizationManager.
+ */
+ public static void scalingPlanPooledSchedulesUpdate(
+ com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
+ 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 +1418,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/preview/2022-10-14-preview/examples/ScalingPlan_Create.json
*/
/**
* Sample code: ScalingPlans_Create.
@@ -1245,10 +1432,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 +1497,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/preview/2022-10-14-preview/examples/ScalingPlan_Delete.json
*/
/**
* Sample code: ScalingPlans_Delete.
@@ -1319,7 +1506,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 +1519,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/preview/2022-10-14-preview/examples/ScalingPlan_Get.json
*/
/**
* Sample code: ScalingPlans_Get.
@@ -1354,7 +1541,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/preview/2022-10-14-preview/examples/ScalingPlan_ListBySubscription.json
*/
/**
* Sample code: ScalingPlans_ListBySubscription.
@@ -1363,7 +1550,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 +1563,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/preview/2022-10-14-preview/examples/ScalingPlan_ListByHostPool.json
*/
/**
* Sample code: ScalingPlan_ListByHostPool.
@@ -1385,7 +1572,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 +1585,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/preview/2022-10-14-preview/examples/ScalingPlan_ListByResourceGroup.json
*/
/**
* Sample code: ScalingPlans_ListByResourceGroup.
@@ -1407,7 +1594,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 +1608,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/preview/2022-10-14-preview/examples/ScalingPlan_Update.json
*/
/**
* Sample code: ScalingPlans_Update.
@@ -1448,7 +1635,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/preview/2022-10-14-preview/examples/SessionHost_Delete.json
*/
/**
* Sample code: SessionHost_Delete.
@@ -1472,7 +1659,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/preview/2022-10-14-preview/examples/SessionHost_Get.json
*/
/**
* Sample code: SessionHost_Get.
@@ -1496,7 +1683,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/preview/2022-10-14-preview/examples/SessionHost_List.json
*/
/**
* Sample code: SessionHost_List.
@@ -1505,7 +1692,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 +1706,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/preview/2022-10-14-preview/examples/SessionHost_Update.json
*/
/**
* Sample code: SessionHost_Update.
@@ -1535,7 +1722,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 +1739,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/preview/2022-10-14-preview/examples/StartMenuItem_List.json
*/
/**
* Sample code: StartMenuItem_List.
@@ -1558,7 +1748,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 +1761,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/preview/2022-10-14-preview/examples/UserSession_Delete.json
*/
/**
* Sample code: UserSession_Delete.
@@ -1595,7 +1785,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/preview/2022-10-14-preview/examples/UserSession_Disconnect_Post.json
*/
/**
* Sample code: UserSession_Disconnect_Post.
@@ -1619,7 +1809,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/preview/2022-10-14-preview/examples/UserSession_Get.json
*/
/**
* Sample code: UserSession_Get.
@@ -1643,7 +1833,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/preview/2022-10-14-preview/examples/UserSession_List.json
*/
/**
* Sample code: UserSession_List.
@@ -1652,7 +1842,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 +1857,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/preview/2022-10-14-preview/examples/UserSession_ListByHostPool.json
*/
/**
* Sample code: UserSession_ListByHostPool.
@@ -1680,6 +1872,9 @@ public final class UserSessionsListByHostPoolSamples {
"resourceGroup1",
"hostPool1",
"userPrincipalName eq 'user1@microsoft.com' and state eq 'active'",
+ 10,
+ true,
+ 0,
Context.NONE);
}
}
@@ -1694,7 +1889,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/preview/2022-10-14-preview/examples/UserSession_SendMessage_Post.json
*/
/**
* Sample code: UserSession_SendMessage_Post.
@@ -1725,7 +1920,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/preview/2022-10-14-preview/examples/Workspace_Create.json
*/
/**
* Sample code: Workspace_Create.
@@ -1766,7 +1961,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/preview/2022-10-14-preview/examples/Workspace_Delete.json
*/
/**
* Sample code: Workspace_Delete.
@@ -1775,7 +1970,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 +1983,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/preview/2022-10-14-preview/examples/Workspace_Get.json
*/
/**
* Sample code: Workspace_Get.
@@ -1810,7 +2005,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/preview/2022-10-14-preview/examples/Workspace_ListBySubscription.json
*/
/**
* Sample code: Workspace_ListBySubscription.
@@ -1832,7 +2027,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/preview/2022-10-14-preview/examples/Workspace_ListByResourceGroup.json
*/
/**
* Sample code: Workspace_ListByResourceGroup.
@@ -1841,7 +2036,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 +2045,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 +2052,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/preview/2022-10-14-preview/examples/Workspace_Update.json
*/
/**
* Sample code: Workspace_Update.
@@ -1877,7 +2071,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 c04618435a0d..31d7ac4a1363 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-preview-2022-10.
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..15d6d885252e 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
@@ -34,6 +34,7 @@
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;
@@ -48,6 +49,7 @@
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;
@@ -66,8 +68,14 @@ public final class DesktopVirtualizationManager {
private Workspaces workspaces;
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
private ScalingPlans scalingPlans;
+ private ScalingPlanPooledSchedules scalingPlanPooledSchedules;
+
private ApplicationGroups applicationGroups;
private StartMenuItems startMenuItems;
@@ -86,10 +94,6 @@ public final class DesktopVirtualizationManager {
private MsixImages msixImages;
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
private final DesktopVirtualizationApiClient clientObject;
private DesktopVirtualizationManager(
@@ -256,7 +260,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(" (")
@@ -337,6 +341,31 @@ public Workspaces workspaces() {
return workspaces;
}
+ /**
+ * 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;
+ }
+
/**
* Gets the resource collection API of ScalingPlans. It manages ScalingPlan.
*
@@ -349,6 +378,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 +499,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..3957130b686c 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
@@ -58,6 +58,20 @@ public interface DesktopVirtualizationApiClient {
*/
WorkspacesClient getWorkspaces();
+ /**
+ * 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();
+
/**
* Gets the ScalingPlansClient object to access its operations.
*
@@ -65,6 +79,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 +148,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
index 7fdef13cbec4..1a0e6857c7fd 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
@@ -6,36 +6,19 @@
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.
+ * List private endpoint connections.
*
* @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 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.
@@ -43,14 +26,14 @@ PagedFlux listByHostPoolAsync(
* with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName);
+ PagedIterable listByWorkspace(
+ String resourceGroupName, String workspaceName);
/**
- * List private endpoint connections associated with hostpool.
+ * List private endpoint connections.
*
* @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 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.
@@ -59,62 +42,14 @@ PagedIterable listByHostPool(
* 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);
+ 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 hostPoolName The name of the host pool within the specified resource group.
+ * @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.
@@ -124,60 +59,30 @@ PrivateEndpointConnectionWithSystemDataInner getByHostPool(
* @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);
+ Response getByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
/**
- * Remove a connection.
+ * 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 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)
- void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionWithSystemDataInner getByWorkspace(
+ String resourceGroupName, String workspaceName, 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 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.
@@ -187,55 +92,50 @@ Mono deleteByHostPoolAsync(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByHostPoolWithResponse(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
+ Response deleteByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
/**
- * Approve or reject a private endpoint connection.
+ * 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 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> updateByHostPoolWithResponseAsync(
- String resourceGroupName,
- String hostPoolName,
- String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
+ void deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
/**
* 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 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 on successful completion of {@link Mono}.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByHostPoolAsync(
+ Response updateByWorkspaceWithResponse(
String resourceGroupName,
- String hostPoolName,
+ String workspaceName,
String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
+ PrivateEndpointConnection connection,
+ 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 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.
@@ -245,54 +145,17 @@ Mono updateByHostPoolAsync(
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
+ PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
String resourceGroupName,
- String hostPoolName,
+ String workspaceName,
String privateEndpointConnectionName,
PrivateEndpointConnection connection);
/**
- * Approve or reject a private endpoint connection.
+ * 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 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.
@@ -300,14 +163,17 @@ PagedFlux listByWorkspaceAsync(
* with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(
- String resourceGroupName, String workspaceName);
+ PagedIterable listByHostPool(
+ String resourceGroupName, String hostPoolName);
/**
- * List private endpoint connections.
+ * List private endpoint connections associated with hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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.
@@ -316,62 +182,19 @@ PagedIterable listByWorkspace(
* 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);
+ PagedIterable listByHostPool(
+ String resourceGroupName,
+ String hostPoolName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ 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 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.
@@ -381,60 +204,30 @@ PrivateEndpointConnectionWithSystemDataInner getByWorkspace(
* @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);
+ Response getByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
/**
- * Remove a connection.
+ * 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 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)
- void deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionWithSystemDataInner getByHostPool(
+ String resourceGroupName, String hostPoolName, 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 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.
@@ -444,55 +237,50 @@ Mono deleteByWorkspaceAsync(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+ Response deleteByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
/**
- * Approve or reject a private endpoint connection.
+ * Remove a connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @param 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);
+ void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
/**
* 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 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 on successful completion of {@link Mono}.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByWorkspaceAsync(
+ Response updateByHostPoolWithResponse(
String resourceGroupName,
- String workspaceName,
+ String hostPoolName,
String privateEndpointConnectionName,
- PrivateEndpointConnection connection);
+ PrivateEndpointConnection connection,
+ 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 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.
@@ -502,31 +290,9 @@ Mono updateByWorkspaceAsync(
* @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
+ PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
String resourceGroupName,
- String workspaceName,
+ 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 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
index 859e673b4238..8e155879a24a 100644
--- 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
@@ -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.PrivateLinkResourceInner;
@@ -14,77 +13,62 @@
/** 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.
+ * List the private link resources available for this workspace.
*
* @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.
+ * @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 listByHostPool(
- String resourceGroupName, String hostPoolName, Context context);
+ 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 pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of private link resources as paginated response with {@link PagedFlux}.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName);
+ PagedIterable listByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
/**
- * List the private link resources available for this workspace.
+ * List the private link resources available for this hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
+ PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
/**
- * List the private link resources available for this workspace.
+ * List the private link resources available for this hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the workspace.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @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.
@@ -92,6 +76,11 @@ PagedIterable listByHostPool(
* @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);
+ 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/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