diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 5c69998dac68..1321450393af 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -352,7 +352,7 @@ com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.
com.azure.resourcemanager:azure-resourcemanager-databox;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-datamigration;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-devspaces;1.0.0-beta.3;1.0.0-beta.4
-com.azure.resourcemanager:azure-resourcemanager-devtestlabs;1.1.0;1.2.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-devtestlabs;1.1.0;1.2.0
com.azure.resourcemanager:azure-resourcemanager-hanaonazure;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-healthcareapis;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-hybridcompute;1.0.0;1.1.0-beta.3
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/CHANGELOG.md b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/CHANGELOG.md
index ebbc207d1527..bbe0b3d7bff8 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/CHANGELOG.md
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/CHANGELOG.md
@@ -1,14 +1,526 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.2.0 (2026-05-28)
-### Features Added
+- Azure Resource Manager DevTestLabs client library for Java. This package contains Microsoft Azure SDK for DevTestLabs Management SDK. The DevTest Labs Client. Package api-version 2018-09-15. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ArmTemplateList` was removed
+
+#### `models.FormulaList` was removed
+
+#### `models.ScheduleList` was removed
+
+#### `models.VirtualNetworkList` was removed
+
+#### `models.UserList` was removed
+
+#### `models.ArtifactList` was removed
+
+#### `models.DtlEnvironmentList` was removed
+
+#### `models.LabList` was removed
+
+#### `models.SecretList` was removed
+
+#### `models.ApplicableScheduleFragment` was removed
+
+#### `models.PolicyList` was removed
+
+#### `models.OperationMetadataDisplay` was removed
+
+#### `models.ServiceFabricList` was removed
+
+#### `models.ProviderOperationResult` was removed
+
+#### `models.GalleryImageList` was removed
+
+#### `models.OperationMetadata` was removed
+
+#### `models.DiskList` was removed
+
+#### `models.LabVirtualMachineList` was removed
+
+#### `models.LabVhdList` was removed
+
+#### `models.ArtifactSourceList` was removed
+
+#### `models.NotificationChannelList` was removed
+
+#### `models.CustomImageList` was removed
+
+#### `models.ArmTemplateInfo` was modified
+
+* `java.lang.Object parameters()` -> `java.util.Map parameters()`
+* `java.lang.Object template()` -> `java.util.Map template()`
+
+#### `models.TargetCostProperties` was modified
+
+* `validate()` was removed
+
+#### `models.PolicyViolation` was modified
+
+* `PolicyViolation()` was changed to private access
+* `withMessage(java.lang.String)` was removed
+* `withCode(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.Subnet` was modified
+
+* `validate()` was removed
+
+#### `models.GenerateUploadUriParameter` was modified
+
+* `validate()` was removed
+
+#### `models.Artifact` was modified
+
+* `java.lang.Object parameters()` -> `java.util.Map parameters()`
+
+#### `models.ArtifactSourceFragment` was modified
+
+* `validate()` was removed
+
+#### `models.IdentityProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ExternalSubnet` was modified
+
+* `ExternalSubnet()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `validate()` was removed
+* `withId(java.lang.String)` was removed
+
+#### `models.GalleryImageReference` was modified
+
+* `validate()` was removed
+
+#### `models.DtlEnvironmentFragment` was modified
+
+* `validate()` was removed
+
+#### `models.HourDetails` was modified
+
+* `validate()` was removed
+
+#### `models.Port` was modified
+
+* `validate()` was removed
+
+#### `models.FormulaFragment` was modified
+
+* `validate()` was removed
+
+#### `models.DetachDiskProperties` was modified
+
+* `validate()` was removed
+
+#### `models.LinuxOsInfo` was modified
+
+* `validate()` was removed
+
+#### `models.LabSupportProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduleFragment` was modified
+
+* `validate()` was removed
+
+#### `models.ArmTemplate` was modified
+
+* `java.lang.Object contents()` -> `java.util.Map contents()`
+
+#### `models.ParameterInfo` was modified
+
+* `validate()` was removed
+
+#### `models.EnvironmentDeploymentProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ArtifactParameterProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ComputeDataDisk` was modified
+
+* `ComputeDataDisk()` was changed to private access
+* `withDiskUri(java.lang.String)` was removed
+* `withManagedDiskId(java.lang.String)` was removed
+* `validate()` was removed
+* `withDiskSizeGiB(java.lang.Integer)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.CustomImagePropertiesFromPlan` was modified
+
+* `validate()` was removed
+
+#### `models.WeekDetails` was modified
+
+* `validate()` was removed
+
+#### `models.FormulaPropertiesFromVm` was modified
+
+* `validate()` was removed
+
+#### `models.UserSecretStore` was modified
+
+* `validate()` was removed
+
+#### `models.SecretFragment` was modified
+
+* `validate()` was removed
+
+#### `models.RetargetScheduleProperties` was modified
+
+* `validate()` was removed
+
+#### `models.SubnetOverride` was modified
+
+* `validate()` was removed
+
+#### `models.BulkCreationParameters` was modified
+
+* `validate()` was removed
+
+#### `models.NotificationChannelFragment` was modified
+
+* `validate()` was removed
+
+#### `models.ServiceFabricFragment` was modified
+
+* `validate()` was removed
+
+#### `models.SubnetSharedPublicIpAddressConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.Event` was modified
+
+* `validate()` was removed
+
+#### `models.PolicySetResult` was modified
+
+* `PolicySetResult()` was changed to private access
+* `withHasError(java.lang.Boolean)` was removed
+* `validate()` was removed
+* `withPolicyViolations(java.util.List)` was removed
+
+#### `models.LabResourceCostProperties` was modified
+
+* `LabResourceCostProperties()` was changed to private access
+* `withExternalResourceId(java.lang.String)` was removed
+* `withResourceId(java.lang.String)` was removed
+* `withResourceType(java.lang.String)` was removed
+* `validate()` was removed
+* `withResourcename(java.lang.String)` was removed
+* `withResourcePricingTier(java.lang.String)` was removed
+* `withResourceUId(java.lang.String)` was removed
+* `withResourceOwner(java.lang.String)` was removed
+* `withResourceCost(java.lang.Double)` was removed
+* `withResourceStatus(java.lang.String)` was removed
+
+#### `models.ArmTemplateParameterProperties` was modified
+
+* `validate()` was removed
+
+#### `models.CustomImagePropertiesFromVm` was modified
+
+* `validate()` was removed
+
+#### `models.OperationError` was modified
+
+* `OperationError()` was changed to private access
+* `withMessage(java.lang.String)` was removed
+* `withCode(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.DetachDataDiskProperties` was modified
+
+* `validate()` was removed
+
+#### `models.UpdateResource` was modified
+
+* `validate()` was removed
+
+#### `models.DiskFragment` was modified
+
+* `validate()` was removed
+
+#### `models.LabAnnouncementProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduleCreationParameter` was modified
+
+* `validate()` was removed
+
+#### `models.NotificationSettings` was modified
+
+* `validate()` was removed
+
+#### `models.PercentageCostThresholdProperties` was modified
+
+* `validate()` was removed
+
+#### `models.UserFragment` was modified
+
+* `validate()` was removed
+
+#### `models.DataDiskStorageTypeInfo` was modified
+
+* `validate()` was removed
+
+#### `models.VirtualNetworkFragment` was modified
+
+* `validate()` was removed
+
+#### `models.ResizeLabVirtualMachineProperties` was modified
+
+* `validate()` was removed
+
+#### `models.NetworkInterfaceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.NotifyParameters` was modified
+
+* `validate()` was removed
+
+#### `models.EvaluatePoliciesRequest` was modified
+
+* `validate()` was removed
+
+#### `models.SharedPublicIpAddressConfiguration` was modified
+
+* `validate()` was removed
+
+#### `models.CustomImageFragment` was modified
+
+* `validate()` was removed
+
+#### `models.PolicyFragment` was modified
+
+* `validate()` was removed
+
+#### `models.EvaluatePoliciesProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ParametersValueFileInfo` was modified
+
+* `ParametersValueFileInfo()` was changed to private access
+* `withFileName(java.lang.String)` was removed
+* `validate()` was removed
+* `withParametersValueInfo(java.lang.Object)` was removed
+* `java.lang.Object parametersValueInfo()` -> `java.util.Map parametersValueInfo()`
+
+#### `models.WindowsOsInfo` was modified
+
+* `validate()` was removed
+
+#### `models.LabCostDetailsProperties` was modified
+
+* `LabCostDetailsProperties()` was changed to private access
+* `withDate(java.time.OffsetDateTime)` was removed
+* `withCost(java.lang.Double)` was removed
+* `withCostType(models.CostType)` was removed
+* `validate()` was removed
+
+#### `models.LabCostSummaryProperties` was modified
+
+* `LabCostSummaryProperties()` was changed to private access
+* `withEstimatedLabCost(java.lang.Double)` was removed
+* `validate()` was removed
+
+#### `models.ComputeVmProperties` was modified
+
+* `ComputeVmProperties()` was changed to private access
+* `withOsDiskId(java.lang.String)` was removed
+* `withDataDiskIds(java.util.List)` was removed
+* `withVmSize(java.lang.String)` was removed
+* `withOsType(java.lang.String)` was removed
+* `withDataDisks(java.util.List)` was removed
+* `validate()` was removed
+* `withNetworkInterfaceId(java.lang.String)` was removed
+* `withStatuses(java.util.List)` was removed
+
+#### `models.CostThresholdProperties` was modified
+
+* `validate()` was removed
+
+#### `models.UserIdentity` was modified
+
+* `validate()` was removed
+
+#### `models.ArtifactDeploymentStatusProperties` was modified
+
+* `ArtifactDeploymentStatusProperties()` was changed to private access
+* `validate()` was removed
+* `withArtifactsApplied(java.lang.Integer)` was removed
+* `withDeploymentStatus(java.lang.String)` was removed
+* `withTotalArtifacts(java.lang.Integer)` was removed
+
+#### `models.LabVirtualMachineFragment` was modified
+
+* `validate()` was removed
+
+#### `models.CustomImagePropertiesCustom` was modified
+
+* `validate()` was removed
+
+#### `models.ComputeVmInstanceViewStatus` was modified
+
+* `ComputeVmInstanceViewStatus()` was changed to private access
+* `withCode(java.lang.String)` was removed
+* `withMessage(java.lang.String)` was removed
+* `withDisplayStatus(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.DayDetails` was modified
+
+* `validate()` was removed
+
+#### `models.LabFragment` was modified
+
+* `validate()` was removed
+
+#### `models.DataDiskProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ApplyArtifactsRequest` was modified
+
+* `validate()` was removed
+
+#### `models.AttachNewDataDiskOptions` was modified
+
+* `validate()` was removed
+
+#### `models.ExportResourceUsageParameters` was modified
+
+* `validate()` was removed
+
+#### `models.AttachDiskProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ArtifactInstallProperties` was modified
+
+* `validate()` was removed
+
+#### `models.LabVirtualMachineCreationParameter` was modified
+
+* `validate()` was removed
+
+#### `models.GenerateArmTemplateRequest` was modified
+
+* `validate()` was removed
+
+#### `models.InboundNatRule` was modified
+
+* `validate()` was removed
+
+#### `DevTestLabsManager` was modified
+
+* `fluent.DevTestLabsClient serviceClient()` -> `fluent.DevTestLabsManagementClient serviceClient()`
+
+#### `models.ImportLabVirtualMachineRequest` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.Operation` was added
+
+* `models.OperationDisplay` was added
+
+* `models.ActionType` was added
+
+* `models.Origin` was added
+
+#### `models.NotificationChannel` was modified
+
+* `systemData()` was added
+
+#### `models.Artifact` was modified
+
+* `systemData()` was added
+
+#### `models.ApplicableSchedule` was modified
+
+* `systemData()` was added
+
+#### `models.User` was modified
+
+* `systemData()` was added
+
+#### `models.Secret` was modified
+
+* `systemData()` was added
+
+#### `models.ServiceRunner` was modified
+
+* `systemData()` was added
+
+#### `models.CustomImage` was modified
+
+* `systemData()` was added
+
+#### `models.Formula` was modified
+
+* `systemData()` was added
+
+#### `models.ArmTemplate` was modified
+
+* `systemData()` was added
+
+#### `models.LabCost` was modified
+
+* `systemData()` was added
+
+#### `models.Disk` was modified
+
+* `systemData()` was added
+
+#### `models.ServiceFabric` was modified
+
+* `systemData()` was added
+
+#### `models.ArtifactSource` was modified
+
+* `systemData()` was added
+
+#### `models.DtlEnvironment` was modified
+
+* `systemData()` was added
+
+#### `models.Schedule` was modified
+
+* `systemData()` was added
+
+#### `models.GalleryImage` was modified
+
+* `systemData()` was added
+
+#### `models.Policy` was modified
+
+* `systemData()` was added
+
+#### `models.Lab` was modified
+
+* `systemData()` was added
+
+#### `models.LabVirtualMachine` was modified
+
+* `systemData()` was added
+
+#### `models.VirtualNetwork` was modified
-### Other Changes
+* `systemData()` was added
## 1.1.0 (2024-12-13)
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/README.md b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/README.md
index 9916a9c49e7b..a60aef12185c 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/README.md
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager DevTestLabs client library for Java.
-This package contains Microsoft Azure SDK for DevTestLabs Management SDK. The DevTest Labs Client. Package tag package-2018-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for DevTestLabs Management SDK. The DevTest Labs Client. Package api-version 2018-09-15. 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-devtestlabs
- 1.2.0-beta.1
+ 1.2.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ DevTestLabsManager manager = DevTestLabsManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -107,5 +107,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/SAMPLE.md b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/SAMPLE.md
index 0f6e7558fe71..806334303e2a 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/SAMPLE.md
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/SAMPLE.md
@@ -215,8 +215,7 @@
*/
public final class ArmTemplatesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json
+ * x-ms-original-file: 2018-09-15/ArmTemplates_Get.json
*/
/**
* Sample code: ArmTemplates_Get.
@@ -239,8 +238,7 @@ public final class ArmTemplatesGetSamples {
*/
public final class ArmTemplatesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json
+ * x-ms-original-file: 2018-09-15/ArmTemplates_List.json
*/
/**
* Sample code: ArmTemplates_List.
@@ -268,8 +266,7 @@ import java.util.Map;
*/
public final class ArtifactSourcesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ArtifactSources_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/ArtifactSources_CreateOrUpdate.json
*/
/**
* Sample code: ArtifactSources_CreateOrUpdate.
@@ -279,7 +276,6 @@ public final class ArtifactSourcesCreateOrUpdateSamples {
public static void artifactSourcesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.artifactSources()
.define("{artifactSourceName}")
- .withRegion((String) null)
.withExistingLab("resourceGroupName", "{labName}")
.withTags(mapOf("tagName1", "tagValue1"))
.withDisplayName("{displayName}")
@@ -315,9 +311,7 @@ public final class ArtifactSourcesCreateOrUpdateSamples {
*/
public final class ArtifactSourcesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete
- * .json
+ * x-ms-original-file: 2018-09-15/ArtifactSources_Delete.json
*/
/**
* Sample code: ArtifactSources_Delete.
@@ -340,9 +334,7 @@ public final class ArtifactSourcesDeleteSamples {
*/
public final class ArtifactSourcesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.
- * json
+ * x-ms-original-file: 2018-09-15/ArtifactSources_Get.json
*/
/**
* Sample code: ArtifactSources_Get.
@@ -365,9 +357,7 @@ public final class ArtifactSourcesGetSamples {
*/
public final class ArtifactSourcesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.
- * json
+ * x-ms-original-file: 2018-09-15/ArtifactSources_List.json
*/
/**
* Sample code: ArtifactSources_List.
@@ -393,9 +383,7 @@ import java.util.Map;
*/
public final class ArtifactSourcesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update
- * .json
+ * x-ms-original-file: 2018-09-15/ArtifactSources_Update.json
*/
/**
* Sample code: ArtifactSources_Update.
@@ -435,8 +423,7 @@ import com.azure.resourcemanager.devtestlabs.models.GenerateArmTemplateRequest;
*/
public final class ArtifactsGenerateArmTemplateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Artifacts_GenerateArmTemplate.json
+ * x-ms-original-file: 2018-09-15/Artifacts_GenerateArmTemplate.json
*/
/**
* Sample code: Artifacts_GenerateArmTemplate.
@@ -462,8 +449,7 @@ public final class ArtifactsGenerateArmTemplateSamples {
*/
public final class ArtifactsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json
+ * x-ms-original-file: 2018-09-15/Artifacts_Get.json
*/
/**
* Sample code: Artifacts_Get.
@@ -486,8 +472,7 @@ public final class ArtifactsGetSamples {
*/
public final class ArtifactsListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json
+ * x-ms-original-file: 2018-09-15/Artifacts_List.json
*/
/**
* Sample code: Artifacts_List.
@@ -519,9 +504,7 @@ import java.util.Arrays;
*/
public final class CostsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2018-09-15/Costs_CreateOrUpdate.json
*/
/**
* Sample code: Costs_CreateOrUpdate.
@@ -531,7 +514,6 @@ public final class CostsCreateOrUpdateSamples {
public static void costsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.costs()
.define("targetCost")
- .withRegion((String) null)
.withExistingLab("resourceGroupName", "{labName}")
.withTargetCost(new TargetCostProperties().withStatus(TargetCostStatus.ENABLED)
.withTarget(100)
@@ -575,8 +557,7 @@ public final class CostsCreateOrUpdateSamples {
*/
public final class CostsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json
+ * x-ms-original-file: 2018-09-15/Costs_Get.json
*/
/**
* Sample code: Costs_Get.
@@ -604,8 +585,7 @@ import java.util.Map;
*/
public final class CustomImagesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * CustomImages_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/CustomImages_CreateOrUpdate.json
*/
/**
* Sample code: CustomImages_CreateOrUpdate.
@@ -615,7 +595,6 @@ public final class CustomImagesCreateOrUpdateSamples {
public static void customImagesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.customImages()
.define("{customImageName}")
- .withRegion((String) null)
.withExistingLab("resourceGroupName", "{labName}")
.withTags(mapOf("tagName1", "tagValue1"))
.withVm(new CustomImagePropertiesFromVm().withSourceVmId(
@@ -647,9 +626,7 @@ public final class CustomImagesCreateOrUpdateSamples {
*/
public final class CustomImagesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.
- * json
+ * x-ms-original-file: 2018-09-15/CustomImages_Delete.json
*/
/**
* Sample code: CustomImages_Delete.
@@ -671,8 +648,7 @@ public final class CustomImagesDeleteSamples {
*/
public final class CustomImagesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json
+ * x-ms-original-file: 2018-09-15/CustomImages_Get.json
*/
/**
* Sample code: CustomImages_Get.
@@ -695,8 +671,7 @@ public final class CustomImagesGetSamples {
*/
public final class CustomImagesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json
+ * x-ms-original-file: 2018-09-15/CustomImages_List.json
*/
/**
* Sample code: CustomImages_List.
@@ -722,9 +697,7 @@ import java.util.Map;
*/
public final class CustomImagesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.
- * json
+ * x-ms-original-file: 2018-09-15/CustomImages_Update.json
*/
/**
* Sample code: CustomImages_Update.
@@ -763,8 +736,7 @@ import com.azure.resourcemanager.devtestlabs.models.AttachDiskProperties;
*/
public final class DisksAttachSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json
+ * x-ms-original-file: 2018-09-15/Disks_Attach.json
*/
/**
* Sample code: Disks_Attach.
@@ -791,9 +763,7 @@ import com.azure.resourcemanager.devtestlabs.models.StorageType;
*/
public final class DisksCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2018-09-15/Disks_CreateOrUpdate.json
*/
/**
* Sample code: Disks_CreateOrUpdate.
@@ -803,7 +773,6 @@ public final class DisksCreateOrUpdateSamples {
public static void disksCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.disks()
.define("{diskName}")
- .withRegion((String) null)
.withExistingUser("resourceGroupName", "{labName}", "{userId}")
.withDiskType(StorageType.STANDARD)
.withDiskSizeGiB(1023)
@@ -822,8 +791,7 @@ public final class DisksCreateOrUpdateSamples {
*/
public final class DisksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json
+ * x-ms-original-file: 2018-09-15/Disks_Delete.json
*/
/**
* Sample code: Disks_Delete.
@@ -831,8 +799,7 @@ public final class DisksDeleteSamples {
* @param manager Entry point to DevTestLabsManager.
*/
public static void disksDelete(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
- manager.disks()
- .delete("resourceGroupName", "{labName}", "{userId}", "{diskName}", com.azure.core.util.Context.NONE);
+ manager.disks().delete("resourceGroupName", "{labName}", "@me", "{diskName}", com.azure.core.util.Context.NONE);
}
}
```
@@ -847,8 +814,7 @@ import com.azure.resourcemanager.devtestlabs.models.DetachDiskProperties;
*/
public final class DisksDetachSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json
+ * x-ms-original-file: 2018-09-15/Disks_Detach.json
*/
/**
* Sample code: Disks_Detach.
@@ -873,8 +839,7 @@ public final class DisksDetachSamples {
*/
public final class DisksGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json
+ * x-ms-original-file: 2018-09-15/Disks_Get.json
*/
/**
* Sample code: Disks_Get.
@@ -897,8 +862,7 @@ public final class DisksGetSamples {
*/
public final class DisksListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json
+ * x-ms-original-file: 2018-09-15/Disks_List.json
*/
/**
* Sample code: Disks_List.
@@ -924,8 +888,7 @@ import java.util.Map;
*/
public final class DisksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json
+ * x-ms-original-file: 2018-09-15/Disks_Update.json
*/
/**
* Sample code: Disks_Update.
@@ -965,8 +928,7 @@ import java.util.Arrays;
*/
public final class EnvironmentsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Environments_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/Environments_CreateOrUpdate.json
*/
/**
* Sample code: Environments_CreateOrUpdate.
@@ -976,7 +938,6 @@ public final class EnvironmentsCreateOrUpdateSamples {
public static void environmentsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.environments()
.define("{environmentName}")
- .withRegion((String) null)
.withExistingUser("resourceGroupName", "{labName}", "@me")
.withDeploymentProperties(new EnvironmentDeploymentProperties().withArmTemplateId(
"/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}")
@@ -994,9 +955,7 @@ public final class EnvironmentsCreateOrUpdateSamples {
*/
public final class EnvironmentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.
- * json
+ * x-ms-original-file: 2018-09-15/Environments_Delete.json
*/
/**
* Sample code: Environments_Delete.
@@ -1018,8 +977,7 @@ public final class EnvironmentsDeleteSamples {
*/
public final class EnvironmentsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json
+ * x-ms-original-file: 2018-09-15/Environments_Get.json
*/
/**
* Sample code: Environments_Get.
@@ -1042,8 +1000,7 @@ public final class EnvironmentsGetSamples {
*/
public final class EnvironmentsListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json
+ * x-ms-original-file: 2018-09-15/Environments_List.json
*/
/**
* Sample code: Environments_List.
@@ -1069,9 +1026,7 @@ import java.util.Map;
*/
public final class EnvironmentsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.
- * json
+ * x-ms-original-file: 2018-09-15/Environments_Update.json
*/
/**
* Sample code: Environments_Update.
@@ -1117,8 +1072,7 @@ import java.util.Arrays;
*/
public final class FormulasCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Formulas_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/Formulas_CreateOrUpdate.json
*/
/**
* Sample code: Formulas_CreateOrUpdate.
@@ -1128,8 +1082,8 @@ public final class FormulasCreateOrUpdateSamples {
public static void formulasCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.formulas()
.define("{formulaName}")
- .withRegion("{location}")
.withExistingLab("resourceGroupName", "{labName}")
+ .withRegion("{location}")
.withDescription("Formula using a Linux base")
.withFormulaContent(new LabVirtualMachineCreationParameter().withLocation("{location}")
.withNotes("Ubuntu Server 20.10")
@@ -1165,8 +1119,7 @@ public final class FormulasCreateOrUpdateSamples {
*/
public final class FormulasDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json
+ * x-ms-original-file: 2018-09-15/Formulas_Delete.json
*/
/**
* Sample code: Formulas_Delete.
@@ -1188,8 +1141,7 @@ public final class FormulasDeleteSamples {
*/
public final class FormulasGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json
+ * x-ms-original-file: 2018-09-15/Formulas_Get.json
*/
/**
* Sample code: Formulas_Get.
@@ -1211,8 +1163,7 @@ public final class FormulasGetSamples {
*/
public final class FormulasListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json
+ * x-ms-original-file: 2018-09-15/Formulas_List.json
*/
/**
* Sample code: Formulas_List.
@@ -1238,8 +1189,7 @@ import java.util.Map;
*/
public final class FormulasUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json
+ * x-ms-original-file: 2018-09-15/Formulas_Update.json
*/
/**
* Sample code: Formulas_Update.
@@ -1275,9 +1225,7 @@ public final class FormulasUpdateSamples {
*/
public final class GalleryImagesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.
- * json
+ * x-ms-original-file: 2018-09-15/GalleryImages_List.json
*/
/**
* Sample code: GalleryImages_List.
@@ -1303,8 +1251,7 @@ import java.util.Arrays;
*/
public final class GlobalSchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * GlobalSchedules_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_CreateOrUpdate.json
*/
/**
* Sample code: GlobalSchedules_CreateOrUpdate.
@@ -1314,7 +1261,6 @@ public final class GlobalSchedulesCreateOrUpdateSamples {
public static void globalSchedulesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.globalSchedules()
.define("labvmautostart")
- .withRegion((String) null)
.withExistingResourceGroup("resourceGroupName")
.withStatus(EnableStatus.ENABLED)
.withTaskType("LabVmsStartupTask")
@@ -1335,9 +1281,7 @@ public final class GlobalSchedulesCreateOrUpdateSamples {
*/
public final class GlobalSchedulesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete
- * .json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_Delete.json
*/
/**
* Sample code: GlobalSchedules_Delete.
@@ -1359,8 +1303,7 @@ public final class GlobalSchedulesDeleteSamples {
*/
public final class GlobalSchedulesExecuteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * GlobalSchedules_Execute.json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_Execute.json
*/
/**
* Sample code: GlobalSchedules_Execute.
@@ -1381,9 +1324,7 @@ public final class GlobalSchedulesExecuteSamples {
*/
public final class GlobalSchedulesGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.
- * json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_Get.json
*/
/**
* Sample code: GlobalSchedules_Get.
@@ -1406,8 +1347,7 @@ public final class GlobalSchedulesGetByResourceGroupSamples {
*/
public final class GlobalSchedulesListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * GlobalSchedules_ListBySubscription.json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_ListBySubscription.json
*/
/**
* Sample code: GlobalSchedules_ListBySubscription.
@@ -1429,8 +1369,7 @@ public final class GlobalSchedulesListSamples {
*/
public final class GlobalSchedulesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * GlobalSchedules_ListByResourceGroup.json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_ListByResourceGroup.json
*/
/**
* Sample code: GlobalSchedules_ListByResourceGroup.
@@ -1455,8 +1394,7 @@ import com.azure.resourcemanager.devtestlabs.models.RetargetScheduleProperties;
*/
public final class GlobalSchedulesRetargetSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * GlobalSchedules_Retarget.json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_Retarget.json
*/
/**
* Sample code: GlobalSchedules_Retarget.
@@ -1486,9 +1424,7 @@ import java.util.Map;
*/
public final class GlobalSchedulesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update
- * .json
+ * x-ms-original-file: 2018-09-15/GlobalSchedules_Update.json
*/
/**
* Sample code: GlobalSchedules_Update.
@@ -1525,8 +1461,7 @@ public final class GlobalSchedulesUpdateSamples {
*/
public final class LabsClaimAnyVmSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json
+ * x-ms-original-file: 2018-09-15/Labs_ClaimAnyVm.json
*/
/**
* Sample code: Labs_ClaimAnyVm.
@@ -1552,9 +1487,7 @@ import java.util.Map;
*/
public final class LabsCreateEnvironmentSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment
- * .json
+ * x-ms-original-file: 2018-09-15/Labs_CreateEnvironment.json
*/
/**
* Sample code: Labs_CreateEnvironment.
@@ -1609,9 +1542,7 @@ import java.util.Map;
*/
public final class LabsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2018-09-15/Labs_CreateOrUpdate.json
*/
/**
* Sample code: Labs_CreateOrUpdate.
@@ -1621,8 +1552,8 @@ public final class LabsCreateOrUpdateSamples {
public static void labsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.labs()
.define("{labName}")
- .withRegion("{location}")
.withExistingResourceGroup("resourceGroupName")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withLabStorageType(StorageType.fromString("{Standard|Premium}"))
.create();
@@ -1650,8 +1581,7 @@ public final class LabsCreateOrUpdateSamples {
*/
public final class LabsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json
+ * x-ms-original-file: 2018-09-15/Labs_Delete.json
*/
/**
* Sample code: Labs_Delete.
@@ -1675,8 +1605,7 @@ import java.time.OffsetDateTime;
*/
public final class LabsExportResourceUsageSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Labs_ExportResourceUsage.json
+ * x-ms-original-file: 2018-09-15/Labs_ExportResourceUsage.json
*/
/**
* Sample code: Labs_ExportResourceUsage.
@@ -1705,9 +1634,7 @@ import com.azure.resourcemanager.devtestlabs.models.GenerateUploadUriParameter;
*/
public final class LabsGenerateUploadUriSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri
- * .json
+ * x-ms-original-file: 2018-09-15/Labs_GenerateUploadUri.json
*/
/**
* Sample code: Labs_GenerateUploadUri.
@@ -1730,8 +1657,7 @@ public final class LabsGenerateUploadUriSamples {
*/
public final class LabsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json
+ * x-ms-original-file: 2018-09-15/Labs_Get.json
*/
/**
* Sample code: Labs_Get.
@@ -1755,8 +1681,7 @@ import com.azure.resourcemanager.devtestlabs.models.ImportLabVirtualMachineReque
*/
public final class LabsImportVirtualMachineSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Labs_ImportVirtualMachine.json
+ * x-ms-original-file: 2018-09-15/Labs_ImportVirtualMachine.json
*/
/**
* Sample code: Labs_ImportVirtualMachine.
@@ -1782,8 +1707,7 @@ public final class LabsImportVirtualMachineSamples {
*/
public final class LabsListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Labs_ListBySubscription.json
+ * x-ms-original-file: 2018-09-15/Labs_ListBySubscription.json
*/
/**
* Sample code: Labs_ListBySubscription.
@@ -1804,8 +1728,7 @@ public final class LabsListSamples {
*/
public final class LabsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Labs_ListByResourceGroup.json
+ * x-ms-original-file: 2018-09-15/Labs_ListByResourceGroup.json
*/
/**
* Sample code: Labs_ListByResourceGroup.
@@ -1827,8 +1750,7 @@ public final class LabsListByResourceGroupSamples {
*/
public final class LabsListVhdsSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json
+ * x-ms-original-file: 2018-09-15/Labs_ListVhds.json
*/
/**
* Sample code: Labs_ListVhds.
@@ -1851,8 +1773,7 @@ import com.azure.resourcemanager.devtestlabs.models.Lab;
*/
public final class LabsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json
+ * x-ms-original-file: 2018-09-15/Labs_Update.json
*/
/**
* Sample code: Labs_Update.
@@ -1880,8 +1801,7 @@ import java.util.Arrays;
*/
public final class NotificationChannelsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_CreateOrUpdate.json
*/
/**
* Sample code: NotificationChannels_CreateOrUpdate.
@@ -1892,7 +1812,6 @@ public final class NotificationChannelsCreateOrUpdateSamples {
notificationChannelsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.notificationChannels()
.define("{notificationChannelName}")
- .withRegion((String) null)
.withExistingLab("resourceGroupName", "{labName}")
.withWebhookUrl("{webhookUrl}")
.withEmailRecipient("{email}")
@@ -1912,8 +1831,7 @@ public final class NotificationChannelsCreateOrUpdateSamples {
*/
public final class NotificationChannelsDeleteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_Delete.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_Delete.json
*/
/**
* Sample code: NotificationChannels_Delete.
@@ -1936,8 +1854,7 @@ public final class NotificationChannelsDeleteSamples {
*/
public final class NotificationChannelsGetSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_Get.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_Get.json
*/
/**
* Sample code: NotificationChannels_Get.
@@ -1960,8 +1877,7 @@ public final class NotificationChannelsGetSamples {
*/
public final class NotificationChannelsListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_List.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_List.json
*/
/**
* Sample code: NotificationChannels_List.
@@ -1986,8 +1902,7 @@ import com.azure.resourcemanager.devtestlabs.models.NotifyParameters;
*/
public final class NotificationChannelsNotifySamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_Notify.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_Notify.json
*/
/**
* Sample code: NotificationChannels_Notify.
@@ -2015,8 +1930,7 @@ import com.azure.resourcemanager.devtestlabs.models.NotificationChannel;
*/
public final class NotificationChannelsUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * NotificationChannels_Update.json
+ * x-ms-original-file: 2018-09-15/NotificationChannels_Update.json
*/
/**
* Sample code: NotificationChannels_Update.
@@ -2041,8 +1955,7 @@ public final class NotificationChannelsUpdateSamples {
*/
public final class OperationsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json
+ * x-ms-original-file: 2018-09-15/Operations_Get.json
*/
/**
* Sample code: Operations_Get.
@@ -2069,8 +1982,7 @@ import java.util.Map;
*/
public final class PoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Policies_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/Policies_CreateOrUpdate.json
*/
/**
* Sample code: Policies_CreateOrUpdate.
@@ -2080,8 +1992,8 @@ public final class PoliciesCreateOrUpdateSamples {
public static void policiesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.policies()
.define("{policyName}")
- .withRegion("{location}")
.withExistingPolicyset("resourceGroupName", "{labName}", "{policySetName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withDescription("{policyDescription}")
.withStatus(PolicyStatus.fromString("{policyStatus}"))
@@ -2114,8 +2026,7 @@ public final class PoliciesCreateOrUpdateSamples {
*/
public final class PoliciesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json
+ * x-ms-original-file: 2018-09-15/Policies_Delete.json
*/
/**
* Sample code: Policies_Delete.
@@ -2138,8 +2049,7 @@ public final class PoliciesDeleteSamples {
*/
public final class PoliciesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json
+ * x-ms-original-file: 2018-09-15/Policies_Get.json
*/
/**
* Sample code: Policies_Get.
@@ -2162,8 +2072,7 @@ public final class PoliciesGetSamples {
*/
public final class PoliciesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json
+ * x-ms-original-file: 2018-09-15/Policies_List.json
*/
/**
* Sample code: Policies_List.
@@ -2190,8 +2099,7 @@ import java.util.Map;
*/
public final class PoliciesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json
+ * x-ms-original-file: 2018-09-15/Policies_Update.json
*/
/**
* Sample code: Policies_Update.
@@ -2232,8 +2140,7 @@ import java.util.Arrays;
*/
public final class PolicySetsEvaluatePoliciesSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * PolicySets_EvaluatePolicies.json
+ * x-ms-original-file: 2018-09-15/PolicySets_EvaluatePolicies.json
*/
/**
* Sample code: PolicySets_EvaluatePolicies.
@@ -2258,8 +2165,7 @@ public final class PolicySetsEvaluatePoliciesSamples {
*/
public final class ProviderOperationsListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ProviderOperations_List.json
+ * x-ms-original-file: 2018-09-15/ProviderOperations_List.json
*/
/**
* Sample code: ProviderOperations_List.
@@ -2290,8 +2196,7 @@ import java.util.Map;
*/
public final class SchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Schedules_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/Schedules_CreateOrUpdate.json
*/
/**
* Sample code: Schedules_CreateOrUpdate.
@@ -2301,8 +2206,8 @@ public final class SchedulesCreateOrUpdateSamples {
public static void schedulesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.schedules()
.createOrUpdateWithResponse("resourceGroupName", "{labName}", "{scheduleName}",
- new ScheduleInner().withLocation("{location}")
- .withTags(mapOf("tagName1", "tagValue1"))
+ new ScheduleInner().withTags(mapOf("tagName1", "tagValue1"))
+ .withLocation("{location}")
.withStatus(EnableStatus.fromString("{Enabled|Disabled}"))
.withTaskType("{myLabVmTaskType}")
.withWeeklyRecurrence(new WeekDetails().withWeekdays(Arrays.asList("Monday", "Wednesday", "Friday"))
@@ -2343,8 +2248,7 @@ public final class SchedulesCreateOrUpdateSamples {
*/
public final class SchedulesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json
+ * x-ms-original-file: 2018-09-15/Schedules_Delete.json
*/
/**
* Sample code: Schedules_Delete.
@@ -2366,8 +2270,7 @@ public final class SchedulesDeleteSamples {
*/
public final class SchedulesExecuteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json
+ * x-ms-original-file: 2018-09-15/Schedules_Execute.json
*/
/**
* Sample code: Schedules_Execute.
@@ -2389,8 +2292,7 @@ public final class SchedulesExecuteSamples {
*/
public final class SchedulesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json
+ * x-ms-original-file: 2018-09-15/Schedules_Get.json
*/
/**
* Sample code: Schedules_Get.
@@ -2413,8 +2315,7 @@ public final class SchedulesGetSamples {
*/
public final class SchedulesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json
+ * x-ms-original-file: 2018-09-15/Schedules_List.json
*/
/**
* Sample code: Schedules_List.
@@ -2436,8 +2337,7 @@ public final class SchedulesListSamples {
*/
public final class SchedulesListApplicableSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * Schedules_ListApplicable.json
+ * x-ms-original-file: 2018-09-15/Schedules_ListApplicable.json
*/
/**
* Sample code: Schedules_ListApplicable.
@@ -2463,8 +2363,7 @@ import java.util.Map;
*/
public final class SchedulesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json
+ * x-ms-original-file: 2018-09-15/Schedules_Update.json
*/
/**
* Sample code: Schedules_Update.
@@ -2499,9 +2398,7 @@ public final class SchedulesUpdateSamples {
*/
public final class SecretsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate
- * .json
+ * x-ms-original-file: 2018-09-15/Secrets_CreateOrUpdate.json
*/
/**
* Sample code: Secrets_CreateOrUpdate.
@@ -2511,7 +2408,6 @@ public final class SecretsCreateOrUpdateSamples {
public static void secretsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.secrets()
.define("{secretName}")
- .withRegion((String) null)
.withExistingUser("resourceGroupName", "{labName}", "{userName}")
.withValue("{secret}")
.create();
@@ -2527,8 +2423,7 @@ public final class SecretsCreateOrUpdateSamples {
*/
public final class SecretsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json
+ * x-ms-original-file: 2018-09-15/Secrets_Delete.json
*/
/**
* Sample code: Secrets_Delete.
@@ -2551,8 +2446,7 @@ public final class SecretsDeleteSamples {
*/
public final class SecretsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json
+ * x-ms-original-file: 2018-09-15/Secrets_Get.json
*/
/**
* Sample code: Secrets_Get.
@@ -2575,8 +2469,7 @@ public final class SecretsGetSamples {
*/
public final class SecretsListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json
+ * x-ms-original-file: 2018-09-15/Secrets_List.json
*/
/**
* Sample code: Secrets_List.
@@ -2603,8 +2496,7 @@ import java.util.Map;
*/
public final class SecretsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json
+ * x-ms-original-file: 2018-09-15/Secrets_Update.json
*/
/**
* Sample code: Secrets_Update.
@@ -2651,8 +2543,7 @@ import java.util.Map;
*/
public final class ServiceFabricSchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_CreateOrUpdate.json
*/
/**
* Sample code: ServiceFabricSchedules_CreateOrUpdate.
@@ -2664,8 +2555,8 @@ public final class ServiceFabricSchedulesCreateOrUpdateSamples {
manager.serviceFabricSchedules()
.createOrUpdateWithResponse("resourceGroupName", "{labName}", "@me", "{serviceFrabicName}",
"{scheduleName}",
- new ScheduleInner().withLocation("{location}")
- .withTags(mapOf("tagName1", "tagValue1"))
+ new ScheduleInner().withTags(mapOf("tagName1", "tagValue1"))
+ .withLocation("{location}")
.withStatus(EnableStatus.fromString("{Enabled|Disabled}"))
.withTaskType(
"{Unknown|LabVmsShutdownTask|LabVmsStartupTask|LabVmReclamationTask|ComputeVmShutdownTask}")
@@ -2709,8 +2600,7 @@ public final class ServiceFabricSchedulesCreateOrUpdateSamples {
*/
public final class ServiceFabricSchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_Delete.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_Delete.json
*/
/**
* Sample code: ServiceFabricSchedules_Delete.
@@ -2733,8 +2623,7 @@ public final class ServiceFabricSchedulesDeleteSamples {
*/
public final class ServiceFabricSchedulesExecuteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_Execute.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_Execute.json
*/
/**
* Sample code: ServiceFabricSchedules_Execute.
@@ -2757,8 +2646,7 @@ public final class ServiceFabricSchedulesExecuteSamples {
*/
public final class ServiceFabricSchedulesGetSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_Get.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_Get.json
*/
/**
* Sample code: ServiceFabricSchedules_Get.
@@ -2781,8 +2669,7 @@ public final class ServiceFabricSchedulesGetSamples {
*/
public final class ServiceFabricSchedulesListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_List.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_List.json
*/
/**
* Sample code: ServiceFabricSchedules_List.
@@ -2809,8 +2696,7 @@ import java.util.Map;
*/
public final class ServiceFabricSchedulesUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabricSchedules_Update.json
+ * x-ms-original-file: 2018-09-15/ServiceFabricSchedules_Update.json
*/
/**
* Sample code: ServiceFabricSchedules_Update.
@@ -2848,8 +2734,7 @@ import java.util.Map;
*/
public final class ServiceFabricsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabrics_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_CreateOrUpdate.json
*/
/**
* Sample code: ServiceFabrics_CreateOrUpdate.
@@ -2859,8 +2744,8 @@ public final class ServiceFabricsCreateOrUpdateSamples {
public static void serviceFabricsCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.serviceFabrics()
.define("{serviceFabricName}")
- .withRegion("{location}")
.withExistingUser("resourceGroupName", "{labName}", "{userName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withExternalServiceFabricId("{serviceFabricId}")
.withEnvironmentId("{environmentId}")
@@ -2889,9 +2774,7 @@ public final class ServiceFabricsCreateOrUpdateSamples {
*/
public final class ServiceFabricsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_Delete.json
*/
/**
* Sample code: ServiceFabrics_Delete.
@@ -2914,9 +2797,7 @@ public final class ServiceFabricsDeleteSamples {
*/
public final class ServiceFabricsGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_Get.json
*/
/**
* Sample code: ServiceFabrics_Get.
@@ -2939,9 +2820,7 @@ public final class ServiceFabricsGetSamples {
*/
public final class ServiceFabricsListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_List.json
*/
/**
* Sample code: ServiceFabrics_List.
@@ -2964,8 +2843,7 @@ public final class ServiceFabricsListSamples {
*/
public final class ServiceFabricsListApplicableSchedulesSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceFabrics_ListApplicableSchedules.json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_ListApplicableSchedules.json
*/
/**
* Sample code: ServiceFabrics_ListApplicableSchedules.
@@ -2989,9 +2867,7 @@ public final class ServiceFabricsListApplicableSchedulesSamples {
*/
public final class ServiceFabricsStartSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_Start.json
*/
/**
* Sample code: ServiceFabrics_Start.
@@ -3014,9 +2890,7 @@ public final class ServiceFabricsStartSamples {
*/
public final class ServiceFabricsStopSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_Stop.json
*/
/**
* Sample code: ServiceFabrics_Stop.
@@ -3043,9 +2917,7 @@ import java.util.Map;
*/
public final class ServiceFabricsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceFabrics_Update.json
*/
/**
* Sample code: ServiceFabrics_Update.
@@ -3087,8 +2959,7 @@ import java.util.Map;
*/
public final class ServiceRunnersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * ServiceRunners_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/ServiceRunners_CreateOrUpdate.json
*/
/**
* Sample code: ServiceRunners_CreateOrUpdate.
@@ -3098,8 +2969,8 @@ public final class ServiceRunnersCreateOrUpdateSamples {
public static void serviceRunnersCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.serviceRunners()
.define("{servicerunnerName}")
- .withRegion("{location}")
.withExistingLab("resourceGroupName", "{devtestlabName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withIdentity(new IdentityProperties().withType(ManagedIdentityType.fromString("{identityType}"))
.withPrincipalId("{identityPrincipalId}")
@@ -3130,9 +3001,7 @@ public final class ServiceRunnersCreateOrUpdateSamples {
*/
public final class ServiceRunnersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceRunners_Delete.json
*/
/**
* Sample code: ServiceRunners_Delete.
@@ -3155,9 +3024,7 @@ public final class ServiceRunnersDeleteSamples {
*/
public final class ServiceRunnersGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.
- * json
+ * x-ms-original-file: 2018-09-15/ServiceRunners_Get.json
*/
/**
* Sample code: ServiceRunners_Get.
@@ -3185,9 +3052,7 @@ import java.util.Map;
*/
public final class UsersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.
- * json
+ * x-ms-original-file: 2018-09-15/Users_CreateOrUpdate.json
*/
/**
* Sample code: Users_CreateOrUpdate.
@@ -3197,8 +3062,8 @@ public final class UsersCreateOrUpdateSamples {
public static void usersCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.users()
.define("{userName}")
- .withRegion("{location}")
.withExistingLab("resourceGroupName", "{devtestlabName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withIdentity(new UserIdentity().withPrincipalName("{principalName}")
.withPrincipalId("{principalId}")
@@ -3232,8 +3097,7 @@ public final class UsersCreateOrUpdateSamples {
*/
public final class UsersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json
+ * x-ms-original-file: 2018-09-15/Users_Delete.json
*/
/**
* Sample code: Users_Delete.
@@ -3254,8 +3118,7 @@ public final class UsersDeleteSamples {
*/
public final class UsersGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json
+ * x-ms-original-file: 2018-09-15/Users_Get.json
*/
/**
* Sample code: Users_Get.
@@ -3278,8 +3141,7 @@ public final class UsersGetSamples {
*/
public final class UsersListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json
+ * x-ms-original-file: 2018-09-15/Users_List.json
*/
/**
* Sample code: Users_List.
@@ -3305,8 +3167,7 @@ import java.util.Map;
*/
public final class UsersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json
+ * x-ms-original-file: 2018-09-15/Users_Update.json
*/
/**
* Sample code: Users_Update.
@@ -3353,8 +3214,7 @@ import java.util.Map;
*/
public final class VirtualMachineSchedulesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_CreateOrUpdate.json
*/
/**
* Sample code: VirtualMachineSchedules_CreateOrUpdate.
@@ -3365,8 +3225,8 @@ public final class VirtualMachineSchedulesCreateOrUpdateSamples {
virtualMachineSchedulesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.virtualMachineSchedules()
.createOrUpdateWithResponse("resourceGroupName", "{labName}", "{vmName}", "LabVmsShutdown",
- new ScheduleInner().withLocation("{location}")
- .withTags(mapOf("tagName1", "tagValue1"))
+ new ScheduleInner().withTags(mapOf("tagName1", "tagValue1"))
+ .withLocation("{location}")
.withStatus(EnableStatus.ENABLED)
.withTaskType("LabVmsShutdownTask")
.withWeeklyRecurrence(
@@ -3406,8 +3266,7 @@ public final class VirtualMachineSchedulesCreateOrUpdateSamples {
*/
public final class VirtualMachineSchedulesDeleteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_Delete.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_Delete.json
*/
/**
* Sample code: VirtualMachineSchedules_Delete.
@@ -3430,8 +3289,7 @@ public final class VirtualMachineSchedulesDeleteSamples {
*/
public final class VirtualMachineSchedulesExecuteSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_Execute.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_Execute.json
*/
/**
* Sample code: VirtualMachineSchedules_Execute.
@@ -3454,8 +3312,7 @@ public final class VirtualMachineSchedulesExecuteSamples {
*/
public final class VirtualMachineSchedulesGetSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_Get.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_Get.json
*/
/**
* Sample code: VirtualMachineSchedules_Get.
@@ -3478,8 +3335,7 @@ public final class VirtualMachineSchedulesGetSamples {
*/
public final class VirtualMachineSchedulesListSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_List.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_List.json
*/
/**
* Sample code: VirtualMachineSchedules_List.
@@ -3506,8 +3362,7 @@ import java.util.Map;
*/
public final class VirtualMachineSchedulesUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachineSchedules_Update.json
+ * x-ms-original-file: 2018-09-15/VirtualMachineSchedules_Update.json
*/
/**
* Sample code: VirtualMachineSchedules_Update.
@@ -3546,8 +3401,7 @@ import com.azure.resourcemanager.devtestlabs.models.StorageType;
*/
public final class VirtualMachinesAddDataDiskSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_AddDataDisk.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_AddDataDisk.json
*/
/**
* Sample code: VirtualMachines_AddDataDisk.
@@ -3578,8 +3432,7 @@ import java.util.Arrays;
*/
public final class VirtualMachinesApplyArtifactsSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_ApplyArtifacts.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_ApplyArtifacts.json
*/
/**
* Sample code: VirtualMachines_ApplyArtifacts.
@@ -3604,9 +3457,7 @@ public final class VirtualMachinesApplyArtifactsSamples {
*/
public final class VirtualMachinesClaimSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Claim.json
*/
/**
* Sample code: VirtualMachines_Claim.
@@ -3631,8 +3482,7 @@ import java.util.Map;
*/
public final class VirtualMachinesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_CreateOrUpdate.json
*/
/**
* Sample code: VirtualMachines_CreateOrUpdate.
@@ -3642,8 +3492,8 @@ public final class VirtualMachinesCreateOrUpdateSamples {
public static void virtualMachinesCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.virtualMachines()
.define("{vmName}")
- .withRegion("{location}")
.withExistingLab("resourceGroupName", "{labName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
.withSize("Standard_A2_v2")
.withUsername("{userName}")
@@ -3684,9 +3534,7 @@ public final class VirtualMachinesCreateOrUpdateSamples {
*/
public final class VirtualMachinesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete
- * .json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Delete.json
*/
/**
* Sample code: VirtualMachines_Delete.
@@ -3710,8 +3558,7 @@ import com.azure.resourcemanager.devtestlabs.models.DetachDataDiskProperties;
*/
public final class VirtualMachinesDetachDataDiskSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_DetachDataDisk.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_DetachDataDisk.json
*/
/**
* Sample code: VirtualMachines_DetachDataDisk.
@@ -3736,9 +3583,7 @@ public final class VirtualMachinesDetachDataDiskSamples {
*/
public final class VirtualMachinesGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Get.json
*/
/**
* Sample code: VirtualMachines_Get.
@@ -3760,8 +3605,7 @@ public final class VirtualMachinesGetSamples {
*/
public final class VirtualMachinesGetRdpFileContentsSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_GetRdpFileContents.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_GetRdpFileContents.json
*/
/**
* Sample code: VirtualMachines_GetRdpFileContents.
@@ -3785,9 +3629,7 @@ public final class VirtualMachinesGetRdpFileContentsSamples {
*/
public final class VirtualMachinesListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_List.json
*/
/**
* Sample code: VirtualMachines_List.
@@ -3809,8 +3651,7 @@ public final class VirtualMachinesListSamples {
*/
public final class VirtualMachinesListApplicableSchedulesSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_ListApplicableSchedules.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_ListApplicableSchedules.json
*/
/**
* Sample code: VirtualMachines_ListApplicableSchedules.
@@ -3834,8 +3675,7 @@ public final class VirtualMachinesListApplicableSchedulesSamples {
*/
public final class VirtualMachinesRedeploySamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_Redeploy.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Redeploy.json
*/
/**
* Sample code: VirtualMachines_Redeploy.
@@ -3859,9 +3699,7 @@ import com.azure.resourcemanager.devtestlabs.models.ResizeLabVirtualMachinePrope
*/
public final class VirtualMachinesResizeSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize
- * .json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Resize.json
*/
/**
* Sample code: VirtualMachines_Resize.
@@ -3884,8 +3722,7 @@ public final class VirtualMachinesResizeSamples {
*/
public final class VirtualMachinesRestartSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_Restart.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Restart.json
*/
/**
* Sample code: VirtualMachines_Restart.
@@ -3907,9 +3744,7 @@ public final class VirtualMachinesRestartSamples {
*/
public final class VirtualMachinesStartSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Start.json
*/
/**
* Sample code: VirtualMachines_Start.
@@ -3930,9 +3765,7 @@ public final class VirtualMachinesStartSamples {
*/
public final class VirtualMachinesStopSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Stop.json
*/
/**
* Sample code: VirtualMachines_Stop.
@@ -3953,8 +3786,7 @@ public final class VirtualMachinesStopSamples {
*/
public final class VirtualMachinesTransferDisksSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_TransferDisks.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_TransferDisks.json
*/
/**
* Sample code: VirtualMachines_TransferDisks.
@@ -3976,8 +3808,7 @@ public final class VirtualMachinesTransferDisksSamples {
*/
public final class VirtualMachinesUnClaimSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualMachines_UnClaim.json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_UnClaim.json
*/
/**
* Sample code: VirtualMachines_UnClaim.
@@ -4001,9 +3832,7 @@ import com.azure.resourcemanager.devtestlabs.models.LabVirtualMachine;
*/
public final class VirtualMachinesUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update
- * .json
+ * x-ms-original-file: 2018-09-15/VirtualMachines_Update.json
*/
/**
* Sample code: VirtualMachines_Update.
@@ -4022,6 +3851,9 @@ public final class VirtualMachinesUpdateSamples {
### VirtualNetworks_CreateOrUpdate
```java
+import com.azure.resourcemanager.devtestlabs.models.Subnet;
+import com.azure.resourcemanager.devtestlabs.models.UsagePermissionType;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -4030,8 +3862,7 @@ import java.util.Map;
*/
public final class VirtualNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/
- * VirtualNetworks_CreateOrUpdate.json
+ * x-ms-original-file: 2018-09-15/VirtualNetworks_CreateOrUpdate.json
*/
/**
* Sample code: VirtualNetworks_CreateOrUpdate.
@@ -4041,9 +3872,13 @@ public final class VirtualNetworksCreateOrUpdateSamples {
public static void virtualNetworksCreateOrUpdate(com.azure.resourcemanager.devtestlabs.DevTestLabsManager manager) {
manager.virtualNetworks()
.define("{virtualNetworkName}")
- .withRegion("{location}")
.withExistingLab("resourceGroupName", "{labName}")
+ .withRegion("{location}")
.withTags(mapOf("tagName1", "tagValue1"))
+ .withAllowedSubnets(Arrays.asList(new Subnet().withResourceId(
+ "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{virtualNetworkName}Subnet")
+ .withLabSubnetName("{virtualNetworkName}Subnet")
+ .withAllowPublicIp(UsagePermissionType.ALLOW)))
.create();
}
@@ -4069,9 +3904,7 @@ public final class VirtualNetworksCreateOrUpdateSamples {
*/
public final class VirtualNetworksDeleteSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete
- * .json
+ * x-ms-original-file: 2018-09-15/VirtualNetworks_Delete.json
*/
/**
* Sample code: VirtualNetworks_Delete.
@@ -4093,9 +3926,7 @@ public final class VirtualNetworksDeleteSamples {
*/
public final class VirtualNetworksGetSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualNetworks_Get.json
*/
/**
* Sample code: VirtualNetworks_Get.
@@ -4118,9 +3949,7 @@ public final class VirtualNetworksGetSamples {
*/
public final class VirtualNetworksListSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.
- * json
+ * x-ms-original-file: 2018-09-15/VirtualNetworks_List.json
*/
/**
* Sample code: VirtualNetworks_List.
@@ -4146,9 +3975,7 @@ import java.util.Map;
*/
public final class VirtualNetworksUpdateSamples {
/*
- * x-ms-original-file:
- * specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update
- * .json
+ * x-ms-original-file: 2018-09-15/VirtualNetworks_Update.json
*/
/**
* Sample code: VirtualNetworks_Update.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/pom.xml b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/pom.xml
index 8c1cdca10eae..dad9b3d971bc 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/pom.xml
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-devtestlabs
- 1.2.0-beta.1
+ 1.2.0
jar
Microsoft Azure SDK for DevTestLabs Management
- This package contains Microsoft Azure SDK for DevTestLabs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The DevTest Labs Client. Package tag package-2018-09.
+ This package contains Microsoft Azure SDK for DevTestLabs Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The DevTest Labs Client. Package api-version 2018-09-15.
https://github.com/Azure/azure-sdk-for-java
@@ -45,7 +45,7 @@
UTF-8
0
0
- false
+ false
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/DevTestLabsManager.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/DevTestLabsManager.java
index 304fc9637408..a9bbfcbca513 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/DevTestLabsManager.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/DevTestLabsManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs;
@@ -22,14 +22,15 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.devtestlabs.fluent.DevTestLabsClient;
+import com.azure.resourcemanager.devtestlabs.fluent.DevTestLabsManagementClient;
import com.azure.resourcemanager.devtestlabs.implementation.ArmTemplatesImpl;
import com.azure.resourcemanager.devtestlabs.implementation.ArtifactSourcesImpl;
import com.azure.resourcemanager.devtestlabs.implementation.ArtifactsImpl;
import com.azure.resourcemanager.devtestlabs.implementation.CostsImpl;
import com.azure.resourcemanager.devtestlabs.implementation.CustomImagesImpl;
-import com.azure.resourcemanager.devtestlabs.implementation.DevTestLabsClientBuilder;
+import com.azure.resourcemanager.devtestlabs.implementation.DevTestLabsManagementClientBuilder;
import com.azure.resourcemanager.devtestlabs.implementation.DisksImpl;
import com.azure.resourcemanager.devtestlabs.implementation.EnvironmentsImpl;
import com.azure.resourcemanager.devtestlabs.implementation.FormulasImpl;
@@ -79,6 +80,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -91,10 +93,14 @@ public final class DevTestLabsManager {
private Labs labs;
- private Operations operations;
-
private GlobalSchedules globalSchedules;
+ private Schedules schedules;
+
+ private ServiceFabricSchedules serviceFabricSchedules;
+
+ private VirtualMachineSchedules virtualMachineSchedules;
+
private ArtifactSources artifactSources;
private ArmTemplates armTemplates;
@@ -111,11 +117,9 @@ public final class DevTestLabsManager {
private NotificationChannels notificationChannels;
- private PolicySets policySets;
-
private Policies policies;
- private Schedules schedules;
+ private PolicySets policySets;
private ServiceRunners serviceRunners;
@@ -129,20 +133,18 @@ public final class DevTestLabsManager {
private ServiceFabrics serviceFabrics;
- private ServiceFabricSchedules serviceFabricSchedules;
-
private VirtualMachines virtualMachines;
- private VirtualMachineSchedules virtualMachineSchedules;
-
private VirtualNetworks virtualNetworks;
- private final DevTestLabsClient clientObject;
+ private Operations operations;
+
+ private final DevTestLabsManagementClient clientObject;
private DevTestLabsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new DevTestLabsClientBuilder().pipeline(httpPipeline)
+ this.clientObject = new DevTestLabsManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -189,6 +191,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-devtestlabs.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -296,12 +301,14 @@ public DevTestLabsManager authenticate(TokenCredential credential, AzureProfile
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.devtestlabs")
.append("/")
- .append("1.1.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -371,18 +378,6 @@ public Labs labs() {
return labs;
}
- /**
- * 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);
- }
- return operations;
- }
-
/**
* Gets the resource collection API of GlobalSchedules. It manages Schedule.
*
@@ -395,6 +390,44 @@ public GlobalSchedules globalSchedules() {
return globalSchedules;
}
+ /**
+ * Gets the resource collection API of Schedules.
+ *
+ * @return Resource collection API of Schedules.
+ */
+ public Schedules schedules() {
+ if (this.schedules == null) {
+ this.schedules = new SchedulesImpl(clientObject.getSchedules(), this);
+ }
+ return schedules;
+ }
+
+ /**
+ * Gets the resource collection API of ServiceFabricSchedules.
+ *
+ * @return Resource collection API of ServiceFabricSchedules.
+ */
+ public ServiceFabricSchedules serviceFabricSchedules() {
+ if (this.serviceFabricSchedules == null) {
+ this.serviceFabricSchedules
+ = new ServiceFabricSchedulesImpl(clientObject.getServiceFabricSchedules(), this);
+ }
+ return serviceFabricSchedules;
+ }
+
+ /**
+ * Gets the resource collection API of VirtualMachineSchedules.
+ *
+ * @return Resource collection API of VirtualMachineSchedules.
+ */
+ public VirtualMachineSchedules virtualMachineSchedules() {
+ if (this.virtualMachineSchedules == null) {
+ this.virtualMachineSchedules
+ = new VirtualMachineSchedulesImpl(clientObject.getVirtualMachineSchedules(), this);
+ }
+ return virtualMachineSchedules;
+ }
+
/**
* Gets the resource collection API of ArtifactSources. It manages ArtifactSource.
*
@@ -491,18 +524,6 @@ public NotificationChannels notificationChannels() {
return notificationChannels;
}
- /**
- * Gets the resource collection API of PolicySets.
- *
- * @return Resource collection API of PolicySets.
- */
- public PolicySets policySets() {
- if (this.policySets == null) {
- this.policySets = new PolicySetsImpl(clientObject.getPolicySets(), this);
- }
- return policySets;
- }
-
/**
* Gets the resource collection API of Policies. It manages Policy.
*
@@ -516,15 +537,15 @@ public Policies policies() {
}
/**
- * Gets the resource collection API of Schedules.
+ * Gets the resource collection API of PolicySets.
*
- * @return Resource collection API of Schedules.
+ * @return Resource collection API of PolicySets.
*/
- public Schedules schedules() {
- if (this.schedules == null) {
- this.schedules = new SchedulesImpl(clientObject.getSchedules(), this);
+ public PolicySets policySets() {
+ if (this.policySets == null) {
+ this.policySets = new PolicySetsImpl(clientObject.getPolicySets(), this);
}
- return schedules;
+ return policySets;
}
/**
@@ -599,19 +620,6 @@ public ServiceFabrics serviceFabrics() {
return serviceFabrics;
}
- /**
- * Gets the resource collection API of ServiceFabricSchedules.
- *
- * @return Resource collection API of ServiceFabricSchedules.
- */
- public ServiceFabricSchedules serviceFabricSchedules() {
- if (this.serviceFabricSchedules == null) {
- this.serviceFabricSchedules
- = new ServiceFabricSchedulesImpl(clientObject.getServiceFabricSchedules(), this);
- }
- return serviceFabricSchedules;
- }
-
/**
* Gets the resource collection API of VirtualMachines. It manages LabVirtualMachine.
*
@@ -624,19 +632,6 @@ public VirtualMachines virtualMachines() {
return virtualMachines;
}
- /**
- * Gets the resource collection API of VirtualMachineSchedules.
- *
- * @return Resource collection API of VirtualMachineSchedules.
- */
- public VirtualMachineSchedules virtualMachineSchedules() {
- if (this.virtualMachineSchedules == null) {
- this.virtualMachineSchedules
- = new VirtualMachineSchedulesImpl(clientObject.getVirtualMachineSchedules(), this);
- }
- return virtualMachineSchedules;
- }
-
/**
* Gets the resource collection API of VirtualNetworks. It manages VirtualNetwork.
*
@@ -650,12 +645,24 @@ public VirtualNetworks virtualNetworks() {
}
/**
- * Gets wrapped service client DevTestLabsClient providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * 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);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets wrapped service client DevTestLabsManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
*
- * @return Wrapped service client DevTestLabsClient.
+ * @return Wrapped service client DevTestLabsManagementClient.
*/
- public DevTestLabsClient serviceClient() {
+ public DevTestLabsManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArmTemplatesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArmTemplatesClient.java
index 81efdadab585..a5d43d4b41fc 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArmTemplatesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArmTemplatesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -16,69 +16,69 @@
*/
public interface ArmTemplatesClient {
/**
- * List azure resource manager templates in a given artifact source.
+ * Get azure resource manager template.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
+ * @param name The name of the azure resource manager template.
+ * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return azure resource manager template along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String artifactSourceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String artifactSourceName,
+ String name, String expand, Context context);
/**
- * List azure resource manager templates in a given artifact source.
+ * Get azure resource manager template.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param name The name of the azure resource manager template.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return azure resource manager template.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String artifactSourceName,
- String expand, String filter, Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArmTemplateInner get(String resourceGroupName, String labName, String artifactSourceName, String name);
/**
- * Get azure resource manager template.
+ * List azure resource manager templates in a given artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param name The name of the azure resource manager template.
- * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
- * @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 azure resource manager template along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String artifactSourceName,
- String name, String expand, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String artifactSourceName);
/**
- * Get azure resource manager template.
+ * List azure resource manager templates in a given artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param name The name of the azure resource manager template.
+ * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 azure resource manager template.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArmTemplateInner get(String resourceGroupName, String labName, String artifactSourceName, String name);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String artifactSourceName,
+ String expand, String filter, Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactSourcesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactSourcesClient.java
index 7e51ff2aa83a..1670341b969d 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactSourcesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactSourcesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -17,72 +17,73 @@
*/
public interface ArtifactSourcesClient {
/**
- * List artifact sources in a given lab.
+ * Get artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
+ * @param name The name of the artifact source.
+ * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return artifact source along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String name, String expand,
+ Context context);
/**
- * List artifact sources in a given lab.
+ * Get artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param name The name of the artifact source.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return artifact source.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
- Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArtifactSourceInner get(String resourceGroupName, String labName, String name);
/**
- * Get artifact source.
+ * Create or replace an existing artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
- * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
+ * @param artifactSource Properties of an artifact source.
* @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 artifact source along with {@link Response}.
+ * @return properties of an artifact source along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String name, String expand,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
+ ArtifactSourceInner artifactSource, Context context);
/**
- * Get artifact source.
+ * Create or replace an existing artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
+ * @param artifactSource Properties of an artifact source.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return artifact source.
+ * @return properties of an artifact source.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ArtifactSourceInner get(String resourceGroupName, String labName, String name);
+ ArtifactSourceInner createOrUpdate(String resourceGroupName, String labName, String name,
+ ArtifactSourceInner artifactSource);
/**
- * Create or replace an existing artifact source.
+ * Allows modifying tags of artifact sources. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
* @param artifactSource Properties of an artifact source.
@@ -93,13 +94,13 @@ Response getWithResponse(String resourceGroupName, String l
* @return properties of an artifact source along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
- ArtifactSourceInner artifactSource, Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String name,
+ ArtifactSourceFragment artifactSource, Context context);
/**
- * Create or replace an existing artifact source.
+ * Allows modifying tags of artifact sources. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
* @param artifactSource Properties of an artifact source.
@@ -109,13 +110,13 @@ Response createOrUpdateWithResponse(String resourceGroupNam
* @return properties of an artifact source.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ArtifactSourceInner createOrUpdate(String resourceGroupName, String labName, String name,
- ArtifactSourceInner artifactSource);
+ ArtifactSourceInner update(String resourceGroupName, String labName, String name,
+ ArtifactSourceFragment artifactSource);
/**
* Delete artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
* @param context The context to associate with this operation.
@@ -130,7 +131,7 @@ ArtifactSourceInner createOrUpdate(String resourceGroupName, String labName, Str
/**
* Delete artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the artifact source.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -141,35 +142,34 @@ ArtifactSourceInner createOrUpdate(String resourceGroupName, String labName, Str
void delete(String resourceGroupName, String labName, String name);
/**
- * Allows modifying tags of artifact sources. All other properties will be ignored.
+ * List artifact sources in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the artifact source.
- * @param artifactSource Properties of an artifact source.
- * @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 properties of an artifact source along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String name,
- ArtifactSourceFragment artifactSource, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName);
/**
- * Allows modifying tags of artifact sources. All other properties will be ignored.
+ * List artifact sources in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the artifact source.
- * @param artifactSource Properties of an artifact source.
+ * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 properties of an artifact source.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArtifactSourceInner update(String resourceGroupName, String labName, String name,
- ArtifactSourceFragment artifactSource);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
+ Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactsClient.java
index cf104774aca8..5a6af5f465f6 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ArtifactsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,77 +18,77 @@
*/
public interface ArtifactsClient {
/**
- * List artifacts in a given artifact source.
+ * Get artifact.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
+ * @param name The name of the artifact.
+ * @param expand Specify the $expand query. Example: 'properties($select=title)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return artifact along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String artifactSourceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String artifactSourceName,
+ String name, String expand, Context context);
/**
- * List artifacts in a given artifact source.
+ * Get artifact.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param expand Specify the $expand query. Example: 'properties($select=title)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param name The name of the artifact.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return artifact.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String artifactSourceName,
- String expand, String filter, Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ArtifactInner get(String resourceGroupName, String labName, String artifactSourceName, String name);
/**
- * Get artifact.
+ * List artifacts in a given artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param name The name of the artifact.
- * @param expand Specify the $expand query. Example: 'properties($select=title)'.
- * @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 artifact along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String artifactSourceName,
- String name, String expand, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String artifactSourceName);
/**
- * Get artifact.
+ * List artifacts in a given artifact source.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
- * @param name The name of the artifact.
+ * @param expand Specify the $expand query. Example: 'properties($select=title)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 artifact.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ArtifactInner get(String resourceGroupName, String labName, String artifactSourceName, String name);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String artifactSourceName,
+ String expand, String filter, Integer top, String orderby, Context context);
/**
* Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates
* the generated artifact.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
* @param name The name of the artifact.
@@ -107,7 +107,7 @@ Response generateArmTemplateWithResponse(String resourceGr
* Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates
* the generated artifact.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param artifactSourceName The name of the artifact source.
* @param name The name of the artifact.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CostsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CostsClient.java
index cd228f8dbe8b..8d6cb0711eb3 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CostsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CostsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -17,7 +17,7 @@ public interface CostsClient {
/**
* Get cost.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the cost.
* @param expand Specify the $expand query. Example: 'properties($expand=labCostDetails)'.
@@ -34,7 +34,7 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Get cost.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the cost.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -48,7 +48,7 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Create or replace an existing cost.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the cost.
* @param labCost A cost item.
@@ -65,7 +65,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Stri
/**
* Create or replace an existing cost.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the cost.
* @param labCost A cost item.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CustomImagesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CustomImagesClient.java
index 66380b27fa58..6174ca943fbe 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CustomImagesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/CustomImagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,44 +18,12 @@
* An instance of this class provides access to all the operations defined in CustomImagesClient.
*/
public interface CustomImagesClient {
- /**
- * List custom images in a given lab.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName);
-
- /**
- * List custom images in a given lab.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=vm)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
- Integer top, String orderby, Context context);
-
/**
* Get custom image.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @param expand Specify the $expand query. Example: 'properties($select=vm)'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -70,9 +38,9 @@ Response getWithResponse(String resourceGroupName, String labN
/**
* Get custom image.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -84,9 +52,9 @@ Response getWithResponse(String resourceGroupName, String labN
/**
* Create or replace an existing custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @param customImage A custom image.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -100,9 +68,9 @@ SyncPoller, CustomImageInner> beginCreateOrUpdate(S
/**
* Create or replace an existing custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @param customImage A custom image.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -117,9 +85,9 @@ SyncPoller, CustomImageInner> beginCreateOrUpdate(S
/**
* Create or replace an existing custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @param customImage A custom image.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -133,9 +101,9 @@ CustomImageInner createOrUpdate(String resourceGroupName, String labName, String
/**
* Create or replace an existing custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @param customImage A custom image.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -147,12 +115,44 @@ CustomImageInner createOrUpdate(String resourceGroupName, String labName, String
CustomImageInner createOrUpdate(String resourceGroupName, String labName, String name, CustomImageInner customImage,
Context context);
+ /**
+ * Allows modifying tags of custom images. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param name The name of the CustomImage.
+ * @param customImage A custom image.
+ * @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 custom image along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String labName, String name,
+ CustomImageFragment customImage, Context context);
+
+ /**
+ * Allows modifying tags of custom images. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param name The name of the CustomImage.
+ * @param customImage A custom image.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a custom image.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CustomImageInner update(String resourceGroupName, String labName, String name, CustomImageFragment customImage);
+
/**
* Delete custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -164,9 +164,9 @@ CustomImageInner createOrUpdate(String resourceGroupName, String labName, String
/**
* Delete custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @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.
@@ -180,9 +180,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Delete custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -193,9 +193,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Delete custom image. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
+ * @param name The name of the CustomImage.
* @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.
@@ -205,34 +205,34 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String labName, String name, Context context);
/**
- * Allows modifying tags of custom images. All other properties will be ignored.
+ * List custom images in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
- * @param customImage A custom image.
- * @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 custom image along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String name,
- CustomImageFragment customImage, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName);
/**
- * Allows modifying tags of custom images. All other properties will be ignored.
+ * List custom images in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the custom image.
- * @param customImage A custom image.
+ * @param expand Specify the $expand query. Example: 'properties($select=vm)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 custom image.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- CustomImageInner update(String resourceGroupName, String labName, String name, CustomImageFragment customImage);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
+ Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsManagementClient.java
similarity index 94%
rename from sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsClient.java
rename to sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsManagementClient.java
index cd6dd2b6e268..81b6b30ec62b 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DevTestLabsManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -8,30 +8,30 @@
import java.time.Duration;
/**
- * The interface for DevTestLabsClient class.
+ * The interface for DevTestLabsManagementClient class.
*/
-public interface DevTestLabsClient {
+public interface DevTestLabsManagementClient {
/**
- * Gets The subscription ID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -61,18 +61,32 @@ public interface DevTestLabsClient {
LabsClient getLabs();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the GlobalSchedulesClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the GlobalSchedulesClient object.
*/
- OperationsClient getOperations();
+ GlobalSchedulesClient getGlobalSchedules();
/**
- * Gets the GlobalSchedulesClient object to access its operations.
+ * Gets the SchedulesClient object to access its operations.
*
- * @return the GlobalSchedulesClient object.
+ * @return the SchedulesClient object.
*/
- GlobalSchedulesClient getGlobalSchedules();
+ SchedulesClient getSchedules();
+
+ /**
+ * Gets the ServiceFabricSchedulesClient object to access its operations.
+ *
+ * @return the ServiceFabricSchedulesClient object.
+ */
+ ServiceFabricSchedulesClient getServiceFabricSchedules();
+
+ /**
+ * Gets the VirtualMachineSchedulesClient object to access its operations.
+ *
+ * @return the VirtualMachineSchedulesClient object.
+ */
+ VirtualMachineSchedulesClient getVirtualMachineSchedules();
/**
* Gets the ArtifactSourcesClient object to access its operations.
@@ -130,13 +144,6 @@ public interface DevTestLabsClient {
*/
NotificationChannelsClient getNotificationChannels();
- /**
- * Gets the PolicySetsClient object to access its operations.
- *
- * @return the PolicySetsClient object.
- */
- PolicySetsClient getPolicySets();
-
/**
* Gets the PoliciesClient object to access its operations.
*
@@ -145,11 +152,11 @@ public interface DevTestLabsClient {
PoliciesClient getPolicies();
/**
- * Gets the SchedulesClient object to access its operations.
+ * Gets the PolicySetsClient object to access its operations.
*
- * @return the SchedulesClient object.
+ * @return the PolicySetsClient object.
*/
- SchedulesClient getSchedules();
+ PolicySetsClient getPolicySets();
/**
* Gets the ServiceRunnersClient object to access its operations.
@@ -193,13 +200,6 @@ public interface DevTestLabsClient {
*/
ServiceFabricsClient getServiceFabrics();
- /**
- * Gets the ServiceFabricSchedulesClient object to access its operations.
- *
- * @return the ServiceFabricSchedulesClient object.
- */
- ServiceFabricSchedulesClient getServiceFabricSchedules();
-
/**
* Gets the VirtualMachinesClient object to access its operations.
*
@@ -208,16 +208,16 @@ public interface DevTestLabsClient {
VirtualMachinesClient getVirtualMachines();
/**
- * Gets the VirtualMachineSchedulesClient object to access its operations.
+ * Gets the VirtualNetworksClient object to access its operations.
*
- * @return the VirtualMachineSchedulesClient object.
+ * @return the VirtualNetworksClient object.
*/
- VirtualMachineSchedulesClient getVirtualMachineSchedules();
+ VirtualNetworksClient getVirtualNetworks();
/**
- * Gets the VirtualNetworksClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the VirtualNetworksClient object.
+ * @return the OperationsClient object.
*/
- VirtualNetworksClient getVirtualNetworks();
+ OperationsClient getOperations();
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DisksClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DisksClient.java
index 16a0c1f63043..920c9a35e052 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DisksClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/DisksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -20,46 +20,12 @@
* An instance of this class provides access to all the operations defined in DisksClient.
*/
public interface DisksClient {
- /**
- * List disks in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username);
-
- /**
- * List disks in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param expand Specify the $expand query. Example: 'properties($select=diskType)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username, String expand,
- String filter, Integer top, String orderby, Context context);
-
/**
* Get disk.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param expand Specify the $expand query. Example: 'properties($select=diskType)'.
* @param context The context to associate with this operation.
@@ -69,15 +35,15 @@ PagedIterable list(String resourceGroupName, String labName, String u
* @return disk along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String username, String name,
+ Response getWithResponse(String resourceGroupName, String labName, String userName, String name,
String expand, Context context);
/**
* Get disk.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -85,14 +51,14 @@ Response getWithResponse(String resourceGroupName, String labName, St
* @return disk.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DiskInner get(String resourceGroupName, String labName, String username, String name);
+ DiskInner get(String resourceGroupName, String labName, String userName, String name);
/**
* Create or replace an existing disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param disk A Disk.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -102,14 +68,14 @@ Response getWithResponse(String resourceGroupName, String labName, St
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginCreateOrUpdate(String resourceGroupName, String labName,
- String username, String name, DiskInner disk);
+ String userName, String name, DiskInner disk);
/**
* Create or replace an existing disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param disk A Disk.
* @param context The context to associate with this operation.
@@ -120,14 +86,14 @@ SyncPoller, DiskInner> beginCreateOrUpdate(String resource
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiskInner> beginCreateOrUpdate(String resourceGroupName, String labName,
- String username, String name, DiskInner disk, Context context);
+ String userName, String name, DiskInner disk, Context context);
/**
* Create or replace an existing disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param disk A Disk.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -136,14 +102,14 @@ SyncPoller, DiskInner> beginCreateOrUpdate(String resource
* @return a Disk.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DiskInner createOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk);
+ DiskInner createOrUpdate(String resourceGroupName, String labName, String userName, String name, DiskInner disk);
/**
* Create or replace an existing disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param disk A Disk.
* @param context The context to associate with this operation.
@@ -153,15 +119,49 @@ SyncPoller, DiskInner> beginCreateOrUpdate(String resource
* @return a Disk.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DiskInner createOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk,
+ DiskInner createOrUpdate(String resourceGroupName, String labName, String userName, String name, DiskInner disk,
Context context);
+ /**
+ * Allows modifying tags of disks. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @param name The name of the disk.
+ * @param disk A Disk.
+ * @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 Disk along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String labName, String userName, String name,
+ DiskFragment disk, Context context);
+
+ /**
+ * Allows modifying tags of disks. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @param name The name of the disk.
+ * @param disk A Disk.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Disk.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiskInner update(String resourceGroupName, String labName, String userName, String name, DiskFragment disk);
+
/**
* Delete disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -169,15 +169,15 @@ DiskInner createOrUpdate(String resourceGroupName, String labName, String userna
* @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,
+ SyncPoller, Void> beginDelete(String resourceGroupName, String labName, String userName,
String name);
/**
* Delete disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -186,29 +186,29 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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,
+ SyncPoller, Void> beginDelete(String resourceGroupName, String labName, String userName,
String name, Context context);
/**
* Delete disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String name);
+ void delete(String resourceGroupName, String labName, String userName, String name);
/**
* Delete disk. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -216,48 +216,48 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String name, Context context);
+ void delete(String resourceGroupName, String labName, String userName, String name, Context context);
/**
- * Allows modifying tags of disks. All other properties will be ignored.
+ * List disks in a given user profile.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param name The name of the disk.
- * @param disk A Disk.
- * @param context The context to associate with this operation.
+ * @param userName The name of the user profile.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Disk along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String username, String name,
- DiskFragment disk, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName);
/**
- * Allows modifying tags of disks. All other properties will be ignored.
+ * List disks in a given user profile.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param name The name of the disk.
- * @param disk A Disk.
+ * @param userName The name of the user profile.
+ * @param expand Specify the $expand query. Example: 'properties($select=diskType)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 Disk.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DiskInner update(String resourceGroupName, String labName, String username, String name, DiskFragment disk);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName, String expand,
+ String filter, Integer top, String orderby, Context context);
/**
* Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param attachDiskProperties Properties of the disk to attach.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -266,15 +266,15 @@ Response updateWithResponse(String resourceGroupName, String labName,
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginAttach(String resourceGroupName, String labName, String username,
+ SyncPoller, Void> beginAttach(String resourceGroupName, String labName, String userName,
String name, AttachDiskProperties attachDiskProperties);
/**
* Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param attachDiskProperties Properties of the disk to attach.
* @param context The context to associate with this operation.
@@ -284,15 +284,15 @@ SyncPoller, Void> beginAttach(String resourceGroupName, String
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginAttach(String resourceGroupName, String labName, String username,
+ SyncPoller, Void> beginAttach(String resourceGroupName, String labName, String userName,
String name, AttachDiskProperties attachDiskProperties, Context context);
/**
* Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param attachDiskProperties Properties of the disk to attach.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -300,15 +300,15 @@ SyncPoller, Void> beginAttach(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void attach(String resourceGroupName, String labName, String username, String name,
+ void attach(String resourceGroupName, String labName, String userName, String name,
AttachDiskProperties attachDiskProperties);
/**
* Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param attachDiskProperties Properties of the disk to attach.
* @param context The context to associate with this operation.
@@ -317,16 +317,16 @@ void attach(String resourceGroupName, String labName, String username, String na
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void attach(String resourceGroupName, String labName, String username, String name,
+ void attach(String resourceGroupName, String labName, String userName, String name,
AttachDiskProperties attachDiskProperties, Context context);
/**
* Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to
* complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param detachDiskProperties Properties of the disk to detach.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -335,16 +335,16 @@ void attach(String resourceGroupName, String labName, String username, String na
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDetach(String resourceGroupName, String labName, String username,
+ SyncPoller, Void> beginDetach(String resourceGroupName, String labName, String userName,
String name, DetachDiskProperties detachDiskProperties);
/**
* Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to
* complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param detachDiskProperties Properties of the disk to detach.
* @param context The context to associate with this operation.
@@ -354,16 +354,16 @@ SyncPoller, Void> beginDetach(String resourceGroupName, String
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDetach(String resourceGroupName, String labName, String username,
+ SyncPoller, Void> beginDetach(String resourceGroupName, String labName, String userName,
String name, DetachDiskProperties detachDiskProperties, Context context);
/**
* Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to
* complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param detachDiskProperties Properties of the disk to detach.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -371,16 +371,16 @@ SyncPoller, Void> beginDetach(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void detach(String resourceGroupName, String labName, String username, String name,
+ void detach(String resourceGroupName, String labName, String userName, String name,
DetachDiskProperties detachDiskProperties);
/**
* Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to
* complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the disk.
* @param detachDiskProperties Properties of the disk to detach.
* @param context The context to associate with this operation.
@@ -389,6 +389,6 @@ void detach(String resourceGroupName, String labName, String username, String na
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void detach(String resourceGroupName, String labName, String username, String name,
+ void detach(String resourceGroupName, String labName, String userName, String name,
DetachDiskProperties detachDiskProperties, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/EnvironmentsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/EnvironmentsClient.java
index 768014c9158d..056cf4d1c7d3 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/EnvironmentsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/EnvironmentsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,46 +18,12 @@
* An instance of this class provides access to all the operations defined in EnvironmentsClient.
*/
public interface EnvironmentsClient {
- /**
- * List environments in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username);
-
- /**
- * List environments in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param expand Specify the $expand query. Example: 'properties($select=deploymentProperties)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username, String expand,
- String filter, Integer top, String orderby, Context context);
-
/**
* Get environment.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param expand Specify the $expand query. Example: 'properties($select=deploymentProperties)'.
* @param context The context to associate with this operation.
@@ -67,15 +33,15 @@ PagedIterable list(String resourceGroupName, String labName
* @return environment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String username,
+ Response getWithResponse(String resourceGroupName, String labName, String userName,
String name, String expand, Context context);
/**
* Get environment.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -83,14 +49,14 @@ Response getWithResponse(String resourceGroupName, String l
* @return environment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DtlEnvironmentInner get(String resourceGroupName, String labName, String username, String name);
+ DtlEnvironmentInner get(String resourceGroupName, String labName, String userName, String name);
/**
* Create or replace an existing environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param dtlEnvironment An environment, which is essentially an ARM template deployment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -100,14 +66,14 @@ Response getWithResponse(String resourceGroupName, String l
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DtlEnvironmentInner> beginCreateOrUpdate(String resourceGroupName,
- String labName, String username, String name, DtlEnvironmentInner dtlEnvironment);
+ String labName, String userName, String name, DtlEnvironmentInner dtlEnvironment);
/**
* Create or replace an existing environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param dtlEnvironment An environment, which is essentially an ARM template deployment.
* @param context The context to associate with this operation.
@@ -118,14 +84,14 @@ SyncPoller, DtlEnvironmentInner> beginCreateOrUp
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DtlEnvironmentInner> beginCreateOrUpdate(String resourceGroupName,
- String labName, String username, String name, DtlEnvironmentInner dtlEnvironment, Context context);
+ String labName, String userName, String name, DtlEnvironmentInner dtlEnvironment, Context context);
/**
* Create or replace an existing environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param dtlEnvironment An environment, which is essentially an ARM template deployment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -134,15 +100,15 @@ SyncPoller, DtlEnvironmentInner> beginCreateOrUp
* @return an environment, which is essentially an ARM template deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, String username, String name,
+ DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, String userName, String name,
DtlEnvironmentInner dtlEnvironment);
/**
* Create or replace an existing environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param dtlEnvironment An environment, which is essentially an ARM template deployment.
* @param context The context to associate with this operation.
@@ -152,15 +118,50 @@ DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, Str
* @return an environment, which is essentially an ARM template deployment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, String username, String name,
+ DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, String userName, String name,
DtlEnvironmentInner dtlEnvironment, Context context);
+ /**
+ * Allows modifying tags of environments. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @param name The name of the environment.
+ * @param dtlEnvironment An environment, which is essentially an ARM template deployment.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment, which is essentially an ARM template deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String labName, String userName,
+ String name, DtlEnvironmentFragment dtlEnvironment, Context context);
+
+ /**
+ * Allows modifying tags of environments. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @param name The name of the environment.
+ * @param dtlEnvironment An environment, which is essentially an ARM template deployment.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an environment, which is essentially an ARM template deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DtlEnvironmentInner update(String resourceGroupName, String labName, String userName, String name,
+ DtlEnvironmentFragment dtlEnvironment);
+
/**
* Delete environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -168,15 +169,15 @@ DtlEnvironmentInner createOrUpdate(String resourceGroupName, String labName, Str
* @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,
+ SyncPoller, Void> beginDelete(String resourceGroupName, String labName, String userName,
String name);
/**
* Delete environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -185,29 +186,29 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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,
+ SyncPoller, Void> beginDelete(String resourceGroupName, String labName, String userName,
String name, Context context);
/**
* Delete environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String name);
+ void delete(String resourceGroupName, String labName, String userName, String name);
/**
* Delete environment. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the environment.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -215,40 +216,39 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String name, Context context);
+ void delete(String resourceGroupName, String labName, String userName, String name, Context context);
/**
- * Allows modifying tags of environments. All other properties will be ignored.
+ * List environments in a given user profile.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param name The name of the environment.
- * @param dtlEnvironment An environment, which is essentially an ARM template deployment.
- * @param context The context to associate with this operation.
+ * @param userName The name of the user profile.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an environment, which is essentially an ARM template deployment along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String username,
- String name, DtlEnvironmentFragment dtlEnvironment, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName);
/**
- * Allows modifying tags of environments. All other properties will be ignored.
+ * List environments in a given user profile.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param name The name of the environment.
- * @param dtlEnvironment An environment, which is essentially an ARM template deployment.
+ * @param userName The name of the user profile.
+ * @param expand Specify the $expand query. Example: 'properties($select=deploymentProperties)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an environment, which is essentially an ARM template deployment.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- DtlEnvironmentInner update(String resourceGroupName, String labName, String username, String name,
- DtlEnvironmentFragment dtlEnvironment);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName, String expand,
+ String filter, Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/FormulasClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/FormulasClient.java
index 0486cb97d0ac..7d009f777921 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/FormulasClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/FormulasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,42 +18,10 @@
* An instance of this class provides access to all the operations defined in FormulasClient.
*/
public interface FormulasClient {
- /**
- * List formulas in a given lab.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName);
-
- /**
- * List formulas in a given lab.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=description)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
- Integer top, String orderby, Context context);
-
/**
* Get formula.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @param expand Specify the $expand query. Example: 'properties($select=description)'.
@@ -70,7 +38,7 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Get formula.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -84,7 +52,7 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Create or replace an existing formula. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @param formula A formula for creating a VM, specifying an image base and other parameters.
@@ -101,7 +69,7 @@ SyncPoller, FormulaInner> beginCreateOrUpdate(String re
/**
* Create or replace an existing formula. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @param formula A formula for creating a VM, specifying an image base and other parameters.
@@ -119,7 +87,7 @@ SyncPoller, FormulaInner> beginCreateOrUpdate(String re
/**
* Create or replace an existing formula. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @param formula A formula for creating a VM, specifying an image base and other parameters.
@@ -134,7 +102,7 @@ SyncPoller, FormulaInner> beginCreateOrUpdate(String re
/**
* Create or replace an existing formula. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
* @param formula A formula for creating a VM, specifying an image base and other parameters.
@@ -149,62 +117,94 @@ FormulaInner createOrUpdate(String resourceGroupName, String labName, String nam
Context context);
/**
- * Delete formula.
+ * Allows modifying tags of formulas. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
+ * @param formula A formula for creating a VM, specifying an image base and other parameters.
* @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}.
+ * @return a formula for creating a VM, specifying an image base and other parameters along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String labName, String name, Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String name,
+ FormulaFragment formula, Context context);
/**
- * Delete formula.
+ * Allows modifying tags of formulas. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
+ * @param formula A formula for creating a VM, specifying an image base and other parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 formula for creating a VM, specifying an image base and other parameters.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String name);
+ FormulaInner update(String resourceGroupName, String labName, String name, FormulaFragment formula);
/**
- * Allows modifying tags of formulas. All other properties will be ignored.
+ * Delete formula.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
- * @param formula A formula for creating a VM, specifying an image base and other parameters.
* @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 formula for creating a VM, specifying an image base and other parameters along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String name,
- FormulaFragment formula, Context context);
+ Response deleteWithResponse(String resourceGroupName, String labName, String name, Context context);
/**
- * Allows modifying tags of formulas. All other properties will be ignored.
+ * Delete formula.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the formula.
- * @param formula A formula for creating a VM, specifying an image base and other parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 formula for creating a VM, specifying an image base and other parameters.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FormulaInner update(String resourceGroupName, String labName, String name, FormulaFragment formula);
+ void delete(String resourceGroupName, String labName, String name);
+
+ /**
+ * List formulas in a given lab.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName);
+
+ /**
+ * List formulas in a given lab.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param expand Specify the $expand query. Example: 'properties($select=description)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
+ Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GalleryImagesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GalleryImagesClient.java
index d8c390561846..373665189e26 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GalleryImagesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GalleryImagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -17,7 +17,7 @@ public interface GalleryImagesClient {
/**
* List gallery images in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -30,9 +30,9 @@ public interface GalleryImagesClient {
/**
* List gallery images in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=author)'.
+ * @param expand Specify the $expand query. Example: 'properties($select=displayName)'.
* @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
* @param top The maximum number of resources to return from the operation. Example: '$top=10'.
* @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GlobalSchedulesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GlobalSchedulesClient.java
index 6a369376037a..eca85d870799 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GlobalSchedulesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/GlobalSchedulesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -20,95 +20,69 @@
*/
public interface GlobalSchedulesClient {
/**
- * List schedules in 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 the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List schedules in a subscription.
+ * Get schedule.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param expand Specify the $expand query. Example: 'properties($select=status)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
* @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String expand, String filter, Integer top, String orderby, Context context);
-
- /**
- * List schedules in a resource group.
- *
- * @param resourceGroupName The name of the resource group.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String name, String expand,
+ Context context);
/**
- * List schedules in a resource group.
+ * Get schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String expand, String filter,
- Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduleInner getByResourceGroup(String resourceGroupName, String name);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @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 schedule along with {@link Response}.
+ * @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String name, String expand,
+ Response createOrUpdateWithResponse(String resourceGroupName, String name, ScheduleInner schedule,
Context context);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schedule.
+ * @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner getByResourceGroup(String resourceGroupName, String name);
+ ScheduleInner createOrUpdate(String resourceGroupName, String name, ScheduleInner schedule);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -117,14 +91,14 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
* @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String name, ScheduleInner schedule,
+ Response updateWithResponse(String resourceGroupName, String name, ScheduleFragment schedule,
Context context);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -132,13 +106,13 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner createOrUpdate(String resourceGroupName, String name, ScheduleInner schedule);
+ ScheduleInner update(String resourceGroupName, String name, ScheduleFragment schedule);
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @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.
@@ -151,8 +125,8 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -161,40 +135,66 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
void delete(String resourceGroupName, String name);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a resource group.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
- * @param schedule A schedule.
+ * @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 the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List schedules in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
* @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 schedule along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String name, ScheduleFragment schedule,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String expand, String filter,
+ Integer top, String orderby, Context context);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a subscription.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
- * @param schedule A schedule.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List schedules in a subscription.
+ *
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 schedule.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner update(String resourceGroupName, String name, ScheduleFragment schedule);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String expand, String filter, Integer top, String orderby, Context context);
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -206,8 +206,8 @@ Response updateWithResponse(String resourceGroupName, String name
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @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.
@@ -220,8 +220,8 @@ Response updateWithResponse(String resourceGroupName, String name
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -232,8 +232,8 @@ Response updateWithResponse(String resourceGroupName, String name
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @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.
@@ -245,8 +245,8 @@ Response updateWithResponse(String resourceGroupName, String name
/**
* Updates a schedule's target resource Id. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param retargetScheduleProperties Properties for retargeting a virtual machine schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -260,8 +260,8 @@ SyncPoller, Void> beginRetarget(String resourceGroupName, Strin
/**
* Updates a schedule's target resource Id. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param retargetScheduleProperties Properties for retargeting a virtual machine schedule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -276,8 +276,8 @@ SyncPoller, Void> beginRetarget(String resourceGroupName, Strin
/**
* Updates a schedule's target resource Id. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param retargetScheduleProperties Properties for retargeting a virtual machine schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -289,8 +289,8 @@ SyncPoller, Void> beginRetarget(String resourceGroupName, Strin
/**
* Updates a schedule's target resource Id. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the Schedule.
* @param retargetScheduleProperties Properties for retargeting a virtual machine schedule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/LabsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/LabsClient.java
index a1205d02342c..4f3428337bdc 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/LabsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/LabsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -24,66 +24,10 @@
* An instance of this class provides access to all the operations defined in LabsClient.
*/
public interface LabsClient {
- /**
- * List labs in 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 the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List labs in a subscription.
- *
- * @param expand Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String expand, String filter, Integer top, String orderby, Context context);
-
- /**
- * List labs in a resource group.
- *
- * @param resourceGroupName The name of the resource group.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List labs in a resource group.
- *
- * @param resourceGroupName The name of the resource group.
- * @param expand Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String expand, String filter, Integer top,
- String orderby, Context context);
-
/**
* Get lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param expand Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.
* @param context The context to associate with this operation.
@@ -99,7 +43,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, Stri
/**
* Get lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -112,7 +56,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, Stri
/**
* Create or replace an existing lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param lab A lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -126,7 +70,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName, Stri
/**
* Create or replace an existing lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param lab A lab.
* @param context The context to associate with this operation.
@@ -142,7 +86,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Create or replace an existing lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param lab A lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -156,7 +100,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Create or replace an existing lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param lab A lab.
* @param context The context to associate with this operation.
@@ -168,10 +112,39 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
LabInner createOrUpdate(String resourceGroupName, String name, LabInner lab, Context context);
+ /**
+ * Allows modifying tags of labs. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the lab.
+ * @param lab A lab.
+ * @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 lab along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String name, LabFragment lab, Context context);
+
+ /**
+ * Allows modifying tags of labs. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param name The name of the lab.
+ * @param lab A lab.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 lab.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LabInner update(String resourceGroupName, String name, LabFragment lab);
+
/**
* Delete lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -184,7 +157,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Delete lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -198,7 +171,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Delete lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -210,7 +183,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Delete lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -221,38 +194,65 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
void delete(String resourceGroupName, String name, Context context);
/**
- * Allows modifying tags of labs. All other properties will be ignored.
+ * List labs in a resource group.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the lab.
- * @param lab A lab.
+ * @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 the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List labs in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param expand Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
* @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 lab along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String name, LabFragment lab, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String expand, String filter, Integer top,
+ String orderby, Context context);
/**
- * Allows modifying tags of labs. All other properties will be ignored.
+ * List labs in a subscription.
*
- * @param resourceGroupName The name of the resource group.
- * @param name The name of the lab.
- * @param lab A lab.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List labs in a subscription.
+ *
+ * @param expand Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 lab.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- LabInner update(String resourceGroupName, String name, LabFragment lab);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String expand, String filter, Integer top, String orderby, Context context);
/**
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -265,7 +265,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -279,7 +279,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -291,7 +291,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Claim a random claimable virtual machine in the lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -304,7 +304,7 @@ SyncPoller, LabInner> beginCreateOrUpdate(String resourceGr
/**
* Create virtual machines in a lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -319,7 +319,7 @@ SyncPoller, Void> beginCreateEnvironment(String resourceGroupNa
/**
* Create virtual machines in a lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
* @param context The context to associate with this operation.
@@ -335,7 +335,7 @@ SyncPoller, Void> beginCreateEnvironment(String resourceGroupNa
/**
* Create virtual machines in a lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -349,7 +349,7 @@ void createEnvironment(String resourceGroupName, String name,
/**
* Create virtual machines in a lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param labVirtualMachineCreationParameter Properties for creating a virtual machine.
* @param context The context to associate with this operation.
@@ -364,7 +364,7 @@ void createEnvironment(String resourceGroupName, String name,
/**
* Exports the lab resource usage into a storage account This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param exportResourceUsageParameters The parameters of the export operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -379,7 +379,7 @@ SyncPoller, Void> beginExportResourceUsage(String resourceGroup
/**
* Exports the lab resource usage into a storage account This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param exportResourceUsageParameters The parameters of the export operation.
* @param context The context to associate with this operation.
@@ -395,7 +395,7 @@ SyncPoller, Void> beginExportResourceUsage(String resourceGroup
/**
* Exports the lab resource usage into a storage account This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param exportResourceUsageParameters The parameters of the export operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -409,7 +409,7 @@ void exportResourceUsage(String resourceGroupName, String name,
/**
* Exports the lab resource usage into a storage account This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param exportResourceUsageParameters The parameters of the export operation.
* @param context The context to associate with this operation.
@@ -424,7 +424,7 @@ void exportResourceUsage(String resourceGroupName, String name,
/**
* Generate a URI for uploading custom disk images to a Lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param generateUploadUriParameter Properties for generating an upload URI.
* @param context The context to associate with this operation.
@@ -440,7 +440,7 @@ Response generateUploadUriWithResponse(String re
/**
* Generate a URI for uploading custom disk images to a Lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param generateUploadUriParameter Properties for generating an upload URI.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -455,7 +455,7 @@ GenerateUploadUriResponseInner generateUploadUri(String resourceGroupName, Strin
/**
* Import a virtual machine into a different lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual machine from a
* different lab into the current one.
@@ -471,7 +471,7 @@ SyncPoller, Void> beginImportVirtualMachine(String resourceGrou
/**
* Import a virtual machine into a different lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual machine from a
* different lab into the current one.
@@ -488,7 +488,7 @@ SyncPoller, Void> beginImportVirtualMachine(String resourceGrou
/**
* Import a virtual machine into a different lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual machine from a
* different lab into the current one.
@@ -503,7 +503,7 @@ void importVirtualMachine(String resourceGroupName, String name,
/**
* Import a virtual machine into a different lab. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param importLabVirtualMachineRequest This represents the payload required to import a virtual machine from a
* different lab into the current one.
@@ -519,7 +519,7 @@ void importVirtualMachine(String resourceGroupName, String name,
/**
* List disk images available for custom image creation.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -532,7 +532,7 @@ void importVirtualMachine(String resourceGroupName, String name,
/**
* List disk images available for custom image creation.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the lab.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/NotificationChannelsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/NotificationChannelsClient.java
index eed8dcb5fef9..2b6880f880da 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/NotificationChannelsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/NotificationChannelsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,72 +18,73 @@
*/
public interface NotificationChannelsClient {
/**
- * List notification channels in a given lab.
+ * Get notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
+ * @param name The name of the notification channel.
+ * @param expand Specify the $expand query. Example: 'properties($select=webHookUrl)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return notification channel along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String name,
+ String expand, Context context);
/**
- * List notification channels in a given lab.
+ * Get notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=webHookUrl)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param name The name of the notification channel.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return notification channel.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
- Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotificationChannelInner get(String resourceGroupName, String labName, String name);
/**
- * Get notification channel.
+ * Create or replace an existing notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
- * @param expand Specify the $expand query. Example: 'properties($select=webHookUrl)'.
+ * @param notificationChannel A notification.
* @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 notification channel along with {@link Response}.
+ * @return a notification along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String name,
- String expand, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
+ NotificationChannelInner notificationChannel, Context context);
/**
- * Get notification channel.
+ * Create or replace an existing notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
+ * @param notificationChannel A notification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return notification channel.
+ * @return a notification.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NotificationChannelInner get(String resourceGroupName, String labName, String name);
+ NotificationChannelInner createOrUpdate(String resourceGroupName, String labName, String name,
+ NotificationChannelInner notificationChannel);
/**
- * Create or replace an existing notification channel.
+ * Allows modifying tags of notification channels. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @param notificationChannel A notification.
@@ -94,13 +95,13 @@ Response getWithResponse(String resourceGroupName, Str
* @return a notification along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
- NotificationChannelInner notificationChannel, Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String name,
+ NotificationChannelFragment notificationChannel, Context context);
/**
- * Create or replace an existing notification channel.
+ * Allows modifying tags of notification channels. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @param notificationChannel A notification.
@@ -110,13 +111,13 @@ Response createOrUpdateWithResponse(String resourceGro
* @return a notification.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- NotificationChannelInner createOrUpdate(String resourceGroupName, String labName, String name,
- NotificationChannelInner notificationChannel);
+ NotificationChannelInner update(String resourceGroupName, String labName, String name,
+ NotificationChannelFragment notificationChannel);
/**
* Delete notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @param context The context to associate with this operation.
@@ -131,7 +132,7 @@ NotificationChannelInner createOrUpdate(String resourceGroupName, String labName
/**
* Delete notification channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -142,42 +143,41 @@ NotificationChannelInner createOrUpdate(String resourceGroupName, String labName
void delete(String resourceGroupName, String labName, String name);
/**
- * Allows modifying tags of notification channels. All other properties will be ignored.
+ * List notification channels in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the notification channel.
- * @param notificationChannel A notification.
- * @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 notification along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String name,
- NotificationChannelFragment notificationChannel, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName);
/**
- * Allows modifying tags of notification channels. All other properties will be ignored.
+ * List notification channels in a given lab.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the notification channel.
- * @param notificationChannel A notification.
+ * @param expand Specify the $expand query. Example: 'properties($select=webHookUrl)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 notification.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- NotificationChannelInner update(String resourceGroupName, String labName, String name,
- NotificationChannelFragment notificationChannel);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
+ Integer top, String orderby, Context context);
/**
* Send notification to provided channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @param notifyParameters Properties for generating a Notification.
@@ -194,7 +194,7 @@ Response notifyWithResponse(String resourceGroupName, String labName, Stri
/**
* Send notification to provided channel.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
* @param name The name of the notification channel.
* @param notifyParameters Properties for generating a Notification.
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/OperationsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/OperationsClient.java
index 92268101153e..458493437a3d 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/OperationsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PoliciesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PoliciesClient.java
index af10d2eee624..727208bfe664 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PoliciesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PoliciesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -16,47 +16,13 @@
* An instance of this class provides access to all the operations defined in PoliciesClient.
*/
public interface PoliciesClient {
- /**
- * List policies in a given policy set.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String policySetName);
-
- /**
- * List policies in a given policy set.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param expand Specify the $expand query. Example: 'properties($select=description)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String policySetName, String expand,
- String filter, Integer top, String orderby, Context context);
-
/**
* Get policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @param expand Specify the $expand query. Example: 'properties($select=description)'.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -71,10 +37,10 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Get policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -86,10 +52,10 @@ Response getWithResponse(String resourceGroupName, String labName,
/**
* Create or replace an existing policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @param policy A Policy.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -104,10 +70,10 @@ Response createOrUpdateWithResponse(String resourceGroupName, Strin
/**
* Create or replace an existing policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @param policy A Policy.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -118,13 +84,48 @@ Response createOrUpdateWithResponse(String resourceGroupName, Strin
PolicyInner createOrUpdate(String resourceGroupName, String labName, String policySetName, String name,
PolicyInner policy);
+ /**
+ * Allows modifying tags of policies. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
+ * @param policy A Policy.
+ * @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 Policy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String labName, String policySetName,
+ String name, PolicyFragment policy, Context context);
+
+ /**
+ * Allows modifying tags of policies. All other properties will be ignored.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
+ * @param policy A Policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Policy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PolicyInner update(String resourceGroupName, String labName, String policySetName, String name,
+ PolicyFragment policy);
+
/**
* Delete policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @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.
@@ -138,10 +139,10 @@ Response deleteWithResponse(String resourceGroupName, String labName, Stri
/**
* Delete policy.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param name The name of the Policy.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -150,37 +151,36 @@ Response deleteWithResponse(String resourceGroupName, String labName, Stri
void delete(String resourceGroupName, String labName, String policySetName, String name);
/**
- * Allows modifying tags of policies. All other properties will be ignored.
+ * List policies in a given policy set.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
- * @param policy A Policy.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 Policy along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String policySetName,
- String name, PolicyFragment policy, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String policySetName);
/**
- * Allows modifying tags of policies. All other properties will be ignored.
+ * List policies in a given policy set.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param policySetName The name of the policy set.
- * @param name The name of the policy.
- * @param policy A Policy.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param policySetName policysets.
+ * @param expand Specify the $expand query. Example: 'properties($select=description)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 Policy.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PolicyInner update(String resourceGroupName, String labName, String policySetName, String name,
- PolicyFragment policy);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String policySetName, String expand,
+ String filter, Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PolicySetsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PolicySetsClient.java
index 6df89994cf8c..52422f3856c4 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PolicySetsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/PolicySetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,9 +18,9 @@ public interface PolicySetsClient {
/**
* Evaluates lab policy.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the policy set.
+ * @param name The name of the PolicySet.
* @param evaluatePoliciesRequest Request body for evaluating a policy set.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -35,9 +35,9 @@ Response evaluatePoliciesWithResponse(String reso
/**
* Evaluates lab policy.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param name The name of the policy set.
+ * @param name The name of the PolicySet.
* @param evaluatePoliciesRequest Request body for evaluating a policy set.
* @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/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ProviderOperationsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ProviderOperationsClient.java
index f0621015ac28..1ba3d5c50130 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ProviderOperationsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ProviderOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -8,31 +8,33 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.devtestlabs.fluent.models.OperationMetadataInner;
+import com.azure.resourcemanager.devtestlabs.fluent.models.OperationInner;
/**
* An instance of this class provides access to all the operations defined in ProviderOperationsClient.
*/
public interface ProviderOperationsClient {
/**
- * Result of the request to list REST API operations.
+ * List the operations for the provider.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
+ * @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();
+ PagedIterable list();
/**
- * Result of the request to list REST API operations.
+ * List the operations for the provider.
*
* @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 result of the request to list REST API operations as paginated response with {@link PagedIterable}.
+ * @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);
+ PagedIterable list(Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SchedulesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SchedulesClient.java
index bd9a561e8bdd..c3913b7fd810 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SchedulesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SchedulesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -19,74 +19,74 @@
*/
public interface SchedulesClient {
/**
- * List schedules in a given lab.
+ * Get schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String name, String expand,
+ Context context);
/**
- * List schedules in a given lab.
+ * Get schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
- Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduleInner get(String resourceGroupName, String labName, String name);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @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 schedule along with {@link Response}.
+ * @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String name, String expand,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
+ ScheduleInner schedule, Context context);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schedule.
+ * @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner get(String resourceGroupName, String labName, String name);
+ ScheduleInner createOrUpdate(String resourceGroupName, String labName, String name, ScheduleInner schedule);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -95,15 +95,15 @@ Response getWithResponse(String resourceGroupName, String labName
* @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String labName, String name,
- ScheduleInner schedule, Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String name,
+ ScheduleFragment schedule, Context context);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -111,14 +111,14 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner createOrUpdate(String resourceGroupName, String labName, String name, ScheduleInner schedule);
+ ScheduleInner update(String resourceGroupName, String labName, String name, ScheduleFragment schedule);
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @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.
@@ -131,9 +131,9 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -142,43 +142,43 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
void delete(String resourceGroupName, String labName, String name);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a given lab.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
- * @param schedule A schedule.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 schedule along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String name,
- ScheduleFragment schedule, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a given lab.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
- * @param schedule A schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 schedule.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner update(String resourceGroupName, String labName, String name, ScheduleFragment schedule);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String expand, String filter,
+ Integer top, String orderby, Context context);
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -190,9 +190,9 @@ Response updateWithResponse(String resourceGroupName, String labN
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @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.
@@ -206,9 +206,9 @@ SyncPoller, Void> beginExecute(String resourceGroupName, String
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -219,9 +219,9 @@ SyncPoller, Void> beginExecute(String resourceGroupName, String
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @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.
@@ -233,9 +233,9 @@ SyncPoller, Void> beginExecute(String resourceGroupName, String
/**
* Lists all applicable schedules.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -247,9 +247,9 @@ SyncPoller, Void> beginExecute(String resourceGroupName, String
/**
* Lists all applicable schedules.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param name The name of the Schedule.
* @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/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SecretsClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SecretsClient.java
index 600357e7719e..e0f74a910121 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SecretsClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/SecretsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -18,46 +18,12 @@
* An instance of this class provides access to all the operations defined in SecretsClient.
*/
public interface SecretsClient {
- /**
- * List secrets in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username);
-
- /**
- * List secrets in a given user profile.
- *
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param expand Specify the $expand query. Example: 'properties($select=value)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @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 response of a list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username, String expand,
- String filter, Integer top, String orderby, Context context);
-
/**
* Get secret.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @param expand Specify the $expand query. Example: 'properties($select=value)'.
* @param context The context to associate with this operation.
@@ -67,15 +33,15 @@ PagedIterable list(String resourceGroupName, String labName, String
* @return secret along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String username, String name,
+ Response getWithResponse(String resourceGroupName, String labName, String userName, String name,
String expand, Context context);
/**
* Get secret.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -83,14 +49,14 @@ Response getWithResponse(String resourceGroupName, String labName,
* @return secret.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecretInner get(String resourceGroupName, String labName, String username, String name);
+ SecretInner get(String resourceGroupName, String labName, String userName, String name);
/**
* Create or replace an existing secret. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @param secret A secret.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -100,14 +66,14 @@ Response getWithResponse(String resourceGroupName, String labName,
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SecretInner> beginCreateOrUpdate(String resourceGroupName, String labName,
- String username, String name, SecretInner secret);
+ String userName, String name, SecretInner secret);
/**
* Create or replace an existing secret. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @param secret A secret.
* @param context The context to associate with this operation.
@@ -118,14 +84,14 @@ SyncPoller, SecretInner> beginCreateOrUpdate(String reso
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, SecretInner> beginCreateOrUpdate(String resourceGroupName, String labName,
- String username, String name, SecretInner secret, Context context);
+ String userName, String name, SecretInner secret, Context context);
/**
* Create or replace an existing secret. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @param secret A secret.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -134,15 +100,15 @@ SyncPoller, SecretInner> beginCreateOrUpdate(String reso
* @return a secret.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecretInner createOrUpdate(String resourceGroupName, String labName, String username, String name,
+ SecretInner createOrUpdate(String resourceGroupName, String labName, String userName, String name,
SecretInner secret);
/**
* Create or replace an existing secret. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
* @param secret A secret.
* @param context The context to associate with this operation.
@@ -152,71 +118,105 @@ SecretInner createOrUpdate(String resourceGroupName, String labName, String user
* @return a secret.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecretInner createOrUpdate(String resourceGroupName, String labName, String username, String name,
+ SecretInner createOrUpdate(String resourceGroupName, String labName, String userName, String name,
SecretInner secret, Context context);
/**
- * Delete secret.
+ * Allows modifying tags of secrets. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
+ * @param secret A secret.
* @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}.
+ * @return a secret along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String labName, String username, String name,
- Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String userName, String name,
+ SecretFragment secret, Context context);
/**
- * Delete secret.
+ * Allows modifying tags of secrets. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
+ * @param secret A secret.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 secret.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String name);
+ SecretInner update(String resourceGroupName, String labName, String userName, String name, SecretFragment secret);
/**
- * Allows modifying tags of secrets. All other properties will be ignored.
+ * Delete secret.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
- * @param secret A secret.
* @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 secret along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String username, String name,
- SecretFragment secret, Context context);
+ Response deleteWithResponse(String resourceGroupName, String labName, String userName, String name,
+ Context context);
/**
- * Allows modifying tags of secrets. All other properties will be ignored.
+ * Delete secret.
*
- * @param resourceGroupName The name of the resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param labName The name of the lab.
- * @param username The name of the user profile.
+ * @param userName The name of the user profile.
* @param name The name of the secret.
- * @param secret A secret.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 secret.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecretInner update(String resourceGroupName, String labName, String username, String name, SecretFragment secret);
+ void delete(String resourceGroupName, String labName, String userName, String name);
+
+ /**
+ * List secrets in a given user profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName);
+
+ /**
+ * List secrets in a given user profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName The name of the lab.
+ * @param userName The name of the user profile.
+ * @param expand Specify the $expand query. Example: 'properties($select=value)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName, String expand,
+ String filter, Integer top, String orderby, Context context);
}
diff --git a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ServiceFabricSchedulesClient.java b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ServiceFabricSchedulesClient.java
index b5bffc2a39b1..142ef4802c60 100644
--- a/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ServiceFabricSchedulesClient.java
+++ b/sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/fluent/ServiceFabricSchedulesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.devtestlabs.fluent;
@@ -19,85 +19,85 @@
*/
public interface ServiceFabricSchedulesClient {
/**
- * List schedules in a given service fabric.
+ * Get schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @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 response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username,
- String serviceFabricName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String labName, String userName,
+ String serviceFabricName, String name, String expand, Context context);
/**
- * List schedules in a given service fabric.
+ * Get schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
- * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
- * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
- * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a list operation as paginated response with {@link PagedIterable}.
+ * @return schedule.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String labName, String username,
- String serviceFabricName, String expand, String filter, Integer top, String orderby, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduleInner get(String resourceGroupName, String labName, String userName, String serviceFabricName, String name);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
- * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @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 schedule along with {@link Response}.
+ * @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String labName, String username,
- String serviceFabricName, String name, String expand, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String labName, String userName,
+ String serviceFabricName, String name, ScheduleInner schedule, Context context);
/**
- * Get schedule.
+ * Create or replace an existing schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
+ * @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return schedule.
+ * @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner get(String resourceGroupName, String labName, String username, String serviceFabricName, String name);
+ ScheduleInner createOrUpdate(String resourceGroupName, String labName, String userName, String serviceFabricName,
+ String name, ScheduleInner schedule);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -106,17 +106,17 @@ Response getWithResponse(String resourceGroupName, String labName
* @return a schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String labName, String username,
- String serviceFabricName, String name, ScheduleInner schedule, Context context);
+ Response updateWithResponse(String resourceGroupName, String labName, String userName,
+ String serviceFabricName, String name, ScheduleFragment schedule, Context context);
/**
- * Create or replace an existing schedule.
+ * Allows modifying tags of schedules. All other properties will be ignored.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @param schedule A schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -124,17 +124,17 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* @return a schedule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner createOrUpdate(String resourceGroupName, String labName, String username, String serviceFabricName,
- String name, ScheduleInner schedule);
+ ScheduleInner update(String resourceGroupName, String labName, String userName, String serviceFabricName,
+ String name, ScheduleFragment schedule);
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @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.
@@ -142,86 +142,86 @@ ScheduleInner createOrUpdate(String resourceGroupName, String labName, String us
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String labName, String username,
+ Response deleteWithResponse(String resourceGroupName, String labName, String userName,
String serviceFabricName, String name, Context context);
/**
* Delete schedule.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String labName, String username, String serviceFabricName, String name);
+ void delete(String resourceGroupName, String labName, String userName, String serviceFabricName, String name);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a given service fabric.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
- * @param schedule A schedule.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 schedule along with {@link Response}.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String labName, String username,
- String serviceFabricName, String name, ScheduleFragment schedule, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName,
+ String serviceFabricName);
/**
- * Allows modifying tags of schedules. All other properties will be ignored.
+ * List schedules in a given service fabric.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
- * @param schedule A schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param expand Specify the $expand query. Example: 'properties($select=status)'.
+ * @param filter The filter to apply to the operation. Example: '$filter=contains(name,'myName').
+ * @param top The maximum number of resources to return from the operation. Example: '$top=10'.
+ * @param orderby The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
+ * @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 schedule.
+ * @return the response of a list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ScheduleInner update(String resourceGroupName, String labName, String username, String serviceFabricName,
- String name, ScheduleFragment schedule);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String labName, String userName,
+ String serviceFabricName, String expand, String filter, Integer top, String orderby, Context context);
/**
* Execute a schedule. This operation can take a while to complete.
*
- * @param resourceGroupName The name of the resource group.
- * @param labName The name of the lab.
- * @param username The name of the user profile.
- * @param serviceFabricName The name of the service fabric.
- * @param name The name of the schedule.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param labName labs.
+ * @param userName users.
+ * @param serviceFabricName servicefabrics.
+ * @param name The name of the Schedule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginExecute(String resourceGroupName, String labName, String username,
+ SyncPoller