diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/CHANGELOG.md
index f49ea63707c5..39b18220eb79 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 (2023-01-11)
+
+- 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..3f369f37289c 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();
}
@@ -160,12 +161,10 @@ public final class ApplicationGroupsCreateOrUpdateSamples {
### ApplicationGroups_Delete
```java
-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 +173,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", com.azure.core.util.Context.NONE);
}
}
```
@@ -182,12 +183,10 @@ public final class ApplicationGroupsDeleteSamples {
### ApplicationGroups_GetByResourceGroup
```java
-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.
@@ -196,7 +195,9 @@ public final class ApplicationGroupsGetByResourceGroupSamples {
*/
public static void applicationGroupGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applicationGroups().getByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", Context.NONE);
+ manager
+ .applicationGroups()
+ .getByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", com.azure.core.util.Context.NONE);
}
}
```
@@ -204,12 +205,10 @@ public final class ApplicationGroupsGetByResourceGroupSamples {
### ApplicationGroups_List
```java
-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.
@@ -218,7 +217,7 @@ public final class ApplicationGroupsListSamples {
*/
public static void applicationGroupList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applicationGroups().list("applicationGroupType eq 'RailApplication'", Context.NONE);
+ manager.applicationGroups().list("applicationGroupType eq 'RailApplication'", com.azure.core.util.Context.NONE);
}
}
```
@@ -226,12 +225,10 @@ public final class ApplicationGroupsListSamples {
### ApplicationGroups_ListByResourceGroup
```java
-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 +239,13 @@ 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,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -250,7 +253,6 @@ public final class ApplicationGroupsListByResourceGroupSamples {
### ApplicationGroups_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroup;
import java.util.HashMap;
import java.util.Map;
@@ -258,7 +260,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.
@@ -270,7 +272,7 @@ public final class ApplicationGroupsUpdateSamples {
ApplicationGroup resource =
manager
.applicationGroups()
- .getByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", Context.NONE)
+ .getByResourceGroupWithResponse("resourceGroup1", "applicationGroup1", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
@@ -301,7 +303,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.
@@ -330,12 +332,10 @@ public final class ApplicationsCreateOrUpdateSamples {
### Applications_Delete
```java
-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.
@@ -344,7 +344,10 @@ public final class ApplicationsDeleteSamples {
*/
public static void applicationDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applications().deleteWithResponse("resourceGroup1", "applicationGroup1", "application1", Context.NONE);
+ manager
+ .applications()
+ .deleteWithResponse(
+ "resourceGroup1", "applicationGroup1", "application1", com.azure.core.util.Context.NONE);
}
}
```
@@ -352,12 +355,10 @@ public final class ApplicationsDeleteSamples {
### Applications_Get
```java
-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.
@@ -366,7 +367,9 @@ public final class ApplicationsGetSamples {
*/
public static void applicationGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.applications().getWithResponse("resourceGroup1", "applicationGroup1", "application1", Context.NONE);
+ manager
+ .applications()
+ .getWithResponse("resourceGroup1", "applicationGroup1", "application1", com.azure.core.util.Context.NONE);
}
}
```
@@ -374,12 +377,10 @@ public final class ApplicationsGetSamples {
### Applications_List
```java
-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 +389,9 @@ 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, com.azure.core.util.Context.NONE);
}
}
```
@@ -396,7 +399,6 @@ public final class ApplicationsListSamples {
### Applications_Update
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.models.Application;
import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
@@ -404,7 +406,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.
@@ -416,7 +418,8 @@ public final class ApplicationsUpdateSamples {
Application resource =
manager
.applications()
- .getWithResponse("resourceGroup1", "applicationGroup1", "application1", Context.NONE)
+ .getWithResponse(
+ "resourceGroup1", "applicationGroup1", "application1", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
@@ -437,12 +440,10 @@ public final class ApplicationsUpdateSamples {
### Desktops_Get
```java
-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.
@@ -451,7 +452,9 @@ public final class DesktopsGetSamples {
*/
public static void desktopGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.desktops().getWithResponse("resourceGroup1", "applicationGroup1", "SessionDesktop", Context.NONE);
+ manager
+ .desktops()
+ .getWithResponse("resourceGroup1", "applicationGroup1", "SessionDesktop", com.azure.core.util.Context.NONE);
}
}
```
@@ -459,12 +462,10 @@ public final class DesktopsGetSamples {
### Desktops_List
```java
-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 +474,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -481,13 +482,12 @@ public final class DesktopsListSamples {
### Desktops_Update
```java
-import com.azure.core.util.Context;
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.
@@ -503,7 +503,7 @@ public final class DesktopsUpdateSamples {
"applicationGroup1",
"SessionDesktop",
new DesktopPatch().withDescription("des1").withFriendlyName("friendly"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -512,23 +512,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 +562,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();
}
@@ -585,12 +591,10 @@ public final class HostPoolsCreateOrUpdateSamples {
### HostPools_Delete
```java
-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.
@@ -599,7 +603,7 @@ public final class HostPoolsDeleteSamples {
*/
public static void hostPoolDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.hostPools().deleteWithResponse("resourceGroup1", "hostPool1", true, Context.NONE);
+ manager.hostPools().deleteWithResponse("resourceGroup1", "hostPool1", true, com.azure.core.util.Context.NONE);
}
}
```
@@ -607,12 +611,10 @@ public final class HostPoolsDeleteSamples {
### HostPools_GetByResourceGroup
```java
-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.
@@ -621,7 +623,9 @@ public final class HostPoolsGetByResourceGroupSamples {
*/
public static void hostPoolGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.hostPools().getByResourceGroupWithResponse("resourceGroup1", "hostPool1", Context.NONE);
+ manager
+ .hostPools()
+ .getByResourceGroupWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
}
}
```
@@ -629,12 +633,10 @@ public final class HostPoolsGetByResourceGroupSamples {
### HostPools_List
```java
-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 +645,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -651,12 +653,10 @@ public final class HostPoolsListSamples {
### HostPools_ListByResourceGroup
```java
-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 +665,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -673,12 +673,10 @@ public final class HostPoolsListByResourceGroupSamples {
### HostPools_RetrieveRegistrationToken
```java
-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.
@@ -687,7 +685,9 @@ public final class HostPoolsRetrieveRegistrationTokenSamples {
*/
public static void hostPoolsRetrieveRegistrationTokenPost(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.hostPools().retrieveRegistrationTokenWithResponse("resourceGroup1", "hostPool1", Context.NONE);
+ manager
+ .hostPools()
+ .retrieveRegistrationTokenWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE);
}
}
```
@@ -695,22 +695,25 @@ public final class HostPoolsRetrieveRegistrationTokenSamples {
### HostPools_Update
```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.
@@ -720,7 +723,10 @@ public final class HostPoolsUpdateSamples {
public static void hostPoolUpdate(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
HostPool resource =
- manager.hostPools().getByResourceGroupWithResponse("resourceGroup1", "hostPool1", Context.NONE).getValue();
+ manager
+ .hostPools()
+ .getByResourceGroupWithResponse("resourceGroup1", "hostPool1", com.azure.core.util.Context.NONE)
+ .getValue();
resource
.update()
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
@@ -739,7 +745,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();
}
@@ -759,13 +774,12 @@ public final class HostPoolsUpdateSamples {
### MsixImages_Expand
```java
-import com.azure.core.util.Context;
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.
@@ -776,7 +790,11 @@ public final class MsixImagesExpandSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.msixImages()
- .expand("resourceGroup1", "hostpool1", new MsixImageUri().withUri("imagepath"), Context.NONE);
+ .expand(
+ "resourceGroup1",
+ "hostpool1",
+ new MsixImageUri().withUri("imagepath"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -792,7 +810,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.
@@ -840,12 +858,10 @@ public final class MsixPackagesCreateOrUpdateSamples {
### MsixPackages_Delete
```java
-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.
@@ -854,7 +870,9 @@ public final class MsixPackagesDeleteSamples {
*/
public static void mSIXPackageDelete(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.msixPackages().deleteWithResponse("resourceGroup1", "hostpool1", "packagefullname", Context.NONE);
+ manager
+ .msixPackages()
+ .deleteWithResponse("resourceGroup1", "hostpool1", "packagefullname", com.azure.core.util.Context.NONE);
}
}
```
@@ -862,12 +880,10 @@ public final class MsixPackagesDeleteSamples {
### MsixPackages_Get
```java
-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.
@@ -876,7 +892,9 @@ public final class MsixPackagesGetSamples {
*/
public static void mSIXPackageGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.msixPackages().getWithResponse("resourceGroup1", "hostpool1", "packagefullname", Context.NONE);
+ manager
+ .msixPackages()
+ .getWithResponse("resourceGroup1", "hostpool1", "packagefullname", com.azure.core.util.Context.NONE);
}
}
```
@@ -884,12 +902,10 @@ public final class MsixPackagesGetSamples {
### MsixPackages_List
```java
-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 +914,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -906,13 +922,12 @@ public final class MsixPackagesListSamples {
### MsixPackages_Update
```java
-import com.azure.core.util.Context;
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.
@@ -924,7 +939,7 @@ public final class MsixPackagesUpdateSamples {
MsixPackage resource =
manager
.msixPackages()
- .getWithResponse("resourceGroup1", "hostpool1", "msixpackagefullname", Context.NONE)
+ .getWithResponse("resourceGroup1", "hostpool1", "msixpackagefullname", com.azure.core.util.Context.NONE)
.getValue();
resource.update().withIsActive(true).withIsRegularRegistration(false).withDisplayName("displayname").apply();
}
@@ -934,12 +949,10 @@ public final class MsixPackagesUpdateSamples {
### Operations_List
```java
-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.
@@ -948,7 +961,7 @@ public final class OperationsListSamples {
*/
public static void operationDescriptionList(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.operations().list(Context.NONE);
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -956,12 +969,10 @@ public final class OperationsListSamples {
### PrivateEndpointConnections_DeleteByHostPool
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections DeleteByHostPool. */
public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_DeleteByHostPool.
@@ -973,7 +984,10 @@ public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
manager
.privateEndpointConnections()
.deleteByHostPoolWithResponse(
- "resourceGroup1", "hostPool1", "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
+ "resourceGroup1",
+ "hostPool1",
+ "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -981,12 +995,10 @@ public final class PrivateEndpointConnectionsDeleteByHostPoolSamples {
### PrivateEndpointConnections_DeleteByWorkspace
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections DeleteByWorkspace. */
public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_DeleteByWorkspace.
@@ -998,7 +1010,10 @@ public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
manager
.privateEndpointConnections()
.deleteByWorkspaceWithResponse(
- "resourceGroup1", "workspace1", "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
+ "resourceGroup1",
+ "workspace1",
+ "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1006,12 +1021,10 @@ public final class PrivateEndpointConnectionsDeleteByWorkspaceSamples {
### PrivateEndpointConnections_GetByHostPool
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections GetByHostPool. */
public final class PrivateEndpointConnectionsGetByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_GetByHostPool.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_GetByHostPool.json
*/
/**
* Sample code: PrivateEndpointConnection_GetByHostPool.
@@ -1023,7 +1036,10 @@ public final class PrivateEndpointConnectionsGetByHostPoolSamples {
manager
.privateEndpointConnections()
.getByHostPoolWithResponse(
- "resourceGroup1", "hostPool1", "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
+ "resourceGroup1",
+ "hostPool1",
+ "hostPool1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1031,12 +1047,10 @@ public final class PrivateEndpointConnectionsGetByHostPoolSamples {
### PrivateEndpointConnections_GetByWorkspace
```java
-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.
@@ -1048,7 +1062,10 @@ public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
manager
.privateEndpointConnections()
.getByWorkspaceWithResponse(
- "resourceGroup1", "workspace1", "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b", Context.NONE);
+ "resourceGroup1",
+ "workspace1",
+ "workspace1.377103f1-5179-4bdf-8556-4cdd3207cc5b",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1056,12 +1073,10 @@ public final class PrivateEndpointConnectionsGetByWorkspaceSamples {
### PrivateEndpointConnections_ListByHostPool
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections ListByHostPool. */
public final class PrivateEndpointConnectionsListByHostPoolSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_ListByHostPool.json
+ * 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 +1085,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1078,12 +1095,10 @@ public final class PrivateEndpointConnectionsListByHostPoolSamples {
### PrivateEndpointConnections_ListByWorkspace
```java
-import com.azure.core.util.Context;
-
/** Samples for PrivateEndpointConnections ListByWorkspace. */
public final class PrivateEndpointConnectionsListByWorkspaceSamples {
/*
- * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2021-09-03-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
+ * x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2022-10-14-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
*/
/**
* Sample code: PrivateEndpointConnection_ListByWorkspace.
@@ -1092,7 +1107,9 @@ public final class PrivateEndpointConnectionsListByWorkspaceSamples {
*/
public static void privateEndpointConnectionListByWorkspace(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.privateEndpointConnections().listByWorkspace("resourceGroup1", "workspace1", Context.NONE);
+ manager
+ .privateEndpointConnections()
+ .listByWorkspace("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1100,7 +1117,6 @@ public final class PrivateEndpointConnectionsListByWorkspaceSamples {
### PrivateEndpointConnections_UpdateByHostPool
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
@@ -1108,7 +1124,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.
@@ -1129,7 +1145,7 @@ public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
.withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
.withDescription("Approved by admin@consoto.com")
.withActionsRequired("None")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1137,7 +1153,6 @@ public final class PrivateEndpointConnectionsUpdateByHostPoolSamples {
### PrivateEndpointConnections_UpdateByWorkspace
```java
-import com.azure.core.util.Context;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
@@ -1145,7 +1160,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.
@@ -1166,7 +1181,7 @@ public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
.withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
.withDescription("Approved by admin@consoto.com")
.withActionsRequired("None")),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1174,12 +1189,10 @@ public final class PrivateEndpointConnectionsUpdateByWorkspaceSamples {
### PrivateLinkResources_ListByHostPool
```java
-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 +1201,9 @@ 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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1196,12 +1211,10 @@ public final class PrivateLinkResourcesListByHostPoolSamples {
### PrivateLinkResources_ListByWorkspace
```java
-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 +1223,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, com.azure.core.util.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
+/** 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", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_Get
+
+```java
+/** 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", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_List
+
+```java
+/** 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, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScalingPlanPooledSchedules_Update
+
+```java
+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", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withDaysOfWeek(
+ Arrays
+ .asList(
+ DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY))
+ .withRampUpLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampUpCapacityThresholdPct(80)
+ .withPeakStartTime(new Time().withHour(8).withMinute(0))
+ .withRampDownLoadBalancingAlgorithm(SessionHostLoadBalancingAlgorithm.DEPTH_FIRST)
+ .withRampDownMinimumHostsPct(20)
+ .withRampDownWaitTimeMinutes(30)
+ .apply();
}
}
```
@@ -1231,7 +1406,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 +1420,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(
@@ -1305,12 +1480,10 @@ public final class ScalingPlansCreateSamples {
### ScalingPlans_Delete
```java
-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 +1492,9 @@ 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", com.azure.core.util.Context.NONE);
}
}
```
@@ -1327,12 +1502,10 @@ public final class ScalingPlansDeleteSamples {
### ScalingPlans_GetByResourceGroup
```java
-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.
@@ -1341,7 +1514,9 @@ public final class ScalingPlansGetByResourceGroupSamples {
*/
public static void scalingPlansGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.scalingPlans().getByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", Context.NONE);
+ manager
+ .scalingPlans()
+ .getByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1349,12 +1524,10 @@ public final class ScalingPlansGetByResourceGroupSamples {
### ScalingPlans_List
```java
-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 +1536,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1371,12 +1544,10 @@ public final class ScalingPlansListSamples {
### ScalingPlans_ListByHostPool
```java
-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 +1556,9 @@ 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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1393,12 +1566,10 @@ public final class ScalingPlansListByHostPoolSamples {
### ScalingPlans_ListByResourceGroup
```java
-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 +1578,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1415,13 +1586,12 @@ public final class ScalingPlansListByResourceGroupSamples {
### ScalingPlans_Update
```java
-import com.azure.core.util.Context;
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.
@@ -1433,7 +1603,7 @@ public final class ScalingPlansUpdateSamples {
ScalingPlan resource =
manager
.scalingPlans()
- .getByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", Context.NONE)
+ .getByResourceGroupWithResponse("resourceGroup1", "scalingPlan1", com.azure.core.util.Context.NONE)
.getValue();
resource.update().apply();
}
@@ -1443,12 +1613,10 @@ public final class ScalingPlansUpdateSamples {
### SessionHosts_Delete
```java
-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.
@@ -1459,7 +1627,8 @@ public final class SessionHostsDeleteSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.sessionHosts()
- .deleteWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", true, Context.NONE);
+ .deleteWithResponse(
+ "resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", true, com.azure.core.util.Context.NONE);
}
}
```
@@ -1467,12 +1636,10 @@ public final class SessionHostsDeleteSamples {
### SessionHosts_Get
```java
-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.
@@ -1483,7 +1650,8 @@ public final class SessionHostsGetSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.sessionHosts()
- .getWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", Context.NONE);
+ .getWithResponse(
+ "resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", com.azure.core.util.Context.NONE);
}
}
```
@@ -1491,12 +1659,10 @@ public final class SessionHostsGetSamples {
### SessionHosts_List
```java
-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 +1671,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1513,13 +1679,12 @@ public final class SessionHostsListSamples {
### SessionHosts_Update
```java
-import com.azure.core.util.Context;
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,8 +1700,11 @@ public final class SessionHostsUpdateSamples {
"hostPool1",
"sessionHost1.microsoft.com",
true,
- new SessionHostPatch().withAllowNewSession(true).withAssignedUser("user1@microsoft.com"),
- Context.NONE);
+ new SessionHostPatch()
+ .withAllowNewSession(true)
+ .withAssignedUser("user1@microsoft.com")
+ .withFriendlyName("friendly"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1544,12 +1712,10 @@ public final class SessionHostsUpdateSamples {
### StartMenuItems_List
```java
-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 +1724,9 @@ 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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1566,12 +1734,10 @@ public final class StartMenuItemsListSamples {
### UserSessions_Delete
```java
-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.
@@ -1582,7 +1748,13 @@ public final class UserSessionsDeleteSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.userSessions()
- .deleteWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1", true, Context.NONE);
+ .deleteWithResponse(
+ "resourceGroup1",
+ "hostPool1",
+ "sessionHost1.microsoft.com",
+ "1",
+ true,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1590,12 +1762,10 @@ public final class UserSessionsDeleteSamples {
### UserSessions_Disconnect
```java
-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.
@@ -1606,7 +1776,8 @@ public final class UserSessionsDisconnectSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.userSessions()
- .disconnectWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1", Context.NONE);
+ .disconnectWithResponse(
+ "resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1614,12 +1785,10 @@ public final class UserSessionsDisconnectSamples {
### UserSessions_Get
```java
-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.
@@ -1630,7 +1799,8 @@ public final class UserSessionsGetSamples {
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
manager
.userSessions()
- .getWithResponse("resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1", Context.NONE);
+ .getWithResponse(
+ "resourceGroup1", "hostPool1", "sessionHost1.microsoft.com", "1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1638,12 +1808,10 @@ public final class UserSessionsGetSamples {
### UserSessions_List
```java
-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 +1820,16 @@ 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,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1660,12 +1837,10 @@ public final class UserSessionsListSamples {
### UserSessions_ListByHostPool
```java
-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,7 +1855,10 @@ public final class UserSessionsListByHostPoolSamples {
"resourceGroup1",
"hostPool1",
"userPrincipalName eq 'user1@microsoft.com' and state eq 'active'",
- Context.NONE);
+ 10,
+ true,
+ 0,
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1688,13 +1866,12 @@ public final class UserSessionsListByHostPoolSamples {
### UserSessions_SendMessage
```java
-import com.azure.core.util.Context;
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.
@@ -1711,7 +1888,7 @@ public final class UserSessionsSendMessageSamples {
"sessionHost1.microsoft.com",
"1",
new SendMessage().withMessageTitle("title").withMessageBody("body"),
- Context.NONE);
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1725,7 +1902,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.
@@ -1761,12 +1938,10 @@ public final class WorkspacesCreateOrUpdateSamples {
### Workspaces_Delete
```java
-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 +1950,9 @@ 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", com.azure.core.util.Context.NONE);
}
}
```
@@ -1783,12 +1960,10 @@ public final class WorkspacesDeleteSamples {
### Workspaces_GetByResourceGroup
```java
-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.
@@ -1797,7 +1972,9 @@ public final class WorkspacesGetByResourceGroupSamples {
*/
public static void workspaceGet(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.workspaces().getByResourceGroupWithResponse("resourceGroup1", "workspace1", Context.NONE);
+ manager
+ .workspaces()
+ .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE);
}
}
```
@@ -1805,12 +1982,10 @@ public final class WorkspacesGetByResourceGroupSamples {
### Workspaces_List
```java
-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.
@@ -1819,7 +1994,7 @@ public final class WorkspacesListSamples {
*/
public static void workspaceListBySubscription(
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager) {
- manager.workspaces().list(Context.NONE);
+ manager.workspaces().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -1827,12 +2002,10 @@ public final class WorkspacesListSamples {
### Workspaces_ListByResourceGroup
```java
-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 +2014,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, com.azure.core.util.Context.NONE);
}
}
```
@@ -1849,8 +2022,6 @@ public final class WorkspacesListByResourceGroupSamples {
### Workspaces_Update
```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 +2029,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.
@@ -1870,14 +2041,13 @@ public final class WorkspacesUpdateSamples {
Workspace resource =
manager
.workspaces()
- .getByResourceGroupWithResponse("resourceGroup1", "workspace1", Context.NONE)
+ .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.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 9f631ab4a68f..4a00810acc1f 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..14c09dee0e0d 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
@@ -48,28 +48,28 @@ Mono> getByResourceGroupWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application group.
+ * @return an application group along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String applicationGroupName, Context context);
/**
* 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 context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application group along with {@link Response}.
+ * @return an application group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String applicationGroupName, Context context);
+ ApplicationGroupInner getByResourceGroup(String resourceGroupName, String applicationGroupName);
/**
* Create or update an applicationGroup.
@@ -108,14 +108,15 @@ Mono createOrUpdateAsync(
* @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.
+ * @return represents a ApplicationGroup definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationGroupInner createOrUpdate(
- String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup, Context context);
/**
* Create or update an applicationGroup.
@@ -123,15 +124,14 @@ ApplicationGroupInner createOrUpdate(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationGroup Object containing ApplicationGroup definitions.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a ApplicationGroup definition along with {@link Response}.
+ * @return represents a ApplicationGroup definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup, Context context);
+ ApplicationGroupInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, ApplicationGroupInner applicationGroup);
/**
* Remove an applicationGroup.
@@ -164,26 +164,26 @@ Response createOrUpdateWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String applicationGroupName);
+ Response deleteWithResponse(String resourceGroupName, String applicationGroupName, 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.
- * @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 applicationGroupName, Context context);
+ void delete(String resourceGroupName, String applicationGroupName);
/**
* Update an applicationGroup.
@@ -206,28 +206,29 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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);
+ Mono updateAsync(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 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,34 +243,22 @@ 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.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter);
+ PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, String filter, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List applicationGroups.
@@ -300,6 +289,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,7 +299,13 @@ Response updateWithResponse(
* @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
+ 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..32935c030ede 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
@@ -51,13 +51,15 @@ Mono> getWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application.
+ * @return an application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
+ Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context);
/**
* Get an application.
@@ -65,15 +67,13 @@ Mono> getWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application along with {@link Response}.
+ * @return an application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String applicationGroupName, String applicationName, Context context);
+ ApplicationInner get(String resourceGroupName, String applicationGroupName, String applicationName);
/**
* Create or update an application.
@@ -114,14 +114,19 @@ Mono createOrUpdateAsync(
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
* @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Application properties.
+ * @return schema for Application properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(
- String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationInner application,
+ Context context);
/**
* Create or update an application.
@@ -130,19 +135,14 @@ ApplicationInner createOrUpdate(
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
* @param application Object containing Application definitions.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Application properties along with {@link Response}.
+ * @return schema for Application properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String applicationGroupName,
- String applicationName,
- ApplicationInner application,
- Context context);
+ ApplicationInner createOrUpdate(
+ String resourceGroupName, String applicationGroupName, String applicationName, ApplicationInner application);
/**
* Remove an application.
@@ -179,12 +179,15 @@ Mono> deleteWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String applicationGroupName, String applicationName);
+ Response deleteWithResponse(
+ String resourceGroupName, String applicationGroupName, String applicationName, Context context);
/**
* Remove an application.
@@ -192,15 +195,12 @@ Mono> deleteWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String applicationGroupName, String applicationName, Context context);
+ void delete(String resourceGroupName, String applicationGroupName, String applicationName);
/**
* Update an application.
@@ -224,15 +224,13 @@ Mono> updateWithResponseAsync(
* @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);
+ Mono updateAsync(String resourceGroupName, String applicationGroupName, String applicationName);
/**
* Update an application.
@@ -240,13 +238,20 @@ Mono updateAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param applicationName The name of the application within the specified application group.
+ * @param application Object containing Application definitions.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Application properties on successful completion of {@link Mono}.
+ * @return schema for Application properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName, String applicationName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String applicationName,
+ ApplicationPatch application,
+ Context context);
/**
* Update an application.
@@ -263,25 +268,25 @@ Mono updateAsync(
ApplicationInner update(String resourceGroupName, String applicationGroupName, String applicationName);
/**
- * Update an application.
+ * List applications.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param applicationName The name of the application within the specified application group.
- * @param application Object containing Application definitions.
- * @param context The context to associate with this operation.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Application properties along with {@link Response}.
+ * @return applicationList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
String resourceGroupName,
String applicationGroupName,
- String applicationName,
- ApplicationPatch application,
- Context context);
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip);
/**
* List applications.
@@ -314,6 +319,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 +329,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..d44baeeef5eb 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
@@ -51,13 +51,15 @@ Mono> getWithResponseAsync(
* @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 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 desktop.
+ * @return a desktop along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DesktopInner get(String resourceGroupName, String applicationGroupName, String desktopName);
+ Response getWithResponse(
+ String resourceGroupName, String applicationGroupName, String desktopName, Context context);
/**
* Get a desktop.
@@ -65,15 +67,13 @@ Mono> getWithResponseAsync(
* @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 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 desktop along with {@link Response}.
+ * @return a desktop.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String applicationGroupName, String desktopName, Context context);
+ DesktopInner get(String resourceGroupName, String applicationGroupName, String desktopName);
/**
* Update a desktop.
@@ -97,15 +97,13 @@ Mono> updateWithResponseAsync(
* @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);
+ Mono updateAsync(String resourceGroupName, String applicationGroupName, String desktopName);
/**
* Update a desktop.
@@ -113,13 +111,20 @@ Mono updateAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
* @param desktopName The name of the desktop within the specified desktop group.
+ * @param desktop Object containing Desktop definitions.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Desktop properties on successful completion of {@link Mono}.
+ * @return schema for Desktop properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String applicationGroupName, String desktopName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String applicationGroupName,
+ String desktopName,
+ DesktopPatch desktop,
+ Context context);
/**
* Update a desktop.
@@ -136,25 +141,25 @@ Mono updateAsync(
DesktopInner update(String resourceGroupName, String applicationGroupName, String desktopName);
/**
- * Update a desktop.
+ * List desktops.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param applicationGroupName The name of the application group.
- * @param desktopName The name of the desktop within the specified desktop group.
- * @param desktop Object containing Desktop definitions.
- * @param context The context to associate with this operation.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Desktop properties along with {@link Response}.
+ * @return desktopList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
String resourceGroupName,
String applicationGroupName,
- String desktopName,
- DesktopPatch desktop,
- Context context);
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip);
/**
* List desktops.
@@ -187,6 +192,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 +202,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..e41f0918a9b6 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
@@ -48,28 +48,28 @@ public interface HostPoolsClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a host pool.
+ * @return a host pool along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String hostPoolName, Context context);
/**
* 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 context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a host pool along with {@link Response}.
+ * @return a host pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String hostPoolName, Context context);
+ HostPoolInner getByResourceGroup(String resourceGroupName, String hostPoolName);
/**
* Create or update a host pool.
@@ -100,20 +100,6 @@ Mono> createOrUpdateWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
Mono createOrUpdateAsync(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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
-
/**
* Create or update a host pool.
*
@@ -131,18 +117,18 @@ Response createOrUpdateWithResponse(
String resourceGroupName, String hostPoolName, HostPoolInner hostPool, Context context);
/**
- * 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 force Force flag to delete sessionHost.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ * @return represents a HostPool definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName, Boolean force);
+ HostPoolInner createOrUpdate(String resourceGroupName, String hostPoolName, HostPoolInner hostPool);
/**
* Remove a host pool.
@@ -153,10 +139,10 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteAsync(String resourceGroupName, String hostPoolName, Boolean force);
+ Mono> deleteWithResponseAsync(String resourceGroupName, String hostPoolName, Boolean force);
/**
* Remove a host pool.
@@ -176,27 +162,27 @@ Response createOrUpdateWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
+ * @param force Force flag to delete sessionHost.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName);
+ Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, 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.
- * @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 hostPoolName, Boolean force, Context context);
+ void delete(String resourceGroupName, String hostPoolName);
/**
* Update a host pool.
@@ -218,27 +204,29 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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);
+ Mono updateAsync(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 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.
@@ -254,20 +242,20 @@ Mono> updateWithResponseAsync(
HostPoolInner update(String resourceGroupName, String hostPoolName);
/**
- * Update a host pool.
+ * List hostPools.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param hostPoolName The name of the host pool within the specified resource group.
- * @param hostPool Object containing HostPool definitions.
- * @param context The context to associate with this operation.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a HostPool definition along with {@link Response}.
+ * @return hostPoolList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String hostPoolName, HostPoolPatch hostPool, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List hostPools.
@@ -297,6 +285,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,7 +295,22 @@ Response updateWithResponse(
* @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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(Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List hostPools in subscription.
@@ -329,6 +335,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,7 +345,7 @@ Response updateWithResponse(
* @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
/**
* Registration token of the host pool.
@@ -371,26 +380,26 @@ Mono> retrieveRegistrationTokenWithResponseAsync
*
* @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.
+ * @return represents a RegistrationInfo definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
+ Response retrieveRegistrationTokenWithResponse(
+ String resourceGroupName, String hostPoolName, 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 along with {@link Response}.
+ * @return represents a RegistrationInfo definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response retrieveRegistrationTokenWithResponse(
- String resourceGroupName, String hostPoolName, Context context);
+ RegistrationInfoInner retrieveRegistrationToken(String resourceGroupName, String hostPoolName);
}
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..7e90bbb3199e 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
@@ -51,13 +51,15 @@ Mono> getWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a msixpackage.
+ * @return a msixpackage along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ Response getWithResponse(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
/**
* Get a msixpackage.
@@ -65,15 +67,13 @@ Mono> getWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a msixpackage along with {@link Response}.
+ * @return a msixpackage.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
+ MsixPackageInner get(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
* Create or update a MSIX package.
@@ -114,14 +114,19 @@ Mono createOrUpdateAsync(
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @param msixPackage Object containing MSIX Package definitions.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for MSIX Package properties.
+ * @return schema for MSIX Package properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MsixPackageInner createOrUpdate(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackageInner msixPackage);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String msixPackageFullName,
+ MsixPackageInner msixPackage,
+ Context context);
/**
* Create or update a MSIX package.
@@ -130,19 +135,14 @@ MsixPackageInner createOrUpdate(
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
* @param msixPackage Object containing MSIX Package definitions.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for MSIX Package properties along with {@link Response}.
+ * @return schema for MSIX Package properties.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String hostPoolName,
- String msixPackageFullName,
- MsixPackageInner msixPackage,
- Context context);
+ MsixPackageInner createOrUpdate(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, MsixPackageInner msixPackage);
/**
* Remove an MSIX Package.
@@ -179,12 +179,15 @@ Mono> deleteWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ Response deleteWithResponse(
+ String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
/**
* Remove an MSIX Package.
@@ -192,15 +195,12 @@ Mono> deleteWithResponseAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String hostPoolName, String msixPackageFullName, Context context);
+ void delete(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
* Update an MSIX Package.
@@ -224,15 +224,13 @@ 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 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);
+ Mono updateAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
* Update an MSIX Package.
@@ -240,13 +238,20 @@ Mono updateAsync(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
* @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
+ * @param msixPackage Object containing MSIX Package definitions.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for MSIX Package properties on successful completion of {@link Mono}.
+ * @return schema for MSIX Package properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateAsync(String resourceGroupName, String hostPoolName, String msixPackageFullName);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String hostPoolName,
+ String msixPackageFullName,
+ MsixPackagePatch msixPackage,
+ Context context);
/**
* Update an MSIX Package.
@@ -263,25 +268,21 @@ Mono updateAsync(
MsixPackageInner update(String resourceGroupName, String hostPoolName, String msixPackageFullName);
/**
- * Update an MSIX Package.
+ * List MSIX packages in hostpool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param hostPoolName The name of the host pool within the specified resource group.
- * @param msixPackageFullName The version specific package full name of the MSIX package within specified hostpool.
- * @param msixPackage Object containing MSIX Package definitions.
- * @param context The context to associate with this operation.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for MSIX Package properties along with {@link Response}.
+ * @return msixPackageList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String hostPoolName,
- String msixPackageFullName,
- MsixPackagePatch msixPackage,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List MSIX packages in hostpool.
@@ -314,6 +315,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 +325,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/PrivateEndpointConnectionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
index 7fdef13cbec4..b0fe67f7c09f 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
@@ -17,10 +17,10 @@
/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
/**
- * 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.
@@ -28,14 +28,14 @@ public interface PrivateEndpointConnectionsClient {
* with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByHostPoolAsync(
- String resourceGroupName, String hostPoolName);
+ PagedFlux listByWorkspaceAsync(
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.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 +43,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,14 +59,14 @@ PagedIterable listByHostPool(
* with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(
- String resourceGroupName, String hostPoolName, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -75,14 +75,14 @@ PagedIterable listByHostPool(
* @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);
+ 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 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.
@@ -91,47 +91,47 @@ Mono> getByHostPoolWithRe
* @return a private endpoint connection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByHostPoolAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ 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 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner getByHostPool(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ Response getByWorkspaceWithResponse(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName, 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection along with {@link Response}.
+ * @return a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByHostPoolWithResponse(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -140,14 +140,14 @@ Response getByHostPoolWithResponse
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteByHostPoolWithResponseAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ 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 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.
@@ -156,45 +156,45 @@ Mono> deleteByHostPoolWithResponseAsync(
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteByHostPoolAsync(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ Mono deleteByWorkspaceAsync(
+ String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
/**
* Remove a connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
- void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
+ Response deleteByWorkspaceWithResponse(
+ 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 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByHostPoolWithResponse(
- String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
+ 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.
@@ -205,9 +205,9 @@ Response deleteByHostPoolWithResponse(
* Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateByHostPoolWithResponseAsync(
+ Mono> updateByWorkspaceWithResponseAsync(
String resourceGroupName,
- String hostPoolName,
+ String workspaceName,
String privateEndpointConnectionName,
PrivateEndpointConnection connection);
@@ -215,7 +215,7 @@ Mono> updateByHostPoolWit
* 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.
@@ -225,9 +225,9 @@ Mono> updateByHostPoolWit
* @return the Private Endpoint Connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByHostPoolAsync(
+ Mono updateByWorkspaceAsync(
String resourceGroupName,
- String hostPoolName,
+ String workspaceName,
String privateEndpointConnectionName,
PrivateEndpointConnection connection);
@@ -235,49 +235,52 @@ Mono updateByHostPoolAsync(
* 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.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
+ 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.
- * @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}.
+ * @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateByHostPoolWithResponse(
+ PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
String resourceGroupName,
- String hostPoolName,
+ String workspaceName,
String privateEndpointConnectionName,
- PrivateEndpointConnection connection,
- Context context);
+ PrivateEndpointConnection connection);
/**
- * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -285,14 +288,29 @@ Response updateByHostPoolWithRespo
* with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(
- String resourceGroupName, String workspaceName);
+ PagedFlux listByHostPoolAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
- * List private endpoint connections.
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByHostPoolAsync(
+ String resourceGroupName, String hostPoolName);
+
+ /**
+ * List private endpoint connections associated with hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -300,14 +318,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,14 +337,19 @@ PagedIterable listByWorkspace(
* 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);
/**
* 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.
@@ -332,14 +358,14 @@ PagedIterable listByWorkspace(
* @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);
+ 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 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.
@@ -348,47 +374,47 @@ Mono> getByWorkspaceWithR
* @return a private endpoint connection on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono getByWorkspaceAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ 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 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection.
+ * @return a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner getByWorkspace(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ Response getByHostPoolWithResponse(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName, Context context);
/**
* 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a private endpoint connection along with {@link Response}.
+ * @return a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -397,14 +423,14 @@ Response getByWorkspaceWithRespons
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> deleteByWorkspaceWithResponseAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ 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 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.
@@ -413,45 +439,45 @@ Mono> deleteByWorkspaceWithResponseAsync(
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono deleteByWorkspaceAsync(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ Mono deleteByHostPoolAsync(
+ String resourceGroupName, String hostPoolName, String privateEndpointConnectionName);
/**
* Remove a connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
- void deleteByWorkspace(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ Response deleteByHostPoolWithResponse(
+ 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 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteByWorkspaceWithResponse(
- String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context);
+ 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.
@@ -462,9 +488,9 @@ Response deleteByWorkspaceWithResponse(
* Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> updateByWorkspaceWithResponseAsync(
+ Mono> updateByHostPoolWithResponseAsync(
String resourceGroupName,
- String workspaceName,
+ String hostPoolName,
String privateEndpointConnectionName,
PrivateEndpointConnection connection);
@@ -472,7 +498,7 @@ Mono> updateByWorkspaceWi
* 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.
@@ -482,9 +508,9 @@ Mono> updateByWorkspaceWi
* @return the Private Endpoint Connection resource on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono updateByWorkspaceAsync(
+ Mono updateByHostPoolAsync(
String resourceGroupName,
- String workspaceName,
+ String hostPoolName,
String privateEndpointConnectionName,
PrivateEndpointConnection connection);
@@ -492,41 +518,41 @@ Mono updateByWorkspaceAsync(
* 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.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
+ 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.
- * @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}.
+ * @return the Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateByWorkspaceWithResponse(
+ PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
String resourceGroupName,
- String workspaceName,
+ String hostPoolName,
String privateEndpointConnectionName,
- PrivateEndpointConnection connection,
- Context context);
+ PrivateEndpointConnection connection);
}
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..07b8dda0897c 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
@@ -14,77 +14,122 @@
/** 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.
+ * 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 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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);
+ PagedFlux listByWorkspaceAsync(
+ String resourceGroupName, String workspaceName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
- * 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 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}.
+ * @return a list of private link resources as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
+ PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName);
/**
- * 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 PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByWorkspace(
+ String resourceGroupName,
+ String workspaceName,
+ Integer pageSize,
+ Boolean isDescending,
+ Integer initialSkip,
+ Context context);
+
+ /**
+ * List the private link resources available for this hostpool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param hostPoolName The name of the host pool within the specified resource group.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of private link resources as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName);
+ PagedFlux listByHostPoolAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
- * List 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 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 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 +137,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..4a06365c0df5
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlanPooledSchedulesClient.java
@@ -0,0 +1,353 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ScalingPlanPooledScheduleInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePatch;
+import reactor.core.publisher.Mono;
+
+/** 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getWithResponseAsync(
+ String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getAsync(
+ String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> createWithResponseAsync(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledScheduleInner scalingPlanSchedule);
+
+ /**
+ * 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createAsync(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledScheduleInner scalingPlanSchedule);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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, String scalingPlanScheduleName);
+
+ /**
+ * 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.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String scalingPlanName, String scalingPlanScheduleName);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> updateWithResponseAsync(
+ String resourceGroupName,
+ String scalingPlanName,
+ String scalingPlanScheduleName,
+ ScalingPlanPooledSchedulePatch scalingPlanSchedule);
+
+ /**
+ * 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(
+ 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.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return scalingPlanPooledScheduleList as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(
+ String resourceGroupName, String scalingPlanName, Integer pageSize, Boolean isDescending, Integer initialSkip);
+
+ /**
+ * 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 PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync(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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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..a032ae0d96e0 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
@@ -48,28 +48,28 @@ Mono> getByResourceGroupWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
+ * @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 scaling plan.
+ * @return a scaling plan along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String scalingPlanName, Context context);
/**
* 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 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 scaling plan along with {@link Response}.
+ * @return a scaling plan.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String scalingPlanName, Context context);
+ ScalingPlanInner getByResourceGroup(String resourceGroupName, String scalingPlanName);
/**
* Create or update a scaling plan.
@@ -106,13 +106,15 @@ Mono> createWithResponseAsync(
* @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.
+ * @return scalingPlan along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
+ Response createWithResponse(
+ String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, Context context);
/**
* Create or update a scaling plan.
@@ -120,15 +122,13 @@ Mono> createWithResponseAsync(
* @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}.
+ * @return scalingPlan.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan, Context context);
+ ScalingPlanInner create(String resourceGroupName, String scalingPlanName, ScalingPlanInner scalingPlan);
/**
* Remove a scaling plan.
@@ -161,26 +161,26 @@ Response createWithResponse(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scalingPlanName The name of the scaling plan.
+ * @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)
- void delete(String resourceGroupName, String scalingPlanName);
+ Response deleteWithResponse(String resourceGroupName, String scalingPlanName, 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.
- * @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, Context context);
+ void delete(String resourceGroupName, String scalingPlanName);
/**
* Update a scaling plan.
@@ -202,27 +202,29 @@ 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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);
+ Mono updateAsync(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 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.
@@ -238,20 +240,20 @@ Mono> updateWithResponseAsync(
ScalingPlanInner update(String resourceGroupName, String scalingPlanName);
/**
- * Update a scaling plan.
+ * List scaling plans.
*
* @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.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return scalingPlan along with {@link Response}.
+ * @return scalingPlanList as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List scaling plans.
@@ -281,6 +283,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,7 +293,22 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, Integer pageSize, Boolean isDescending, Integer initialSkip, Context context);
+
+ /**
+ * 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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(Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List scaling plans in subscription.
@@ -313,6 +333,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,7 +343,24 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ PagedIterable list(Integer pageSize, Boolean isDescending, Integer initialSkip, 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.
+ * @param pageSize Number of items per page.
+ * @param isDescending Indicates whether the collection is descending.
+ * @param initialSkip Initial number of items to skip.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return scalingPlanList as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByHostPoolAsync(
+ String resourceGroupName, String hostPoolName, Integer pageSize, Boolean isDescending, Integer initialSkip);
/**
* List scaling plan associated with hostpool.
@@ -353,6 +393,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 +403,11 @@ Response updateWithResponse(
* @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByHostPool(String resourceGroupName, String hostPoolName, Context context);
+ PagedIterable