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.
*
@@ -184,9 +213,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;
}
@@ -208,7 +239,7 @@ public LabServicesManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.labservices")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -226,10 +257,15 @@ public LabServicesManager authenticate(TokenCredential credential, AzureProfile
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 Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -23,13 +25,15 @@ public interface ImagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all images from galleries attached to a lab plan.
+ * @return all images from galleries attached to a lab plan as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -39,14 +43,16 @@ public interface ImagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all images from galleries attached to a lab plan.
+ * @return all images from galleries attached to a lab plan as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Gets an image resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -61,7 +67,9 @@ PagedIterable Gets an image resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -78,7 +86,9 @@ Response Updates an image resource via PUT. Creating new resources via PUT will not function.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -94,7 +104,9 @@ Response Updates an image resource via PUT. Creating new resources via PUT will not function.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -112,7 +124,9 @@ Response Updates an image resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -128,7 +142,9 @@ Response Updates an image resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabPlansClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabPlansClient.java
index 885d63019a2a..39c345e8b79d 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabPlansClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabPlansClient.java
@@ -14,60 +14,69 @@
import com.azure.resourcemanager.labservices.fluent.models.LabPlanInner;
import com.azure.resourcemanager.labservices.models.LabPlanUpdate;
import com.azure.resourcemanager.labservices.models.SaveImageBody;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in LabPlansClient. */
public interface LabPlansClient {
/**
- * Returns a list of all lab plans within a subscription.
+ * Get all lab plans for a subscription.
+ *
+ * Returns a list of all lab plans within a subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of lab plans.
+ * @return paged list of lab plans as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all lab plans within a subscription.
*
* @param filter The filter to apply to the operation.
* @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 paged list of lab plans.
+ * @return paged list of lab plans as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all lab plans for a subscription and resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of lab plans.
+ * @return paged list of lab plans as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all lab plans for a subscription and resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 paged list of lab plans.
+ * @return paged list of lab plans as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Retrieves the properties of a Lab Plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -81,7 +90,9 @@ public interface LabPlansClient {
LabPlanInner getByResourceGroup(String resourceGroupName, String labPlanName);
/**
- * Retrieves the properties of a Lab Plan.
+ * Retrieves a Lab Plan resource.
+ *
+ * Retrieves the properties of a Lab Plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -97,7 +108,9 @@ Response Operation to create or update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -106,15 +119,17 @@ Response Operation to create or update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -124,15 +139,17 @@ SyncPoller Operation to create or update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -147,7 +164,9 @@ SyncPoller Operation to create or update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -163,7 +182,9 @@ SyncPoller Operation to update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -172,15 +193,17 @@ SyncPoller Operation to update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -190,15 +213,17 @@ SyncPoller Operation to update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -213,7 +238,9 @@ SyncPoller Operation to update a Lab Plan resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -229,8 +256,10 @@ SyncPoller Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan,
+ * nor does it delete shared images added to a gallery via the lab plan permission container.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -238,14 +267,16 @@ SyncPoller Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan,
+ * nor does it delete shared images added to a gallery via the lab plan permission container.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -254,14 +285,16 @@ SyncPoller Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan,
+ * nor does it delete shared images added to a gallery via the lab plan permission container.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -274,8 +307,10 @@ SyncPoller Operation to delete a Lab Plan resource. Deleting a lab plan does not delete labs associated with a lab plan,
+ * nor does it delete shared images added to a gallery via the lab plan permission container.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -289,7 +324,9 @@ SyncPoller Saves an image from a lab VM to the attached shared image gallery.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -298,13 +335,15 @@ SyncPoller Saves an image from a lab VM to the attached shared image gallery.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -314,14 +353,16 @@ SyncPoller Saves an image from a lab VM to the attached shared image gallery.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -335,7 +376,9 @@ SyncPoller Saves an image from a lab VM to the attached shared image gallery.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabServicesClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabServicesClient.java
index 2e975aa8468e..029abf6e9e03 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabServicesClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabServicesClient.java
@@ -87,30 +87,30 @@ public interface LabServicesClient {
SchedulesClient getSchedules();
/**
- * Gets the UsersClient object to access its operations.
+ * Gets the SkusClient object to access its operations.
*
- * @return the UsersClient object.
+ * @return the SkusClient object.
*/
- UsersClient getUsers();
+ SkusClient getSkus();
/**
- * Gets the VirtualMachinesClient object to access its operations.
+ * Gets the UsagesClient object to access its operations.
*
- * @return the VirtualMachinesClient object.
+ * @return the UsagesClient object.
*/
- VirtualMachinesClient getVirtualMachines();
+ UsagesClient getUsages();
/**
- * Gets the UsagesClient object to access its operations.
+ * Gets the UsersClient object to access its operations.
*
- * @return the UsagesClient object.
+ * @return the UsersClient object.
*/
- UsagesClient getUsages();
+ UsersClient getUsers();
/**
- * Gets the SkusClient object to access its operations.
+ * Gets the VirtualMachinesClient object to access its operations.
*
- * @return the SkusClient object.
+ * @return the VirtualMachinesClient object.
*/
- SkusClient getSkus();
+ VirtualMachinesClient getVirtualMachines();
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabsClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabsClient.java
index d819fa36278f..b3ecd97d6f7f 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabsClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/LabsClient.java
@@ -13,64 +13,72 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.labservices.fluent.models.LabInner;
import com.azure.resourcemanager.labservices.models.LabUpdate;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in LabsClient. */
public interface LabsClient {
/**
- * Returns a list of all labs for a subscription.
+ * Get all labs for a subscription.
+ *
+ * Returns a list of all labs for a subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of labs.
+ * @return paged list of labs as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all labs for a subscription.
*
* @param filter The filter to apply to the operation.
* @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 paged list of labs.
+ * @return paged list of labs as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all labs in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of labs.
+ * @return paged list of labs as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all labs in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 paged list of labs.
+ * @return paged list of labs as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns the properties of a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -80,11 +88,12 @@ public interface LabsClient {
LabInner getByResourceGroup(String resourceGroupName, String labName);
/**
- * Returns the properties of a lab resource.
+ * Get a lab resource.
+ *
+ * Returns the properties of a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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.
@@ -95,44 +104,47 @@ public interface LabsClient {
Response Operation to create or update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the lab resource along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the lab resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to create or update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the lab resource along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the lab resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to create or update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -143,11 +155,12 @@ SyncPoller Operation to create or update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -159,43 +172,46 @@ SyncPoller Operation to update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the lab resource along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the lab resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the lab resource along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of the lab resource.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -206,11 +222,12 @@ SyncPoller Operation to update a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -222,40 +239,43 @@ SyncPoller Operation to delete a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -264,11 +284,12 @@ SyncPoller Operation to delete a lab resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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.
@@ -278,40 +299,43 @@ SyncPoller Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -320,11 +344,12 @@ SyncPoller Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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.
@@ -334,40 +359,43 @@ SyncPoller Action used to manually kick off an AAD group sync job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action used to manually kick off an AAD group sync job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action used to manually kick off an AAD group sync job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -376,11 +404,12 @@ SyncPoller Action used to manually kick off an AAD group sync job.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationResultsClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationResultsClient.java
index 8d7dd8fdd892..3513c38ffd09 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationResultsClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationResultsClient.java
@@ -13,7 +13,9 @@
/** An instance of this class provides access to all the operations defined in OperationResultsClient. */
public interface OperationResultsClient {
/**
- * Returns an azure operation result.
+ * Get an azure operation result.
+ *
+ * Returns an azure operation result.
*
* @param operationResultId The operation result ID / name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -25,7 +27,9 @@ public interface OperationResultsClient {
OperationResultInner get(String operationResultId);
/**
- * Returns an azure operation result.
+ * Get an azure operation result.
+ *
+ * Returns an azure operation result.
*
* @param operationResultId The operation result ID / name.
* @param context The context to associate with this operation.
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationsClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationsClient.java
index e37b1ec85596..36c22964ffd6 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationsClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/OperationsClient.java
@@ -13,23 +13,29 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
- * Returns a list of all operations.
+ * Get all operations
+ *
+ * Returns a list of all operations.
*
* @throws com.azure.core.management.exception.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 REST API operations supported by an Azure Resource Provider.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all operations.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all schedules for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of schedules.
+ * @return paged list of schedules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all schedules for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param filter The filter to apply to the operation.
* @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 paged list of schedules.
+ * @return paged list of schedules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns the properties of a lab Schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -64,11 +66,12 @@ public interface SchedulesClient {
ScheduleInner get(String resourceGroupName, String labName, String scheduleName);
/**
- * Returns the properties of a lab Schedule.
+ * Get a lab Schedule.
+ *
+ * Returns the properties of a lab Schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param context The context to associate with this operation.
@@ -83,11 +86,12 @@ Response Operation to create or update a lab schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param body The request body.
@@ -100,11 +104,12 @@ Response Operation to create or update a lab schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param body The request body.
@@ -120,11 +125,12 @@ Response Operation to update a lab schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param body The request body.
@@ -137,11 +143,12 @@ Response Operation to update a lab schedule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param body The request body.
@@ -157,45 +164,48 @@ Response Operation to delete a schedule resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a schedule resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a schedule resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -206,11 +216,12 @@ SyncPoller Operation to delete a schedule resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param scheduleName The name of the schedule that uniquely identifies it within containing lab. Used in resource
* URIs.
* @param context The context to associate with this operation.
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SkusClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SkusClient.java
index 4d9138c2d824..70093a581f58 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SkusClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SkusClient.java
@@ -13,24 +13,28 @@
/** An instance of this class provides access to all the operations defined in SkusClient. */
public interface SkusClient {
/**
- * Returns a list of all the Azure Lab Services resource SKUs.
+ * Gets the Azure Lab Services resource SKUs.
+ *
+ * Returns a list of Azure Lab Services resource SKUs.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of lab services skus.
+ * @return paged list of lab services skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of Azure Lab Services resource SKUs.
*
* @param filter The filter to apply to the operation.
* @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 paged list of lab services skus.
+ * @return paged list of lab services skus as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns list of usage per SKU family for the specified subscription in the specified region.
*
* @param location The location name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Core Usages.
+ * @return list of Core Usages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns list of usage per SKU family for the specified subscription in the specified region.
*
* @param location The location name.
* @param filter The filter to apply to the operation.
@@ -33,7 +37,7 @@ public interface UsagesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Core Usages.
+ * @return list of Core Usages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all users for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of users.
+ * @return paged list of users as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all users for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param filter The filter to apply to the operation.
* @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 paged list of users.
+ * @return paged list of users as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns the properties of a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -64,11 +66,12 @@ public interface UsersClient {
UserInner get(String resourceGroupName, String labName, String username);
/**
- * Returns the properties of a lab user.
+ * Get a lab user.
+ *
+ * Returns the properties of a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -80,48 +83,51 @@ public interface UsersClient {
Response Operation to create or update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return user of a lab that can register for and use virtual machines within the lab along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of user of a lab that can register for and use virtual machines within
+ * the lab.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to create or update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return user of a lab that can register for and use virtual machines within the lab along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of user of a lab that can register for and use virtual machines within
+ * the lab.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to create or update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -133,11 +139,12 @@ SyncPoller Operation to create or update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
@@ -151,48 +158,51 @@ UserInner createOrUpdate(
String resourceGroupName, String labName, String username, UserInner body, Context context);
/**
- * Operation to update a lab user.
+ * Update a lab user.
+ *
+ * Operation to update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return user of a lab that can register for and use virtual machines within the lab along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of user of a lab that can register for and use virtual machines within
+ * the lab.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return user of a lab that can register for and use virtual machines within the lab along with {@link Response}
- * on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of user of a lab that can register for and use virtual machines within
+ * the lab.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -204,11 +214,12 @@ SyncPoller Operation to update a lab user.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
@@ -221,43 +232,46 @@ SyncPoller Operation to delete a user resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a user resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to delete a user resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -267,11 +281,12 @@ SyncPoller Operation to delete a user resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -282,46 +297,49 @@ SyncPoller Operation to invite a user to a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to invite a user to a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Operation to invite a user to a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -332,11 +350,12 @@ SyncPoller Operation to invite a user to a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param username The name of the user that uniquely identifies it within containing lab. Used in resource URIs.
* @param body The request body.
* @param context The context to associate with this operation.
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/VirtualMachinesClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/VirtualMachinesClient.java
index c3e04ca40cb8..9149a1a87667 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/VirtualMachinesClient.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/VirtualMachinesClient.java
@@ -13,47 +13,49 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.labservices.fluent.models.VirtualMachineInner;
import com.azure.resourcemanager.labservices.models.ResetPasswordBody;
-import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in VirtualMachinesClient. */
public interface VirtualMachinesClient {
/**
- * Returns a list of all virtual machines for a lab.
+ * Get all virtual machines for a lab.
+ *
+ * Returns a list of all virtual machines for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged list of lab services virtual machines.
+ * @return paged list of lab services virtual machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns a list of all virtual machines for a lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param filter The filter to apply to the operation.
* @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 paged list of lab services virtual machines.
+ * @return paged list of lab services virtual machines as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable Returns the properties for a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -65,11 +67,12 @@ PagedIterable Returns the properties for a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param context The context to associate with this operation.
@@ -83,45 +86,48 @@ Response Action to start a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to start a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to start a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -132,11 +138,12 @@ SyncPoller Action to start a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param context The context to associate with this operation.
@@ -148,45 +155,48 @@ SyncPoller Action to stop a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to stop a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to stop a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -197,11 +207,12 @@ SyncPoller Action to stop a lab virtual machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param context The context to associate with this operation.
@@ -213,49 +224,52 @@ SyncPoller Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published
* snapshot of the reference environment of the lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published
* snapshot of the reference environment of the lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published
* snapshot of the reference environment of the lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -266,12 +280,13 @@ SyncPoller Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published
* snapshot of the reference environment of the lab.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param context The context to associate with this operation.
@@ -283,46 +298,49 @@ SyncPoller Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @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} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -333,11 +351,12 @@ SyncPoller Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param context The context to associate with this operation.
@@ -349,29 +368,31 @@ SyncPoller Resets a lab virtual machine password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param body The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Resets a lab virtual machine password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param body The request body.
@@ -379,18 +400,19 @@ SyncPoller Resets a lab virtual machine password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param body The request body.
@@ -402,11 +424,12 @@ SyncPoller Resets a lab virtual machine password.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource
- * URIs.
+ * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
* @param virtualMachineName The ID of the virtual machine that uniquely identifies it within the containing lab.
* Used in resource URIs.
* @param body The request body.
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageInner.java
index 163cd14ea210..1be0e230db81 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageInner.java
@@ -12,15 +12,12 @@
import com.azure.resourcemanager.labservices.models.OsState;
import com.azure.resourcemanager.labservices.models.OsType;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Lab services virtual machine image. */
@Fluent
public final class ImageInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageInner.class);
-
/*
* Metadata pertaining to creation and last modification of the image.
*/
@@ -230,11 +227,13 @@ public ImageInner withEnabledState(EnableState enabledState) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model ImageInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ImageInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageProperties.java
index b22b947568c4..82c1cd948d4a 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageProperties.java
@@ -5,20 +5,16 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.EnableState;
import com.azure.resourcemanager.labservices.models.OsState;
import com.azure.resourcemanager.labservices.models.OsType;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties of an image resource. */
@Fluent
public final class ImageProperties extends ImageUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageProperties.class);
-
/*
* Current provisioning state of the image.
*/
@@ -62,8 +58,7 @@ public final class ImageProperties extends ImageUpdateProperties {
private String plan;
/*
- * The status of image terms of use (enabled = accepted, disabled = not
- * accepted).
+ * The status of image terms of use (enabled = accepted, disabled = not accepted).
*/
@JsonProperty(value = "termsStatus", access = JsonProperty.Access.WRITE_ONLY)
private EnableState termsStatus;
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageUpdateProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageUpdateProperties.java
index 2abbb7c65a1b..8f2d3249291a 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageUpdateProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ImageUpdateProperties.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.EnableState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties of an image resource update. */
@Fluent
public class ImageUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageUpdateProperties.class);
-
/*
* Is the image enabled
*/
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabInner.java
index 7a1883ad2563..8426af8e0ee1 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabInner.java
@@ -16,15 +16,12 @@
import com.azure.resourcemanager.labservices.models.RosterProfile;
import com.azure.resourcemanager.labservices.models.SecurityProfile;
import com.azure.resourcemanager.labservices.models.VirtualMachineProfile;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The lab resource. */
@Fluent
public final class LabInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LabInner.class);
-
/*
* Metadata pertaining to creation and last modification of the lab.
*/
@@ -311,11 +308,13 @@ public LabInner withDescription(String description) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model LabInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(LabInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanInner.java
index d2173a69a536..efcaa6dc5afb 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanInner.java
@@ -10,10 +10,10 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.AutoShutdownProfile;
import com.azure.resourcemanager.labservices.models.ConnectionProfile;
+import com.azure.resourcemanager.labservices.models.Identity;
import com.azure.resourcemanager.labservices.models.LabPlanNetworkProfile;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.SupportInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -24,8 +24,6 @@
*/
@Fluent
public final class LabPlanInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlanInner.class);
-
/*
* Metadata pertaining to creation and last modification of the lab plan.
*/
@@ -38,6 +36,12 @@ public final class LabPlanInner extends Resource {
@JsonProperty(value = "properties", required = true)
private LabPlanProperties innerProperties = new LabPlanProperties();
+ /*
+ * Managed Identity Information
+ */
+ @JsonProperty(value = "identity")
+ private Identity identity;
+
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the lab plan.
*
@@ -56,6 +60,26 @@ private LabPlanProperties innerProperties() {
return this.innerProperties;
}
+ /**
+ * Get the identity property: Managed Identity Information.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Managed Identity Information.
+ *
+ * @param identity the identity value to set.
+ * @return the LabPlanInner object itself.
+ */
+ public LabPlanInner withIdentity(Identity identity) {
+ this.identity = identity;
+ return this;
+ }
+
/** {@inheritDoc} */
@Override
public LabPlanInner withLocation(String location) {
@@ -261,11 +285,16 @@ public LabPlanInner withLinkedLmsInstance(String linkedLmsInstance) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model LabPlanInner"));
} else {
innerProperties().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(LabPlanInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanProperties.java
index 838570cc5465..56a0500b36f2 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanProperties.java
@@ -5,21 +5,17 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.AutoShutdownProfile;
import com.azure.resourcemanager.labservices.models.ConnectionProfile;
import com.azure.resourcemanager.labservices.models.LabPlanNetworkProfile;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.SupportInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Lab plan resource properties. */
@Fluent
public final class LabPlanProperties extends LabPlanUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlanProperties.class);
-
/*
* Current provisioning state of the lab plan.
*/
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanUpdateProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanUpdateProperties.java
index 1518ebb7c997..7cf05e1dfa80 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanUpdateProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabPlanUpdateProperties.java
@@ -5,62 +5,52 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.AutoShutdownProfile;
import com.azure.resourcemanager.labservices.models.ConnectionProfile;
import com.azure.resourcemanager.labservices.models.LabPlanNetworkProfile;
import com.azure.resourcemanager.labservices.models.SupportInfo;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Lab plan resource properties for updates. */
@Fluent
public class LabPlanUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlanUpdateProperties.class);
-
/*
- * The default lab connection profile. This can be changed on a lab
- * resource and only provides a default profile.
+ * The default lab connection profile. This can be changed on a lab resource and only provides a default profile.
*/
@JsonProperty(value = "defaultConnectionProfile")
private ConnectionProfile defaultConnectionProfile;
/*
- * The default lab shutdown profile. This can be changed on a lab resource
- * and only provides a default profile.
+ * The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile.
*/
@JsonProperty(value = "defaultAutoShutdownProfile")
private AutoShutdownProfile defaultAutoShutdownProfile;
/*
- * The lab plan network profile. To enforce lab network policies they must
- * be defined here and cannot be changed when there are existing labs
- * associated with this lab plan.
+ * The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed
+ * when there are existing labs associated with this lab plan.
*/
@JsonProperty(value = "defaultNetworkProfile")
private LabPlanNetworkProfile defaultNetworkProfile;
/*
- * The allowed regions for the lab creator to use when creating labs using
- * this lab plan.
+ * The allowed regions for the lab creator to use when creating labs using this lab plan.
*/
@JsonProperty(value = "allowedRegions")
private List Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
- * The name of the operation, as per Resource-Based Access Control (RBAC).
- * Examples: "Microsoft.Compute/virtualMachines/write",
- * "Microsoft.Compute/virtualMachines/capture/action"
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for
- * data-plane operations and "false" for ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
*/
@JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
@@ -39,15 +38,14 @@ public final class OperationInner {
private OperationDisplay display;
/*
- * The intended executor of the operation; as in Resource Based Access
- * Control (RBAC) and audit logs UX. Default value is "user,system"
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are
- * for internal only APIs.
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
@JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationResultInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationResultInner.java
index f87735fbf465..eb18edbfc428 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationResultInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationResultInner.java
@@ -8,15 +8,12 @@
import com.azure.core.management.exception.ManagementError;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.OperationStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** A long running operation result. */
@Fluent
public final class OperationResultInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultInner.class);
-
/*
* Fully qualified resource ID for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
@@ -186,9 +183,11 @@ public OperationResultInner withError(ManagementError error) {
*/
public void validate() {
if (status() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property status in model OperationResultInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(OperationResultInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleInner.java
index 343df0cfd305..c24b94efb167 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleInner.java
@@ -10,15 +10,12 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.RecurrencePattern;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Schedule for automatically turning virtual machines in a lab on and off at specified times. */
@Fluent
public final class ScheduleInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleInner.class);
-
/*
* Metadata pertaining to creation and last modification of the schedule.
*/
@@ -184,11 +181,13 @@ public ScheduleInner withNotes(String notes) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model ScheduleInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScheduleInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleProperties.java
index 2768dd30887e..1838cdc573db 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleProperties.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.RecurrencePattern;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Schedule resource properties. */
@Fluent
public final class ScheduleProperties extends ScheduleUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleProperties.class);
-
/*
* Current provisioning state of the schedule.
*/
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleUpdateProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleUpdateProperties.java
index a992a75361c8..6b20a4d3cb18 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleUpdateProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/ScheduleUpdateProperties.java
@@ -5,27 +5,23 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.RecurrencePattern;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Schedule resource properties used for updates. */
@Fluent
public class ScheduleUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleUpdateProperties.class);
-
/*
- * When lab user virtual machines will be started. Timestamp offsets will
- * be ignored and timeZoneId is used instead.
+ * When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used
+ * instead.
*/
@JsonProperty(value = "startAt")
private OffsetDateTime startAt;
/*
- * When lab user virtual machines will be stopped. Timestamp offsets will
- * be ignored and timeZoneId is used instead.
+ * When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used
+ * instead.
*/
@JsonProperty(value = "stopAt")
private OffsetDateTime stopAt;
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UsageInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UsageInner.java
index e7894554ae57..5d01e53be0e2 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UsageInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UsageInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.UsageName;
import com.azure.resourcemanager.labservices.models.UsageUnit;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The core usage details. */
@Fluent
public final class UsageInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UsageInner.class);
-
/*
* The current usage.
*/
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserInner.java
index 9322e780b732..5e2a77d0aba1 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserInner.java
@@ -11,7 +11,6 @@
import com.azure.resourcemanager.labservices.models.InvitationState;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.RegistrationState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
import java.time.OffsetDateTime;
@@ -19,11 +18,8 @@
/** User of a lab that can register for and use virtual machines within the lab. */
@Fluent
public final class UserInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserInner.class);
-
/*
- * Metadata pertaining to creation and last modification of the user
- * resource.
+ * Metadata pertaining to creation and last modification of the user resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -161,11 +157,13 @@ public UserInner withAdditionalUsageQuota(Duration additionalUsageQuota) {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property innerProperties in model UserInner"));
} else {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(UserInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserProperties.java
index 47c2601fe706..6f627368ef94 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserProperties.java
@@ -9,7 +9,6 @@
import com.azure.resourcemanager.labservices.models.InvitationState;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.RegistrationState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Duration;
import java.time.OffsetDateTime;
@@ -17,8 +16,6 @@
/** User resource properties. */
@Fluent
public final class UserProperties extends UserUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserProperties.class);
-
/*
* Current provisioning state of the user resource.
*/
@@ -151,9 +148,11 @@ public UserProperties withAdditionalUsageQuota(Duration additionalUsageQuota) {
public void validate() {
super.validate();
if (email() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property email in model UserProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(UserProperties.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserUpdateProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserUpdateProperties.java
index e28da807e534..c7b5e545b0e1 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserUpdateProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/UserUpdateProperties.java
@@ -5,19 +5,14 @@
package com.azure.resourcemanager.labservices.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.time.Duration;
/** User resource properties used for updates. */
@Fluent
public class UserUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(UserUpdateProperties.class);
-
/*
- * The amount of usage quota time the user gets in addition to the lab
- * usage quota.
+ * The amount of usage quota time the user gets in addition to the lab usage quota.
*/
@JsonProperty(value = "additionalUsageQuota")
private Duration additionalUsageQuota;
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineInner.java
index 0ed584eb0d88..360f396e37ec 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineInner.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineInner.java
@@ -12,14 +12,11 @@
import com.azure.resourcemanager.labservices.models.VirtualMachineConnectionProfile;
import com.azure.resourcemanager.labservices.models.VirtualMachineState;
import com.azure.resourcemanager.labservices.models.VirtualMachineType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A lab virtual machine resource. */
@Fluent
public final class VirtualMachineInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineInner.class);
-
/*
* System data of the Lab virtual machine.
*/
@@ -102,7 +99,7 @@ public VirtualMachineType vmType() {
*/
public void validate() {
if (innerProperties() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property innerProperties in model VirtualMachineInner"));
@@ -110,4 +107,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineInner.class);
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineProperties.java
index c932bf475361..8ae35f8141ab 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineProperties.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/VirtualMachineProperties.java
@@ -5,19 +5,15 @@
package com.azure.resourcemanager.labservices.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.labservices.models.ProvisioningState;
import com.azure.resourcemanager.labservices.models.VirtualMachineConnectionProfile;
import com.azure.resourcemanager.labservices.models.VirtualMachineState;
import com.azure.resourcemanager.labservices.models.VirtualMachineType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Virtual machine resource properties. */
@Immutable
public final class VirtualMachineProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineProperties.class);
-
/*
* Current provisioning state of the virtual machine.
*/
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImageImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImageImpl.java
index c048acde3399..706ece2f0162 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImageImpl.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImageImpl.java
@@ -106,6 +106,10 @@ public EnableState enabledState() {
return this.innerModel().enabledState();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ImageInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesClientImpl.java
index e6c6c6426aa6..cc16d0110621 100644
--- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesClientImpl.java
+++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesClientImpl.java
@@ -28,7 +28,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.labservices.fluent.ImagesClient;
import com.azure.resourcemanager.labservices.fluent.models.ImageInner;
import com.azure.resourcemanager.labservices.models.ImageUpdate;
@@ -37,8 +36,6 @@
/** An instance of this class provides access to all the operations defined in ImagesClient. */
public final class ImagesClientImpl implements ImagesClient {
- private final ClientLogger logger = new ClientLogger(ImagesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ImagesService service;
@@ -140,7 +137,9 @@ Mono Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -201,7 +200,9 @@ private Mono Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -260,7 +261,9 @@ private Mono Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -269,7 +272,7 @@ private Mono Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -287,7 +292,7 @@ private PagedFlux Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -308,7 +315,7 @@ private PagedFlux Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -327,7 +336,7 @@ private PagedFlux Gets all images from galleries attached to a lab plan.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labPlanName The name of the lab plan that uniquely identifies it within containing resource group. Used in
@@ -346,7 +357,7 @@ public PagedIterable