scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -194,6 +214,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -201,9 +234,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -243,10 +278,15 @@ public DesktopVirtualizationManager authenticate(TokenCredential credential, Azu
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -301,6 +341,15 @@ public ScalingPlans scalingPlans() {
return scalingPlans;
}
+ /** @return Resource collection API of ScalingPlanPooledSchedules. */
+ public ScalingPlanPooledSchedules scalingPlanPooledSchedules() {
+ if (this.scalingPlanPooledSchedules == null) {
+ this.scalingPlanPooledSchedules =
+ new ScalingPlanPooledSchedulesImpl(clientObject.getScalingPlanPooledSchedules(), this);
+ }
+ return scalingPlanPooledSchedules;
+ }
+
/** @return Resource collection API of ApplicationGroups. */
public ApplicationGroups applicationGroups() {
if (this.applicationGroups == null) {
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 fec69c996914..f1e43ee8e58f 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
@@ -36,7 +36,7 @@ public interface ApplicationGroupsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByResourceGroupWithResponse(
@@ -67,7 +67,7 @@ ApplicationGroupInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createOrUpdateWithResponse(
@@ -94,7 +94,7 @@ 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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context);
@@ -122,7 +122,7 @@ 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 represents a ApplicationGroup definition.
+ * @return represents a ApplicationGroup definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -135,7 +135,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -149,7 +149,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
@@ -159,7 +159,7 @@ Response updateWithResponse(
*
* @throws com.azure.core.management.exception.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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -172,7 +172,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, Context context);
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 d595a9422f08..12515d3089c9 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
@@ -38,7 +38,7 @@ public interface ApplicationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -71,7 +71,7 @@ ApplicationInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createOrUpdateWithResponse(
@@ -104,7 +104,7 @@ 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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -135,7 +135,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response updateWithResponse(
@@ -153,7 +153,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return applicationList.
+ * @return applicationList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName);
@@ -167,7 +167,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return applicationList.
+ * @return applicationList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName, 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..938468434559 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/DesktopVirtualizationApiClient.java
@@ -65,6 +65,13 @@ public interface DesktopVirtualizationApiClient {
*/
ScalingPlansClient getScalingPlans();
+ /**
+ * Gets the ScalingPlanPooledSchedulesClient object to access its operations.
+ *
+ * @return the ScalingPlanPooledSchedulesClient object.
+ */
+ ScalingPlanPooledSchedulesClient getScalingPlanPooledSchedules();
+
/**
* Gets the ApplicationGroupsClient object to access its operations.
*
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 a09e123ec1f7..3242ef98e194 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
@@ -38,7 +38,7 @@ public interface DesktopsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -69,7 +69,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schema for Desktop properties.
+ * @return schema for Desktop properties along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -87,7 +87,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return desktopList.
+ * @return desktopList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName);
@@ -101,7 +101,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return desktopList.
+ * @return desktopList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName, 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 667c37585181..99e94051eabe 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
@@ -37,7 +37,7 @@ public interface HostPoolsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByResourceGroupWithResponse(
@@ -67,7 +67,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a HostPool definition.
+ * @return represents a HostPool definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -95,7 +95,7 @@ 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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String hostPoolName, Boolean force, Context context);
@@ -123,7 +123,7 @@ 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 represents a HostPool definition.
+ * @return represents a HostPool definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -136,7 +136,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -149,7 +149,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -159,7 +159,7 @@ Response updateWithResponse(
*
* @throws com.azure.core.management.exception.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.
+ * @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -171,7 +171,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return hostPoolList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -198,7 +198,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response retrieveRegistrationTokenWithResponse(
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
index f151c068c107..0877812b7daa 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/MsixImagesClient.java
@@ -22,7 +22,7 @@ public interface MsixImagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return expandMsixImageList.
+ * @return expandMsixImageList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable expand(
@@ -38,7 +38,7 @@ PagedIterable expand(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return expandMsixImageList.
+ * @return expandMsixImageList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable expand(
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 4d2eab777b91..4d0e07981eb7 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
@@ -38,7 +38,7 @@ public interface MsixPackagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getWithResponse(
@@ -71,7 +71,7 @@ MsixPackageInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createOrUpdateWithResponse(
@@ -104,7 +104,7 @@ 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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -135,7 +135,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response updateWithResponse(
@@ -153,7 +153,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return msixPackageList.
+ * @return msixPackageList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String hostPoolName);
@@ -167,7 +167,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return msixPackageList.
+ * @return msixPackageList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
index dc25c227ee7c..55f6fa3f0751 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list operations.
+ * @return result of the request to list operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list operations.
+ * @return result of the request to list operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/PrivateEndpointConnectionsClient.java
index 000d7cce5ef3..504166d2d8e0 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
@@ -22,7 +22,8 @@ public interface PrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(
@@ -37,7 +38,8 @@ PagedIterable listByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(
@@ -70,7 +72,7 @@ PrivateEndpointConnectionWithSystemDataInner getByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByHostPoolWithResponse(
@@ -101,7 +103,7 @@ Response getByHostPoolWithResponse
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteByHostPoolWithResponse(
@@ -139,7 +141,7 @@ PrivateEndpointConnectionWithSystemDataInner updateByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response updateByHostPoolWithResponse(
@@ -157,7 +159,8 @@ Response updateByHostPoolWithRespo
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(
@@ -172,7 +175,8 @@ PagedIterable listByWorkspace(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return list of private endpoint connection associated with the specified storage account as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(
@@ -205,7 +209,7 @@ PrivateEndpointConnectionWithSystemDataInner getByWorkspace(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByWorkspaceWithResponse(
@@ -236,7 +240,7 @@ Response getByWorkspaceWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteByWorkspaceWithResponse(
@@ -274,7 +278,7 @@ PrivateEndpointConnectionWithSystemDataInner updateByWorkspace(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response updateByWorkspaceWithResponse(
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 3eb0700ca788..9f5e4fb6382f 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
@@ -20,7 +20,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
@@ -34,7 +34,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(
@@ -48,7 +48,7 @@ PagedIterable listByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(String resourceGroupName, String workspaceName);
@@ -62,7 +62,7 @@ PagedIterable listByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByWorkspace(
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..a8169449c561
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/ScalingPlanPooledSchedulesClient.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.desktopvirtualization.fluent.models.ScalingPlanPooledScheduleInner;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePatch;
+
+/** An instance of this class provides access to all the operations defined in ScalingPlanPooledSchedulesClient. */
+public interface ScalingPlanPooledSchedulesClient {
+ /**
+ * Get a ScalingPlanPooledSchedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scalingPlanName The name of the scaling plan.
+ * @param scalingPlanScheduleName The name of the ScalingPlanSchedule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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);
+
+ /**
+ * 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 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, 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 da3239ecbc6c..ceea3ea084ba 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
@@ -36,7 +36,7 @@ public interface ScalingPlansClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response getByResourceGroupWithResponse(
@@ -66,7 +66,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response createWithResponse(
@@ -93,7 +93,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String scalingPlanName, Context context);
@@ -121,7 +121,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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)
Response updateWithResponse(
@@ -134,7 +134,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -147,7 +147,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -157,7 +157,7 @@ Response updateWithResponse(
*
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -169,7 +169,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -182,7 +182,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
@@ -196,7 +196,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return scalingPlanList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(String resourceGroupName, String hostPoolName, Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
index a7f0485df843..e9318a8f645e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/SessionHostsClient.java
@@ -38,7 +38,7 @@ public interface SessionHostsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a session host.
+ * @return a session host along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -68,7 +68,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -100,7 +100,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a SessionHost definition.
+ * @return represents a SessionHost definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -119,7 +119,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return sessionHostList.
+ * @return sessionHostList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String hostPoolName);
@@ -133,7 +133,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return sessionHostList.
+ * @return sessionHostList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String hostPoolName, Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
index d92bccc577c4..f5631f297ae8 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/StartMenuItemsClient.java
@@ -20,7 +20,7 @@ public interface StartMenuItemsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return startMenuItemList.
+ * @return startMenuItemList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName);
@@ -34,7 +34,7 @@ public interface StartMenuItemsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return startMenuItemList.
+ * @return startMenuItemList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String applicationGroupName, Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
index 473b484d9890..e474533fc11e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/UserSessionsClient.java
@@ -22,7 +22,7 @@ public interface UserSessionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList.
+ * @return userSessionList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(String resourceGroupName, String hostPoolName);
@@ -37,7 +37,7 @@ public interface UserSessionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList.
+ * @return userSessionList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByHostPool(
@@ -69,7 +69,7 @@ PagedIterable listByHostPool(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a userSession.
+ * @return a userSession along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -101,7 +101,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -121,7 +121,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList.
+ * @return userSessionList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String hostPoolName, String sessionHostname);
@@ -136,7 +136,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return userSessionList.
+ * @return userSessionList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -167,7 +167,7 @@ PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response disconnectWithResponse(
@@ -199,7 +199,7 @@ Response disconnectWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response sendMessageWithResponse(
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
index 33c149314245..fac0bf74d7d8 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/WorkspacesClient.java
@@ -36,7 +36,7 @@ public interface WorkspacesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a workspace.
+ * @return a workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -66,7 +66,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents a Workspace definition.
+ * @return represents a Workspace definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -93,7 +93,7 @@ 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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String workspaceName, Context context);
@@ -121,7 +121,7 @@ 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 represents a Workspace definition.
+ * @return represents a Workspace definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -134,7 +134,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaceList.
+ * @return workspaceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -147,7 +147,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaceList.
+ * @return workspaceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -157,7 +157,7 @@ Response updateWithResponse(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaceList.
+ * @return workspaceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -169,7 +169,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return workspaceList.
+ * @return workspaceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
index 12071ab16268..def9927163ba 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupInner.java
@@ -13,15 +13,12 @@
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Represents a ApplicationGroup definition. */
@Fluent
public final class ApplicationGroupInner extends ResourceModelWithAllowedPropertySet {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -252,7 +249,7 @@ public Boolean cloudPcResource() {
public void validate() {
super.validate();
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model ApplicationGroupInner"));
@@ -260,4 +257,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
index 799606f1f413..9b8fb6659f2a 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupPatchProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** ApplicationGroup properties that can be patched. */
@Fluent
public final class ApplicationGroupPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupPatchProperties.class);
-
/*
* Description of ApplicationGroup.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
index aa2e8a0d75ab..d7d32cab484d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationGroupProperties.java
@@ -8,14 +8,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupType;
import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for ApplicationGroup properties. */
@Fluent
public final class ApplicationGroupProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupProperties.class);
-
/*
* ObjectId of ApplicationGroup. (internal use)
*/
@@ -198,13 +195,13 @@ public Boolean cloudPcResource() {
*/
public void validate() {
if (hostPoolArmPath() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property hostPoolArmPath in model ApplicationGroupProperties"));
}
if (applicationGroupType() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property applicationGroupType in model ApplicationGroupProperties"));
@@ -213,4 +210,6 @@ public void validate() {
migrationRequest().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupProperties.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
index de7cc4bd1934..51da15bc850e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationInner.java
@@ -10,14 +10,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for Application properties. */
@Fluent
public final class ApplicationInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -339,7 +336,7 @@ public byte[] iconContent() {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model ApplicationInner"));
@@ -347,4 +344,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
index e3d7dbf84dea..96a612ca0d1d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationPatchProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Application properties that can be patched. */
@Fluent
public final class ApplicationPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationPatchProperties.class);
-
/*
* Description of Application.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
index 8d74182a4c0e..410022ce3513 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ApplicationProperties.java
@@ -9,14 +9,11 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.CommandLineSetting;
import com.azure.resourcemanager.desktopvirtualization.models.RemoteApplicationType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for Application properties. */
@Fluent
public final class ApplicationProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationProperties.class);
-
/*
* ObjectId of Application. (internal use)
*/
@@ -362,10 +359,12 @@ public byte[] iconContent() {
*/
public void validate() {
if (commandLineSetting() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property commandLineSetting in model ApplicationProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationProperties.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
index 7eccc1f08a95..f9713b4ca499 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopInner.java
@@ -7,15 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for Desktop properties. */
@Fluent
public final class DesktopInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DesktopInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
index 10e58dd21800..121ced400e71 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopPatchProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Desktop properties that can be patched. */
@Fluent
public final class DesktopPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DesktopPatchProperties.class);
-
/*
* Description of Desktop.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
index 37c4a5d595de..6d9dce54e23c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/DesktopProperties.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.CoreUtils;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for Desktop properties. */
@Fluent
public final class DesktopProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(DesktopProperties.class);
-
/*
* ObjectId of Desktop. (internal use)
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
index 210672b680f9..599dfbe2604f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageInner.java
@@ -6,10 +6,8 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -17,8 +15,6 @@
/** Represents the definition of contents retrieved after expanding the MSIX Image. */
@Fluent
public final class ExpandMsixImageInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExpandMsixImageInner.class);
-
/*
* Detailed properties for ExpandMsixImage
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
index 69861f952dc2..0c724762e5f6 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ExpandMsixImageProperties.java
@@ -5,10 +5,8 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -16,8 +14,6 @@
/** Schema for Expand MSIX Image properties. */
@Fluent
public final class ExpandMsixImageProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExpandMsixImageProperties.class);
-
/*
* Alias of MSIX Package.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
index 3f8dc2ad0f1e..e90618a421ca 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolInner.java
@@ -7,18 +7,19 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.HostpoolPublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -26,8 +27,6 @@
/** Represents a HostPool definition. */
@Fluent
public final class HostPoolInner extends ResourceModelWithAllowedPropertySet {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(HostPoolInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -559,7 +558,7 @@ public Boolean cloudPcResource() {
*
* @return the publicNetworkAccess value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
+ public HostpoolPublicNetworkAccess publicNetworkAccess() {
return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
@@ -570,7 +569,7 @@ public PublicNetworkAccess publicNetworkAccess() {
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the HostPoolInner object itself.
*/
- public HostPoolInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public HostPoolInner withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess) {
if (this.innerProperties() == null) {
this.innerProperties = new HostPoolPropertiesInner();
}
@@ -578,6 +577,41 @@ public HostPoolInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAc
return this;
}
+ /**
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @return the agentUpdate value.
+ */
+ public AgentUpdateProperties agentUpdate() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentUpdate();
+ }
+
+ /**
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @param agentUpdate the agentUpdate value to set.
+ * @return the HostPoolInner object itself.
+ */
+ public HostPoolInner withAgentUpdate(AgentUpdateProperties agentUpdate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HostPoolPropertiesInner();
+ }
+ this.innerProperties().withAgentUpdate(agentUpdate);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
/**
* Validates the instance.
*
@@ -587,11 +621,13 @@ public HostPoolInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAc
public void validate() {
super.validate();
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model HostPoolInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(HostPoolInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
index 6671be6b659d..fd9f39738262 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPatchProperties.java
@@ -5,21 +5,18 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdatePatchProperties;
+import com.azure.resourcemanager.desktopvirtualization.models.HostpoolPublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationInfoPatch;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties of HostPool. */
@Fluent
public final class HostPoolPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(HostPoolPatchProperties.class);
-
/*
* Friendly name of HostPool.
*/
@@ -123,7 +120,14 @@ public final class HostPoolPatchProperties {
* Enabled to allow this resource to be access from the public network
*/
@JsonProperty(value = "publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ private HostpoolPublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * The session host configuration for updating agent, monitoring agent, and
+ * stack component.
+ */
+ @JsonProperty(value = "agentUpdate")
+ private AgentUpdatePatchProperties agentUpdate;
/**
* Get the friendlyName property: Friendly name of HostPool.
@@ -455,7 +459,7 @@ public HostPoolPatchProperties withStartVMOnConnect(Boolean startVMOnConnect) {
*
* @return the publicNetworkAccess value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
+ public HostpoolPublicNetworkAccess publicNetworkAccess() {
return this.publicNetworkAccess;
}
@@ -465,11 +469,33 @@ public PublicNetworkAccess publicNetworkAccess() {
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the HostPoolPatchProperties object itself.
*/
- public HostPoolPatchProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public HostPoolPatchProperties withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
+ /**
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @return the agentUpdate value.
+ */
+ public AgentUpdatePatchProperties agentUpdate() {
+ return this.agentUpdate;
+ }
+
+ /**
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @param agentUpdate the agentUpdate value to set.
+ * @return the HostPoolPatchProperties object itself.
+ */
+ public HostPoolPatchProperties withAgentUpdate(AgentUpdatePatchProperties agentUpdate) {
+ this.agentUpdate = agentUpdate;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -479,5 +505,8 @@ public void validate() {
if (registrationInfo() != null) {
registrationInfo().validate();
}
+ if (agentUpdate() != null) {
+ agentUpdate().validate();
+ }
}
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
index 11c110ab2c16..9950c279ac43 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/HostPoolPropertiesInner.java
@@ -6,22 +6,21 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.AgentUpdateProperties;
import com.azure.resourcemanager.desktopvirtualization.models.HostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.HostpoolPublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.LoadBalancerType;
import com.azure.resourcemanager.desktopvirtualization.models.MigrationRequestProperties;
import com.azure.resourcemanager.desktopvirtualization.models.PersonalDesktopAssignmentType;
import com.azure.resourcemanager.desktopvirtualization.models.PreferredAppGroupType;
-import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.SsoSecretType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties of HostPool. */
@Fluent
public final class HostPoolPropertiesInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(HostPoolPropertiesInner.class);
-
/*
* ObjectId of HostPool. (internal use)
*/
@@ -157,7 +156,21 @@ public final class HostPoolPropertiesInner {
* endpoints
*/
@JsonProperty(value = "publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ private HostpoolPublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * The session host configuration for updating agent, monitoring agent, and
+ * stack component.
+ */
+ @JsonProperty(value = "agentUpdate")
+ private AgentUpdateProperties agentUpdate;
+
+ /*
+ * List of private endpoint connection associated with the specified
+ * resource
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
/**
* Get the objectId property: ObjectId of HostPool. (internal use).
@@ -557,7 +570,7 @@ public Boolean cloudPcResource() {
*
* @return the publicNetworkAccess value.
*/
- public PublicNetworkAccess publicNetworkAccess() {
+ public HostpoolPublicNetworkAccess publicNetworkAccess() {
return this.publicNetworkAccess;
}
@@ -568,11 +581,43 @@ public PublicNetworkAccess publicNetworkAccess() {
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the HostPoolPropertiesInner object itself.
*/
- public HostPoolPropertiesInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ public HostPoolPropertiesInner withPublicNetworkAccess(HostpoolPublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
+ /**
+ * Get the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @return the agentUpdate value.
+ */
+ public AgentUpdateProperties agentUpdate() {
+ return this.agentUpdate;
+ }
+
+ /**
+ * Set the agentUpdate property: The session host configuration for updating agent, monitoring agent, and stack
+ * component.
+ *
+ * @param agentUpdate the agentUpdate value to set.
+ * @return the HostPoolPropertiesInner object itself.
+ */
+ public HostPoolPropertiesInner withAgentUpdate(AgentUpdateProperties agentUpdate) {
+ this.agentUpdate = agentUpdate;
+ return this;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/**
* Validates the instance.
*
@@ -580,13 +625,13 @@ public HostPoolPropertiesInner withPublicNetworkAccess(PublicNetworkAccess publi
*/
public void validate() {
if (hostPoolType() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property hostPoolType in model HostPoolPropertiesInner"));
}
if (loadBalancerType() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property loadBalancerType in model HostPoolPropertiesInner"));
@@ -595,7 +640,7 @@ public void validate() {
registrationInfo().validate();
}
if (preferredAppGroupType() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property preferredAppGroupType in model HostPoolPropertiesInner"));
@@ -603,5 +648,13 @@ public void validate() {
if (migrationRequest() != null) {
migrationRequest().validate();
}
+ if (agentUpdate() != null) {
+ agentUpdate().validate();
+ }
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(HostPoolPropertiesInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
index d3cc76c530de..9a21fb0061b1 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageInner.java
@@ -10,7 +10,6 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -18,8 +17,6 @@
/** Schema for MSIX Package properties. */
@Fluent
public final class MsixPackageInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MsixPackageInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -312,7 +309,7 @@ public MsixPackageInner withPackageApplications(List pa
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model MsixPackageInner"));
@@ -320,4 +317,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(MsixPackageInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
index 405b69734764..ee54e37107d2 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackagePatchProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** MSIX Package properties that can be patched. */
@Fluent
public final class MsixPackagePatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MsixPackagePatchProperties.class);
-
/*
* Set a version of the package to be active across hostpool.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
index a5c83ce848f0..ded353ee097c 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/MsixPackageProperties.java
@@ -5,10 +5,8 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageApplications;
import com.azure.resourcemanager.desktopvirtualization.models.MsixPackageDependencies;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -16,8 +14,6 @@
/** Schema for MSIX Package properties. */
@Fluent
public final class MsixPackageProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MsixPackageProperties.class);
-
/*
* VHD/CIM image path on Network Share.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java
index 6921e2e346b2..cf5e83fe67a8 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionProperties.java
@@ -9,14 +9,11 @@
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpoint;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties of the PrivateEndpointConnectProperties. */
@Fluent
public final class PrivateEndpointConnectionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
/*
* The resource of private end point.
*/
@@ -110,7 +107,7 @@ public void validate() {
privateEndpoint().validate();
}
if (privateLinkServiceConnectionState() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property privateLinkServiceConnectionState in model"
@@ -119,4 +116,6 @@ public void validate() {
privateLinkServiceConnectionState().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java
index 2aaba6148f23..f9e336cc665e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateEndpointConnectionWithSystemDataInner.java
@@ -6,20 +6,15 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpoint;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkServiceConnectionState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The Private Endpoint Connection resource. */
@Fluent
public final class PrivateEndpointConnectionWithSystemDataInner extends PrivateEndpointConnection {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionWithSystemDataInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java
index 995eb0e743ab..439b90260a48 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceInner.java
@@ -6,16 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** A private link resource. */
@Fluent
public final class PrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
-
/*
* Resource properties.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceProperties.java
index 196dd4ce6ac3..ece05fd31c26 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/PrivateLinkResourceProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties of a private link resource. */
@Fluent
public final class PrivateLinkResourceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceProperties.class);
-
/*
* The private link resource group id.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java
index bfbe442a3627..37db6b73c8a4 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/RegistrationInfoInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenOperation;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Represents a RegistrationInfo definition. */
@Fluent
public final class RegistrationInfoInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(RegistrationInfoInner.class);
-
/*
* Expiration time of registration token.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationInner.java
index 931c7ac48e94..e3e61a89f90d 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ResourceProviderOperationInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.OperationProperties;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceProviderOperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Supported operation of this resource provider. */
@Fluent
public final class ResourceProviderOperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceProviderOperationInner.class);
-
/*
* Operation name, in format of {provider}/{resource}/{operation}
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java
index f68e74aeed27..b9675611e769 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanInner.java
@@ -13,8 +13,8 @@
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanType;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -22,8 +22,6 @@
/** ScalingPlan Represents a scaling plan definition. */
@Fluent
public final class ScalingPlanInner extends ResourceModelWithAllowedPropertySet {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScalingPlanInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -33,8 +31,8 @@ public final class ScalingPlanInner extends ResourceModelWithAllowedPropertySet
/*
* Detailed properties for scaling plan.
*/
- @JsonProperty(value = "properties")
- private ScalingPlanProperties innerProperties;
+ @JsonProperty(value = "properties", required = true)
+ private ScalingPlanProperties innerProperties = new ScalingPlanProperties();
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
@@ -204,6 +202,29 @@ public ScalingPlanInner withHostPoolType(ScalingHostPoolType hostPoolType) {
return this;
}
+ /**
+ * Get the scalingPlanType property: ScalingPlan type for HostPools and ScalingPlanSchedules.
+ *
+ * @return the scalingPlanType value.
+ */
+ public ScalingPlanType scalingPlanType() {
+ return this.innerProperties() == null ? null : this.innerProperties().scalingPlanType();
+ }
+
+ /**
+ * Set the scalingPlanType property: ScalingPlan type for HostPools and ScalingPlanSchedules.
+ *
+ * @param scalingPlanType the scalingPlanType value to set.
+ * @return the ScalingPlanInner object itself.
+ */
+ public ScalingPlanInner withScalingPlanType(ScalingPlanType scalingPlanType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanProperties();
+ }
+ this.innerProperties().withScalingPlanType(scalingPlanType);
+ return this;
+ }
+
/**
* Get the exclusionTag property: Exclusion tag for scaling plan.
*
@@ -228,7 +249,7 @@ public ScalingPlanInner withExclusionTag(String exclusionTag) {
}
/**
- * Get the schedules property: List of ScalingSchedule definitions.
+ * Get the schedules property: List of ScalingPlanPooledSchedule definitions.
*
* @return the schedules value.
*/
@@ -237,7 +258,7 @@ public List schedules() {
}
/**
- * Set the schedules property: List of ScalingSchedule definitions.
+ * Set the schedules property: List of ScalingPlanPooledSchedule definitions.
*
* @param schedules the schedules value to set.
* @return the ScalingPlanInner object itself.
@@ -281,8 +302,15 @@ public ScalingPlanInner withHostPoolReferences(List ho
@Override
public void validate() {
super.validate();
- if (innerProperties() != null) {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model ScalingPlanInner"));
+ } else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScalingPlanInner.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPatchProperties.java
index 6baa72683dea..a29a142e8755 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPatchProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Scaling plan properties. */
@Fluent
public final class ScalingPlanPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScalingPlanPatchProperties.class);
-
/*
* Description of scaling plan.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleInner.java
new file mode 100644
index 000000000000..24b925382b2b
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleInner.java
@@ -0,0 +1,464 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePropertiesDaysOfWeekItem;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
+import com.azure.resourcemanager.desktopvirtualization.models.StopHostsWhen;
+import com.azure.resourcemanager.desktopvirtualization.models.Time;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Represents a ScalingPlanPooledSchedule definition. */
+@Fluent
+public final class ScalingPlanPooledScheduleInner extends ProxyResource {
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Detailed properties for ScalingPlanPooledSchedule
+ */
+ @JsonProperty(value = "properties", required = true)
+ private ScalingPlanPooledScheduleProperties innerProperties = new ScalingPlanPooledScheduleProperties();
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Detailed properties for ScalingPlanPooledSchedule.
+ *
+ * @return the innerProperties value.
+ */
+ private ScalingPlanPooledScheduleProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the daysOfWeek property: Set of days of the week on which this schedule is active.
+ *
+ * @return the daysOfWeek value.
+ */
+ public List daysOfWeek() {
+ return this.innerProperties() == null ? null : this.innerProperties().daysOfWeek();
+ }
+
+ /**
+ * Set the daysOfWeek property: Set of days of the week on which this schedule is active.
+ *
+ * @param daysOfWeek the daysOfWeek value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withDaysOfWeek(
+ List daysOfWeek) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withDaysOfWeek(daysOfWeek);
+ return this;
+ }
+
+ /**
+ * Get the rampUpStartTime property: Starting time for ramp up period.
+ *
+ * @return the rampUpStartTime value.
+ */
+ public Time rampUpStartTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampUpStartTime();
+ }
+
+ /**
+ * Set the rampUpStartTime property: Starting time for ramp up period.
+ *
+ * @param rampUpStartTime the rampUpStartTime value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampUpStartTime(Time rampUpStartTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampUpStartTime(rampUpStartTime);
+ return this;
+ }
+
+ /**
+ * Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.
+ *
+ * @return the rampUpLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampUpLoadBalancingAlgorithm();
+ }
+
+ /**
+ * Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.
+ *
+ * @param rampUpLoadBalancingAlgorithm the rampUpLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampUpLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampUpLoadBalancingAlgorithm(rampUpLoadBalancingAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.
+ *
+ * @return the rampUpMinimumHostsPct value.
+ */
+ public Integer rampUpMinimumHostsPct() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampUpMinimumHostsPct();
+ }
+
+ /**
+ * Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.
+ *
+ * @param rampUpMinimumHostsPct the rampUpMinimumHostsPct value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampUpMinimumHostsPct(rampUpMinimumHostsPct);
+ return this;
+ }
+
+ /**
+ * Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.
+ *
+ * @return the rampUpCapacityThresholdPct value.
+ */
+ public Integer rampUpCapacityThresholdPct() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampUpCapacityThresholdPct();
+ }
+
+ /**
+ * Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.
+ *
+ * @param rampUpCapacityThresholdPct the rampUpCapacityThresholdPct value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampUpCapacityThresholdPct(rampUpCapacityThresholdPct);
+ return this;
+ }
+
+ /**
+ * Get the peakStartTime property: Starting time for peak period.
+ *
+ * @return the peakStartTime value.
+ */
+ public Time peakStartTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().peakStartTime();
+ }
+
+ /**
+ * Set the peakStartTime property: Starting time for peak period.
+ *
+ * @param peakStartTime the peakStartTime value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withPeakStartTime(Time peakStartTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withPeakStartTime(peakStartTime);
+ return this;
+ }
+
+ /**
+ * Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.
+ *
+ * @return the peakLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().peakLoadBalancingAlgorithm();
+ }
+
+ /**
+ * Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.
+ *
+ * @param peakLoadBalancingAlgorithm the peakLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withPeakLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withPeakLoadBalancingAlgorithm(peakLoadBalancingAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the rampDownStartTime property: Starting time for ramp down period.
+ *
+ * @return the rampDownStartTime value.
+ */
+ public Time rampDownStartTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownStartTime();
+ }
+
+ /**
+ * Set the rampDownStartTime property: Starting time for ramp down period.
+ *
+ * @param rampDownStartTime the rampDownStartTime value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownStartTime(Time rampDownStartTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownStartTime(rampDownStartTime);
+ return this;
+ }
+
+ /**
+ * Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.
+ *
+ * @return the rampDownLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownLoadBalancingAlgorithm();
+ }
+
+ /**
+ * Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.
+ *
+ * @param rampDownLoadBalancingAlgorithm the rampDownLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownLoadBalancingAlgorithm(rampDownLoadBalancingAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.
+ *
+ * @return the rampDownMinimumHostsPct value.
+ */
+ public Integer rampDownMinimumHostsPct() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownMinimumHostsPct();
+ }
+
+ /**
+ * Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.
+ *
+ * @param rampDownMinimumHostsPct the rampDownMinimumHostsPct value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownMinimumHostsPct(rampDownMinimumHostsPct);
+ return this;
+ }
+
+ /**
+ * Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.
+ *
+ * @return the rampDownCapacityThresholdPct value.
+ */
+ public Integer rampDownCapacityThresholdPct() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownCapacityThresholdPct();
+ }
+
+ /**
+ * Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.
+ *
+ * @param rampDownCapacityThresholdPct the rampDownCapacityThresholdPct value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownCapacityThresholdPct(rampDownCapacityThresholdPct);
+ return this;
+ }
+
+ /**
+ * Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.
+ *
+ * @return the rampDownForceLogoffUsers value.
+ */
+ public Boolean rampDownForceLogoffUsers() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownForceLogoffUsers();
+ }
+
+ /**
+ * Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.
+ *
+ * @param rampDownForceLogoffUsers the rampDownForceLogoffUsers value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownForceLogoffUsers(rampDownForceLogoffUsers);
+ return this;
+ }
+
+ /**
+ * Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.
+ *
+ * @return the rampDownStopHostsWhen value.
+ */
+ public StopHostsWhen rampDownStopHostsWhen() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownStopHostsWhen();
+ }
+
+ /**
+ * Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.
+ *
+ * @param rampDownStopHostsWhen the rampDownStopHostsWhen value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownStopHostsWhen(rampDownStopHostsWhen);
+ return this;
+ }
+
+ /**
+ * Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.
+ *
+ * @return the rampDownWaitTimeMinutes value.
+ */
+ public Integer rampDownWaitTimeMinutes() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownWaitTimeMinutes();
+ }
+
+ /**
+ * Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.
+ *
+ * @param rampDownWaitTimeMinutes the rampDownWaitTimeMinutes value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownWaitTimeMinutes(rampDownWaitTimeMinutes);
+ return this;
+ }
+
+ /**
+ * Get the rampDownNotificationMessage property: Notification message for users during ramp down period.
+ *
+ * @return the rampDownNotificationMessage value.
+ */
+ public String rampDownNotificationMessage() {
+ return this.innerProperties() == null ? null : this.innerProperties().rampDownNotificationMessage();
+ }
+
+ /**
+ * Set the rampDownNotificationMessage property: Notification message for users during ramp down period.
+ *
+ * @param rampDownNotificationMessage the rampDownNotificationMessage value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withRampDownNotificationMessage(String rampDownNotificationMessage) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withRampDownNotificationMessage(rampDownNotificationMessage);
+ return this;
+ }
+
+ /**
+ * Get the offPeakStartTime property: Starting time for off-peak period.
+ *
+ * @return the offPeakStartTime value.
+ */
+ public Time offPeakStartTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().offPeakStartTime();
+ }
+
+ /**
+ * Set the offPeakStartTime property: Starting time for off-peak period.
+ *
+ * @param offPeakStartTime the offPeakStartTime value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withOffPeakStartTime(Time offPeakStartTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withOffPeakStartTime(offPeakStartTime);
+ return this;
+ }
+
+ /**
+ * Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.
+ *
+ * @return the offPeakLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().offPeakLoadBalancingAlgorithm();
+ }
+
+ /**
+ * Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.
+ *
+ * @param offPeakLoadBalancingAlgorithm the offPeakLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleInner object itself.
+ */
+ public ScalingPlanPooledScheduleInner withOffPeakLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ScalingPlanPooledScheduleProperties();
+ }
+ this.innerProperties().withOffPeakLoadBalancingAlgorithm(offPeakLoadBalancingAlgorithm);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model ScalingPlanPooledScheduleInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScalingPlanPooledScheduleInner.class);
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleProperties.java
new file mode 100644
index 000000000000..1644d1dfa88c
--- /dev/null
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanPooledScheduleProperties.java
@@ -0,0 +1,484 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.desktopvirtualization.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanPooledSchedulePropertiesDaysOfWeekItem;
+import com.azure.resourcemanager.desktopvirtualization.models.SessionHostLoadBalancingAlgorithm;
+import com.azure.resourcemanager.desktopvirtualization.models.StopHostsWhen;
+import com.azure.resourcemanager.desktopvirtualization.models.Time;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A ScalingPlanPooledSchedule. */
+@Fluent
+public class ScalingPlanPooledScheduleProperties {
+ /*
+ * Set of days of the week on which this schedule is active.
+ */
+ @JsonProperty(value = "daysOfWeek")
+ private List daysOfWeek;
+
+ /*
+ * Starting time for ramp up period.
+ */
+ @JsonProperty(value = "rampUpStartTime")
+ private Time rampUpStartTime;
+
+ /*
+ * Load balancing algorithm for ramp up period.
+ */
+ @JsonProperty(value = "rampUpLoadBalancingAlgorithm")
+ private SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm;
+
+ /*
+ * Minimum host percentage for ramp up period.
+ */
+ @JsonProperty(value = "rampUpMinimumHostsPct")
+ private Integer rampUpMinimumHostsPct;
+
+ /*
+ * Capacity threshold for ramp up period.
+ */
+ @JsonProperty(value = "rampUpCapacityThresholdPct")
+ private Integer rampUpCapacityThresholdPct;
+
+ /*
+ * Starting time for peak period.
+ */
+ @JsonProperty(value = "peakStartTime")
+ private Time peakStartTime;
+
+ /*
+ * Load balancing algorithm for peak period.
+ */
+ @JsonProperty(value = "peakLoadBalancingAlgorithm")
+ private SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm;
+
+ /*
+ * Starting time for ramp down period.
+ */
+ @JsonProperty(value = "rampDownStartTime")
+ private Time rampDownStartTime;
+
+ /*
+ * Load balancing algorithm for ramp down period.
+ */
+ @JsonProperty(value = "rampDownLoadBalancingAlgorithm")
+ private SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm;
+
+ /*
+ * Minimum host percentage for ramp down period.
+ */
+ @JsonProperty(value = "rampDownMinimumHostsPct")
+ private Integer rampDownMinimumHostsPct;
+
+ /*
+ * Capacity threshold for ramp down period.
+ */
+ @JsonProperty(value = "rampDownCapacityThresholdPct")
+ private Integer rampDownCapacityThresholdPct;
+
+ /*
+ * Should users be logged off forcefully from hosts.
+ */
+ @JsonProperty(value = "rampDownForceLogoffUsers")
+ private Boolean rampDownForceLogoffUsers;
+
+ /*
+ * Specifies when to stop hosts during ramp down period.
+ */
+ @JsonProperty(value = "rampDownStopHostsWhen")
+ private StopHostsWhen rampDownStopHostsWhen;
+
+ /*
+ * Number of minutes to wait to stop hosts during ramp down period.
+ */
+ @JsonProperty(value = "rampDownWaitTimeMinutes")
+ private Integer rampDownWaitTimeMinutes;
+
+ /*
+ * Notification message for users during ramp down period.
+ */
+ @JsonProperty(value = "rampDownNotificationMessage")
+ private String rampDownNotificationMessage;
+
+ /*
+ * Starting time for off-peak period.
+ */
+ @JsonProperty(value = "offPeakStartTime")
+ private Time offPeakStartTime;
+
+ /*
+ * Load balancing algorithm for off-peak period.
+ */
+ @JsonProperty(value = "offPeakLoadBalancingAlgorithm")
+ private SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm;
+
+ /**
+ * Get the daysOfWeek property: Set of days of the week on which this schedule is active.
+ *
+ * @return the daysOfWeek value.
+ */
+ public List daysOfWeek() {
+ return this.daysOfWeek;
+ }
+
+ /**
+ * Set the daysOfWeek property: Set of days of the week on which this schedule is active.
+ *
+ * @param daysOfWeek the daysOfWeek value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withDaysOfWeek(
+ List daysOfWeek) {
+ this.daysOfWeek = daysOfWeek;
+ return this;
+ }
+
+ /**
+ * Get the rampUpStartTime property: Starting time for ramp up period.
+ *
+ * @return the rampUpStartTime value.
+ */
+ public Time rampUpStartTime() {
+ return this.rampUpStartTime;
+ }
+
+ /**
+ * Set the rampUpStartTime property: Starting time for ramp up period.
+ *
+ * @param rampUpStartTime the rampUpStartTime value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampUpStartTime(Time rampUpStartTime) {
+ this.rampUpStartTime = rampUpStartTime;
+ return this;
+ }
+
+ /**
+ * Get the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.
+ *
+ * @return the rampUpLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm() {
+ return this.rampUpLoadBalancingAlgorithm;
+ }
+
+ /**
+ * Set the rampUpLoadBalancingAlgorithm property: Load balancing algorithm for ramp up period.
+ *
+ * @param rampUpLoadBalancingAlgorithm the rampUpLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampUpLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm rampUpLoadBalancingAlgorithm) {
+ this.rampUpLoadBalancingAlgorithm = rampUpLoadBalancingAlgorithm;
+ return this;
+ }
+
+ /**
+ * Get the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.
+ *
+ * @return the rampUpMinimumHostsPct value.
+ */
+ public Integer rampUpMinimumHostsPct() {
+ return this.rampUpMinimumHostsPct;
+ }
+
+ /**
+ * Set the rampUpMinimumHostsPct property: Minimum host percentage for ramp up period.
+ *
+ * @param rampUpMinimumHostsPct the rampUpMinimumHostsPct value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampUpMinimumHostsPct(Integer rampUpMinimumHostsPct) {
+ this.rampUpMinimumHostsPct = rampUpMinimumHostsPct;
+ return this;
+ }
+
+ /**
+ * Get the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.
+ *
+ * @return the rampUpCapacityThresholdPct value.
+ */
+ public Integer rampUpCapacityThresholdPct() {
+ return this.rampUpCapacityThresholdPct;
+ }
+
+ /**
+ * Set the rampUpCapacityThresholdPct property: Capacity threshold for ramp up period.
+ *
+ * @param rampUpCapacityThresholdPct the rampUpCapacityThresholdPct value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampUpCapacityThresholdPct(Integer rampUpCapacityThresholdPct) {
+ this.rampUpCapacityThresholdPct = rampUpCapacityThresholdPct;
+ return this;
+ }
+
+ /**
+ * Get the peakStartTime property: Starting time for peak period.
+ *
+ * @return the peakStartTime value.
+ */
+ public Time peakStartTime() {
+ return this.peakStartTime;
+ }
+
+ /**
+ * Set the peakStartTime property: Starting time for peak period.
+ *
+ * @param peakStartTime the peakStartTime value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withPeakStartTime(Time peakStartTime) {
+ this.peakStartTime = peakStartTime;
+ return this;
+ }
+
+ /**
+ * Get the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.
+ *
+ * @return the peakLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm() {
+ return this.peakLoadBalancingAlgorithm;
+ }
+
+ /**
+ * Set the peakLoadBalancingAlgorithm property: Load balancing algorithm for peak period.
+ *
+ * @param peakLoadBalancingAlgorithm the peakLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withPeakLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm peakLoadBalancingAlgorithm) {
+ this.peakLoadBalancingAlgorithm = peakLoadBalancingAlgorithm;
+ return this;
+ }
+
+ /**
+ * Get the rampDownStartTime property: Starting time for ramp down period.
+ *
+ * @return the rampDownStartTime value.
+ */
+ public Time rampDownStartTime() {
+ return this.rampDownStartTime;
+ }
+
+ /**
+ * Set the rampDownStartTime property: Starting time for ramp down period.
+ *
+ * @param rampDownStartTime the rampDownStartTime value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownStartTime(Time rampDownStartTime) {
+ this.rampDownStartTime = rampDownStartTime;
+ return this;
+ }
+
+ /**
+ * Get the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.
+ *
+ * @return the rampDownLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm() {
+ return this.rampDownLoadBalancingAlgorithm;
+ }
+
+ /**
+ * Set the rampDownLoadBalancingAlgorithm property: Load balancing algorithm for ramp down period.
+ *
+ * @param rampDownLoadBalancingAlgorithm the rampDownLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm rampDownLoadBalancingAlgorithm) {
+ this.rampDownLoadBalancingAlgorithm = rampDownLoadBalancingAlgorithm;
+ return this;
+ }
+
+ /**
+ * Get the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.
+ *
+ * @return the rampDownMinimumHostsPct value.
+ */
+ public Integer rampDownMinimumHostsPct() {
+ return this.rampDownMinimumHostsPct;
+ }
+
+ /**
+ * Set the rampDownMinimumHostsPct property: Minimum host percentage for ramp down period.
+ *
+ * @param rampDownMinimumHostsPct the rampDownMinimumHostsPct value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownMinimumHostsPct(Integer rampDownMinimumHostsPct) {
+ this.rampDownMinimumHostsPct = rampDownMinimumHostsPct;
+ return this;
+ }
+
+ /**
+ * Get the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.
+ *
+ * @return the rampDownCapacityThresholdPct value.
+ */
+ public Integer rampDownCapacityThresholdPct() {
+ return this.rampDownCapacityThresholdPct;
+ }
+
+ /**
+ * Set the rampDownCapacityThresholdPct property: Capacity threshold for ramp down period.
+ *
+ * @param rampDownCapacityThresholdPct the rampDownCapacityThresholdPct value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownCapacityThresholdPct(Integer rampDownCapacityThresholdPct) {
+ this.rampDownCapacityThresholdPct = rampDownCapacityThresholdPct;
+ return this;
+ }
+
+ /**
+ * Get the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.
+ *
+ * @return the rampDownForceLogoffUsers value.
+ */
+ public Boolean rampDownForceLogoffUsers() {
+ return this.rampDownForceLogoffUsers;
+ }
+
+ /**
+ * Set the rampDownForceLogoffUsers property: Should users be logged off forcefully from hosts.
+ *
+ * @param rampDownForceLogoffUsers the rampDownForceLogoffUsers value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownForceLogoffUsers(Boolean rampDownForceLogoffUsers) {
+ this.rampDownForceLogoffUsers = rampDownForceLogoffUsers;
+ return this;
+ }
+
+ /**
+ * Get the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.
+ *
+ * @return the rampDownStopHostsWhen value.
+ */
+ public StopHostsWhen rampDownStopHostsWhen() {
+ return this.rampDownStopHostsWhen;
+ }
+
+ /**
+ * Set the rampDownStopHostsWhen property: Specifies when to stop hosts during ramp down period.
+ *
+ * @param rampDownStopHostsWhen the rampDownStopHostsWhen value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownStopHostsWhen(StopHostsWhen rampDownStopHostsWhen) {
+ this.rampDownStopHostsWhen = rampDownStopHostsWhen;
+ return this;
+ }
+
+ /**
+ * Get the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.
+ *
+ * @return the rampDownWaitTimeMinutes value.
+ */
+ public Integer rampDownWaitTimeMinutes() {
+ return this.rampDownWaitTimeMinutes;
+ }
+
+ /**
+ * Set the rampDownWaitTimeMinutes property: Number of minutes to wait to stop hosts during ramp down period.
+ *
+ * @param rampDownWaitTimeMinutes the rampDownWaitTimeMinutes value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownWaitTimeMinutes(Integer rampDownWaitTimeMinutes) {
+ this.rampDownWaitTimeMinutes = rampDownWaitTimeMinutes;
+ return this;
+ }
+
+ /**
+ * Get the rampDownNotificationMessage property: Notification message for users during ramp down period.
+ *
+ * @return the rampDownNotificationMessage value.
+ */
+ public String rampDownNotificationMessage() {
+ return this.rampDownNotificationMessage;
+ }
+
+ /**
+ * Set the rampDownNotificationMessage property: Notification message for users during ramp down period.
+ *
+ * @param rampDownNotificationMessage the rampDownNotificationMessage value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withRampDownNotificationMessage(String rampDownNotificationMessage) {
+ this.rampDownNotificationMessage = rampDownNotificationMessage;
+ return this;
+ }
+
+ /**
+ * Get the offPeakStartTime property: Starting time for off-peak period.
+ *
+ * @return the offPeakStartTime value.
+ */
+ public Time offPeakStartTime() {
+ return this.offPeakStartTime;
+ }
+
+ /**
+ * Set the offPeakStartTime property: Starting time for off-peak period.
+ *
+ * @param offPeakStartTime the offPeakStartTime value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withOffPeakStartTime(Time offPeakStartTime) {
+ this.offPeakStartTime = offPeakStartTime;
+ return this;
+ }
+
+ /**
+ * Get the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.
+ *
+ * @return the offPeakLoadBalancingAlgorithm value.
+ */
+ public SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm() {
+ return this.offPeakLoadBalancingAlgorithm;
+ }
+
+ /**
+ * Set the offPeakLoadBalancingAlgorithm property: Load balancing algorithm for off-peak period.
+ *
+ * @param offPeakLoadBalancingAlgorithm the offPeakLoadBalancingAlgorithm value to set.
+ * @return the ScalingPlanPooledScheduleProperties object itself.
+ */
+ public ScalingPlanPooledScheduleProperties withOffPeakLoadBalancingAlgorithm(
+ SessionHostLoadBalancingAlgorithm offPeakLoadBalancingAlgorithm) {
+ this.offPeakLoadBalancingAlgorithm = offPeakLoadBalancingAlgorithm;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (rampUpStartTime() != null) {
+ rampUpStartTime().validate();
+ }
+ if (peakStartTime() != null) {
+ peakStartTime().validate();
+ }
+ if (rampDownStartTime() != null) {
+ rampDownStartTime().validate();
+ }
+ if (offPeakStartTime() != null) {
+ offPeakStartTime().validate();
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanProperties.java
index e3ec813bd08c..a571a5d29981 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/ScalingPlanProperties.java
@@ -8,16 +8,14 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolReference;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingHostPoolType;
+import com.azure.resourcemanager.desktopvirtualization.models.ScalingPlanType;
import com.azure.resourcemanager.desktopvirtualization.models.ScalingSchedule;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Scaling plan properties. */
@Fluent
public final class ScalingPlanProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScalingPlanProperties.class);
-
/*
* ObjectId of scaling plan. (internal use)
*/
@@ -39,7 +37,7 @@ public final class ScalingPlanProperties {
/*
* Timezone of the scaling plan.
*/
- @JsonProperty(value = "timeZone")
+ @JsonProperty(value = "timeZone", required = true)
private String timeZone;
/*
@@ -48,6 +46,12 @@ public final class ScalingPlanProperties {
@JsonProperty(value = "hostPoolType")
private ScalingHostPoolType hostPoolType;
+ /*
+ * ScalingPlan type for HostPools and ScalingPlanSchedules.
+ */
+ @JsonProperty(value = "scalingPlanType")
+ private ScalingPlanType scalingPlanType;
+
/*
* Exclusion tag for scaling plan.
*/
@@ -55,7 +59,7 @@ public final class ScalingPlanProperties {
private String exclusionTag;
/*
- * List of ScalingSchedule definitions.
+ * List of ScalingPlanPooledSchedule definitions.
*/
@JsonProperty(value = "schedules")
private List schedules;
@@ -155,6 +159,26 @@ public ScalingPlanProperties withHostPoolType(ScalingHostPoolType hostPoolType)
return this;
}
+ /**
+ * Get the scalingPlanType property: ScalingPlan type for HostPools and ScalingPlanSchedules.
+ *
+ * @return the scalingPlanType value.
+ */
+ public ScalingPlanType scalingPlanType() {
+ return this.scalingPlanType;
+ }
+
+ /**
+ * Set the scalingPlanType property: ScalingPlan type for HostPools and ScalingPlanSchedules.
+ *
+ * @param scalingPlanType the scalingPlanType value to set.
+ * @return the ScalingPlanProperties object itself.
+ */
+ public ScalingPlanProperties withScalingPlanType(ScalingPlanType scalingPlanType) {
+ this.scalingPlanType = scalingPlanType;
+ return this;
+ }
+
/**
* Get the exclusionTag property: Exclusion tag for scaling plan.
*
@@ -176,7 +200,7 @@ public ScalingPlanProperties withExclusionTag(String exclusionTag) {
}
/**
- * Get the schedules property: List of ScalingSchedule definitions.
+ * Get the schedules property: List of ScalingPlanPooledSchedule definitions.
*
* @return the schedules value.
*/
@@ -185,7 +209,7 @@ public List schedules() {
}
/**
- * Set the schedules property: List of ScalingSchedule definitions.
+ * Set the schedules property: List of ScalingPlanPooledSchedule definitions.
*
* @param schedules the schedules value to set.
* @return the ScalingPlanProperties object itself.
@@ -221,6 +245,11 @@ public ScalingPlanProperties withHostPoolReferences(List e.validate());
}
@@ -228,4 +257,6 @@ public void validate() {
hostPoolReferences().forEach(e -> e.validate());
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScalingPlanProperties.class);
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java
index 5e4cc7c68d74..48b16c5d0d74 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostInner.java
@@ -7,11 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostHealthCheckReport;
import com.azure.resourcemanager.desktopvirtualization.models.Status;
import com.azure.resourcemanager.desktopvirtualization.models.UpdateState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -19,8 +17,6 @@
/** Represents a SessionHost definition. */
@Fluent
public final class SessionHostInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SessionHostInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -193,6 +189,29 @@ public SessionHostInner withAssignedUser(String assignedUser) {
return this;
}
+ /**
+ * Get the friendlyName property: Friendly name of SessionHost.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of SessionHost.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the SessionHostInner object itself.
+ */
+ public SessionHostInner withFriendlyName(String friendlyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new SessionHostProperties();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
+ return this;
+ }
+
/**
* Get the status property: Status for a SessionHost.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostPatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostPatchProperties.java
index 74058eb3162d..dfeb645ba5c3 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostPatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostPatchProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** SessionHost properties that can be patched. */
@Fluent
public final class SessionHostPatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SessionHostPatchProperties.class);
-
/*
* Allow a new session.
*/
@@ -26,6 +22,12 @@ public final class SessionHostPatchProperties {
@JsonProperty(value = "assignedUser")
private String assignedUser;
+ /*
+ * Friendly name of SessionHost
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
/**
* Get the allowNewSession property: Allow a new session.
*
@@ -66,6 +68,26 @@ public SessionHostPatchProperties withAssignedUser(String assignedUser) {
return this;
}
+ /**
+ * Get the friendlyName property: Friendly name of SessionHost.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of SessionHost.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the SessionHostPatchProperties object itself.
+ */
+ public SessionHostPatchProperties withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostProperties.java
index cb998c68d5fb..fb0626d4cb15 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/SessionHostProperties.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.SessionHostHealthCheckReport;
import com.azure.resourcemanager.desktopvirtualization.models.Status;
import com.azure.resourcemanager.desktopvirtualization.models.UpdateState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -17,8 +15,6 @@
/** Schema for SessionHost properties. */
@Fluent
public final class SessionHostProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(SessionHostProperties.class);
-
/*
* ObjectId of SessionHost. (internal use)
*/
@@ -67,6 +63,12 @@ public final class SessionHostProperties {
@JsonProperty(value = "assignedUser")
private String assignedUser;
+ /*
+ * Friendly name of SessionHost
+ */
+ @JsonProperty(value = "friendlyName")
+ private String friendlyName;
+
/*
* Status for a SessionHost.
*/
@@ -242,6 +244,26 @@ public SessionHostProperties withAssignedUser(String assignedUser) {
return this;
}
+ /**
+ * Get the friendlyName property: Friendly name of SessionHost.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Set the friendlyName property: Friendly name of SessionHost.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the SessionHostProperties object itself.
+ */
+ public SessionHostProperties withFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ return this;
+ }
+
/**
* Get the status property: Status for a SessionHost.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java
index 31eacf5650c1..07ba23136535 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemInner.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a StartMenuItem definition. */
@Fluent
public final class StartMenuItemInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(StartMenuItemInner.class);
-
/*
* Detailed properties for StartMenuItem
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemProperties.java
index fc0b5384d7e9..f80324dad372 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/StartMenuItemProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Schema for StartMenuItem properties. */
@Fluent
public final class StartMenuItemProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(StartMenuItemProperties.class);
-
/*
* Alias of StartMenuItem.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java
index 44eb986014d9..0f622d805ba7 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionInner.java
@@ -7,18 +7,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationType;
import com.azure.resourcemanager.desktopvirtualization.models.SessionState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Represents a UserSession definition. */
@Fluent
public final class UserSessionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSessionInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionProperties.java
index 124509c11f9e..47d8a58dde27 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/UserSessionProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationType;
import com.azure.resourcemanager.desktopvirtualization.models.SessionState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Schema for UserSession properties. */
@Fluent
public final class UserSessionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserSessionProperties.class);
-
/*
* ObjectId of user session. (internal use)
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java
index 04c44e6440e4..dc542fccbe9b 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceInner.java
@@ -6,13 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan;
import com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -20,8 +19,6 @@
/** Represents a Workspace definition. */
@Fluent
public final class WorkspaceInner extends ResourceModelWithAllowedPropertySet {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceInner.class);
-
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@@ -213,6 +210,16 @@ public WorkspaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkA
return this;
}
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspacePatchProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspacePatchProperties.java
index e2ffbb877107..c428ece14797 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspacePatchProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspacePatchProperties.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Workspace properties that can be patched. */
@Fluent
public final class WorkspacePatchProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspacePatchProperties.class);
-
/*
* Description of Workspace.
*/
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceProperties.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceProperties.java
index 8b2bbaa38df4..35042b8e709b 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceProperties.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/models/WorkspaceProperties.java
@@ -5,17 +5,14 @@
package com.azure.resourcemanager.desktopvirtualization.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PublicNetworkAccess;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Schema for Workspace properties. */
@Fluent
public final class WorkspaceProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceProperties.class);
-
/*
* ObjectId of Workspace. (internal use)
*/
@@ -54,6 +51,13 @@ public final class WorkspaceProperties {
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;
+ /*
+ * List of private endpoint connection associated with the specified
+ * resource
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
/**
* Get the objectId property: ObjectId of Workspace. (internal use).
*
@@ -154,11 +158,24 @@ public WorkspaceProperties withPublicNetworkAccess(PublicNetworkAccess publicNet
return this;
}
+ /**
+ * Get the privateEndpointConnections property: List of private endpoint connection associated with the specified
+ * resource.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java
index f6ac6fbfc226..bdd042bc9f6e 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationGroupsClient;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroupList;
@@ -38,8 +37,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationGroupsClient. */
public final class ApplicationGroupsClientImpl implements ApplicationGroupsClient {
- private final ClientLogger logger = new ClientLogger(ApplicationGroupsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ApplicationGroupsService service;
@@ -182,7 +179,7 @@ Mono> listBySubscriptionNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -232,7 +229,7 @@ private Mono> getByResourceGroupWithResponseAsyn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -278,7 +275,7 @@ private Mono> getByResourceGroupWithResponseAsyn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String applicationGroupName) {
@@ -317,7 +314,7 @@ public ApplicationGroupInner getByResourceGroup(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response getByResourceGroupWithResponse(
@@ -334,7 +331,8 @@ public Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -392,7 +390,8 @@ private Mono> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -449,7 +448,7 @@ private Mono> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createOrUpdateAsync(
@@ -492,7 +491,7 @@ public ApplicationGroupInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response createOrUpdateWithResponse(
@@ -512,7 +511,7 @@ public Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(String resourceGroupName, String applicationGroupName) {
@@ -561,7 +560,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -607,7 +606,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String applicationGroupName) {
@@ -638,7 +637,7 @@ public void delete(String resourceGroupName, String applicationGroupName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(String resourceGroupName, String applicationGroupName, Context context) {
@@ -654,7 +653,8 @@ public Response deleteWithResponse(String resourceGroupName, String applic
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -709,7 +709,8 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link
+ * Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -763,7 +764,7 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -787,7 +788,7 @@ private Mono updateAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String applicationGroupName) {
@@ -829,7 +830,7 @@ public ApplicationGroupInner update(String resourceGroupName, String application
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response updateWithResponse(
@@ -848,7 +849,7 @@ public Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -903,7 +904,7 @@ private Mono> listByResourceGroupSinglePage
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(
@@ -954,7 +955,7 @@ private Mono> listByResourceGroupSinglePage
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter) {
@@ -970,7 +971,7 @@ private PagedFlux listByResourceGroupAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -989,7 +990,7 @@ private PagedFlux listByResourceGroupAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -1006,7 +1007,7 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -1023,7 +1024,7 @@ public PagedIterable listByResourceGroup(String resourceG
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
@@ -1038,7 +1039,7 @@ public PagedIterable listByResourceGroup(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String filter) {
@@ -1086,7 +1087,7 @@ private Mono> listSinglePageAsync(String fi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String filter, Context context) {
@@ -1130,7 +1131,7 @@ private Mono> listSinglePageAsync(String fi
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String filter) {
@@ -1143,7 +1144,7 @@ private PagedFlux listAsync(String filter) {
*
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1160,7 +1161,7 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String filter, Context context) {
@@ -1174,7 +1175,7 @@ private PagedFlux listAsync(String filter, Context contex
*
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1190,7 +1191,7 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String filter, Context context) {
@@ -1204,7 +1205,7 @@ public PagedIterable list(String filter, Context context)
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -1241,7 +1242,7 @@ private Mono> listByResourceGroupNextSingle
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(
@@ -1277,7 +1278,7 @@ private Mono> listByResourceGroupNextSingle
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
@@ -1314,7 +1315,7 @@ private Mono> listBySubscriptionNextSingleP
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return applicationGroupList along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionNextSinglePageAsync(
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java
index 74f7d5553abd..f1565227bcde 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroup;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroups;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ApplicationGroupsImpl implements ApplicationGroups {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGroupsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationGroupsImpl.class);
private final ApplicationGroupsClient innerClient;
@@ -86,7 +85,7 @@ public PagedIterable list(String filter, Context context) {
public ApplicationGroup getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -94,7 +93,7 @@ public ApplicationGroup getById(String id) {
}
String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
if (applicationGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -107,7 +106,7 @@ public ApplicationGroup getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -115,7 +114,7 @@ public Response getByIdWithResponse(String id, Context context
}
String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
if (applicationGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -128,7 +127,7 @@ public Response getByIdWithResponse(String id, Context context
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -136,7 +135,7 @@ public void deleteById(String id) {
}
String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
if (applicationGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -149,7 +148,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -157,7 +156,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String applicationGroupName = Utils.getValueFromIdByName(id, "applicationGroups");
if (applicationGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java
index 2c25c9ecb890..1d87d64e0e9f 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationImpl.java
@@ -259,13 +259,8 @@ public ApplicationImpl withMsixPackageApplicationId(String msixPackageApplicatio
}
public ApplicationImpl withApplicationType(RemoteApplicationType applicationType) {
- if (isInCreateMode()) {
- this.innerModel().withApplicationType(applicationType);
- return this;
- } else {
- this.updateApplication.withApplicationType(applicationType);
- return this;
- }
+ this.innerModel().withApplicationType(applicationType);
+ return this;
}
public ApplicationImpl withCommandLineArguments(String commandLineArguments) {
diff --git a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java
index e079e7b60cd1..cd51a04b8c74 100644
--- a/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java
+++ b/sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationsClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.fluent.ApplicationsClient;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationInner;
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationList;
@@ -38,8 +37,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
public final class ApplicationsClientImpl implements ApplicationsClient {
- private final ClientLogger logger = new ClientLogger(ApplicationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ApplicationsService service;
@@ -169,7 +166,7 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -225,7 +222,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -277,7 +274,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -319,7 +316,7 @@ public ApplicationInner get(String resourceGroupName, String applicationGroupNam
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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)
public Response getWithResponse(
@@ -337,7 +334,7 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -400,7 +397,7 @@ private Mono> createOrUpdateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createOrUpdateWithResponseAsync(
@@ -463,7 +460,7 @@ private Mono