diff --git a/sdk/labservices/azure-resourcemanager-labservices/CHANGELOG.md b/sdk/labservices/azure-resourcemanager-labservices/CHANGELOG.md index c39334fd45b9..c989e9658692 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/CHANGELOG.md +++ b/sdk/labservices/azure-resourcemanager-labservices/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2022-08-11) + +- Azure Resource Manager LabServices client library for Java. This package contains Microsoft Azure SDK for LabServices Management SDK. REST API for managing Azure Lab Services images. Package tag package-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/labservices/azure-resourcemanager-labservices/README.md b/sdk/labservices/azure-resourcemanager-labservices/README.md index 54e4970422aa..c15bee2867b3 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/README.md +++ b/sdk/labservices/azure-resourcemanager-labservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager LabServices client library for Java. -This package contains Microsoft Azure SDK for LabServices Management SDK. REST API for managing Azure Lab Services images. Package tag package-preview-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for LabServices Management SDK. REST API for managing Azure Lab Services images. Package tag package-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-labservices - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/labservices/azure-resourcemanager-labservices/SAMPLE.md b/sdk/labservices/azure-resourcemanager-labservices/SAMPLE.md index c46de5140a0a..5b2130cb05e2 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/SAMPLE.md +++ b/sdk/labservices/azure-resourcemanager-labservices/SAMPLE.md @@ -79,7 +79,7 @@ import com.azure.resourcemanager.labservices.models.EnableState; /** Samples for Images CreateOrUpdate. */ public final class ImagesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/putImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/putImage.json */ /** * Sample code: putImage. @@ -105,7 +105,7 @@ import com.azure.core.util.Context; /** Samples for Images Get. */ public final class ImagesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/getImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/getImage.json */ /** * Sample code: getImage. @@ -126,7 +126,7 @@ import com.azure.core.util.Context; /** Samples for Images ListByLabPlan. */ public final class ImagesListByLabPlanSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/listImages.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/listImages.json */ /** * Sample code: listImages. @@ -149,7 +149,7 @@ import com.azure.resourcemanager.labservices.models.Image; /** Samples for Images Update. */ public final class ImagesUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/patchImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/patchImage.json */ /** * Sample code: patchImage. @@ -179,7 +179,7 @@ import java.time.Duration; /** Samples for LabPlans CreateOrUpdate. */ public final class LabPlansCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/putLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/putLabPlan.json */ /** * Sample code: putLabPlan. @@ -203,9 +203,9 @@ public final class LabPlansCreateOrUpdateSamples { .withShutdownOnDisconnect(EnableState.ENABLED) .withShutdownWhenNotConnected(EnableState.ENABLED) .withShutdownOnIdle(ShutdownOnIdleMode.USER_ABSENCE) - .withDisconnectDelay(Duration.parse("00:05")) - .withNoConnectDelay(Duration.parse("01:00")) - .withIdleDelay(Duration.parse("01:00"))) + .withDisconnectDelay(Duration.parse("PT5M")) + .withNoConnectDelay(Duration.parse("PT5M")) + .withIdleDelay(Duration.parse("PT5M"))) .withDefaultNetworkProfile( new LabPlanNetworkProfile() .withSubnetId( @@ -231,7 +231,7 @@ import com.azure.core.util.Context; /** Samples for LabPlans Delete. */ public final class LabPlansDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/deleteLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/deleteLabPlan.json */ /** * Sample code: deleteLabPlan. @@ -252,7 +252,7 @@ import com.azure.core.util.Context; /** Samples for LabPlans GetByResourceGroup. */ public final class LabPlansGetByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/getLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/getLabPlan.json */ /** * Sample code: getLabPlan. @@ -273,7 +273,7 @@ import com.azure.core.util.Context; /** Samples for LabPlans List. */ public final class LabPlansListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/listLabPlans.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/listLabPlans.json */ /** * Sample code: listLabPlans. @@ -294,7 +294,7 @@ import com.azure.core.util.Context; /** Samples for LabPlans ListByResourceGroup. */ public final class LabPlansListByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/listResourceGroupLabPlans.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/listResourceGroupLabPlans.json */ /** * Sample code: listResourceGroupLabPlans. @@ -316,7 +316,7 @@ import com.azure.resourcemanager.labservices.models.SaveImageBody; /** Samples for LabPlans SaveImage. */ public final class LabPlansSaveImageSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/saveImageVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/saveImageVirtualMachine.json */ /** * Sample code: saveImageVirtualMachine. @@ -349,7 +349,7 @@ import com.azure.resourcemanager.labservices.models.LabPlan; /** Samples for LabPlans Update. */ public final class LabPlansUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/patchLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/patchLabPlan.json */ /** * Sample code: patchLabPlan. @@ -393,7 +393,7 @@ import java.time.Duration; /** Samples for Labs CreateOrUpdate. */ public final class LabsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/putLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/putLab.json */ /** * Sample code: putLab. @@ -415,9 +415,9 @@ public final class LabsCreateOrUpdateSamples { .withShutdownOnDisconnect(EnableState.ENABLED) .withShutdownWhenNotConnected(EnableState.ENABLED) .withShutdownOnIdle(ShutdownOnIdleMode.USER_ABSENCE) - .withDisconnectDelay(Duration.parse("00:05")) - .withNoConnectDelay(Duration.parse("01:00")) - .withIdleDelay(Duration.parse("01:00"))) + .withDisconnectDelay(Duration.parse("PT5M")) + .withNoConnectDelay(Duration.parse("PT5M")) + .withIdleDelay(Duration.parse("PT5M"))) .withConnectionProfile( new ConnectionProfile() .withWebSshAccess(ConnectionType.NONE) @@ -436,7 +436,7 @@ public final class LabsCreateOrUpdateSamples { .withSku(new Sku().withName("Medium")) .withAdditionalCapabilities( new VirtualMachineAdditionalCapabilities().withInstallGpuDrivers(EnableState.DISABLED)) - .withUsageQuota(Duration.parse("10:00")) + .withUsageQuota(Duration.parse("PT10H")) .withUseSharedPassword(EnableState.DISABLED) .withAdminUser(new Credentials().withUsername("test-user"))) .withSecurityProfile(new SecurityProfile().withOpenAccess(EnableState.DISABLED)) @@ -457,7 +457,7 @@ import com.azure.core.util.Context; /** Samples for Labs Delete. */ public final class LabsDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/deleteLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/deleteLab.json */ /** * Sample code: deleteLab. @@ -478,7 +478,7 @@ import com.azure.core.util.Context; /** Samples for Labs GetByResourceGroup. */ public final class LabsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/getLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/getLab.json */ /** * Sample code: getLab. @@ -499,7 +499,7 @@ import com.azure.core.util.Context; /** Samples for Labs List. */ public final class LabsListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/listLabs.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/listLabs.json */ /** * Sample code: listLabs. @@ -520,7 +520,7 @@ import com.azure.core.util.Context; /** Samples for Labs ListByResourceGroup. */ public final class LabsListByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/listResourceGroupLabs.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/listResourceGroupLabs.json */ /** * Sample code: listResourceGroupLabs. @@ -541,7 +541,7 @@ import com.azure.core.util.Context; /** Samples for Labs Publish. */ public final class LabsPublishSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/publishLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/publishLab.json */ /** * Sample code: publishLab. @@ -562,7 +562,7 @@ import com.azure.core.util.Context; /** Samples for Labs SyncGroup. */ public final class LabsSyncGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/syncLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/syncLab.json */ /** * Sample code: syncLab. @@ -586,7 +586,7 @@ import com.azure.resourcemanager.labservices.models.SecurityProfile; /** Samples for Labs Update. */ public final class LabsUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/patchLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/patchLab.json */ /** * Sample code: patchLab. @@ -608,7 +608,7 @@ import com.azure.core.util.Context; /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/OperationResults/getOperationResult.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/OperationResults/getOperationResult.json */ /** * Sample code: getOperationResult. @@ -629,7 +629,7 @@ import com.azure.core.util.Context; /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabServices/listOperations.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabServices/listOperations.json */ /** * Sample code: listOperations. @@ -647,13 +647,12 @@ public final class OperationsListSamples { ```java import com.azure.resourcemanager.labservices.models.RecurrenceFrequency; import com.azure.resourcemanager.labservices.models.RecurrencePattern; -import java.time.LocalDate; import java.time.OffsetDateTime; /** Samples for Schedules CreateOrUpdate. */ public final class SchedulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/putSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/putSchedule.json */ /** * Sample code: putSchedule. @@ -671,7 +670,7 @@ public final class SchedulesCreateOrUpdateSamples { new RecurrencePattern() .withFrequency(RecurrenceFrequency.DAILY) .withInterval(2) - .withExpirationDate(LocalDate.parse("2020-08-14"))) + .withExpirationDate(OffsetDateTime.parse("2020-08-14T23:59:59Z"))) .withTimeZoneId("America/Los_Angeles") .withNotes("Schedule 1 for students") .create(); @@ -687,7 +686,7 @@ import com.azure.core.util.Context; /** Samples for Schedules Delete. */ public final class SchedulesDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/deleteSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/deleteSchedule.json */ /** * Sample code: deleteSchedule. @@ -708,7 +707,7 @@ import com.azure.core.util.Context; /** Samples for Schedules Get. */ public final class SchedulesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/getSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/getSchedule.json */ /** * Sample code: getSchedule. @@ -729,7 +728,7 @@ import com.azure.core.util.Context; /** Samples for Schedules ListByLab. */ public final class SchedulesListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/listSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/listSchedule.json */ /** * Sample code: getListSchedule. @@ -749,12 +748,12 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.labservices.models.RecurrenceFrequency; import com.azure.resourcemanager.labservices.models.RecurrencePattern; import com.azure.resourcemanager.labservices.models.Schedule; -import java.time.LocalDate; +import java.time.OffsetDateTime; /** Samples for Schedules Update. */ public final class SchedulesUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/patchSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/patchSchedule.json */ /** * Sample code: patchSchedule. @@ -770,7 +769,7 @@ public final class SchedulesUpdateSamples { new RecurrencePattern() .withFrequency(RecurrenceFrequency.DAILY) .withInterval(2) - .withExpirationDate(LocalDate.parse("2020-08-14"))) + .withExpirationDate(OffsetDateTime.parse("2020-08-14T23:59:59Z"))) .apply(); } } @@ -784,7 +783,7 @@ import com.azure.core.util.Context; /** Samples for Skus List. */ public final class SkusListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Skus/listSkus.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Skus/listSkus.json */ /** * Sample code: listSkus. @@ -805,7 +804,7 @@ import com.azure.core.util.Context; /** Samples for Usages ListByLocation. */ public final class UsagesListByLocationSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Usages/getUsages.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Usages/getUsages.json */ /** * Sample code: listUsages. @@ -813,7 +812,7 @@ public final class UsagesListByLocationSamples { * @param manager Entry point to LabServicesManager. */ public static void listUsages(com.azure.resourcemanager.labservices.LabServicesManager manager) { - manager.usages().listByLocation("westus2", null, Context.NONE); + manager.usages().listByLocation("eastus2", null, Context.NONE); } } ``` @@ -826,7 +825,7 @@ import java.time.Duration; /** Samples for Users CreateOrUpdate. */ public final class UsersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/putUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/putUser.json */ /** * Sample code: putUser. @@ -839,7 +838,7 @@ public final class UsersCreateOrUpdateSamples { .define("testuser") .withExistingLab("testrg123", "testlab") .withEmail("testuser@contoso.com") - .withAdditionalUsageQuota(Duration.parse("20:00")) + .withAdditionalUsageQuota(Duration.parse("PT10H")) .create(); } } @@ -853,7 +852,7 @@ import com.azure.core.util.Context; /** Samples for Users Delete. */ public final class UsersDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/deleteUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/deleteUser.json */ /** * Sample code: deleteUser. @@ -874,7 +873,7 @@ import com.azure.core.util.Context; /** Samples for Users Get. */ public final class UsersGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/getUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/getUser.json */ /** * Sample code: getUser. @@ -896,7 +895,7 @@ import com.azure.resourcemanager.labservices.models.InviteBody; /** Samples for Users Invite. */ public final class UsersInviteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/inviteUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/inviteUser.json */ /** * Sample code: inviteUser. @@ -924,7 +923,7 @@ import com.azure.core.util.Context; /** Samples for Users ListByLab. */ public final class UsersListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/listUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/listUser.json */ /** * Sample code: listUser. @@ -947,7 +946,7 @@ import java.time.Duration; /** Samples for Users Update. */ public final class UsersUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/patchUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/patchUser.json */ /** * Sample code: patchUser. @@ -956,7 +955,7 @@ public final class UsersUpdateSamples { */ public static void patchUser(com.azure.resourcemanager.labservices.LabServicesManager manager) { User resource = manager.users().getWithResponse("testrg123", "testlab", "testuser", Context.NONE).getValue(); - resource.update().withAdditionalUsageQuota(Duration.parse("20:00")).apply(); + resource.update().withAdditionalUsageQuota(Duration.parse("PT10H")).apply(); } } ``` @@ -969,7 +968,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines Get. */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/getVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/getVirtualMachine.json */ /** * Sample code: getVirtualMachine. @@ -990,7 +989,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines ListByLab. */ public final class VirtualMachinesListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/listVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/listVirtualMachine.json */ /** * Sample code: listVirtualMachine. @@ -1011,7 +1010,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines Redeploy. */ public final class VirtualMachinesRedeploySamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/redeployVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/redeployVirtualMachine.json */ /** * Sample code: redeployVirtualMachine. @@ -1032,7 +1031,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines Reimage. */ public final class VirtualMachinesReimageSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/reimageVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/reimageVirtualMachine.json */ /** * Sample code: reimageVirtualMachine. @@ -1054,7 +1053,7 @@ import com.azure.resourcemanager.labservices.models.ResetPasswordBody; /** Samples for VirtualMachines ResetPassword. */ public final class VirtualMachinesResetPasswordSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/resetPasswordVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/resetPasswordVirtualMachine.json */ /** * Sample code: resetPasswordVirtualMachine. @@ -1082,7 +1081,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines Start. */ public final class VirtualMachinesStartSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/startVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/startVirtualMachine.json */ /** * Sample code: startVirtualMachine. @@ -1103,7 +1102,7 @@ import com.azure.core.util.Context; /** Samples for VirtualMachines Stop. */ public final class VirtualMachinesStopSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/stopVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/stopVirtualMachine.json */ /** * Sample code: stopVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/pom.xml b/sdk/labservices/azure-resourcemanager-labservices/pom.xml index 724a77fd0799..c4a71ea3ee03 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/pom.xml +++ b/sdk/labservices/azure-resourcemanager-labservices/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for LabServices Management - This package contains Microsoft Azure SDK for LabServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Azure Lab Services images. Package tag package-preview-2021-11. + This package contains Microsoft Azure SDK for LabServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. REST API for managing Azure Lab Services images. Package tag package-2022-08. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/LabServicesManager.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/LabServicesManager.java index 6af095b4b54d..48372f73d9c7 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/LabServicesManager.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/LabServicesManager.java @@ -10,11 +10,13 @@ import com.azure.core.http.HttpPipelineBuilder; import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -64,13 +66,13 @@ public final class LabServicesManager { private Schedules schedules; - private Users users; - - private VirtualMachines virtualMachines; + private Skus skus; private Usages usages; - private Skus skus; + private Users users; + + private VirtualMachines virtualMachines; private final LabServicesClient clientObject; @@ -99,6 +101,19 @@ public static LabServicesManager authenticate(TokenCredential credential, AzureP return configure().authenticate(credential, profile); } + /** + * Creates an instance of LabServices service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the LabServices service API instance. + */ + public static LabServicesManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new LabServicesManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create LabServicesManager with optional configuration. * @@ -110,13 +125,14 @@ public static Configurable configure() { /** The Configurable allowing configurations to be set. */ public static final class Configurable { - private final ClientLogger logger = new ClientLogger(Configurable.class); + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); private HttpClient httpClient; private HttpLogOptions httpLogOptions; private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -177,6 +193,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -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 policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -260,7 +296,11 @@ public LabServicesManager authenticate(TokenCredential credential, AzureProfile } } - /** @return Resource collection API of Images. */ + /** + * Gets the resource collection API of Images. It manages Image. + * + * @return Resource collection API of Images. + */ public Images images() { if (this.images == null) { this.images = new ImagesImpl(clientObject.getImages(), this); @@ -268,7 +308,11 @@ public Images images() { return images; } - /** @return Resource collection API of LabPlans. */ + /** + * Gets the resource collection API of LabPlans. It manages LabPlan. + * + * @return Resource collection API of LabPlans. + */ public LabPlans labPlans() { if (this.labPlans == null) { this.labPlans = new LabPlansImpl(clientObject.getLabPlans(), this); @@ -276,7 +320,11 @@ public LabPlans labPlans() { return labPlans; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -284,7 +332,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of Labs. */ + /** + * Gets the resource collection API of Labs. It manages Lab. + * + * @return Resource collection API of Labs. + */ public Labs labs() { if (this.labs == null) { this.labs = new LabsImpl(clientObject.getLabs(), this); @@ -292,7 +344,11 @@ public Labs labs() { return labs; } - /** @return Resource collection API of OperationResults. */ + /** + * Gets the resource collection API of OperationResults. + * + * @return Resource collection API of OperationResults. + */ public OperationResults operationResults() { if (this.operationResults == null) { this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this); @@ -300,7 +356,11 @@ public OperationResults operationResults() { return operationResults; } - /** @return Resource collection API of Schedules. */ + /** + * Gets the resource collection API of Schedules. It manages Schedule. + * + * @return Resource collection API of Schedules. + */ public Schedules schedules() { if (this.schedules == null) { this.schedules = new SchedulesImpl(clientObject.getSchedules(), this); @@ -308,7 +368,35 @@ public Schedules schedules() { return schedules; } - /** @return Resource collection API of Users. */ + /** + * Gets the resource collection API of Skus. + * + * @return Resource collection API of Skus. + */ + public Skus skus() { + if (this.skus == null) { + this.skus = new SkusImpl(clientObject.getSkus(), this); + } + return skus; + } + + /** + * Gets the resource collection API of Usages. + * + * @return Resource collection API of Usages. + */ + public Usages usages() { + if (this.usages == null) { + this.usages = new UsagesImpl(clientObject.getUsages(), this); + } + return usages; + } + + /** + * Gets the resource collection API of Users. It manages User. + * + * @return Resource collection API of Users. + */ public Users users() { if (this.users == null) { this.users = new UsersImpl(clientObject.getUsers(), this); @@ -316,7 +404,11 @@ public Users users() { return users; } - /** @return Resource collection API of VirtualMachines. */ + /** + * Gets the resource collection API of VirtualMachines. + * + * @return Resource collection API of VirtualMachines. + */ public VirtualMachines virtualMachines() { if (this.virtualMachines == null) { this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this); @@ -324,22 +416,6 @@ public VirtualMachines virtualMachines() { return virtualMachines; } - /** @return Resource collection API of Usages. */ - public Usages usages() { - if (this.usages == null) { - this.usages = new UsagesImpl(clientObject.getUsages(), this); - } - return usages; - } - - /** @return Resource collection API of Skus. */ - public Skus skus() { - if (this.skus == null) { - this.skus = new SkusImpl(clientObject.getSkus(), this); - } - return skus; - } - /** * @return Wrapped service client LabServicesClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/ImagesClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/ImagesClient.java index d1a0b69aefd0..20d7acef7898 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/ImagesClient.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/ImagesClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in ImagesClient. */ public interface ImagesClient { /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlan(String resourceGroupName, String labPlanName); /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlan( String resourceGroupName, String labPlanName, String filter, Context context); /** - * Gets an image resource. + * Gets an image. + * + *

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 listByLabPlan( ImageInner get(String resourceGroupName, String labPlanName, String imageName); /** - * Gets an image resource. + * Gets an image. + * + *

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 getWithResponse( String resourceGroupName, String labPlanName, String imageName, Context context); /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 getWithResponse( ImageInner createOrUpdate(String resourceGroupName, String labPlanName, String imageName, ImageInner body); /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 createOrUpdateWithResponse( String resourceGroupName, String labPlanName, String imageName, ImageInner body, Context context); /** - * Updates an image resource. + * Updates an image. + * + *

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 createOrUpdateWithResponse( ImageInner update(String resourceGroupName, String labPlanName, String imageName, ImageUpdate body); /** - * Updates an image resource. + * Updates an image. + * + *

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 list(); /** - * 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. * * @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 list(String filter, Context context); /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 listByResourceGroup(String resourceGroupName); /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 listByResourceGroup(String resourceGroupName, Context context); /** - * 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 @@ -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 getByResourceGroupWithResponse( String resourceGroupName, String labPlanName, Context context); /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 getByResourceGroupWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LabPlanInner> beginCreateOrUpdate( String resourceGroupName, String labPlanName, LabPlanInner body); /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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, LabPlanInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LabPlanInner> beginCreateOrUpdate( String resourceGroupName, String labPlanName, LabPlanInner body, Context context); /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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, LabPlanInner> beginCreateOrUpdate( LabPlanInner createOrUpdate(String resourceGroupName, String labPlanName, LabPlanInner body); /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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, LabPlanInner> beginCreateOrUpdate( LabPlanInner createOrUpdate(String resourceGroupName, String labPlanName, LabPlanInner body, Context context); /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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, LabPlanInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LabPlanInner> beginUpdate( String resourceGroupName, String labPlanName, LabPlanUpdate body); /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LabPlanInner> beginUpdate( String resourceGroupName, String labPlanName, LabPlanUpdate body, Context context); /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( LabPlanInner update(String resourceGroupName, String labPlanName, LabPlanUpdate body); /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( LabPlanInner update(String resourceGroupName, String labPlanName, LabPlanUpdate body, Context context); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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, Void> beginDelete(String resourceGroupName, String labPlanName); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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, Void> beginDelete(String resourceGroupName, String labPlanName, Context context); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( void delete(String resourceGroupName, String labPlanName); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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, LabPlanInner> beginUpdate( void delete(String resourceGroupName, String labPlanName, Context context); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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, Void> beginSaveImage(String resourceGroupName, String labPlanName, SaveImageBody body); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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, Void> beginSaveImage( String resourceGroupName, String labPlanName, SaveImageBody body, Context context); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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, Void> beginSaveImage( void saveImage(String resourceGroupName, String labPlanName, SaveImageBody body); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 list(); /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

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 list(String filter, Context context); /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 listByResourceGroup(String resourceGroupName); /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 listByResourceGroup(String resourceGroupName, Context context); /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.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 getByResourceGroupWithResponse(String resourceGroupName, String labName, Context context); /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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, LabInner> beginCreateOrUpdate( String resourceGroupName, String labName, LabInner body); /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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, LabInner> beginCreateOrUpdate( String resourceGroupName, String labName, LabInner body, Context context); /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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, LabInner> beginCreateOrUpdate( LabInner createOrUpdate(String resourceGroupName, String labName, LabInner body); /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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, LabInner> beginCreateOrUpdate( LabInner createOrUpdate(String resourceGroupName, String labName, LabInner body, Context context); /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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, LabInner> beginUpdate(String resourceGroupName, String labName, LabUpdate body); /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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, LabInner> beginUpdate( String resourceGroupName, String labName, LabUpdate body, Context context); /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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, LabInner> beginUpdate( LabInner update(String resourceGroupName, String labName, LabUpdate body); /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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, LabInner> beginUpdate( LabInner update(String resourceGroupName, String labName, LabUpdate body, Context context); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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, Void> beginDelete(String resourceGroupName, String labName); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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, Void> beginDelete(String resourceGroupName, String labName, Context context); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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, LabInner> beginUpdate( void delete(String resourceGroupName, String labName); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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, LabInner> beginUpdate( void delete(String resourceGroupName, String labName, Context context); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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, Void> beginPublish(String resourceGroupName, String labName); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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, Void> beginPublish(String resourceGroupName, String labName, Context context); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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, LabInner> beginUpdate( void publish(String resourceGroupName, String labName); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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, LabInner> beginUpdate( void publish(String resourceGroupName, String labName, Context context); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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, Void> beginSyncGroup(String resourceGroupName, String labName); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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, Void> beginSyncGroup(String resourceGroupName, String labName, Context context); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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, LabInner> beginUpdate( void syncGroup(String resourceGroupName, String labName); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 list(); /** - * Returns a list of all operations. + * Get all operations + * + *

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 list(Context context); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SchedulesClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SchedulesClient.java index bb82b2b3785e..b5315c21924d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SchedulesClient.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/SchedulesClient.java @@ -13,46 +13,48 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.models.ScheduleInner; import com.azure.resourcemanager.labservices.models.ScheduleUpdate; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in SchedulesClient. */ public interface SchedulesClient { /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 listByLab(String resourceGroupName, String labName); /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 listByLab(String resourceGroupName, String labName, String filter, Context context); /** - * 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. * @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 getWithResponse( String resourceGroupName, String labName, String scheduleName, Context context); /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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 getWithResponse( ScheduleInner createOrUpdate(String resourceGroupName, String labName, String scheduleName, ScheduleInner body); /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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 createOrUpdateWithResponse( String resourceGroupName, String labName, String scheduleName, ScheduleInner body, Context context); /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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 createOrUpdateWithResponse( ScheduleInner update(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body); /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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 updateWithResponse( String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body, Context context); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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, Void> beginDelete(String resourceGroupName, String labName, String scheduleName); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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, Void> beginDelete( String resourceGroupName, String labName, String scheduleName, Context context); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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, Void> beginDelete( void delete(String resourceGroupName, String labName, String scheduleName); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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 list(); /** - * 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. * * @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 list(String filter, Context context); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsagesClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsagesClient.java index ffd2c7787ebb..51d476e50be0 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsagesClient.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsagesClient.java @@ -13,19 +13,23 @@ /** An instance of this class provides access to all the operations defined in UsagesClient. */ public interface UsagesClient { /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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 listByLocation(String location); /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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 listByLocation(String location, String filter, Context context); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsersClient.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsersClient.java index dbcf10a7f46f..bff14533a6c0 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsersClient.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/UsersClient.java @@ -14,46 +14,48 @@ import com.azure.resourcemanager.labservices.fluent.models.UserInner; import com.azure.resourcemanager.labservices.models.InviteBody; import com.azure.resourcemanager.labservices.models.UserUpdate; -import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in UsersClient. */ public interface UsersClient { /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 listByLab(String resourceGroupName, String labName); /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 listByLab(String resourceGroupName, String labName, String filter, Context context); /** - * 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. * @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 getWithResponse(String resourceGroupName, String labName, String username, Context context); /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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, UserInner> beginCreateOrUpdate( String resourceGroupName, String labName, String username, UserInner body); /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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, UserInner> beginCreateOrUpdate( String resourceGroupName, String labName, String username, UserInner body, Context context); /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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, UserInner> beginCreateOrUpdate( UserInner createOrUpdate(String resourceGroupName, String labName, String username, UserInner body); /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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, UserInner> beginUpdate( String resourceGroupName, String labName, String username, UserUpdate body); /** - * 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. * @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, UserInner> beginUpdate( String resourceGroupName, String labName, String username, UserUpdate 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. @@ -204,11 +214,12 @@ SyncPoller, UserInner> beginUpdate( UserInner update(String resourceGroupName, String labName, String username, UserUpdate body); /** - * 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. * @param context The context to associate with this operation. @@ -221,43 +232,46 @@ SyncPoller, UserInner> beginUpdate( UserInner update(String resourceGroupName, String labName, String username, UserUpdate body, Context context); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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, Void> beginDelete(String resourceGroupName, String labName, String username); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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, Void> beginDelete( String resourceGroupName, String labName, String username, Context context); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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, Void> beginDelete( void delete(String resourceGroupName, String labName, String username); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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, Void> beginDelete( void delete(String resourceGroupName, String labName, String username, Context context); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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, Void> beginInvite( String resourceGroupName, String labName, String username, InviteBody body); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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, Void> beginInvite( String resourceGroupName, String labName, String username, InviteBody body, Context context); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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, Void> beginInvite( void invite(String resourceGroupName, String labName, String username, InviteBody body); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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 listByLab(String resourceGroupName, String labName); /** - * 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. * @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 listByLab( String resourceGroupName, String labName, String filter, Context context); /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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 listByLab( VirtualMachineInner get(String resourceGroupName, String labName, String virtualMachineName); /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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 getWithResponse( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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, Void> beginStart(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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, Void> beginStart( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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, Void> beginStart( void start(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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, Void> beginStart( void start(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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, Void> beginStop(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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, Void> beginStop( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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, Void> beginStop( void stop(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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, Void> beginStop( void stop(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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, Void> beginReimage( String resourceGroupName, String labName, String virtualMachineName); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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, Void> beginReimage( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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, Void> beginReimage( void reimage(String resourceGroupName, String labName, String virtualMachineName); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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, Void> beginReimage( void reimage(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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, Void> beginRedeploy( String resourceGroupName, String labName, String virtualMachineName); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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, Void> beginRedeploy( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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, Void> beginRedeploy( void redeploy(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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, Void> beginRedeploy( void redeploy(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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, Void> beginResetPassword( String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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, Void> beginResetPassword( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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, Void> beginResetPassword( String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body, Context context); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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, Void> beginResetPassword( void resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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 allowedRegions; /* - * Resource ID of the Shared Image Gallery attached to this lab plan. When - * saving a lab template virtual machine image it will be persisted in this - * gallery. Shared images from the gallery can be made available to use - * when creating new labs. + * Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine + * image it will be persisted in this gallery. Shared images from the gallery can be made available to use when + * creating new labs. */ @JsonProperty(value = "sharedGalleryId") private String sharedGalleryId; /* - * Support contact information and instructions for users of the lab plan. - * This information is displayed to lab owners and virtual machine users - * for all labs in the lab plan. + * Support contact information and instructions for users of the lab plan. This information is displayed to lab + * owners and virtual machine users for all labs in the lab plan. */ @JsonProperty(value = "supportInfo") private SupportInfo supportInfo; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabProperties.java index c081d888fb97..777207924b86 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabProperties.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabProperties.java @@ -5,7 +5,6 @@ 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.LabNetworkProfile; @@ -14,14 +13,11 @@ 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; /** Properties of a lab resource. */ @Fluent public final class LabProperties extends LabUpdateProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabProperties.class); - /* * Current provisioning state of the lab. */ @@ -29,8 +25,8 @@ public final class LabProperties extends LabUpdateProperties { private ProvisioningState provisioningState; /* - * The network profile for the lab, typically applied via a lab plan. This - * profile cannot be modified once a lab has been created. + * The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab + * has been created. */ @JsonProperty(value = "networkProfile") private LabNetworkProfile networkProfile; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabServicesSkuInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabServicesSkuInner.java index a3c61eb421f3..e8a6078b0bfe 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabServicesSkuInner.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabServicesSkuInner.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.LabServicesSkuCapabilities; import com.azure.resourcemanager.labservices.models.LabServicesSkuCapacity; import com.azure.resourcemanager.labservices.models.LabServicesSkuCost; import com.azure.resourcemanager.labservices.models.LabServicesSkuRestrictions; import com.azure.resourcemanager.labservices.models.LabServicesSkuTier; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Azure Lab Services resource SKUs. */ @Fluent public final class LabServicesSkuInner { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabServicesSkuInner.class); - /* * The lab services resource type. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabUpdateProperties.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabUpdateProperties.java index 57e9626b758a..8d413d927e39 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabUpdateProperties.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/LabUpdateProperties.java @@ -5,30 +5,26 @@ 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.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; /** Properties of a lab resource used for updates. */ @Fluent public class LabUpdateProperties { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabUpdateProperties.class); - /* - * The resource auto shutdown configuration for the lab. This controls - * whether actions are taken on resources that are sitting idle. + * The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that + * are sitting idle. */ @JsonProperty(value = "autoShutdownProfile") private AutoShutdownProfile autoShutdownProfile; /* - * The connection profile for the lab. This controls settings such as web - * access to lab resources or whether RDP or SSH ports are open. + * The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or + * SSH ports are open. */ @JsonProperty(value = "connectionProfile") private ConnectionProfile connectionProfile; @@ -52,10 +48,8 @@ public class LabUpdateProperties { private RosterProfile rosterProfile; /* - * The ID of the lab plan. Used during resource creation to provide - * defaults and acts as a permission container when creating a lab via - * labs.azure.com. Setting a labPlanId on an existing lab provides - * organization.. + * The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container + * when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization.. */ @JsonProperty(value = "labPlanId") private String labPlanId; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationInner.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationInner.java index 6ed316ad2457..37ea855a4fb1 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationInner.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/fluent/models/OperationInner.java @@ -5,29 +5,28 @@ 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.ActionType; import com.azure.resourcemanager.labservices.models.OperationDisplay; import com.azure.resourcemanager.labservices.models.Origin; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */ +/** + * REST API Operation + * + *

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> listByLabPlanNext( } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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> listByLabPlanSinglePageAsync( } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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> listByLabPlanSinglePageAsync( } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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> listByLabPlanSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all images from galleries attached to a lab plan. + * @return all images from galleries attached to a lab plan as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabPlanAsync(String resourceGroupName, String labPlanName, String filter) { @@ -279,7 +282,9 @@ private PagedFlux listByLabPlanAsync(String resourceGroupName, Strin } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlanAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all images from galleries attached to a lab plan. + * @return all images from galleries attached to a lab plan as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabPlanAsync(String resourceGroupName, String labPlanName) { @@ -298,7 +303,9 @@ private PagedFlux listByLabPlanAsync(String resourceGroupName, Strin } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlanAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all images from galleries attached to a lab plan. + * @return all images from galleries attached to a lab plan as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabPlanAsync( @@ -319,7 +326,9 @@ private PagedFlux listByLabPlanAsync( } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlanAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) public PagedIterable listByLabPlan(String resourceGroupName, String labPlanName) { @@ -336,7 +345,9 @@ public PagedIterable listByLabPlan(String resourceGroupName, String } /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 listByLabPlan(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) public PagedIterable listByLabPlan( @@ -355,7 +366,9 @@ public PagedIterable listByLabPlan( } /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -409,7 +422,9 @@ private Mono> getWithResponseAsync( } /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -461,7 +476,9 @@ private Mono> getWithResponseAsync( } /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -475,18 +492,13 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String labPlanName, String imageName) { return getWithResponseAsync(resourceGroupName, labPlanName, imageName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -503,7 +515,9 @@ public ImageInner get(String resourceGroupName, String labPlanName, String image } /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -522,7 +536,9 @@ public Response getWithResponse( } /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 @@ -583,7 +599,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 @@ -642,7 +660,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 @@ -658,18 +678,13 @@ private Mono> createOrUpdateWithResponseAsync( private Mono createOrUpdateAsync( String resourceGroupName, String labPlanName, String imageName, ImageInner body) { return createOrUpdateWithResponseAsync(resourceGroupName, labPlanName, imageName, body) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 @@ -687,7 +702,9 @@ public ImageInner createOrUpdate(String resourceGroupName, String labPlanName, S } /** - * Updates an image resource via PUT. Creating new resources via PUT will not function. + * Updates an image via PUT. + * + *

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 @@ -707,7 +724,9 @@ public Response createOrUpdateWithResponse( } /** - * Updates an image resource. + * Updates an image. + * + *

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 @@ -768,7 +787,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an image resource. + * Updates an image. + * + *

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 @@ -827,7 +848,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an image resource. + * Updates an image. + * + *

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 @@ -843,18 +866,13 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String labPlanName, String imageName, ImageUpdate body) { return updateWithResponseAsync(resourceGroupName, labPlanName, imageName, body) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Updates an image resource. + * Updates an image. + * + *

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 @@ -872,7 +890,9 @@ public ImageInner update(String resourceGroupName, String labPlanName, String im } /** - * Updates an image resource. + * Updates an image. + * + *

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/implementation/ImagesImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesImpl.java index 8a5d05397e35..eb1a6e250b67 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ImagesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.labservices.fluent.models.ImageInner; import com.azure.resourcemanager.labservices.models.Image; import com.azure.resourcemanager.labservices.models.Images; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class ImagesImpl implements Images { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImagesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(ImagesImpl.class); private final ImagesClient innerClient; @@ -67,7 +66,7 @@ public Response getWithResponse( public Image getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -75,14 +74,14 @@ public Image getById(String id) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); } String imageName = Utils.getValueFromIdByName(id, "images"); if (imageName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'images'.", id))); @@ -93,7 +92,7 @@ public Image getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -101,14 +100,14 @@ public Response getByIdWithResponse(String id, Context context) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); } String imageName = Utils.getValueFromIdByName(id, "images"); if (imageName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'images'.", id))); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabImpl.java index 42ff0d1f3c2d..e3cb91f79b9b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabImpl.java @@ -108,6 +108,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public LabInner innerModel() { return this.innerObject; } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlanImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlanImpl.java index a4ef92ed0a05..54facde5b103 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlanImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlanImpl.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.labservices.fluent.models.LabPlanInner; 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.LabPlan; import com.azure.resourcemanager.labservices.models.LabPlanNetworkProfile; import com.azure.resourcemanager.labservices.models.LabPlanUpdate; @@ -54,6 +55,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public Identity identity() { + return this.innerModel().identity(); + } + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -99,6 +104,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public LabPlanInner innerModel() { return this.innerObject; } @@ -212,6 +221,16 @@ public LabPlanImpl withTags(Map tags) { return this; } + public LabPlanImpl withIdentity(Identity identity) { + if (isInCreateMode()) { + this.innerModel().withIdentity(identity); + return this; + } else { + this.updateBody.withIdentity(identity); + return this; + } + } + public LabPlanImpl withDefaultConnectionProfile(ConnectionProfile defaultConnectionProfile) { if (isInCreateMode()) { this.innerModel().withDefaultConnectionProfile(defaultConnectionProfile); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansClientImpl.java index f46e03e89055..7fc82f48c281 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.LabPlansClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in LabPlansClient. */ public final class LabPlansClientImpl implements LabPlansClient { - private final ClientLogger logger = new ClientLogger(LabPlansClientImpl.class); - /** The proxy service used to perform REST calls. */ private final LabPlansService service; @@ -196,7 +193,9 @@ Mono> listByResourceGroupNext( } /** - * 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. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -243,7 +242,9 @@ private Mono> listSinglePageAsync(String filter) { } /** - * 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. * * @param filter The filter to apply to the operation. * @param context The context to associate with this operation. @@ -288,13 +289,15 @@ private Mono> listSinglePageAsync(String filter, Con } /** - * 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. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of lab plans. + * @return paged list of lab plans as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter) { @@ -303,11 +306,13 @@ private PagedFlux listAsync(String filter) { } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -317,14 +322,16 @@ private PagedFlux listAsync() { } /** - * 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. * * @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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter, Context context) { @@ -334,11 +341,13 @@ private PagedFlux listAsync(String filter, Context context) { } /** - * 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 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) public PagedIterable list() { @@ -347,14 +356,16 @@ public PagedIterable list() { } /** - * 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. * * @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 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) public PagedIterable list(String filter, Context context) { @@ -362,7 +373,9 @@ public PagedIterable list(String filter, Context context) { } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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. @@ -413,7 +426,9 @@ private Mono> listByResourceGroupSinglePageAsync(Str } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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. @@ -463,13 +478,15 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -479,14 +496,16 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -496,13 +515,15 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 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) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -510,14 +531,16 @@ public PagedIterable listByResourceGroup(String resourceGroupName) } /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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 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) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -525,7 +548,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName, } /** - * 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 @@ -575,7 +600,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * 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 @@ -623,7 +650,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * 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 @@ -637,18 +666,13 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String labPlanName) { return getByResourceGroupWithResponseAsync(resourceGroupName, labPlanName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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 @@ -664,7 +688,9 @@ public LabPlanInner getByResourceGroup(String resourceGroupName, String labPlanN } /** - * 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 @@ -682,7 +708,9 @@ public Response getByResourceGroupWithResponse( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -739,7 +767,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -794,7 +824,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -803,8 +835,8 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabPlanInner> beginCreateOrUpdateAsync( @@ -817,7 +849,9 @@ private PollerFlux, LabPlanInner> beginCreateOrUpdateAs } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -827,8 +861,8 @@ private PollerFlux, LabPlanInner> beginCreateOrUpdateAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabPlanInner> beginCreateOrUpdateAsync( @@ -843,7 +877,9 @@ private PollerFlux, LabPlanInner> beginCreateOrUpdateAs } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -852,8 +888,8 @@ private PollerFlux, LabPlanInner> beginCreateOrUpdateAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LabPlanInner> beginCreateOrUpdate( @@ -862,7 +898,9 @@ public SyncPoller, LabPlanInner> beginCreateOrUpdate( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -872,8 +910,8 @@ public SyncPoller, LabPlanInner> beginCreateOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LabPlanInner> beginCreateOrUpdate( @@ -882,7 +920,9 @@ public SyncPoller, LabPlanInner> beginCreateOrUpdate( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -902,7 +942,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -924,7 +966,9 @@ private Mono createOrUpdateAsync( } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -941,7 +985,9 @@ public LabPlanInner createOrUpdate(String resourceGroupName, String labPlanName, } /** - * Operation to create or update a Lab Plan resource. + * Updates or creates a Lab Plan resource. + * + *

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 @@ -960,7 +1006,9 @@ public LabPlanInner createOrUpdate( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1017,7 +1065,9 @@ private Mono>> updateWithResponseAsync( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1072,7 +1122,9 @@ private Mono>> updateWithResponseAsync( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1081,8 +1133,8 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabPlanInner> beginUpdateAsync( @@ -1095,7 +1147,9 @@ private PollerFlux, LabPlanInner> beginUpdateAsync( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1105,8 +1159,8 @@ private PollerFlux, LabPlanInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabPlanInner> beginUpdateAsync( @@ -1120,7 +1174,9 @@ private PollerFlux, LabPlanInner> beginUpdateAsync( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1129,8 +1185,8 @@ private PollerFlux, LabPlanInner> beginUpdateAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LabPlanInner> beginUpdate( @@ -1139,7 +1195,9 @@ public SyncPoller, LabPlanInner> beginUpdate( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1149,8 +1207,8 @@ public SyncPoller, LabPlanInner> beginUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return lab Plans act as a permission container for creating labs via labs.azure.com along with {@link Response} - * on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of lab Plans act as a permission container for creating labs via + * labs.azure.com. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LabPlanInner> beginUpdate( @@ -1159,7 +1217,9 @@ public SyncPoller, LabPlanInner> beginUpdate( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1179,7 +1239,9 @@ private Mono updateAsync(String resourceGroupName, String labPlanN } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1201,7 +1263,9 @@ private Mono updateAsync( } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1218,7 +1282,9 @@ public LabPlanInner update(String resourceGroupName, String labPlanName, LabPlan } /** - * Operation to update a Lab Plan resource. + * Updates a Lab Plan resource. + * + *

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 @@ -1236,8 +1302,10 @@ public LabPlanInner update(String resourceGroupName, String labPlanName, LabPlan } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1285,8 +1353,10 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1333,8 +1403,10 @@ private Mono>> deleteWithResponseAsync( } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1342,7 +1414,7 @@ private Mono>> deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String labPlanName) { @@ -1354,8 +1426,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1364,7 +1438,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1377,8 +1451,10 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1386,7 +1462,7 @@ private PollerFlux, Void> beginDeleteAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String labPlanName) { @@ -1394,8 +1470,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1404,7 +1482,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( @@ -1413,8 +1491,10 @@ public SyncPoller, Void> beginDelete( } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1430,8 +1510,10 @@ private Mono deleteAsync(String resourceGroupName, String labPlanName) { } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1450,8 +1532,10 @@ private Mono deleteAsync(String resourceGroupName, String labPlanName, Con } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1466,8 +1550,10 @@ public void delete(String resourceGroupName, String labPlanName) { } /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -1483,7 +1569,9 @@ public void delete(String resourceGroupName, String labPlanName, Context context } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1539,7 +1627,9 @@ private Mono>> saveImageWithResponseAsync( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1593,7 +1683,9 @@ private Mono>> saveImageWithResponseAsync( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1602,7 +1694,7 @@ private Mono>> saveImageWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginSaveImageAsync( @@ -1615,7 +1707,9 @@ private PollerFlux, Void> beginSaveImageAsync( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1625,7 +1719,7 @@ private PollerFlux, Void> beginSaveImageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginSaveImageAsync( @@ -1639,7 +1733,9 @@ private PollerFlux, Void> beginSaveImageAsync( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1648,7 +1744,7 @@ private PollerFlux, Void> beginSaveImageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginSaveImage( @@ -1657,7 +1753,9 @@ public SyncPoller, Void> beginSaveImage( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1667,7 +1765,7 @@ public SyncPoller, Void> beginSaveImage( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginSaveImage( @@ -1676,7 +1774,9 @@ public SyncPoller, Void> beginSaveImage( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1695,7 +1795,9 @@ private Mono saveImageAsync(String resourceGroupName, String labPlanName, } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1716,7 +1818,9 @@ private Mono saveImageAsync( } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -1732,7 +1836,9 @@ public void saveImage(String resourceGroupName, String labPlanName, SaveImageBod } /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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/implementation/LabPlansImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansImpl.java index ee6f8bd4a1d4..ef2aaf0518d9 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabPlansImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.labservices.models.LabPlan; import com.azure.resourcemanager.labservices.models.LabPlans; import com.azure.resourcemanager.labservices.models.SaveImageBody; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class LabPlansImpl implements LabPlans { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlansImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(LabPlansImpl.class); private final LabPlansClient innerClient; @@ -92,7 +91,7 @@ public void saveImage(String resourceGroupName, String labPlanName, SaveImageBod public LabPlan getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -100,7 +99,7 @@ public LabPlan getById(String id) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); @@ -111,7 +110,7 @@ public LabPlan getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -119,7 +118,7 @@ public Response getByIdWithResponse(String id, Context context) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); @@ -130,7 +129,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -138,7 +137,7 @@ public void deleteById(String id) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); @@ -149,7 +148,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -157,7 +156,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String labPlanName = Utils.getValueFromIdByName(id, "labPlans"); if (labPlanName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labPlans'.", id))); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientBuilder.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientBuilder.java index 6459a4b3ec06..f06b8fa3dff1 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientBuilder.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -67,34 +66,34 @@ public LabServicesClientBuilder environment(AzureEnvironment environment) { } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the LabServicesClientBuilder. */ - public LabServicesClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public LabServicesClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the LabServicesClientBuilder. */ - public LabServicesClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public LabServicesClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -120,27 +119,26 @@ public LabServicesClientBuilder serializerAdapter(SerializerAdapter serializerAd * @return an instance of LabServicesClientImpl. */ public LabServicesClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); LabServicesClientImpl client = new LabServicesClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientImpl.java index fdfdc83df220..96574004d412 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabServicesClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -38,15 +39,12 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** Initializes a new instance of the LabServicesClientImpl type. */ @ServiceClient(builder = LabServicesClientBuilder.class) public final class LabServicesClientImpl implements LabServicesClient { - private final ClientLogger logger = new ClientLogger(LabServicesClientImpl.class); - /** The ID of the target subscription. */ private final String subscriptionId; @@ -191,28 +189,16 @@ public SchedulesClient getSchedules() { return this.schedules; } - /** The UsersClient object to access its operations. */ - private final UsersClient users; - - /** - * Gets the UsersClient object to access its operations. - * - * @return the UsersClient object. - */ - public UsersClient getUsers() { - return this.users; - } - - /** The VirtualMachinesClient object to access its operations. */ - private final VirtualMachinesClient virtualMachines; + /** The SkusClient object to access its operations. */ + private final SkusClient skus; /** - * Gets the VirtualMachinesClient object to access its operations. + * Gets the SkusClient object to access its operations. * - * @return the VirtualMachinesClient object. + * @return the SkusClient object. */ - public VirtualMachinesClient getVirtualMachines() { - return this.virtualMachines; + public SkusClient getSkus() { + return this.skus; } /** The UsagesClient object to access its operations. */ @@ -227,16 +213,28 @@ public UsagesClient getUsages() { return this.usages; } - /** The SkusClient object to access its operations. */ - private final SkusClient skus; + /** The UsersClient object to access its operations. */ + private final UsersClient users; /** - * Gets the SkusClient object to access its operations. + * Gets the UsersClient object to access its operations. * - * @return the SkusClient object. + * @return the UsersClient object. */ - public SkusClient getSkus() { - return this.skus; + public UsersClient getUsers() { + return this.users; + } + + /** The VirtualMachinesClient object to access its operations. */ + private final VirtualMachinesClient virtualMachines; + + /** + * Gets the VirtualMachinesClient object to access its operations. + * + * @return the VirtualMachinesClient object. + */ + public VirtualMachinesClient getVirtualMachines() { + return this.virtualMachines; } /** @@ -261,17 +259,17 @@ public SkusClient getSkus() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-11-15-preview"; + this.apiVersion = "2022-08-01"; this.images = new ImagesClientImpl(this); this.labPlans = new LabPlansClientImpl(this); this.operations = new OperationsClientImpl(this); this.labs = new LabsClientImpl(this); this.operationResults = new OperationResultsClientImpl(this); this.schedules = new SchedulesClientImpl(this); + this.skus = new SkusClientImpl(this); + this.usages = new UsagesClientImpl(this); this.users = new UsersClientImpl(this); this.virtualMachines = new VirtualMachinesClientImpl(this); - this.usages = new UsagesClientImpl(this); - this.skus = new SkusClientImpl(this); } /** @@ -290,10 +288,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** @@ -357,7 +352,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, managementError = null; } } catch (IOException | RuntimeException ioe) { - logger.logThrowableAsWarning(ioe); + LOGGER.logThrowableAsWarning(ioe); } } } else { @@ -416,4 +411,6 @@ public Mono getBodyAsString(Charset charset) { return Mono.just(new String(responseBody, charset)); } } + + private static final ClientLogger LOGGER = new ClientLogger(LabServicesClientImpl.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java index a2fefb18bc2d..671560385cfd 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.LabsClient; @@ -44,8 +43,6 @@ /** An instance of this class provides access to all the operations defined in LabsClient. */ public final class LabsClientImpl implements LabsClient { - private final ClientLogger logger = new ClientLogger(LabsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final LabsService service; @@ -207,7 +204,9 @@ Mono> listByResourceGroupNext( } /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

Returns a list of all labs for a subscription. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,7 +253,9 @@ private Mono> listSinglePageAsync(String filter) { } /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

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. @@ -299,13 +300,15 @@ private Mono> listSinglePageAsync(String filter, Context } /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

Returns a list of all labs for a subscription. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of labs. + * @return paged list of labs as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter) { @@ -314,11 +317,13 @@ private PagedFlux listAsync(String filter) { } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -328,14 +333,16 @@ private PagedFlux listAsync() { } /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter, Context context) { @@ -345,11 +352,13 @@ private PagedFlux listAsync(String filter, Context context) { } /** - * 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 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) public PagedIterable list() { @@ -358,14 +367,16 @@ public PagedIterable list() { } /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

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 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) public PagedIterable list(String filter, Context context) { @@ -373,7 +384,9 @@ public PagedIterable list(String filter, Context context) { } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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. @@ -424,7 +437,9 @@ private Mono> listByResourceGroupSinglePageAsync(String } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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. @@ -474,13 +489,15 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -490,14 +507,16 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName) { } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -507,13 +526,15 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName, C } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 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) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -521,14 +542,16 @@ public PagedIterable listByResourceGroup(String resourceGroupName) { } /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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 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) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -536,11 +559,12 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Con } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -584,11 +608,12 @@ private Mono> getByResourceGroupWithResponseAsync(String reso } /** - * 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 ManagementException thrown if the request is rejected by server. @@ -631,11 +656,12 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -644,22 +670,16 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String labName) { return getByResourceGroupWithResponseAsync(resourceGroupName, labName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -671,11 +691,12 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -689,11 +710,12 @@ public Response getByResourceGroupWithResponse( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -745,11 +767,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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. @@ -799,16 +822,17 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 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 PollerFlux} for polling of the lab resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabInner> beginCreateOrUpdateAsync( @@ -821,17 +845,18 @@ private PollerFlux, LabInner> beginCreateOrUpdateAsync( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 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 PollerFlux} for polling of the lab resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabInner> beginCreateOrUpdateAsync( @@ -846,16 +871,17 @@ private PollerFlux, LabInner> beginCreateOrUpdateAsync( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 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) public SyncPoller, LabInner> beginCreateOrUpdate( @@ -864,17 +890,18 @@ public SyncPoller, LabInner> beginCreateOrUpdate( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 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) public SyncPoller, LabInner> beginCreateOrUpdate( @@ -883,11 +910,12 @@ public SyncPoller, LabInner> beginCreateOrUpdate( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -902,11 +930,12 @@ private Mono createOrUpdateAsync(String resourceGroupName, String labN } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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. @@ -923,11 +952,12 @@ private Mono createOrUpdateAsync( } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -940,11 +970,12 @@ public LabInner createOrUpdate(String resourceGroupName, String labName, LabInne } /** - * Operation to create or update a lab resource. + * Create or update a lab resource. + * + *

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. @@ -958,11 +989,12 @@ public LabInner createOrUpdate(String resourceGroupName, String labName, LabInne } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1014,11 +1046,12 @@ private Mono>> updateWithResponseAsync( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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. @@ -1068,16 +1101,17 @@ private Mono>> updateWithResponseAsync( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 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 PollerFlux} for polling of the lab resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabInner> beginUpdateAsync( @@ -1090,17 +1124,18 @@ private PollerFlux, LabInner> beginUpdateAsync( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 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 PollerFlux} for polling of the lab resource. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, LabInner> beginUpdateAsync( @@ -1114,16 +1149,17 @@ private PollerFlux, LabInner> beginUpdateAsync( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 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) public SyncPoller, LabInner> beginUpdate( @@ -1132,17 +1168,18 @@ public SyncPoller, LabInner> beginUpdate( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 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) public SyncPoller, LabInner> beginUpdate( @@ -1151,11 +1188,12 @@ public SyncPoller, LabInner> beginUpdate( } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1168,11 +1206,12 @@ private Mono updateAsync(String resourceGroupName, String labName, Lab } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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. @@ -1188,11 +1227,12 @@ private Mono updateAsync(String resourceGroupName, String labName, Lab } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1205,11 +1245,12 @@ public LabInner update(String resourceGroupName, String labName, LabUpdate body) } /** - * Operation to update a lab resource. + * Update a lab resource. + * + *

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. @@ -1223,11 +1264,12 @@ public LabInner update(String resourceGroupName, String labName, LabUpdate body, } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1271,11 +1313,12 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1318,15 +1361,16 @@ private Mono>> deleteWithResponseAsync( } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String labName) { @@ -1338,16 +1382,17 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1360,15 +1405,16 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 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) public SyncPoller, Void> beginDelete(String resourceGroupName, String labName) { @@ -1376,16 +1422,17 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 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) public SyncPoller, Void> beginDelete(String resourceGroupName, String labName, Context context) { @@ -1393,11 +1440,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1409,11 +1457,12 @@ private Mono deleteAsync(String resourceGroupName, String labName) { } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1428,11 +1477,12 @@ private Mono deleteAsync(String resourceGroupName, String labName, Context } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1443,11 +1493,12 @@ public void delete(String resourceGroupName, String labName) { } /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1459,11 +1510,12 @@ public void delete(String resourceGroupName, String labName, Context context) { } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1507,11 +1559,12 @@ private Mono>> publishWithResponseAsync(String resourc } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1554,15 +1607,16 @@ private Mono>> publishWithResponseAsync( } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPublishAsync(String resourceGroupName, String labName) { @@ -1574,16 +1628,17 @@ private PollerFlux, Void> beginPublishAsync(String resourceGrou } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginPublishAsync( @@ -1596,15 +1651,16 @@ private PollerFlux, Void> beginPublishAsync( } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 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) public SyncPoller, Void> beginPublish(String resourceGroupName, String labName) { @@ -1612,16 +1668,17 @@ public SyncPoller, Void> beginPublish(String resourceGroupName, } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 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) public SyncPoller, Void> beginPublish(String resourceGroupName, String labName, Context context) { @@ -1629,11 +1686,12 @@ public SyncPoller, Void> beginPublish(String resourceGroupName, } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1645,11 +1703,12 @@ private Mono publishAsync(String resourceGroupName, String labName) { } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1664,11 +1723,12 @@ private Mono publishAsync(String resourceGroupName, String labName, Contex } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1679,11 +1739,12 @@ public void publish(String resourceGroupName, String labName) { } /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1695,11 +1756,12 @@ public void publish(String resourceGroupName, String labName, Context context) { } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1743,11 +1805,12 @@ private Mono>> syncGroupWithResponseAsync(String resou } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1790,15 +1853,16 @@ private Mono>> syncGroupWithResponseAsync( } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginSyncGroupAsync(String resourceGroupName, String labName) { @@ -1810,16 +1874,17 @@ private PollerFlux, Void> beginSyncGroupAsync(String resourceGr } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginSyncGroupAsync( @@ -1832,15 +1897,16 @@ private PollerFlux, Void> beginSyncGroupAsync( } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 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) public SyncPoller, Void> beginSyncGroup(String resourceGroupName, String labName) { @@ -1848,16 +1914,17 @@ public SyncPoller, Void> beginSyncGroup(String resourceGroupNam } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 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) public SyncPoller, Void> beginSyncGroup( @@ -1866,11 +1933,12 @@ public SyncPoller, Void> beginSyncGroup( } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1882,11 +1950,12 @@ private Mono syncGroupAsync(String resourceGroupName, String labName) { } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1901,11 +1970,12 @@ private Mono syncGroupAsync(String resourceGroupName, String labName, Cont } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1916,11 +1986,12 @@ public void syncGroup(String resourceGroupName, String labName) { } /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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 ManagementException thrown if the request is rejected by server. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsImpl.java index a84ab0c3d071..9ecf553c73ef 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.labservices.fluent.models.LabInner; import com.azure.resourcemanager.labservices.models.Lab; import com.azure.resourcemanager.labservices.models.Labs; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class LabsImpl implements Labs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(LabsImpl.class); private final LabsClient innerClient; @@ -97,7 +96,7 @@ public void syncGroup(String resourceGroupName, String labName, Context context) public Lab getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -105,7 +104,7 @@ public Lab getById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); @@ -116,7 +115,7 @@ public Lab getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -124,7 +123,7 @@ public Response getByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); @@ -135,7 +134,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -143,7 +142,7 @@ public void deleteById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); @@ -154,7 +153,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -162,7 +161,7 @@ public void deleteByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsClientImpl.java index 3146f009721d..45aaa8e3f3ee 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsClientImpl.java @@ -21,15 +21,12 @@ 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.OperationResultsClient; import com.azure.resourcemanager.labservices.fluent.models.OperationResultInner; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationResultsClient. */ public final class OperationResultsClientImpl implements OperationResultsClient { - private final ClientLogger logger = new ClientLogger(OperationResultsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationResultsService service; @@ -68,7 +65,9 @@ Mono> get( } /** - * 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. @@ -110,7 +109,9 @@ private Mono> getWithResponseAsync(String operati } /** - * 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. @@ -150,7 +151,9 @@ private Mono> getWithResponseAsync(String operati } /** - * 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. @@ -160,19 +163,13 @@ private Mono> getWithResponseAsync(String operati */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String operationResultId) { - return getWithResponseAsync(operationResultId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getWithResponseAsync(operationResultId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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. @@ -186,7 +183,9 @@ public 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/implementation/OperationResultsImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsImpl.java index 3139788681d7..d45eb68d3fbb 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationResultsImpl.java @@ -12,10 +12,9 @@ import com.azure.resourcemanager.labservices.fluent.models.OperationResultInner; import com.azure.resourcemanager.labservices.models.OperationResult; import com.azure.resourcemanager.labservices.models.OperationResults; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationResultsImpl implements OperationResults { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationResultsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationResultsImpl.class); private final OperationResultsClient innerClient; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsClientImpl.java index d81328e66bc0..f008bbd7decc 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsClientImpl.java @@ -25,7 +25,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.OperationsClient; import com.azure.resourcemanager.labservices.fluent.models.OperationInner; import com.azure.resourcemanager.labservices.models.OperationListResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public final class OperationsClientImpl implements OperationsClient { - private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class); - /** The proxy service used to perform REST calls. */ private final OperationsService service; @@ -81,7 +78,9 @@ Mono> listNext( } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -113,7 +112,9 @@ private Mono> listSinglePageAsync() { } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -146,11 +147,14 @@ private Mono> listSinglePageAsync(Context context) } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -158,13 +162,16 @@ private PagedFlux listAsync() { } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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 + * PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -173,11 +180,14 @@ private PagedFlux listAsync(Context context) { } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) public PagedIterable list() { @@ -185,13 +195,16 @@ public PagedIterable list() { } /** - * Returns a list of all operations. + * Get all operations + * + *

Returns a list of all operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) public PagedIterable list(Context context) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsImpl.java index 3c411f711f87..5f5e5e0e3d57 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/OperationsImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.labservices.fluent.models.OperationInner; import com.azure.resourcemanager.labservices.models.Operation; import com.azure.resourcemanager.labservices.models.Operations; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class OperationsImpl implements Operations { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); private final OperationsClient innerClient; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ScheduleImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ScheduleImpl.java index e1d8c87be63f..9cbf9fe5740d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ScheduleImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/ScheduleImpl.java @@ -58,6 +58,10 @@ public String notes() { return this.innerModel().notes(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ScheduleInner innerModel() { return this.innerObject; } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesClientImpl.java index e9ef6db0f15e..959d2f85995d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesClientImpl.java @@ -30,7 +30,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.SchedulesClient; @@ -43,8 +42,6 @@ /** An instance of this class provides access to all the operations defined in SchedulesClient. */ public final class SchedulesClientImpl implements SchedulesClient { - private final ClientLogger logger = new ClientLogger(SchedulesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SchedulesService service; @@ -163,11 +160,12 @@ Mono> listByLabNext( } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -223,11 +221,12 @@ private Mono> listByLabSinglePageAsync( } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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. @@ -281,16 +280,17 @@ private Mono> listByLabSinglePageAsync( } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of schedules. + * @return paged list of schedules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName, String filter) { @@ -300,15 +300,16 @@ private PagedFlux listByLabAsync(String resourceGroupName, String } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName) { @@ -319,17 +320,18 @@ private PagedFlux listByLabAsync(String resourceGroupName, String } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync( @@ -340,15 +342,16 @@ private PagedFlux listByLabAsync( } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 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) public PagedIterable listByLab(String resourceGroupName, String labName) { @@ -357,17 +360,18 @@ public PagedIterable listByLab(String resourceGroupName, String l } /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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 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) public PagedIterable listByLab( @@ -376,11 +380,12 @@ public PagedIterable listByLab( } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -432,11 +437,12 @@ private Mono> getWithResponseAsync( } /** - * 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. @@ -486,11 +492,12 @@ private Mono> getWithResponseAsync( } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -502,22 +509,16 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String labName, String scheduleName) { return getWithResponseAsync(resourceGroupName, labName, scheduleName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -531,11 +532,12 @@ public ScheduleInner get(String resourceGroupName, String labName, String schedu } /** - * 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. @@ -552,11 +554,12 @@ public Response getWithResponse( } /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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. @@ -615,11 +618,12 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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. @@ -676,11 +680,12 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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. @@ -694,22 +699,16 @@ private Mono> createOrUpdateWithResponseAsync( private Mono createOrUpdateAsync( String resourceGroupName, String labName, String scheduleName, ScheduleInner body) { return createOrUpdateWithResponseAsync(resourceGroupName, labName, scheduleName, body) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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. @@ -725,11 +724,12 @@ public ScheduleInner createOrUpdate( } /** - * Operation to create or update a lab schedule. + * Create or update a lab schedule. + * + *

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. @@ -747,11 +747,12 @@ public Response createOrUpdateWithResponse( } /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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. @@ -810,11 +811,12 @@ private Mono> updateWithResponseAsync( } /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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. @@ -871,11 +873,12 @@ private Mono> updateWithResponseAsync( } /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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. @@ -889,22 +892,16 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body) { return updateWithResponseAsync(resourceGroupName, labName, scheduleName, body) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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. @@ -919,11 +916,12 @@ public ScheduleInner update(String resourceGroupName, String labName, String sch } /** - * Operation to update a lab schedule. + * Update a lab schedule. + * + *

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. @@ -941,11 +939,12 @@ public Response updateWithResponse( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -996,11 +995,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -1049,17 +1049,18 @@ private Mono>> deleteWithResponseAsync( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1072,18 +1073,19 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1097,17 +1099,18 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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 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) public SyncPoller, Void> beginDelete( @@ -1116,18 +1119,19 @@ public SyncPoller, Void> beginDelete( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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 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) public SyncPoller, Void> beginDelete( @@ -1136,11 +1140,12 @@ public SyncPoller, Void> beginDelete( } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -1156,11 +1161,12 @@ private Mono deleteAsync(String resourceGroupName, String labName, String } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -1177,11 +1183,12 @@ private Mono deleteAsync(String resourceGroupName, String labName, String } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -1194,11 +1201,12 @@ public void delete(String resourceGroupName, String labName, String scheduleName } /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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/implementation/SchedulesImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesImpl.java index 3651bc5894a3..3db51961aff6 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SchedulesImpl.java @@ -13,10 +13,9 @@ import com.azure.resourcemanager.labservices.fluent.models.ScheduleInner; import com.azure.resourcemanager.labservices.models.Schedule; import com.azure.resourcemanager.labservices.models.Schedules; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SchedulesImpl implements Schedules { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SchedulesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SchedulesImpl.class); private final SchedulesClient innerClient; @@ -74,7 +73,7 @@ public void delete(String resourceGroupName, String labName, String scheduleName public Schedule getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -82,14 +81,14 @@ public Schedule getById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String scheduleName = Utils.getValueFromIdByName(id, "schedules"); if (scheduleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schedules'.", id))); @@ -100,7 +99,7 @@ public Schedule getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -108,14 +107,14 @@ public Response getByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String scheduleName = Utils.getValueFromIdByName(id, "schedules"); if (scheduleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schedules'.", id))); @@ -126,7 +125,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -134,14 +133,14 @@ public void deleteById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String scheduleName = Utils.getValueFromIdByName(id, "schedules"); if (scheduleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schedules'.", id))); @@ -152,7 +151,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -160,14 +159,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String scheduleName = Utils.getValueFromIdByName(id, "schedules"); if (scheduleName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'schedules'.", id))); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusClientImpl.java index 50df92c21d18..8868a89614f9 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusClientImpl.java @@ -25,7 +25,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.SkusClient; import com.azure.resourcemanager.labservices.fluent.models.LabServicesSkuInner; import com.azure.resourcemanager.labservices.models.PagedLabServicesSkus; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in SkusClient. */ public final class SkusClientImpl implements SkusClient { - private final ClientLogger logger = new ClientLogger(SkusClientImpl.class); - /** The proxy service used to perform REST calls. */ private final SkusService service; @@ -82,7 +79,9 @@ Mono> listNext( } /** - * 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. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,7 +129,9 @@ private Mono> listSinglePageAsync(String filt } /** - * 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. * * @param filter The filter to apply to the operation. * @param context The context to associate with this operation. @@ -176,13 +177,15 @@ private Mono> listSinglePageAsync(String filt } /** - * 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. * * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of lab services skus. + * @return paged list of lab services skus as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter) { @@ -190,11 +193,13 @@ private PagedFlux listAsync(String filter) { } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -203,14 +208,16 @@ private PagedFlux listAsync() { } /** - * 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. * * @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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String filter, Context context) { @@ -219,11 +226,13 @@ private PagedFlux listAsync(String filter, Context context) } /** - * 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 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) public PagedIterable list() { @@ -232,14 +241,16 @@ public PagedIterable list() { } /** - * 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. * * @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 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) public PagedIterable list(String filter, Context context) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusImpl.java index 531502d393fc..79ca4615e703 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/SkusImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.labservices.fluent.models.LabServicesSkuInner; import com.azure.resourcemanager.labservices.models.LabServicesSku; import com.azure.resourcemanager.labservices.models.Skus; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class SkusImpl implements Skus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SkusImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(SkusImpl.class); private final SkusClient innerClient; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesClientImpl.java index 7d1275df6803..de6a85c7bc55 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesClientImpl.java @@ -25,7 +25,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.UsagesClient; import com.azure.resourcemanager.labservices.fluent.models.UsageInner; import com.azure.resourcemanager.labservices.models.ListUsagesResult; @@ -33,8 +32,6 @@ /** An instance of this class provides access to all the operations defined in UsagesClient. */ public final class UsagesClientImpl implements UsagesClient { - private final ClientLogger logger = new ClientLogger(UsagesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final UsagesService service; @@ -83,7 +80,9 @@ Mono> listByLocationNext( } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. @@ -135,7 +134,9 @@ private Mono> listByLocationSinglePageAsync(String loc } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. @@ -186,14 +187,16 @@ private Mono> listByLocationSinglePageAsync( } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Core Usages. + * @return list of Core Usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLocationAsync(String location, String filter) { @@ -203,13 +206,15 @@ private PagedFlux listByLocationAsync(String location, String filter } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLocationAsync(String location) { @@ -220,7 +225,9 @@ private PagedFlux listByLocationAsync(String location) { } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. @@ -228,7 +235,7 @@ private PagedFlux listByLocationAsync(String location) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Core Usages. + * @return list of Core Usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLocationAsync(String location, String filter, Context context) { @@ -238,13 +245,15 @@ private PagedFlux listByLocationAsync(String location, String filter } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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 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) public PagedIterable listByLocation(String location) { @@ -253,7 +262,9 @@ public PagedIterable listByLocation(String location) { } /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. @@ -261,7 +272,7 @@ public PagedIterable listByLocation(String location) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Core Usages. + * @return list of Core Usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByLocation(String location, String filter, Context context) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesImpl.java index 945f799f6a08..ed4123593c1f 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsagesImpl.java @@ -11,10 +11,9 @@ import com.azure.resourcemanager.labservices.fluent.models.UsageInner; import com.azure.resourcemanager.labservices.models.Usage; import com.azure.resourcemanager.labservices.models.Usages; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class UsagesImpl implements Usages { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UsagesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(UsagesImpl.class); private final UsagesClient innerClient; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UserImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UserImpl.java index 1c64223673fe..c5e036a0800c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UserImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UserImpl.java @@ -69,6 +69,10 @@ public Duration additionalUsageQuota() { return this.innerModel().additionalUsageQuota(); } + public String resourceGroupName() { + return resourceGroupName; + } + public UserInner innerModel() { return this.innerObject; } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersClientImpl.java index b373ac30f49c..f6a620341ebc 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersClientImpl.java @@ -31,7 +31,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.UsersClient; @@ -45,8 +44,6 @@ /** An instance of this class provides access to all the operations defined in UsersClient. */ public final class UsersClientImpl implements UsersClient { - private final ClientLogger logger = new ClientLogger(UsersClientImpl.class); - /** The proxy service used to perform REST calls. */ private final UsersService service; @@ -181,11 +178,12 @@ Mono> listByLabNext( } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -241,11 +239,12 @@ private Mono> listByLabSinglePageAsync( } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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. @@ -299,16 +298,17 @@ private Mono> listByLabSinglePageAsync( } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of users. + * @return paged list of users as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName, String filter) { @@ -318,15 +318,16 @@ private PagedFlux listByLabAsync(String resourceGroupName, String lab } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName) { @@ -337,17 +338,18 @@ private PagedFlux listByLabAsync(String resourceGroupName, String lab } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync( @@ -358,15 +360,16 @@ private PagedFlux listByLabAsync( } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 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) public PagedIterable listByLab(String resourceGroupName, String labName) { @@ -375,17 +378,18 @@ public PagedIterable listByLab(String resourceGroupName, String labNa } /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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 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) public PagedIterable listByLab( @@ -394,11 +398,12 @@ public PagedIterable listByLab( } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -448,11 +453,12 @@ private Mono> getWithResponseAsync(String resourceGroupName, } /** - * 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. @@ -501,11 +507,12 @@ private Mono> getWithResponseAsync( } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -516,22 +523,16 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String labName, String username) { return getWithResponseAsync(resourceGroupName, labName, username) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -544,11 +545,12 @@ public 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. @@ -563,11 +565,12 @@ public Response getWithResponse( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -625,11 +628,12 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -685,18 +689,19 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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 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 PollerFlux} for polling of user of a lab that can register for and use virtual machines within + * the lab. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, UserInner> beginCreateOrUpdateAsync( @@ -710,19 +715,20 @@ private PollerFlux, UserInner> beginCreateOrUpdateAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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 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 PollerFlux} for polling of user of a lab that can register for and use virtual machines within + * the lab. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, UserInner> beginCreateOrUpdateAsync( @@ -737,18 +743,19 @@ private PollerFlux, UserInner> beginCreateOrUpdateAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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 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) public SyncPoller, UserInner> beginCreateOrUpdate( @@ -757,19 +764,20 @@ public SyncPoller, UserInner> beginCreateOrUpdate( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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 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) public SyncPoller, UserInner> beginCreateOrUpdate( @@ -778,11 +786,12 @@ public SyncPoller, UserInner> beginCreateOrUpdate( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -800,11 +809,12 @@ private Mono createOrUpdateAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -823,11 +833,12 @@ private Mono createOrUpdateAsync( } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -841,11 +852,12 @@ public UserInner createOrUpdate(String resourceGroupName, String labName, String } /** - * Operation to create or update a lab user. + * Create or update a lab user. + * + *

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. @@ -861,11 +873,12 @@ public UserInner createOrUpdate( } /** - * 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. @@ -923,11 +936,12 @@ private Mono>> updateWithResponseAsync( } /** - * 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. * @param context The context to associate with this operation. @@ -983,18 +997,19 @@ private Mono>> updateWithResponseAsync( } /** - * 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 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 PollerFlux} for polling of user of a lab that can register for and use virtual machines within + * the lab. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, UserInner> beginUpdateAsync( @@ -1007,19 +1022,20 @@ private PollerFlux, UserInner> beginUpdateAsync( } /** - * 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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 PollerFlux} for polling of user of a lab that can register for and use virtual machines within + * the lab. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, UserInner> beginUpdateAsync( @@ -1034,18 +1050,19 @@ private PollerFlux, UserInner> beginUpdateAsync( } /** - * 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 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) public SyncPoller, UserInner> beginUpdate( @@ -1054,19 +1071,20 @@ public SyncPoller, UserInner> beginUpdate( } /** - * 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. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) public SyncPoller, UserInner> beginUpdate( @@ -1075,11 +1093,12 @@ public SyncPoller, UserInner> beginUpdate( } /** - * 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. @@ -1096,11 +1115,12 @@ private Mono updateAsync(String resourceGroupName, String labName, St } /** - * 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. * @param context The context to associate with this operation. @@ -1119,11 +1139,12 @@ private Mono updateAsync( } /** - * 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. @@ -1137,11 +1158,12 @@ public UserInner update(String resourceGroupName, String labName, String usernam } /** - * 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. * @param context The context to associate with this operation. @@ -1157,11 +1179,12 @@ public UserInner update( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1211,11 +1234,12 @@ private Mono>> deleteWithResponseAsync( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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. @@ -1263,16 +1287,17 @@ private Mono>> deleteWithResponseAsync( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1285,17 +1310,18 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync( @@ -1308,16 +1334,17 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 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) public SyncPoller, Void> beginDelete(String resourceGroupName, String labName, String username) { @@ -1325,17 +1352,18 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 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) public SyncPoller, Void> beginDelete( @@ -1344,11 +1372,12 @@ public SyncPoller, Void> beginDelete( } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1363,11 +1392,12 @@ private Mono deleteAsync(String resourceGroupName, String labName, String } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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. @@ -1383,11 +1413,12 @@ private Mono deleteAsync(String resourceGroupName, String labName, String } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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 ManagementException thrown if the request is rejected by server. @@ -1399,11 +1430,12 @@ public void delete(String resourceGroupName, String labName, String username) { } /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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. @@ -1416,11 +1448,12 @@ public void delete(String resourceGroupName, String labName, String username, Co } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -1477,11 +1510,12 @@ private Mono>> inviteWithResponseAsync( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -1536,17 +1570,18 @@ private Mono>> inviteWithResponseAsync( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginInviteAsync( @@ -1559,18 +1594,19 @@ private PollerFlux, Void> beginInviteAsync( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginInviteAsync( @@ -1584,17 +1620,18 @@ private PollerFlux, Void> beginInviteAsync( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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 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) public SyncPoller, Void> beginInvite( @@ -1603,18 +1640,19 @@ public SyncPoller, Void> beginInvite( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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 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) public SyncPoller, Void> beginInvite( @@ -1623,11 +1661,12 @@ public SyncPoller, Void> beginInvite( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -1643,11 +1682,12 @@ private Mono inviteAsync(String resourceGroupName, String labName, String } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -1665,11 +1705,12 @@ private Mono inviteAsync( } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -1682,11 +1723,12 @@ public void invite(String resourceGroupName, String labName, String username, In } /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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/implementation/UsersImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersImpl.java index 1e5b8ca7555a..9a003cf29383 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/UsersImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.labservices.models.InviteBody; import com.azure.resourcemanager.labservices.models.User; import com.azure.resourcemanager.labservices.models.Users; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class UsersImpl implements Users { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UsersImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(UsersImpl.class); private final UsersClient innerClient; @@ -79,7 +78,7 @@ public void invite(String resourceGroupName, String labName, String username, In public User getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -87,14 +86,14 @@ public User getById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.getValueFromIdByName(id, "users"); if (username == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); @@ -105,7 +104,7 @@ public User getById(String id) { public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -113,14 +112,14 @@ public Response getByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.getValueFromIdByName(id, "users"); if (username == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); @@ -131,7 +130,7 @@ public Response getByIdWithResponse(String id, Context context) { public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -139,14 +138,14 @@ public void deleteById(String id) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.getValueFromIdByName(id, "users"); if (username == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); @@ -157,7 +156,7 @@ public void deleteById(String id) { public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String @@ -165,14 +164,14 @@ public void deleteByIdWithResponse(String id, Context context) { } String labName = Utils.getValueFromIdByName(id, "labs"); if (labName == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'labs'.", id))); } String username = Utils.getValueFromIdByName(id, "users"); if (username == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'users'.", id))); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesClientImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesClientImpl.java index 76cf2340485f..1ebb376384c7 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesClientImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesClientImpl.java @@ -28,7 +28,6 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.labservices.fluent.VirtualMachinesClient; @@ -41,8 +40,6 @@ /** An instance of this class provides access to all the operations defined in VirtualMachinesClient. */ public final class VirtualMachinesClientImpl implements VirtualMachinesClient { - private final ClientLogger logger = new ClientLogger(VirtualMachinesClientImpl.class); - /** The proxy service used to perform REST calls. */ private final VirtualMachinesService service; @@ -192,11 +189,12 @@ Mono> listByLabNext( } /** - * 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. * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -253,11 +251,12 @@ private Mono> listByLabSinglePageAsync( } /** - * 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. * @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. @@ -312,16 +311,17 @@ private Mono> listByLabSinglePageAsync( } /** - * 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. * @param filter The filter to apply to the operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return paged list of lab services virtual machines. + * @return paged list of lab services virtual machines as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName, String filter) { @@ -331,15 +331,16 @@ private PagedFlux listByLabAsync(String resourceGroupName, } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync(String resourceGroupName, String labName) { @@ -350,17 +351,18 @@ private PagedFlux listByLabAsync(String resourceGroupName, } /** - * 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. * @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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLabAsync( @@ -371,15 +373,16 @@ private PagedFlux listByLabAsync( } /** - * 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 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) public PagedIterable listByLab(String resourceGroupName, String labName) { @@ -388,17 +391,18 @@ public PagedIterable listByLab(String resourceGroupName, St } /** - * 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. * @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 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) public PagedIterable listByLab( @@ -407,11 +411,12 @@ public PagedIterable listByLab( } /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -463,11 +468,12 @@ private Mono> getWithResponseAsync( } /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -517,11 +523,12 @@ private Mono> getWithResponseAsync( } /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -532,22 +539,16 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String labName, String virtualMachineName) { return getWithResponseAsync(resourceGroupName, labName, virtualMachineName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -561,11 +562,12 @@ public VirtualMachineInner get(String resourceGroupName, String labName, String } /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -581,11 +583,12 @@ public Response getWithResponse( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -637,11 +640,12 @@ private Mono>> startWithResponseAsync( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -691,17 +695,18 @@ private Mono>> startWithResponseAsync( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -714,18 +719,19 @@ private PollerFlux, Void> beginStartAsync( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStartAsync( @@ -739,17 +745,18 @@ private PollerFlux, Void> beginStartAsync( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginStart( @@ -758,18 +765,19 @@ public SyncPoller, Void> beginStart( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginStart( @@ -778,11 +786,12 @@ public SyncPoller, Void> beginStart( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -798,11 +807,12 @@ private Mono startAsync(String resourceGroupName, String labName, String v } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -820,11 +830,12 @@ private Mono startAsync( } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -837,11 +848,12 @@ public void start(String resourceGroupName, String labName, String virtualMachin } /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -855,11 +867,12 @@ public void start(String resourceGroupName, String labName, String virtualMachin } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -911,11 +924,12 @@ private Mono>> stopWithResponseAsync( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -965,17 +979,18 @@ private Mono>> stopWithResponseAsync( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -988,18 +1003,19 @@ private PollerFlux, Void> beginStopAsync( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginStopAsync( @@ -1013,17 +1029,18 @@ private PollerFlux, Void> beginStopAsync( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginStop( @@ -1032,18 +1049,19 @@ public SyncPoller, Void> beginStop( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginStop( @@ -1052,11 +1070,12 @@ public SyncPoller, Void> beginStop( } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -1072,11 +1091,12 @@ private Mono stopAsync(String resourceGroupName, String labName, String vi } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -1093,11 +1113,12 @@ private Mono stopAsync(String resourceGroupName, String labName, String vi } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -1110,11 +1131,12 @@ public void stop(String resourceGroupName, String labName, String virtualMachine } /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -1128,12 +1150,13 @@ public void stop(String resourceGroupName, String labName, String virtualMachine } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1185,12 +1208,13 @@ private Mono>> reimageWithResponseAsync( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1240,18 +1264,19 @@ private Mono>> reimageWithResponseAsync( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReimageAsync( @@ -1265,19 +1290,20 @@ private PollerFlux, Void> beginReimageAsync( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginReimageAsync( @@ -1291,18 +1317,19 @@ private PollerFlux, Void> beginReimageAsync( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginReimage( @@ -1311,19 +1338,20 @@ public SyncPoller, Void> beginReimage( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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 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) public SyncPoller, Void> beginReimage( @@ -1332,12 +1360,13 @@ public SyncPoller, Void> beginReimage( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1353,12 +1382,13 @@ private Mono reimageAsync(String resourceGroupName, String labName, String } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1376,12 +1406,13 @@ private Mono reimageAsync( } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1394,12 +1425,13 @@ public void reimage(String resourceGroupName, String labName, String virtualMach } /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -1413,11 +1445,12 @@ public void reimage(String resourceGroupName, String labName, String virtualMach } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1469,11 +1502,12 @@ private Mono>> redeployWithResponseAsync( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1523,17 +1557,18 @@ private Mono>> redeployWithResponseAsync( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRedeployAsync( @@ -1547,18 +1582,19 @@ private PollerFlux, Void> beginRedeployAsync( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginRedeployAsync( @@ -1572,17 +1608,18 @@ private PollerFlux, Void> beginRedeployAsync( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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 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) public SyncPoller, Void> beginRedeploy( @@ -1591,18 +1628,19 @@ public SyncPoller, Void> beginRedeploy( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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 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) public SyncPoller, Void> beginRedeploy( @@ -1611,11 +1649,12 @@ public SyncPoller, Void> beginRedeploy( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1631,11 +1670,12 @@ private Mono redeployAsync(String resourceGroupName, String labName, Strin } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1653,11 +1693,12 @@ private Mono redeployAsync( } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1670,11 +1711,12 @@ public void redeploy(String resourceGroupName, String labName, String virtualMac } /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -1688,11 +1730,12 @@ public void redeploy(String resourceGroupName, String labName, String virtualMac } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1751,11 +1794,12 @@ private Mono>> resetPasswordWithResponseAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1812,18 +1856,19 @@ private Mono>> resetPasswordWithResponseAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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 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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResetPasswordAsync( @@ -1837,11 +1882,12 @@ private PollerFlux, Void> beginResetPasswordAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1849,7 +1895,7 @@ private PollerFlux, Void> beginResetPasswordAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginResetPasswordAsync( @@ -1863,18 +1909,19 @@ private PollerFlux, Void> beginResetPasswordAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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 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) public SyncPoller, Void> beginResetPassword( @@ -1883,11 +1930,12 @@ public SyncPoller, Void> beginResetPassword( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1895,7 +1943,7 @@ public SyncPoller, Void> beginResetPassword( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginResetPassword( @@ -1904,11 +1952,12 @@ public SyncPoller, Void> beginResetPassword( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1926,11 +1975,12 @@ private Mono resetPasswordAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1949,11 +1999,12 @@ private Mono resetPasswordAsync( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -1968,11 +2019,12 @@ public void resetPassword( } /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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/implementation/VirtualMachinesImpl.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesImpl.java index b6998cfb5ec5..c9f6d20b4d87 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesImpl.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/VirtualMachinesImpl.java @@ -14,10 +14,9 @@ import com.azure.resourcemanager.labservices.models.ResetPasswordBody; import com.azure.resourcemanager.labservices.models.VirtualMachine; import com.azure.resourcemanager.labservices.models.VirtualMachines; -import com.fasterxml.jackson.annotation.JsonIgnore; public final class VirtualMachinesImpl implements VirtualMachines { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachinesImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(VirtualMachinesImpl.class); private final VirtualMachinesClient innerClient; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ActionType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ActionType.java index 5b64ac876510..142c2ba422cf 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ActionType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ActionType.java @@ -24,7 +24,11 @@ public static ActionType fromString(String name) { return fromString(name, ActionType.class); } - /** @return known ActionType values. */ + /** + * Gets known ActionType values. + * + * @return known ActionType values. + */ public static Collection values() { return values(ActionType.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/AutoShutdownProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/AutoShutdownProfile.java index 4ed699bbaf4a..3dff5e28b47b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/AutoShutdownProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/AutoShutdownProfile.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.labservices.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; /** Profile for how to handle shutting down virtual machines. */ @Fluent public final class AutoShutdownProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(AutoShutdownProfile.class); - /* * Whether shutdown on disconnect is enabled */ @@ -22,8 +18,7 @@ public final class AutoShutdownProfile { private EnableState shutdownOnDisconnect; /* - * Whether a VM will get shutdown when it hasn't been connected to after a - * period of time. + * Whether a VM will get shutdown when it hasn't been connected to after a period of time. */ @JsonProperty(value = "shutdownWhenNotConnected") private EnableState shutdownWhenNotConnected; @@ -35,22 +30,20 @@ public final class AutoShutdownProfile { private ShutdownOnIdleMode shutdownOnIdle; /* - * The amount of time a VM will stay running after a user disconnects if - * this behavior is enabled. + * The amount of time a VM will stay running after a user disconnects if this behavior is enabled. */ @JsonProperty(value = "disconnectDelay") private Duration disconnectDelay; /* - * The amount of time a VM will stay running before it is shutdown if no - * connection is made and this behavior is enabled. + * The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is + * enabled. */ @JsonProperty(value = "noConnectDelay") private Duration noConnectDelay; /* - * The amount of time a VM will idle before it is shutdown if this behavior - * is enabled. + * The amount of time a VM will idle before it is shutdown if this behavior is enabled. */ @JsonProperty(value = "idleDelay") private Duration idleDelay; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionProfile.java index a6d2ae482a95..3fba6d579028 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Connection profile for how users connect to lab virtual machines. */ @Fluent public final class ConnectionProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ConnectionProfile.class); - /* * The enabled access level for Web Access over SSH. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionType.java index 2398502e21d3..e3c0e524944b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ConnectionType.java @@ -33,6 +33,9 @@ public enum ConnectionType { */ @JsonCreator public static ConnectionType fromString(String value) { + if (value == null) { + return null; + } ConnectionType[] items = ConnectionType.values(); for (ConnectionType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/CreateOption.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/CreateOption.java index b71b324c9c6e..ea0a92a5f026 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/CreateOption.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/CreateOption.java @@ -30,6 +30,9 @@ public enum CreateOption { */ @JsonCreator public static CreateOption fromString(String value) { + if (value == null) { + return null; + } CreateOption[] items = CreateOption.values(); for (CreateOption item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Credentials.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Credentials.java index f771f84b95d8..d117111716b0 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Credentials.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Credentials.java @@ -6,14 +6,11 @@ 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; /** Credentials for a user on a lab VM. */ @Fluent public final class Credentials { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Credentials.class); - /* * The username to use when signing in to lab VMs. */ @@ -21,8 +18,7 @@ public final class Credentials { private String username; /* - * The password for the user. This is required for the TemplateVM - * createOption. + * The password for the user. This is required for the TemplateVM createOption. */ @JsonProperty(value = "password") private String password; @@ -74,9 +70,11 @@ public Credentials withPassword(String password) { */ public void validate() { if (username() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property username in model Credentials")); } } + + private static final ClientLogger LOGGER = new ClientLogger(Credentials.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/EnableState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/EnableState.java index 4c0aae95c00c..31f3eac5d749 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/EnableState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/EnableState.java @@ -30,6 +30,9 @@ public enum EnableState { */ @JsonCreator public static EnableState fromString(String value) { + if (value == null) { + return null; + } EnableState[] items = EnableState.values(); for (EnableState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Identity.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Identity.java new file mode 100644 index 000000000000..3f52562e54aa --- /dev/null +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Identity.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.labservices.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Identity for the resource. */ +@Fluent +public class Identity { + /* + * The principal ID of resource identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /* + * The tenant ID of resource. + */ + @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) + private String tenantId; + + /* + * The identity type. + */ + @JsonProperty(value = "type") + private ResourceIdentityType type; + + /** + * Get the principalId property: The principal ID of resource identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The tenant ID of resource. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the type property: The identity type. + * + * @return the type value. + */ + public ResourceIdentityType type() { + return this.type; + } + + /** + * Set the type property: The identity type. + * + * @param type the type value to set. + * @return the Identity object itself. + */ + public Identity withType(ResourceIdentityType type) { + this.type = type; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Image.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Image.java index b90c5af8656a..febad1c7e1ad 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Image.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Image.java @@ -151,6 +151,13 @@ public interface Image { */ EnableState enabledState(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.labservices.fluent.models.ImageInner object. * diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageReference.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageReference.java index 1af0ae7578b2..a8b85c7ef984 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageReference.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageReference.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Image reference information. Used in the virtual machine profile. */ @Fluent public final class ImageReference { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageReference.class); - /* * Image resource ID */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageUpdate.java index bc2c12d2b645..4eb717083b16 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ImageUpdate.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.ImageUpdateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Lab services virtual machine image for updates. */ @Fluent public final class ImageUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ImageUpdate.class); - /* * Image resource properties */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Images.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Images.java index 4bf6d4b5e604..19dc6e337235 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Images.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Images.java @@ -11,7 +11,9 @@ /** Resource collection API of Images. */ public interface Images { /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 @@ -19,12 +21,14 @@ public interface Images { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ PagedIterable listByLabPlan(String resourceGroupName, String labPlanName); /** - * Gets all images from galleries attached to a lab plan. + * Gets all images. + * + *

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 @@ -34,12 +38,14 @@ public interface Images { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ PagedIterable listByLabPlan(String resourceGroupName, String labPlanName, String filter, Context context); /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -53,7 +59,9 @@ public interface Images { Image get(String resourceGroupName, String labPlanName, String imageName); /** - * Gets an image resource. + * Gets an image. + * + *

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 @@ -68,7 +76,9 @@ public interface Images { Response getWithResponse(String resourceGroupName, String labPlanName, String imageName, Context context); /** - * Gets an image resource. + * Gets an image. + * + *

Gets an image resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -79,7 +89,9 @@ public interface Images { Image getById(String id); /** - * Gets an image resource. + * Gets an image. + * + *

Gets an image resource. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InvitationState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InvitationState.java index ae6383ad0eaa..d42d91217f49 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InvitationState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InvitationState.java @@ -36,6 +36,9 @@ public enum InvitationState { */ @JsonCreator public static InvitationState fromString(String value) { + if (value == null) { + return null; + } InvitationState[] items = InvitationState.values(); for (InvitationState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InviteBody.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InviteBody.java index 0e7f4aac474f..c407e000d963 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InviteBody.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/InviteBody.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Body for a user invite request. */ @Fluent public final class InviteBody { - @JsonIgnore private final ClientLogger logger = new ClientLogger(InviteBody.class); - /* * Custom text for the invite email. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Lab.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Lab.java index abfde36b0d2d..855649819486 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Lab.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Lab.java @@ -151,6 +151,13 @@ public interface Lab { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.labservices.fluent.models.LabInner object. * @@ -489,7 +496,9 @@ interface WithDescription { Lab refresh(Context context); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -497,7 +506,9 @@ interface WithDescription { void publish(); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -507,7 +518,9 @@ interface WithDescription { void publish(Context context); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

Action used to manually kick off an AAD group sync job. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -515,7 +528,9 @@ interface WithDescription { void syncGroup(); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

Action used to manually kick off an AAD group sync job. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabNetworkProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabNetworkProfile.java index 59ac85fe3d45..586538d73a93 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabNetworkProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabNetworkProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Profile for how to handle networking for Labs. */ @Fluent public final class LabNetworkProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabNetworkProfile.class); - /* * The external subnet resource id */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlan.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlan.java index a86ddfeb3a41..b05174eb8765 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlan.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlan.java @@ -55,6 +55,13 @@ public interface LabPlan { */ SystemData systemData(); + /** + * Gets the identity property: Managed Identity Information. + * + * @return the identity value. + */ + Identity identity(); + /** * Gets the provisioningState property: Current provisioning state of the lab plan. * @@ -132,6 +139,13 @@ public interface LabPlan { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.labservices.fluent.models.LabPlanInner object. * @@ -185,6 +199,7 @@ interface WithResourceGroup { */ interface WithCreate extends DefinitionStages.WithTags, + DefinitionStages.WithIdentity, DefinitionStages.WithDefaultConnectionProfile, DefinitionStages.WithDefaultAutoShutdownProfile, DefinitionStages.WithDefaultNetworkProfile, @@ -217,6 +232,16 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the LabPlan definition allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed Identity Information. + * + * @param identity Managed Identity Information. + * @return the next definition stage. + */ + WithCreate withIdentity(Identity identity); + } /** The stage of the LabPlan definition allowing to specify defaultConnectionProfile. */ interface WithDefaultConnectionProfile { /** @@ -315,6 +340,7 @@ interface WithLinkedLmsInstance { /** The template for LabPlan update. */ interface Update extends UpdateStages.WithTags, + UpdateStages.WithIdentity, UpdateStages.WithDefaultConnectionProfile, UpdateStages.WithDefaultAutoShutdownProfile, UpdateStages.WithDefaultNetworkProfile, @@ -349,6 +375,16 @@ interface WithTags { */ Update withTags(List tags); } + /** The stage of the LabPlan update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: Managed Identity Information. + * + * @param identity Managed Identity Information. + * @return the next definition stage. + */ + Update withIdentity(Identity identity); + } /** The stage of the LabPlan update allowing to specify defaultConnectionProfile. */ interface WithDefaultConnectionProfile { /** @@ -453,7 +489,9 @@ interface WithLinkedLmsInstance { LabPlan refresh(Context context); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

Saves an image from a lab VM to the attached shared image gallery. * * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -463,7 +501,9 @@ interface WithLinkedLmsInstance { void saveImage(SaveImageBody body); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

Saves an image from a lab VM to the attached shared image gallery. * * @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/models/LabPlanNetworkProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanNetworkProfile.java index 7be20f641234..2789ed5074f8 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanNetworkProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanNetworkProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Profile for how to handle networking for Lab Plans. */ @Fluent public final class LabPlanNetworkProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlanNetworkProfile.class); - /* * The external subnet resource id */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanUpdate.java index 070376a9c3fa..a3cbc9d658a4 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlanUpdate.java @@ -5,23 +5,25 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.LabPlanUpdateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Contains lab configuration and default settings. This variant is used for PATCH. */ @Fluent public final class LabPlanUpdate extends TrackedResourceUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabPlanUpdate.class); - /* * Lab plan resource update properties */ @JsonProperty(value = "properties") private LabPlanUpdateProperties innerProperties; + /* + * Managed Identity Information + */ + @JsonProperty(value = "identity") + private Identity identity; + /** * Get the innerProperties property: Lab plan resource update properties. * @@ -31,6 +33,26 @@ private LabPlanUpdateProperties 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 LabPlanUpdate object itself. + */ + public LabPlanUpdate withIdentity(Identity identity) { + this.identity = identity; + return this; + } + /** {@inheritDoc} */ @Override public LabPlanUpdate withTags(List tags) { @@ -224,5 +246,8 @@ public void validate() { if (innerProperties() != null) { innerProperties().validate(); } + if (identity() != null) { + identity().validate(); + } } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlans.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlans.java index 3688f6fbd16d..f8bde639238b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlans.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabPlans.java @@ -11,51 +11,61 @@ /** Resource collection API of LabPlans. */ public interface LabPlans { /** - * 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}. */ PagedIterable list(); /** - * 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. * * @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}. */ PagedIterable list(String filter, Context context); /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** - * Returns a list of all lab plans for a subscription and resource group. + * Get all lab plans for a subscription and resource group. + * + *

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}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * 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 @@ -68,7 +78,9 @@ public interface LabPlans { LabPlan 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 @@ -82,8 +94,10 @@ public interface LabPlans { Response getByResourceGroupWithResponse(String resourceGroupName, String labPlanName, Context context); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -95,8 +109,10 @@ public interface LabPlans { void deleteByResourceGroup(String resourceGroupName, String labPlanName); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 @@ -109,7 +125,9 @@ public interface LabPlans { void delete(String resourceGroupName, String labPlanName, Context context); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -122,7 +140,9 @@ public interface LabPlans { void saveImage(String resourceGroupName, String labPlanName, SaveImageBody body); /** - * Saves an image from a lab VM to the attached shared image gallery. + * Save an image from a lab VM to the attached shared image gallery. + * + *

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 @@ -136,7 +156,9 @@ public interface LabPlans { void saveImage(String resourceGroupName, String labPlanName, SaveImageBody body, Context context); /** - * Retrieves the properties of a Lab Plan. + * Retrieves a Lab Plan resource. + * + *

Retrieves the properties of a Lab Plan. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +169,9 @@ public interface LabPlans { LabPlan getById(String id); /** - * Retrieves the properties of a Lab Plan. + * Retrieves a Lab Plan resource. + * + *

Retrieves the properties of a Lab Plan. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -159,8 +183,10 @@ public interface LabPlans { Response getByIdWithResponse(String id, Context context); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,8 +196,10 @@ public interface LabPlans { void deleteById(String id); /** - * 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. + * Deletes a Lab Plan resource. + * + *

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 id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapabilities.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapabilities.java index 9b656fee01f2..9c06bcd1612d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapabilities.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapabilities.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The array of capabilities of a lab services SKU. */ @Immutable public final class LabServicesSkuCapabilities { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabServicesSkuCapabilities.class); - /* * The name of the capability for a SKU. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapacity.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapacity.java index 3cc4caf9c7d2..50b35d6101d8 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapacity.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCapacity.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The scale out/in options of the SKU. */ @Immutable public final class LabServicesSkuCapacity { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabServicesSkuCapacity.class); - /* * The default capacity for this resource. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCost.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCost.java index 5c23ce7e9319..c1cd303ce33b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCost.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuCost.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The array of costs of a lab services SKU. */ @Immutable public final class LabServicesSkuCost { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabServicesSkuCost.class); - /* * The meter id. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuRestrictions.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuRestrictions.java index ca093c400699..5662d3a5fa92 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuRestrictions.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuRestrictions.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The restriction details. */ @Immutable public final class LabServicesSkuRestrictions { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabServicesSkuRestrictions.class); - /* * The type of restriction. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuTier.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuTier.java index 67713ad39d90..cafb5ef888dd 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuTier.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabServicesSkuTier.java @@ -27,7 +27,11 @@ public static LabServicesSkuTier fromString(String name) { return fromString(name, LabServicesSkuTier.class); } - /** @return known LabServicesSkuTier values. */ + /** + * Gets known LabServicesSkuTier values. + * + * @return known LabServicesSkuTier values. + */ public static Collection values() { return values(LabServicesSkuTier.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabState.java index 6001826eee8c..62a2513e6682 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabState.java @@ -39,6 +39,9 @@ public enum LabState { */ @JsonCreator public static LabState fromString(String value) { + if (value == null) { + return null; + } LabState[] items = LabState.values(); for (LabState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabUpdate.java index 5096140824f6..6b0a6893464c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/LabUpdate.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.LabUpdateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** The lab resource for updates. */ @Fluent public final class LabUpdate extends TrackedResourceUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(LabUpdate.class); - /* * Lab resource properties */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Labs.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Labs.java index 125099f450ff..85acd8282fcf 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Labs.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Labs.java @@ -11,55 +11,64 @@ /** Resource collection API of Labs. */ public interface Labs { /** - * 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}. */ PagedIterable list(); /** - * Returns a list of all labs for a subscription. + * Get all labs for a subscription. + * + *

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}. */ PagedIterable list(String filter, Context context); /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** - * Returns a list of all labs in a resource group. + * Get all labs for a subscription and resource group. + * + *

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}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -68,11 +77,12 @@ public interface Labs { Lab 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. @@ -82,11 +92,12 @@ public interface Labs { Response getByResourceGroupWithResponse(String resourceGroupName, String labName, Context context); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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. @@ -94,11 +105,12 @@ public interface Labs { void deleteByResourceGroup(String resourceGroupName, String labName); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

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. @@ -107,11 +119,12 @@ public interface Labs { void delete(String resourceGroupName, String labName, Context context); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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. @@ -119,11 +132,12 @@ public interface Labs { void publish(String resourceGroupName, String labName); /** - * Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines. + * Publish or re-publish a lab. + * + *

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. @@ -132,11 +146,12 @@ public interface Labs { void publish(String resourceGroupName, String labName, Context context); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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. @@ -144,11 +159,12 @@ public interface Labs { void syncGroup(String resourceGroupName, String labName); /** - * Action used to manually kick off an AAD group sync job. + * Manually sync the lab group. + * + *

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. @@ -157,7 +173,9 @@ public interface Labs { void syncGroup(String resourceGroupName, String labName, Context context); /** - * Returns the properties of a lab resource. + * Get a lab resource. + * + *

Returns the properties of a lab resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,7 +186,9 @@ public interface Labs { Lab getById(String id); /** - * Returns the properties of a lab resource. + * Get a lab resource. + * + *

Returns the properties of a lab resource. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -180,7 +200,9 @@ public interface Labs { Response getByIdWithResponse(String id, Context context); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

Operation to delete a lab resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -190,7 +212,9 @@ public interface Labs { void deleteById(String id); /** - * Operation to delete a lab resource. + * Deletes a lab resource. + * + *

Operation to delete a lab resource. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ListUsagesResult.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ListUsagesResult.java index b53f3bea911d..726e955a2555 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ListUsagesResult.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ListUsagesResult.java @@ -4,22 +4,18 @@ package com.azure.resourcemanager.labservices.models; -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; +import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.labservices.fluent.models.UsageInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** List of Core Usages. */ -@Immutable +@Fluent public final class ListUsagesResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ListUsagesResult.class); - /* * The array page of Usages. */ - @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "value") private List value; /* @@ -37,6 +33,17 @@ public List value() { return this.value; } + /** + * Set the value property: The array page of Usages. + * + * @param value the value value to set. + * @return the ListUsagesResult object itself. + */ + public ListUsagesResult withValue(List value) { + this.value = value; + return this; + } + /** * Get the nextLink property: The link to get the next page of Usage result. * diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationDisplay.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationDisplay.java index 9246e790087b..26e8c117fd3c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationDisplay.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationDisplay.java @@ -5,40 +5,34 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** Localized display information for this particular operation. */ @Immutable public final class OperationDisplay { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationDisplay.class); - /* - * The localized friendly form of the resource provider name, e.g. - * "Microsoft Monitoring Insights" or "Microsoft Compute". + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + * Compute". */ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* - * The localized friendly name of the resource type related to this - * operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + * Schedule Collections". */ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /* - * The concise, localized friendly name for the operation; suitable for - * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual - * Machine". + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + * Machine", "Restart Virtual Machine". */ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* - * The short, localized friendly description of the operation; suitable for - * tool tips and detailed views. + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationListResult.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationListResult.java index 6634c72e53e4..06fb3d12970b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationListResult.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationListResult.java @@ -5,9 +5,7 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -17,8 +15,6 @@ */ @Immutable public final class OperationListResult { - @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationListResult.class); - /* * List of operations supported by the resource provider */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationResults.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationResults.java index 81dff83403cf..43ce846119d2 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationResults.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationResults.java @@ -10,7 +10,9 @@ /** Resource collection API of OperationResults. */ public interface OperationResults { /** - * 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. @@ -21,7 +23,9 @@ public interface OperationResults { OperationResult 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/models/OperationStatus.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationStatus.java index ff8f0c11dbf0..1b134e69d634 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationStatus.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OperationStatus.java @@ -39,6 +39,9 @@ public enum OperationStatus { */ @JsonCreator public static OperationStatus fromString(String value) { + if (value == null) { + return null; + } OperationStatus[] items = OperationStatus.values(); for (OperationStatus item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Operations.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Operations.java index 0e615a408143..9e7154316bd5 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Operations.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Operations.java @@ -10,22 +10,28 @@ /** Resource collection API of Operations. */ public interface Operations { /** - * 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}. */ PagedIterable list(); /** - * Returns a list of all operations. + * Get all operations + * + *

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}. */ PagedIterable list(Context context); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Origin.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Origin.java index ce93018c75af..3dd19f7c7cf9 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Origin.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Origin.java @@ -30,7 +30,11 @@ public static Origin fromString(String name) { return fromString(name, Origin.class); } - /** @return known Origin values. */ + /** + * Gets known Origin values. + * + * @return known Origin values. + */ public static Collection values() { return values(Origin.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsState.java index 22663c648632..c7b10f3b7fd8 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsState.java @@ -30,6 +30,9 @@ public enum OsState { */ @JsonCreator public static OsState fromString(String value) { + if (value == null) { + return null; + } OsState[] items = OsState.values(); for (OsState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsType.java index 812e86cde56b..a5981463a621 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/OsType.java @@ -30,6 +30,9 @@ public enum OsType { */ @JsonCreator public static OsType fromString(String value) { + if (value == null) { + return null; + } OsType[] items = OsType.values(); for (OsType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedImages.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedImages.java index e432ba3f3cd5..fff945f2e3fd 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedImages.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedImages.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.ImageInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of Lab services virtual machine images. */ @Immutable public final class PagedImages { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedImages.class); - /* * The array page of virtual machine images. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabPlans.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabPlans.java index dcff034630b7..99b396b97679 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabPlans.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabPlans.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.LabPlanInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of lab plans. */ @Immutable public final class PagedLabPlans { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedLabPlans.class); - /* * The array page of lab plans. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabServicesSkus.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabServicesSkus.java index 4242b873b0f8..e6eb15c96d14 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabServicesSkus.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabServicesSkus.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.LabServicesSkuInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of lab services skus. */ @Immutable public final class PagedLabServicesSkus { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedLabServicesSkus.class); - /* * The array page of sku results. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabs.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabs.java index 55c7f15e3c7b..76a5c6efd786 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabs.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedLabs.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.LabInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of labs. */ @Immutable public final class PagedLabs { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedLabs.class); - /* * The array page of lab results. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedSchedules.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedSchedules.java index 06530cb89b91..e8c17b84fe77 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedSchedules.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedSchedules.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.ScheduleInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of schedules. */ @Immutable public final class PagedSchedules { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedSchedules.class); - /* * The array page of schedule results. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedUsers.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedUsers.java index 5fa61d0f1a93..132a00781658 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedUsers.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedUsers.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.UserInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of users. */ @Immutable public final class PagedUsers { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedUsers.class); - /* * The array page of user results. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedVirtualMachines.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedVirtualMachines.java index 9f6a4cd97ddc..0c719d67badd 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedVirtualMachines.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/PagedVirtualMachines.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.VirtualMachineInner; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Paged list of lab services virtual machines. */ @Immutable public final class PagedVirtualMachines { - @JsonIgnore private final ClientLogger logger = new ClientLogger(PagedVirtualMachines.class); - /* * The array page of virtual machine results. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ProvisioningState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ProvisioningState.java index 556aafaacdaa..a1f870ec9833 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ProvisioningState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ProvisioningState.java @@ -42,6 +42,9 @@ public enum ProvisioningState { */ @JsonCreator public static ProvisioningState fromString(String value) { + if (value == null) { + return null; + } ProvisioningState[] items = ProvisioningState.values(); for (ProvisioningState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrenceFrequency.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrenceFrequency.java index 44991f1d49e2..e6d342131ebd 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrenceFrequency.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrenceFrequency.java @@ -30,6 +30,9 @@ public enum RecurrenceFrequency { */ @JsonCreator public static RecurrenceFrequency fromString(String value) { + if (value == null) { + return null; + } RecurrenceFrequency[] items = RecurrenceFrequency.values(); for (RecurrenceFrequency item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrencePattern.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrencePattern.java index e9359d6b1e66..d729d4655987 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrencePattern.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RecurrencePattern.java @@ -6,16 +6,13 @@ 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.LocalDate; +import java.time.OffsetDateTime; import java.util.List; /** Recurrence pattern of a lab schedule. */ @Fluent public final class RecurrencePattern { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RecurrencePattern.class); - /* * The frequency of the recurrence. */ @@ -23,16 +20,14 @@ public final class RecurrencePattern { private RecurrenceFrequency frequency; /* - * The week days the schedule runs. Used for when the Frequency is set to - * Weekly. + * The week days the schedule runs. Used for when the Frequency is set to Weekly. */ @JsonProperty(value = "weekDays") private List weekDays; /* - * The interval to invoke the schedule on. For example, interval = 2 and - * RecurrenceFrequency.Daily will run every 2 days. When no interval is - * supplied, an interval of 1 is used. + * The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 + * days. When no interval is supplied, an interval of 1 is used. */ @JsonProperty(value = "interval") private Integer interval; @@ -41,7 +36,7 @@ public final class RecurrencePattern { * When the recurrence will expire. This date is inclusive. */ @JsonProperty(value = "expirationDate", required = true) - private LocalDate expirationDate; + private OffsetDateTime expirationDate; /** * Get the frequency property: The frequency of the recurrence. @@ -110,7 +105,7 @@ public RecurrencePattern withInterval(Integer interval) { * * @return the expirationDate value. */ - public LocalDate expirationDate() { + public OffsetDateTime expirationDate() { return this.expirationDate; } @@ -120,7 +115,7 @@ public LocalDate expirationDate() { * @param expirationDate the expirationDate value to set. * @return the RecurrencePattern object itself. */ - public RecurrencePattern withExpirationDate(LocalDate expirationDate) { + public RecurrencePattern withExpirationDate(OffsetDateTime expirationDate) { this.expirationDate = expirationDate; return this; } @@ -132,15 +127,17 @@ public RecurrencePattern withExpirationDate(LocalDate expirationDate) { */ public void validate() { if (frequency() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property frequency in model RecurrencePattern")); } if (expirationDate() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property expirationDate in model RecurrencePattern")); } } + + private static final ClientLogger LOGGER = new ClientLogger(RecurrencePattern.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RegistrationState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RegistrationState.java index d1fa193e37a6..5524d237da3d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RegistrationState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RegistrationState.java @@ -30,6 +30,9 @@ public enum RegistrationState { */ @JsonCreator public static RegistrationState fromString(String value) { + if (value == null) { + return null; + } RegistrationState[] items = RegistrationState.values(); for (RegistrationState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResetPasswordBody.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResetPasswordBody.java index b7cb2ec1e4f5..8a21a25ab564 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResetPasswordBody.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResetPasswordBody.java @@ -6,14 +6,11 @@ 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; /** Body of a reset password request. */ @Fluent public final class ResetPasswordBody { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ResetPasswordBody.class); - /* * The user whose password is being reset */ @@ -73,14 +70,16 @@ public ResetPasswordBody withPassword(String password) { */ public void validate() { if (username() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property username in model ResetPasswordBody")); } if (password() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property password in model ResetPasswordBody")); } } + + private static final ClientLogger LOGGER = new ClientLogger(ResetPasswordBody.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResourceIdentityType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResourceIdentityType.java new file mode 100644 index 000000000000..be98d1ba479d --- /dev/null +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ResourceIdentityType.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.labservices.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for ResourceIdentityType. */ +public enum ResourceIdentityType { + /** Enum value SystemAssigned. */ + SYSTEM_ASSIGNED("SystemAssigned"); + + /** The actual serialized value for a ResourceIdentityType instance. */ + private final String value; + + ResourceIdentityType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a ResourceIdentityType instance. + * + * @param value the serialized value to parse. + * @return the parsed ResourceIdentityType object, or null if unable to parse. + */ + @JsonCreator + public static ResourceIdentityType fromString(String value) { + if (value == null) { + return null; + } + ResourceIdentityType[] items = ResourceIdentityType.values(); + for (ResourceIdentityType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionReasonCode.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionReasonCode.java index 6a170889a862..853d0c253ca8 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionReasonCode.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionReasonCode.java @@ -28,7 +28,11 @@ public static RestrictionReasonCode fromString(String name) { return fromString(name, RestrictionReasonCode.class); } - /** @return known RestrictionReasonCode values. */ + /** + * Gets known RestrictionReasonCode values. + * + * @return known RestrictionReasonCode values. + */ public static Collection values() { return values(RestrictionReasonCode.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionType.java index e3a864be3a6e..375cad947b9b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RestrictionType.java @@ -24,7 +24,11 @@ public static RestrictionType fromString(String name) { return fromString(name, RestrictionType.class); } - /** @return known RestrictionType values. */ + /** + * Gets known RestrictionType values. + * + * @return known RestrictionType values. + */ public static Collection values() { return values(RestrictionType.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RosterProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RosterProfile.java index df5ea07c05d5..1e1d99a23cc3 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RosterProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/RosterProfile.java @@ -5,18 +5,13 @@ package com.azure.resourcemanager.labservices.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; /** The lab user list management profile. */ @Fluent public final class RosterProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RosterProfile.class); - /* - * The AAD group ID which this lab roster is populated from. Having this - * set enables AAD sync mode. + * The AAD group ID which this lab roster is populated from. Having this set enables AAD sync mode. */ @JsonProperty(value = "activeDirectoryGroupId") private String activeDirectoryGroupId; @@ -40,8 +35,7 @@ public final class RosterProfile { private String ltiClientId; /* - * The uri of the names and roles service endpoint on the lms for the class - * attached to this lab. + * The uri of the names and roles service endpoint on the lms for the class attached to this lab. */ @JsonProperty(value = "ltiRosterEndpoint") private String ltiRosterEndpoint; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SaveImageBody.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SaveImageBody.java index 9899a62a729c..be165617027a 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SaveImageBody.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SaveImageBody.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Body for the save image POST. */ @Fluent public final class SaveImageBody { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SaveImageBody.class); - /* * The name for the image we create. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScaleType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScaleType.java index 36ae545e6eb3..8d9a8f67ba66 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScaleType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScaleType.java @@ -30,7 +30,11 @@ public static ScaleType fromString(String name) { return fromString(name, ScaleType.class); } - /** @return known ScaleType values. */ + /** + * Gets known ScaleType values. + * + * @return known ScaleType values. + */ public static Collection values() { return values(ScaleType.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedule.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedule.java index bf580cfa5b96..b47589e6d7ac 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedule.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedule.java @@ -83,6 +83,13 @@ public interface Schedule { */ String notes(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.labservices.fluent.models.ScheduleInner object. * @@ -105,7 +112,7 @@ interface WithParentResource { * Specifies resourceGroupName, labName. * * @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 + * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in * resource URIs. * @return the next definition stage. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScheduleUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScheduleUpdate.java index 7398ea1c45c6..17294d4956a4 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScheduleUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ScheduleUpdate.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.ScheduleUpdateProperties; -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. Used for updates. */ @Fluent public final class ScheduleUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ScheduleUpdate.class); - /* * Schedule resource properties */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedules.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedules.java index 07476f13dc43..8892412b0efa 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedules.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Schedules.java @@ -11,39 +11,42 @@ /** Resource collection API of Schedules. */ public interface Schedules { /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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}. */ PagedIterable listByLab(String resourceGroupName, String labName); /** - * Returns a list of all schedules for a lab. + * Get all schedules for a lab. + * + *

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}. */ PagedIterable listByLab(String resourceGroupName, String labName, String filter, Context context); /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,11 +57,12 @@ public interface Schedules { Schedule 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. @@ -71,11 +75,12 @@ public interface Schedules { Response getWithResponse(String resourceGroupName, String labName, String scheduleName, Context context); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -85,11 +90,12 @@ public interface Schedules { void delete(String resourceGroupName, String labName, String scheduleName); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

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. @@ -100,7 +106,9 @@ public interface Schedules { void delete(String resourceGroupName, String labName, String scheduleName, Context context); /** - * Returns the properties of a lab Schedule. + * Get a lab Schedule. + * + *

Returns the properties of a lab Schedule. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -112,7 +120,9 @@ public interface Schedules { Schedule getById(String id); /** - * Returns the properties of a lab Schedule. + * Get a lab Schedule. + * + *

Returns the properties of a lab Schedule. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -125,7 +135,9 @@ public interface Schedules { Response getByIdWithResponse(String id, Context context); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

Operation to delete a schedule resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +147,9 @@ public interface Schedules { void deleteById(String id); /** - * Operation to delete a schedule resource. + * Deletes a schedule resource. + * + *

Operation to delete a schedule resource. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SecurityProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SecurityProfile.java index 765a1b4a9347..fb242e5d0189 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SecurityProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SecurityProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** The lab security profile. */ @Fluent public final class SecurityProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SecurityProfile.class); - /* * The registration code for the lab. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ShutdownOnIdleMode.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ShutdownOnIdleMode.java index 68b9b08517e0..4973d6b79100 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ShutdownOnIdleMode.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/ShutdownOnIdleMode.java @@ -33,6 +33,9 @@ public enum ShutdownOnIdleMode { */ @JsonCreator public static ShutdownOnIdleMode fromString(String value) { + if (value == null) { + return null; + } ShutdownOnIdleMode[] items = ShutdownOnIdleMode.values(); for (ShutdownOnIdleMode item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Sku.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Sku.java index 1f57ad384b72..23317b89d63a 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Sku.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Sku.java @@ -6,14 +6,11 @@ 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; /** The resource model definition representing SKU. */ @Fluent public final class Sku { - @JsonIgnore private final ClientLogger logger = new ClientLogger(Sku.class); - /* * The name of the SKU. Ex - P3. It is typically a letter+number code */ @@ -21,30 +18,28 @@ public final class Sku { private String name; /* - * This field is required to be implemented by the Resource Provider if the - * service has more than one tier, but is not required on a PUT. + * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is + * not required on a PUT. */ @JsonProperty(value = "tier") private SkuTier tier; /* - * The SKU size. When the name field is the combination of tier and some - * other value, this would be the standalone code. + * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone + * code. */ @JsonProperty(value = "size") private String size; /* - * If the service has different generations of hardware, for the same SKU, - * then that can be captured here. + * If the service has different generations of hardware, for the same SKU, then that can be captured here. */ @JsonProperty(value = "family") private String family; /* - * If the SKU supports scale out/in then the capacity integer should be - * included. If scale out/in is not possible for the resource this may be - * omitted. + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible + * for the resource this may be omitted. */ @JsonProperty(value = "capacity") private Integer capacity; @@ -164,8 +159,10 @@ public Sku withCapacity(Integer capacity) { */ public void validate() { if (name() == null) { - throw logger + throw LOGGER .logExceptionAsError(new IllegalArgumentException("Missing required property name in model Sku")); } } + + private static final ClientLogger LOGGER = new ClientLogger(Sku.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SkuTier.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SkuTier.java index 015660718870..6e1e077583c3 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SkuTier.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SkuTier.java @@ -36,6 +36,9 @@ public enum SkuTier { */ @JsonCreator public static SkuTier fromString(String value) { + if (value == null) { + return null; + } SkuTier[] items = SkuTier.values(); for (SkuTier item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Skus.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Skus.java index 59fd1249ad23..b14d2d42cf2d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Skus.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Skus.java @@ -10,23 +10,27 @@ /** Resource collection API of Skus. */ public interface Skus { /** - * 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}. */ PagedIterable list(); /** - * 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. * * @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}. */ PagedIterable list(String filter, Context context); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SupportInfo.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SupportInfo.java index 29f6f0a4c044..0b2a41f0415e 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SupportInfo.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/SupportInfo.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** Support contact information and instructions. */ @Fluent public final class SupportInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(SupportInfo.class); - /* * Support web address. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/TrackedResourceUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/TrackedResourceUpdate.java index 6349b73f01d6..93bab89f6def 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/TrackedResourceUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/TrackedResourceUpdate.java @@ -5,16 +5,12 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** Base tracked resource type for all PATCH updates. */ @Fluent public class TrackedResourceUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(TrackedResourceUpdate.class); - /* * Resource tags. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageName.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageName.java index 5c158a0651a1..a17efebfc9f6 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageName.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageName.java @@ -5,21 +5,24 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** The Usage Names. */ @Fluent public final class UsageName { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UsageName.class); - /* * The localized name of the resource. */ @JsonProperty(value = "localizedValue") private String localizedValue; + /* + * The instances of the resource. + */ + @JsonProperty(value = "skuInstances") + private List skuInstances; + /* * The name of the resource. */ @@ -46,6 +49,26 @@ public UsageName withLocalizedValue(String localizedValue) { return this; } + /** + * Get the skuInstances property: The instances of the resource. + * + * @return the skuInstances value. + */ + public List skuInstances() { + return this.skuInstances; + } + + /** + * Set the skuInstances property: The instances of the resource. + * + * @param skuInstances the skuInstances value to set. + * @return the UsageName object itself. + */ + public UsageName withSkuInstances(List skuInstances) { + this.skuInstances = skuInstances; + return this; + } + /** * Get the value property: The name of the resource. * diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageUnit.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageUnit.java index 7ad595b0d62f..23b370aac62b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageUnit.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UsageUnit.java @@ -24,7 +24,11 @@ public static UsageUnit fromString(String name) { return fromString(name, UsageUnit.class); } - /** @return known UsageUnit values. */ + /** + * Gets known UsageUnit values. + * + * @return known UsageUnit values. + */ public static Collection values() { return values(UsageUnit.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Usages.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Usages.java index 35928cffc7c3..8021da84a761 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Usages.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Usages.java @@ -10,18 +10,22 @@ /** Resource collection API of Usages. */ public interface Usages { /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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}. */ PagedIterable listByLocation(String location); /** - * Returns list of usage per SKU family for the specified subscription in the specified region. + * Gets the list of usages. + * + *

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. @@ -29,7 +33,7 @@ public interface Usages { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ PagedIterable listByLocation(String location, String filter, Context context); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/User.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/User.java index e6c7246ea10b..3abfb4084834 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/User.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/User.java @@ -97,6 +97,13 @@ public interface User { */ Duration additionalUsageQuota(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.labservices.fluent.models.UserInner object. * @@ -122,7 +129,7 @@ interface WithParentResource { * Specifies resourceGroupName, labName. * * @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 + * @param labName The name of the lab that uniquely identifies it within containing lab plan. Used in * resource URIs. * @return the next definition stage. */ @@ -226,7 +233,9 @@ interface WithAdditionalUsageQuota { User refresh(Context context); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

Operation to invite a user to a lab. * * @param body The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -236,7 +245,9 @@ interface WithAdditionalUsageQuota { void invite(InviteBody body); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

Operation to invite a user to a lab. * * @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/models/UserUpdate.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UserUpdate.java index bf5aacfa6160..c3b86e9ea74e 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UserUpdate.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/UserUpdate.java @@ -5,17 +5,13 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.labservices.fluent.models.UserUpdateProperties; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; /** User of a lab that can register for and use virtual machines within the lab. Used for updates. */ @Fluent public final class UserUpdate { - @JsonIgnore private final ClientLogger logger = new ClientLogger(UserUpdate.class); - /* * User resource properties */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Users.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Users.java index a766aa8ad88c..94b962e77bf5 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Users.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/Users.java @@ -11,39 +11,42 @@ /** Resource collection API of Users. */ public interface Users { /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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}. */ PagedIterable listByLab(String resourceGroupName, String labName); /** - * Returns a list of all users for a lab. + * Get all users for a lab. + * + *

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}. */ PagedIterable listByLab(String resourceGroupName, String labName, String filter, Context context); /** - * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -53,11 +56,12 @@ public interface Users { User 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. @@ -68,11 +72,12 @@ public interface Users { Response getWithResponse(String resourceGroupName, String labName, String username, Context context); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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. @@ -81,11 +86,12 @@ public interface Users { void delete(String resourceGroupName, String labName, String username); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

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. @@ -95,11 +101,12 @@ public interface Users { void delete(String resourceGroupName, String labName, String username, Context context); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -109,11 +116,12 @@ public interface Users { void invite(String resourceGroupName, String labName, String username, InviteBody body); /** - * Operation to invite a user to a lab. + * Invite a user to a lab. + * + *

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. @@ -124,7 +132,9 @@ public interface Users { void invite(String resourceGroupName, String labName, String username, InviteBody body, Context context); /** - * Returns the properties of a lab user. + * Get a lab user. + * + *

Returns the properties of a lab user. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -135,7 +145,9 @@ public interface Users { User getById(String id); /** - * Returns the properties of a lab user. + * Get a lab user. + * + *

Returns the properties of a lab user. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -147,7 +159,9 @@ public interface Users { Response getByIdWithResponse(String id, Context context); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

Operation to delete a user resource. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -157,7 +171,9 @@ public interface Users { void deleteById(String id); /** - * Operation to delete a user resource. + * Deletes a user resource. + * + *

Operation to delete a user resource. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineAdditionalCapabilities.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineAdditionalCapabilities.java index 60440ad49e53..e9f677b42d1d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineAdditionalCapabilities.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineAdditionalCapabilities.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.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; /** The additional capabilities for a lab VM. */ @Fluent public final class VirtualMachineAdditionalCapabilities { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineAdditionalCapabilities.class); - /* * Flag to pre-install dedicated GPU drivers. */ diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineConnectionProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineConnectionProfile.java index 01e1d968a5bb..569523492fb1 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineConnectionProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineConnectionProfile.java @@ -5,15 +5,11 @@ package com.azure.resourcemanager.labservices.models; import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** The connection information for the virtual machine. */ @Immutable public final class VirtualMachineConnectionProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineConnectionProfile.class); - /* * The private IP address of the virtual machine. */ @@ -21,8 +17,7 @@ public final class VirtualMachineConnectionProfile { private String privateIpAddress; /* - * Port and host name separated by semicolon for connecting via SSH - * protocol to the virtual machine. + * Port and host name separated by semicolon for connecting via SSH protocol to the virtual machine. */ @JsonProperty(value = "sshAuthority", access = JsonProperty.Access.WRITE_ONLY) private String sshAuthority; @@ -34,8 +29,7 @@ public final class VirtualMachineConnectionProfile { private String sshInBrowserUrl; /* - * Port and host name separated by semicolon for connecting via RDP - * protocol to the virtual machine. + * Port and host name separated by semicolon for connecting via RDP protocol to the virtual machine. */ @JsonProperty(value = "rdpAuthority", access = JsonProperty.Access.WRITE_ONLY) private String rdpAuthority; @@ -53,8 +47,7 @@ public final class VirtualMachineConnectionProfile { private String adminUsername; /* - * The username used to log on to the virtual machine as non-admin, if one - * exists. + * The username used to log on to the virtual machine as non-admin, if one exists. */ @JsonProperty(value = "nonAdminUsername", access = JsonProperty.Access.WRITE_ONLY) private String nonAdminUsername; diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineProfile.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineProfile.java index 14a10442eca0..c34f3ac02f41 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineProfile.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineProfile.java @@ -6,15 +6,12 @@ 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; /** The base virtual machine configuration for a lab. */ @Fluent public final class VirtualMachineProfile { - @JsonIgnore private final ClientLogger logger = new ClientLogger(VirtualMachineProfile.class); - /* * Indicates what lab virtual machines are created from. */ @@ -34,8 +31,7 @@ public final class VirtualMachineProfile { private OsType osType; /* - * The SKU for the lab. Defines the type of virtual machines used in the - * lab. + * The SKU for the lab. Defines the type of virtual machines used in the lab. */ @JsonProperty(value = "sku", required = true) private Sku sku; @@ -47,8 +43,7 @@ public final class VirtualMachineProfile { private VirtualMachineAdditionalCapabilities additionalCapabilities; /* - * The initial quota alloted to each lab user. Must be a time span between - * 0 and 9999 hours. + * The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours. */ @JsonProperty(value = "usageQuota", required = true) private Duration usageQuota; @@ -250,13 +245,13 @@ public VirtualMachineProfile withNonAdminUser(Credentials nonAdminUser) { */ public void validate() { if (createOption() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property createOption in model VirtualMachineProfile")); } if (imageReference() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property imageReference in model VirtualMachineProfile")); @@ -264,7 +259,7 @@ public void validate() { imageReference().validate(); } if (sku() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property sku in model VirtualMachineProfile")); } else { @@ -274,13 +269,13 @@ public void validate() { additionalCapabilities().validate(); } if (usageQuota() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException( "Missing required property usageQuota in model VirtualMachineProfile")); } if (adminUser() == null) { - throw logger + throw LOGGER .logExceptionAsError( new IllegalArgumentException("Missing required property adminUser in model VirtualMachineProfile")); } else { @@ -290,4 +285,6 @@ public void validate() { nonAdminUser().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineProfile.class); } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineState.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineState.java index be9f29a1a527..fbb9c2bbef81 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineState.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineState.java @@ -45,6 +45,9 @@ public enum VirtualMachineState { */ @JsonCreator public static VirtualMachineState fromString(String value) { + if (value == null) { + return null; + } VirtualMachineState[] items = VirtualMachineState.values(); for (VirtualMachineState item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineType.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineType.java index 1229ba20ba6f..09152b1f94f6 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineType.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachineType.java @@ -30,6 +30,9 @@ public enum VirtualMachineType { */ @JsonCreator public static VirtualMachineType fromString(String value) { + if (value == null) { + return null; + } VirtualMachineType[] items = VirtualMachineType.values(); for (VirtualMachineType item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachines.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachines.java index 0a5e33a46726..42010f34f87d 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachines.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/VirtualMachines.java @@ -11,39 +11,42 @@ /** Resource collection API of VirtualMachines. */ public interface VirtualMachines { /** - * 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}. */ PagedIterable listByLab(String resourceGroupName, String labName); /** - * 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. * @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}. */ PagedIterable listByLab(String resourceGroupName, String labName, String filter, Context context); /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -54,11 +57,12 @@ public interface VirtualMachines { VirtualMachine get(String resourceGroupName, String labName, String virtualMachineName); /** - * Returns the properties for a lab virtual machine. + * Get a lab virtual machine. + * + *

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. @@ -71,11 +75,12 @@ Response getWithResponse( String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -85,11 +90,12 @@ Response getWithResponse( void start(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to start a lab virtual machine. + * Start a lab virtual machine. + * + *

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. @@ -100,11 +106,12 @@ Response getWithResponse( void start(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -114,11 +121,12 @@ Response getWithResponse( void stop(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to stop a lab virtual machine. + * Stop a lab virtual machine. + * + *

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. @@ -129,12 +137,13 @@ Response getWithResponse( void stop(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -144,12 +153,13 @@ Response getWithResponse( void reimage(String resourceGroupName, String labName, String virtualMachineName); /** - * Re-image a lab virtual machine. The virtual machine will be deleted and recreated using the latest published + * Re-image a lab virtual machine. + * + *

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. @@ -160,11 +170,12 @@ Response getWithResponse( void reimage(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -174,11 +185,12 @@ Response getWithResponse( void redeploy(String resourceGroupName, String labName, String virtualMachineName); /** - * Action to redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * Redeploy a lab virtual machine to a different compute node. For troubleshooting connectivity. + * + *

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. @@ -189,11 +201,12 @@ Response getWithResponse( void redeploy(String resourceGroupName, String labName, String virtualMachineName, Context context); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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. @@ -204,11 +217,12 @@ Response getWithResponse( void resetPassword(String resourceGroupName, String labName, String virtualMachineName, ResetPasswordBody body); /** - * Resets a lab virtual machine password. + * Reset a lab virtual machine password. + * + *

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/models/WeekDay.java b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/WeekDay.java index 9277a8a4b20c..7e4c18a0d055 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/WeekDay.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/models/WeekDay.java @@ -45,6 +45,9 @@ public enum WeekDay { */ @JsonCreator public static WeekDay fromString(String value) { + if (value == null) { + return null; + } WeekDay[] items = WeekDay.values(); for (WeekDay item : items) { if (item.toString().equalsIgnoreCase(value)) { diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesCreateOrUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesCreateOrUpdateSamples.java index 0fd737fe939a..ae6925b63e0b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesCreateOrUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Images CreateOrUpdate. */ public final class ImagesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/putImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/putImage.json */ /** * Sample code: putImage. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesGetSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesGetSamples.java index 97e44adbb3c7..74173155721c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesGetSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Images Get. */ public final class ImagesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/getImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/getImage.json */ /** * Sample code: getImage. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesListByLabPlanSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesListByLabPlanSamples.java index d2b5e0159e9c..bfb2d66ce1d5 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesListByLabPlanSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesListByLabPlanSamples.java @@ -9,7 +9,7 @@ /** Samples for Images ListByLabPlan. */ public final class ImagesListByLabPlanSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/listImages.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/listImages.json */ /** * Sample code: listImages. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesUpdateSamples.java index 229d9145976c..98f6373f3344 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/ImagesUpdateSamples.java @@ -11,7 +11,7 @@ /** Samples for Images Update. */ public final class ImagesUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Images/patchImage.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Images/patchImage.json */ /** * Sample code: patchImage. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansCreateOrUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansCreateOrUpdateSamples.java index ae50f65419f0..88a18cc0228b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansCreateOrUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ /** Samples for LabPlans CreateOrUpdate. */ public final class LabPlansCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/putLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/putLabPlan.json */ /** * Sample code: putLabPlan. @@ -40,9 +40,9 @@ public static void putLabPlan(com.azure.resourcemanager.labservices.LabServicesM .withShutdownOnDisconnect(EnableState.ENABLED) .withShutdownWhenNotConnected(EnableState.ENABLED) .withShutdownOnIdle(ShutdownOnIdleMode.USER_ABSENCE) - .withDisconnectDelay(Duration.parse("00:05")) - .withNoConnectDelay(Duration.parse("01:00")) - .withIdleDelay(Duration.parse("01:00"))) + .withDisconnectDelay(Duration.parse("PT5M")) + .withNoConnectDelay(Duration.parse("PT5M")) + .withIdleDelay(Duration.parse("PT5M"))) .withDefaultNetworkProfile( new LabPlanNetworkProfile() .withSubnetId( diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansDeleteSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansDeleteSamples.java index e5dadb6b47d8..c5a6957fcb80 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansDeleteSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for LabPlans Delete. */ public final class LabPlansDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/deleteLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/deleteLabPlan.json */ /** * Sample code: deleteLabPlan. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansGetByResourceGroupSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansGetByResourceGroupSamples.java index 1346c881d822..e843bc4db40f 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansGetByResourceGroupSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for LabPlans GetByResourceGroup. */ public final class LabPlansGetByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/getLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/getLabPlan.json */ /** * Sample code: getLabPlan. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListByResourceGroupSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListByResourceGroupSamples.java index d16e26863214..01f075b0177c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListByResourceGroupSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for LabPlans ListByResourceGroup. */ public final class LabPlansListByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/listResourceGroupLabPlans.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/listResourceGroupLabPlans.json */ /** * Sample code: listResourceGroupLabPlans. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListSamples.java index d75db6c5d98c..8fae03d35415 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansListSamples.java @@ -9,7 +9,7 @@ /** Samples for LabPlans List. */ public final class LabPlansListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/listLabPlans.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/listLabPlans.json */ /** * Sample code: listLabPlans. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansSaveImageSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansSaveImageSamples.java index cfb92b0bb04d..9111d2b3ec34 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansSaveImageSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansSaveImageSamples.java @@ -10,7 +10,7 @@ /** Samples for LabPlans SaveImage. */ public final class LabPlansSaveImageSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/saveImageVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/saveImageVirtualMachine.json */ /** * Sample code: saveImageVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansUpdateSamples.java index 6b7a7452919d..b8ee5fef8f7e 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabPlansUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for LabPlans Update. */ public final class LabPlansUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabPlans/patchLabPlan.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabPlans/patchLabPlan.json */ /** * Sample code: patchLabPlan. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsCreateOrUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsCreateOrUpdateSamples.java index 96eab3ebebf6..afa72f56ba51 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsCreateOrUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsCreateOrUpdateSamples.java @@ -22,7 +22,7 @@ /** Samples for Labs CreateOrUpdate. */ public final class LabsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/putLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/putLab.json */ /** * Sample code: putLab. @@ -44,9 +44,9 @@ public static void putLab(com.azure.resourcemanager.labservices.LabServicesManag .withShutdownOnDisconnect(EnableState.ENABLED) .withShutdownWhenNotConnected(EnableState.ENABLED) .withShutdownOnIdle(ShutdownOnIdleMode.USER_ABSENCE) - .withDisconnectDelay(Duration.parse("00:05")) - .withNoConnectDelay(Duration.parse("01:00")) - .withIdleDelay(Duration.parse("01:00"))) + .withDisconnectDelay(Duration.parse("PT5M")) + .withNoConnectDelay(Duration.parse("PT5M")) + .withIdleDelay(Duration.parse("PT5M"))) .withConnectionProfile( new ConnectionProfile() .withWebSshAccess(ConnectionType.NONE) @@ -65,7 +65,7 @@ public static void putLab(com.azure.resourcemanager.labservices.LabServicesManag .withSku(new Sku().withName("Medium")) .withAdditionalCapabilities( new VirtualMachineAdditionalCapabilities().withInstallGpuDrivers(EnableState.DISABLED)) - .withUsageQuota(Duration.parse("10:00")) + .withUsageQuota(Duration.parse("PT10H")) .withUseSharedPassword(EnableState.DISABLED) .withAdminUser(new Credentials().withUsername("test-user"))) .withSecurityProfile(new SecurityProfile().withOpenAccess(EnableState.DISABLED)) diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsDeleteSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsDeleteSamples.java index e00d47f23f80..b303928456ac 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsDeleteSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs Delete. */ public final class LabsDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/deleteLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/deleteLab.json */ /** * Sample code: deleteLab. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsGetByResourceGroupSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsGetByResourceGroupSamples.java index d75bc1cd33fa..415e3f9ab7b1 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsGetByResourceGroupSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs GetByResourceGroup. */ public final class LabsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/getLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/getLab.json */ /** * Sample code: getLab. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListByResourceGroupSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListByResourceGroupSamples.java index ec0edd684538..652598f739d8 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListByResourceGroupSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs ListByResourceGroup. */ public final class LabsListByResourceGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/listResourceGroupLabs.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/listResourceGroupLabs.json */ /** * Sample code: listResourceGroupLabs. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListSamples.java index 63fefa80b99f..0b3e2d0d98fb 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs List. */ public final class LabsListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/listLabs.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/listLabs.json */ /** * Sample code: listLabs. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsPublishSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsPublishSamples.java index 87f2fb32eb3c..dc5fce53303c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsPublishSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsPublishSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs Publish. */ public final class LabsPublishSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/publishLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/publishLab.json */ /** * Sample code: publishLab. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsSyncGroupSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsSyncGroupSamples.java index 03f0090bd50a..6946ec4c1e23 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsSyncGroupSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsSyncGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for Labs SyncGroup. */ public final class LabsSyncGroupSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/syncLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/syncLab.json */ /** * Sample code: syncLab. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsUpdateSamples.java index 002dd14557d1..4aa13a37ac00 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/LabsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Labs Update. */ public final class LabsUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/patchLab.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Labs/patchLab.json */ /** * Sample code: patchLab. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationResultsGetSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationResultsGetSamples.java index 218f42c54ca6..80e4fd677ead 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationResultsGetSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationResultsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for OperationResults Get. */ public final class OperationResultsGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/OperationResults/getOperationResult.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/OperationResults/getOperationResult.json */ /** * Sample code: getOperationResult. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationsListSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationsListSamples.java index 386139845e35..63fa22b5a6a3 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationsListSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabServices/listOperations.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/LabServices/listOperations.json */ /** * Sample code: listOperations. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesCreateOrUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesCreateOrUpdateSamples.java index f304f71d5990..da91b1e6cc4c 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesCreateOrUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesCreateOrUpdateSamples.java @@ -6,13 +6,12 @@ import com.azure.resourcemanager.labservices.models.RecurrenceFrequency; import com.azure.resourcemanager.labservices.models.RecurrencePattern; -import java.time.LocalDate; import java.time.OffsetDateTime; /** Samples for Schedules CreateOrUpdate. */ public final class SchedulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/putSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/putSchedule.json */ /** * Sample code: putSchedule. @@ -30,7 +29,7 @@ public static void putSchedule(com.azure.resourcemanager.labservices.LabServices new RecurrencePattern() .withFrequency(RecurrenceFrequency.DAILY) .withInterval(2) - .withExpirationDate(LocalDate.parse("2020-08-14"))) + .withExpirationDate(OffsetDateTime.parse("2020-08-14T23:59:59Z"))) .withTimeZoneId("America/Los_Angeles") .withNotes("Schedule 1 for students") .create(); diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesDeleteSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesDeleteSamples.java index 0bbf78d882cf..2abef9948f02 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesDeleteSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Schedules Delete. */ public final class SchedulesDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/deleteSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/deleteSchedule.json */ /** * Sample code: deleteSchedule. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesGetSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesGetSamples.java index 0d687b8ac5f3..64544a7204e7 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesGetSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Schedules Get. */ public final class SchedulesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/getSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/getSchedule.json */ /** * Sample code: getSchedule. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesListByLabSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesListByLabSamples.java index 1eba45ff2526..5c04f0b1a5bb 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesListByLabSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesListByLabSamples.java @@ -9,7 +9,7 @@ /** Samples for Schedules ListByLab. */ public final class SchedulesListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/listSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/listSchedule.json */ /** * Sample code: getListSchedule. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesUpdateSamples.java index 0d7c4df73b43..9a770125d385 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SchedulesUpdateSamples.java @@ -8,12 +8,12 @@ import com.azure.resourcemanager.labservices.models.RecurrenceFrequency; import com.azure.resourcemanager.labservices.models.RecurrencePattern; import com.azure.resourcemanager.labservices.models.Schedule; -import java.time.LocalDate; +import java.time.OffsetDateTime; /** Samples for Schedules Update. */ public final class SchedulesUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/patchSchedule.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Schedules/patchSchedule.json */ /** * Sample code: patchSchedule. @@ -29,7 +29,7 @@ public static void patchSchedule(com.azure.resourcemanager.labservices.LabServic new RecurrencePattern() .withFrequency(RecurrenceFrequency.DAILY) .withInterval(2) - .withExpirationDate(LocalDate.parse("2020-08-14"))) + .withExpirationDate(OffsetDateTime.parse("2020-08-14T23:59:59Z"))) .apply(); } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SkusListSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SkusListSamples.java index e1dc4f497136..f338789aac65 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SkusListSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/SkusListSamples.java @@ -9,7 +9,7 @@ /** Samples for Skus List. */ public final class SkusListSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Skus/listSkus.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Skus/listSkus.json */ /** * Sample code: listSkus. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsagesListByLocationSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsagesListByLocationSamples.java index 54ac5359d0cb..a7982c6637a4 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsagesListByLocationSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsagesListByLocationSamples.java @@ -9,7 +9,7 @@ /** Samples for Usages ListByLocation. */ public final class UsagesListByLocationSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Usages/getUsages.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Usages/getUsages.json */ /** * Sample code: listUsages. @@ -17,6 +17,6 @@ public final class UsagesListByLocationSamples { * @param manager Entry point to LabServicesManager. */ public static void listUsages(com.azure.resourcemanager.labservices.LabServicesManager manager) { - manager.usages().listByLocation("westus2", null, Context.NONE); + manager.usages().listByLocation("eastus2", null, Context.NONE); } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersCreateOrUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersCreateOrUpdateSamples.java index 90488cd05095..dbde9c04b045 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersCreateOrUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ /** Samples for Users CreateOrUpdate. */ public final class UsersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/putUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/putUser.json */ /** * Sample code: putUser. @@ -22,7 +22,7 @@ public static void putUser(com.azure.resourcemanager.labservices.LabServicesMana .define("testuser") .withExistingLab("testrg123", "testlab") .withEmail("testuser@contoso.com") - .withAdditionalUsageQuota(Duration.parse("20:00")) + .withAdditionalUsageQuota(Duration.parse("PT10H")) .create(); } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersDeleteSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersDeleteSamples.java index 9699f5ec112f..074d75e33b68 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersDeleteSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for Users Delete. */ public final class UsersDeleteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/deleteUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/deleteUser.json */ /** * Sample code: deleteUser. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersGetSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersGetSamples.java index be62aace0ad2..cc0c05b0e215 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersGetSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersGetSamples.java @@ -9,7 +9,7 @@ /** Samples for Users Get. */ public final class UsersGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/getUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/getUser.json */ /** * Sample code: getUser. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersInviteSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersInviteSamples.java index bacbfc338512..c62afca78616 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersInviteSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersInviteSamples.java @@ -10,7 +10,7 @@ /** Samples for Users Invite. */ public final class UsersInviteSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/inviteUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/inviteUser.json */ /** * Sample code: inviteUser. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersListByLabSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersListByLabSamples.java index 4760ac3f9325..ede4c961893e 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersListByLabSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersListByLabSamples.java @@ -9,7 +9,7 @@ /** Samples for Users ListByLab. */ public final class UsersListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/listUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/listUser.json */ /** * Sample code: listUser. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersUpdateSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersUpdateSamples.java index c3f2bb4f5928..2dc6f97663a2 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersUpdateSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/UsersUpdateSamples.java @@ -11,7 +11,7 @@ /** Samples for Users Update. */ public final class UsersUpdateSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Users/patchUser.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/Users/patchUser.json */ /** * Sample code: patchUser. @@ -20,6 +20,6 @@ public final class UsersUpdateSamples { */ public static void patchUser(com.azure.resourcemanager.labservices.LabServicesManager manager) { User resource = manager.users().getWithResponse("testrg123", "testlab", "testuser", Context.NONE).getValue(); - resource.update().withAdditionalUsageQuota(Duration.parse("20:00")).apply(); + resource.update().withAdditionalUsageQuota(Duration.parse("PT10H")).apply(); } } diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesGetSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesGetSamples.java index 10e5d02ba815..ced4a7380c5b 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesGetSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines Get. */ public final class VirtualMachinesGetSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/getVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/getVirtualMachine.json */ /** * Sample code: getVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesListByLabSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesListByLabSamples.java index 675738c03ef0..6f8fa438bbee 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesListByLabSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesListByLabSamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines ListByLab. */ public final class VirtualMachinesListByLabSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/listVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/listVirtualMachine.json */ /** * Sample code: listVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesRedeploySamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesRedeploySamples.java index 3879044d3c98..2ddeabe15885 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesRedeploySamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesRedeploySamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines Redeploy. */ public final class VirtualMachinesRedeploySamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/redeployVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/redeployVirtualMachine.json */ /** * Sample code: redeployVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesReimageSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesReimageSamples.java index e852754d5f75..20730a2f329f 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesReimageSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesReimageSamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines Reimage. */ public final class VirtualMachinesReimageSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/reimageVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/reimageVirtualMachine.json */ /** * Sample code: reimageVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesResetPasswordSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesResetPasswordSamples.java index 9973f710d06f..7a2ffa37833f 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesResetPasswordSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesResetPasswordSamples.java @@ -10,7 +10,7 @@ /** Samples for VirtualMachines ResetPassword. */ public final class VirtualMachinesResetPasswordSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/resetPasswordVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/resetPasswordVirtualMachine.json */ /** * Sample code: resetPasswordVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStartSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStartSamples.java index 82e77b0c9b2c..e6b62395bf65 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStartSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStartSamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines Start. */ public final class VirtualMachinesStartSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/startVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/startVirtualMachine.json */ /** * Sample code: startVirtualMachine. diff --git a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStopSamples.java b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStopSamples.java index f73e1111096d..1b6df317c40e 100644 --- a/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStopSamples.java +++ b/sdk/labservices/azure-resourcemanager-labservices/src/samples/java/com/azure/resourcemanager/labservices/generated/VirtualMachinesStopSamples.java @@ -9,7 +9,7 @@ /** Samples for VirtualMachines Stop. */ public final class VirtualMachinesStopSamples { /* - * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/VirtualMachines/stopVirtualMachine.json + * x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/stable/2022-08-01/examples/VirtualMachines/stopVirtualMachine.json */ /** * Sample code: stopVirtualMachine.